gz/gui/Application.hh
std::vector< std::pair< std::string, std::vector< std::string > > > PluginList()
Get the list of available plugins, organized by path. The paths are given in the following order:
STL class.
std::string DefaultConfigPath()
Get the location of the default configuration file.
STL class.
bool LoadConfig(const std::string &_path)
Load a configuration file, which includes window configurations and plugins. This function doesn't in...
A Gazebo GUI application loads a QML engine and provides an API to load plugins and configuration fil...
Definition: gz/gui/Application.hh:65
@ kDialog
One independent dialog per plugin. Also useful to open a startup dialog before the main window.
void PluginAdded(const QString &_objectName)
Notify that a plugin has been added.
bool LoadDefaultConfig()
Load the configuration from the default config file.
The main window class creates a QQuickWindow and acts as an interface which provides properties and f...
Definition: gz/gui/MainWindow.hh:61
bool RemovePlugin(const std::string &_pluginName)
Remove plugin by name. The plugin is removed from the application and its shared library unloaded if ...
bool CreateMainWindow()
Create a main window. Just calls InitializeMainWindow.
Application(int &_argc, char **_argv, const WindowType _type=WindowType::kMainWindow)
Constructor.
void AddPluginPath(const std::string &_path)
Add an path to look for plugins.
bool LoadPlugin(const std::string &_filename, const tinyxml2::XMLElement *_pluginElem=nullptr)
Load a plugin from a file name. The plugin file must be in the path. If a window has been initialized...
void OnPluginClose()
Callback when user requests to close a plugin.
std::shared_ptr< Plugin > PluginByName(const std::string &_pluginName) const
Get a plugin by its unique name.
void SetDefaultConfigPath(const std::string &_path)
Specifies the location of the default configuration file. This is the file that stores the user setti...
Definition: gz/gui/Application.hh:35
WindowType
Type of window which the application will display.
Definition: gz/gui/Application.hh:50
@ kMainWindow
A main window, which may contain top-level menus and multiple plugins.
void SetPluginPathEnv(const std::string &_env)
Set the environment variable which defines the paths to look for plugins.