50 #ifndef BACKUPPLUGIN_HH 51 #define BACKUPPLUGIN_HH 67 #include "GroupData.hh" 82 #if QT_VERSION >= 0x050000 83 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Backup")
89 void updatedObject(
int _identifier,
const UpdateType& _type);
90 void setSlotDescription(QString _slotName , QString _slotDescription,
91 QStringList _parameters , QStringList _descriptions);
94 void log(
Logtype _type, QString _message);
95 void log(QString _message);
98 void getMenubarMenu (QString _name, QMenu *& _menu,
bool _create);
101 void undo(
int _objectid);
103 void redo(
int _objectid);
105 void aboutToRestore(
int _objectid);
106 void restored(
int _objectid);
107 void generateBackup(
int _id, QString _name,
UpdateType _type);
110 void addToolbar(QToolBar* _toolbar);
111 void getToolBar( QString _name, QToolBar*& _toolbar);
114 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
122 void initializePlugin();
123 void pluginsInitialized();
125 void slotAllCleared();
128 void slotKeyEvent( QKeyEvent* _event );
131 void objectDeleted (
int _objectid);
135 void slotCreateBackup(
IdList _objectids , QString _name, std::vector<UpdateType> _types);
136 void slotUndo(
int _objectid);
137 void slotRedo(
int _objectid);
142 void slotUpdateContextMenu(
int _objectId );
145 bool initializeOptionsWidget(QWidget*& _widget);
150 void updateButtons();
155 void slotObjectUndo();
156 void slotObjectRedo();
159 QString version() {
return QString(
"0.1"); };
167 QString
name() {
return (QString(
"Backup")); };
168 QString
description( ) {
return (QString(
"Creates Backups of objects when supported by plugins")); };
176 QAction* backupsEnabledAction_;
178 QAction* undoMenuAction_;
179 QAction* redoMenuAction_;
181 QAction* undoToolAction_;
182 QAction* redoToolAction_;
184 QAction* undoContextAction_;
185 QAction* redoContextAction_;
187 QSpinBox* maxBackupSpinBox_;
190 #endif //BACKUPPLUGIN_HH Options Dialog interface.
Interface class for creating custom context menus.
Logtype
Log types for Message Window.
QString name()
Return a name for the plugin.
Keyboard Event Interface.
Class that is used to store global(group) backups.
Interface class from which all plugins have to be created.
QString description()
Return a description of what the plugin is doing.
Interface for all Plugins which do logging to the logging window of the framework.
Interface for all plugins which provide entries to the main menubar.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
void slotEnableDisableBackups()
Backups enabled or disabled checkbox.
Interface for all plugins which want to Load or Save files and create Objects.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void createBackup(int _objectId, QString _name, UpdateType _type=UPDATE_ALL)
Tell Backup Plugin to create a backup.
QMenu * backupMenu_
The backup Menu.
Interface class for backup handling.
Add a toolbox to OpenFlipper.