59 #include "GroupData.hh" 74 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Backup")
79 void updatedObject(
int _identifier,
const UpdateType& _type);
80 void setSlotDescription(QString _slotName , QString _slotDescription,
81 QStringList _parameters , QStringList _descriptions);
84 void log(
Logtype _type, QString _message);
85 void log(QString _message);
88 void getMenubarMenu (QString _name, QMenu *& _menu,
bool _create);
91 void undo(
int _objectid);
93 void redo(
int _objectid);
95 void aboutToRestore(
int _objectid);
96 void restored(
int _objectid);
97 void generateBackup(
int _id, QString _name,
UpdateType _type);
100 void addToolbar(QToolBar* _toolbar);
101 void getToolBar( QString _name, QToolBar*& _toolbar);
104 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
112 void initializePlugin();
113 void pluginsInitialized();
115 void slotAllCleared();
118 void slotKeyEvent( QKeyEvent* _event );
121 void objectDeleted (
int _objectid);
125 void slotCreateBackup(
IdList _objectids , QString _name, std::vector<UpdateType> _types);
126 void slotUndo(
int _objectid);
127 void slotRedo(
int _objectid);
132 void slotUpdateContextMenu(
int _objectId );
135 bool initializeOptionsWidget(QWidget*& _widget);
140 void updateButtons();
145 void slotObjectUndo();
146 void slotObjectRedo();
149 QString version() {
return QString(
"0.1"); };
157 QString
name() {
return (QString(
"Backup")); };
158 QString
description( ) {
return (QString(
"Creates Backups of objects when supported by plugins")); };
166 QAction* backupsEnabledAction_;
168 QAction* undoMenuAction_;
169 QAction* redoMenuAction_;
171 QAction* undoToolAction_;
172 QAction* redoToolAction_;
174 QAction* undoContextAction_;
175 QAction* redoContextAction_;
177 QSpinBox* maxBackupSpinBox_;
Interface class for creating custom context menus.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
QString name()
Return a name for the plugin.
Logtype
Log types for Message Window.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which do logging to the logging window of the framework.
Class that is used to store global(group) backups.
void createBackup(int _objectId, QString _name, UpdateType _type=UPDATE_ALL)
Tell Backup Plugin to create a backup.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
QMenu * backupMenu_
The backup Menu.
Interface class from which all plugins have to be created.
Add a toolbox to OpenFlipper.
Keyboard Event Interface.
QString description()
Return a description of what the plugin is doing.
Options Dialog interface.
Interface for all plugins which provide entries to the main menubar.
void slotEnableDisableBackups()
Backups enabled or disabled checkbox.
Interface class for backup handling.