|
Developer Documentation
|
Public Slots | |
| QString | version () |
Signals | |
| void | updateView () |
| void | updatedObject (int _identifier, const UpdateType &_type) |
| void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | getMenubarMenu (QString _name, QMenu *&_menu, bool _create) |
| void | undo (int _objectid) |
| void | undo () |
| void | redo (int _objectid) |
| void | redo () |
| void | aboutToRestore (int _objectid) |
| void | restored (int _objectid) |
| void | generateBackup (int _id, QString _name, UpdateType _type) |
| void | addToolbar (QToolBar *_toolbar) |
| void | getToolBar (QString _name, QToolBar *&_toolbar) |
| void | registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
| void | addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type) |
Signals inherited from BaseInterface | |
| virtual void | updateView () |
| Update current view in Main Application. | |
| virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| Set a description for a public slot. | |
| virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
| Set a renderer for the given viewer. | |
Signals inherited from KeyInterface | |
| virtual void | registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
| Register a key-combination for your plugin. | |
Signals inherited from MenuInterface | |
| virtual void | getMenubarMenu (QString _name, QMenu *&_menu, bool _create) |
| Get a existing top level menu pointer or create a new one. | |
Signals inherited from BackupInterface | |
| virtual void | createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL) |
| Tell Backup Plugin to create a backup. | |
| virtual void | aboutToRestore (int _objectid) |
| Backup Plugin tells other Plugins that a restore will happen. | |
| virtual void | generateBackup (int _id, QString _name, UpdateType _type) |
| This signal is emitted by a BackupPlugin and tells a TypePlugin to generate a backup. | |
Signals inherited from LoggingInterface | |
| virtual void | log (Logtype _type, QString _message)=0 |
| virtual void | log (QString _message)=0 |
Signals inherited from ToolbarInterface | |
| virtual void | addToolbar (QToolBar *_toolbar) |
| Adds a Toolbar to the main widget. | |
Signals inherited from LoadSaveInterface | |
| virtual void | save (int _id, QString _filename) |
| Save object to a file. | |
| virtual void | load (QString _filename, DataType _type, int &_id) |
| Load object from file with a specific DataType. | |
Signals inherited from ContextMenuInterface | |
| virtual void | addContextMenuItem (QAction *_action, ContextMenuType _type) |
| Add an entry for a context Menu. | |
Signals inherited from PythonInterface | |
| virtual void | executePythonScript (QString _script) |
Public Member Functions | |
| void | createBackup (int _objectId, const QString &_name, UpdateType _type=UPDATE_ALL) |
| QString | name () |
| Return a name for the plugin. | |
| QString | description () |
| Return a description of what the plugin is doing. | |
| void | createBackupSimple (int _objectId, const QString &_name) |
Private Slots | |
| void | initializePlugin () |
| void | pluginsInitialized () |
| void | slotAllCleared () |
| void | slotKeyEvent (QKeyEvent *_event) |
| void | objectDeleted (int _objectid) |
| void | slotCreateBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL) |
| void | slotCreateBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types) |
| void | slotUndo (int _objectid) |
| void | slotRedo (int _objectid) |
| void | slotUndo () |
| void | slotRedo () |
| void | slotUpdateContextMenu (int _objectId) |
| bool | initializeOptionsWidget (QWidget *&_widget) |
| void | applyOptions () |
| void | updateButtons () |
| void | slotEnableDisableBackups () |
| Backups enabled or disabled checkbox. | |
| void | slotObjectUndo () |
| void | slotObjectRedo () |
Private Slots inherited from BaseInterface | |
| virtual void | exit () |
| virtual QString | version () |
| Return a version string for your plugin. | |
Private Slots inherited from KeyInterface | |
| virtual void | slotKeyEvent (QKeyEvent *_event) |
| Key Event from Main App. | |
Private Attributes | |
| GroupData | globalBackup_ |
| QMenu * | backupMenu_ |
| The backup Menu. | |
| QAction * | backupsEnabledAction_ |
| QAction * | undoMenuAction_ |
| QAction * | redoMenuAction_ |
| QAction * | undoToolAction_ |
| QAction * | redoToolAction_ |
| QAction * | undoContextAction_ |
| QAction * | redoContextAction_ |
| QSpinBox * | maxBackupSpinBox_ |
Additional Inherited Members | |
Private Member Functions inherited from BaseInterface | |
| virtual void | noguiSupported () |
| virtual | ~BaseInterface () |
| Destructor. | |
| virtual void | blockScenegraphUpdates (bool _block) |
| Tell the core to prevent scenegraph updates. | |
| virtual void | updatedObject (int _objectId) |
| An object has been changed or added by this plugin. | |
| virtual void | updatedObject (int _identifier, const UpdateType &_type) |
| An object has been changed or added by this plugin. | |
| virtual void | nodeVisibilityChanged (int _identifier) |
| A scenegraph node has been shown or hidden. | |
| virtual void | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
| Get the current renderer for the given viewer. | |
Private Member Functions inherited from KeyInterface | |
| virtual void | slotKeyReleaseEvent (QKeyEvent *_event) |
| Key Release Event from Main App. | |
| virtual | ~KeyInterface () |
| Destructor. | |
Private Member Functions inherited from MenuInterface | |
| virtual | ~MenuInterface () |
| Destructor. | |
| virtual void | addMenubarAction (QAction *_action, QString _name) |
| Adds an action to the menubar. | |
| virtual void | addMenubarActions (std::vector< QAction * > &_actions, QString _name) |
| Add multiple actions to the menu bar. | |
Private Member Functions inherited from BackupInterface | |
| virtual void | createBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types) |
| Tell Backup Plugin to create a group backup. | |
| virtual void | undo (int _objectid) |
| Tell Backup Plugin to undo the last action of an object. | |
| virtual void | redo (int _objectid) |
| Tell Backup Plugin to redo the last action on an object. | |
| virtual void | undo () |
| Tell Backup Plugin to undo the last action. | |
| virtual void | redo () |
| Tell Backup Plugin to redo the last action. | |
| virtual | ~BackupInterface () |
| Destructor. | |
| virtual void | restored (int _objectid) |
| Backup Plugin tells other Plugins that a restore has happened. | |
Private Member Functions inherited from LoggingInterface | |
| virtual | ~LoggingInterface () |
| Destructor. | |
Private Member Functions inherited from ToolbarInterface | |
| virtual | ~ToolbarInterface () |
| Destructor. | |
| virtual void | removeToolbar (QToolBar *_toolbar) |
| Remove a Toolbar from the main widget. | |
| virtual void | getToolBar (QString _name, QToolBar *&_toolbar) |
| Get a pointer to a Toolbar of the given name or 0 if it does not exist. | |
Private Member Functions inherited from LoadSaveInterface | |
| virtual | ~LoadSaveInterface () |
| Destructor. | |
| virtual void | addEmptyObject (DataType _type, int &_id) |
| virtual void | copyObject (int _oldId, int &_newId) |
| virtual void | emptyObjectAdded (int _id) |
| DEPRECATED HERE (Moved to Type Interface)! Emit this signal if an empty object has been created. | |
| virtual void | deleteObject (int _id) |
| Delete an object This signal can be called from any thread. . | |
| virtual void | deleteAllObjects () |
| Delete all Objects. | |
| virtual void | getAllFileFilters (QStringList &_filters) |
| Get all file filters that are registered. | |
Private Member Functions inherited from ContextMenuInterface | |
| virtual | ~ContextMenuInterface () |
| Destructor. | |
| virtual void | addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type) |
| Add an entry for a context Menu. | |
| virtual void | hideContextMenu () |
| hide the main context menu | |
Private Member Functions inherited from OptionsInterface | |
| virtual | ~OptionsInterface () |
| Destructor. | |
| virtual bool | initializeOptionsWidget (QWidget *&_widget)=0 |
| Initialize the Options Widget. | |
| virtual void | applyOptions ()=0 |
| Apply changes to options. | |
Private Member Functions inherited from PythonInterface | |
| virtual void | openPythonScriptInEditor (QString _script) |
| virtual | ~PythonInterface () |
| Destructor. | |
Definition at line 62 of file BackupPlugin.hh.
|
inline |
Definition at line 156 of file BackupPlugin.hh.
| BackupPlugin::BackupPlugin | ( | ) |
Definition at line 55 of file BackupPlugin.cc.
|
privateslot |
Definition at line 461 of file BackupPlugin.cc.
| void BackupPlugin::createBackup | ( | int | _objectId, |
| const QString & | _name, | ||
| UpdateType | _type = UPDATE_ALL |
||
| ) |
Definition at line 433 of file BackupPlugin.cc.
| void BackupPlugin::createBackupSimple | ( | int | _objectId, |
| const QString & | _name | ||
| ) |
Definition at line 468 of file BackupPlugin.cc.
|
inlinevirtual |
Return a description of what the plugin is doing.
This function has to return a basic description of the plugin
Implements BaseInterface.
Definition at line 160 of file BackupPlugin.hh.
|
privateslot |
Definition at line 440 of file BackupPlugin.cc.
|
privateslot |
Definition at line 72 of file BackupPlugin.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 159 of file BackupPlugin.hh.
|
privateslot |
Definition at line 228 of file BackupPlugin.cc.
|
privateslot |
Definition at line 82 of file BackupPlugin.cc.
|
privateslot |
Definition at line 166 of file BackupPlugin.cc.
|
privateslot |
Definition at line 328 of file BackupPlugin.cc.
|
privateslot |
Definition at line 288 of file BackupPlugin.cc.
|
privateslot |
Backups enabled or disabled checkbox.
Definition at line 204 of file BackupPlugin.cc.
|
privateslot |
Definition at line 212 of file BackupPlugin.cc.
|
privateslot |
Definition at line 280 of file BackupPlugin.cc.
|
privateslot |
Definition at line 272 of file BackupPlugin.cc.
|
privateslot |
Definition at line 416 of file BackupPlugin.cc.
|
privateslot |
Definition at line 404 of file BackupPlugin.cc.
|
privateslot |
Definition at line 380 of file BackupPlugin.cc.
|
privateslot |
Definition at line 368 of file BackupPlugin.cc.
|
privateslot |
Definition at line 235 of file BackupPlugin.cc.
|
privateslot |
Definition at line 173 of file BackupPlugin.cc.
|
inlineslot |
Definition at line 151 of file BackupPlugin.hh.
|
private |
The backup Menu.
Definition at line 168 of file BackupPlugin.hh.
|
private |
Definition at line 170 of file BackupPlugin.hh.
|
private |
Definition at line 165 of file BackupPlugin.hh.
|
private |
Definition at line 181 of file BackupPlugin.hh.
|
private |
Definition at line 179 of file BackupPlugin.hh.
|
private |
Definition at line 173 of file BackupPlugin.hh.
|
private |
Definition at line 176 of file BackupPlugin.hh.
|
private |
Definition at line 178 of file BackupPlugin.hh.
|
private |
Definition at line 172 of file BackupPlugin.hh.
|
private |
Definition at line 175 of file BackupPlugin.hh.