Screenshot.hh
Go to the documentation of this file.
Provides a button and a transport service for taking a screenshot of current 3D scene.
Definition: Screenshot.hh:49
QString savedScreenshotPath
Saved screenshot filepath.
Definition: Screenshot.hh:66
Q_INVOKABLE void SetDirectory(const QString &_dirUrl)
Set the directory path from a string, for example '/home/Pictures'.
void savedScreenshot()
Notify that the screenshot has been saved (opens popup)
Q_INVOKABLE QString SavedScreenshotPath() const
Get the filepath of the saved screenshot as a string, for example '/home/Pictures/[timestamp]....
void DirectoryChanged()
Notify that the directory path has changed.
void SavedScreenshotPathChanged()
Notify that the screenshot filename has changed.
QString directory
Directory to save screenshots.
Definition: Screenshot.hh:58
void OnScreenshot()
Callback when screenshot is requested from the GUI.
Q_INVOKABLE void SetSavedScreenshotPath(const QString &_filename)
Set the filepath of the saved screenshot from a string, for example '/home/Pictures/[timestamp]....
Q_INVOKABLE QString Directory() const
Get the directory path as a string, for example '/home/Pictures'.
void LoadConfig(const tinyxml2::XMLElement *_pluginElem) override
Load the plugin with a configuration file. Override this on custom plugins to handle custom configura...
STL namespace.
Definition: gz/gui/Application.hh:36