56 #ifndef DESERIALIZESCREENSHOTMETADATAPLUGIN_HH 57 #define DESERIALIZESCREENSHOTMETADATAPLUGIN_HH 67 #include <ACG/QtWidgets/QtExaminerViewer.hh> 69 #include "RestoreFromScreenshotDlg.hh" 83 #if QT_VERSION >= 0x050000 84 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-DeserializeScreenshotMetadataPlugin")
92 void addToolbar(QToolBar* _toolbar);
95 void metadataDeserialized(
96 const QVector<QPair<QString, QString> > &data);
101 void initializePlugin();
102 void pluginsInitialized();
103 void slot_restore_from_screenshot();
104 void slot_do_restore_from_screenshot();
106 void slotGenericMetadataDeserialized(QString key, QString value);
107 void slotObjectMetadataDeserialized(QString object_name, QString value);
108 #if QT_VERSION >= 0x050000 109 void slotObjectMetadataDeserializedJson(
110 QString object_name, QJsonDocument value);
121 return (QString(
"DeserializeScreenshotMetadata"));
125 return (QString(
"Deserializes meta data from viewer snapshots."));
130 QAction *restoreAction;
135 #endif // DESERIALIZESCREENSHOTMETADATAPLUGIN_HH defined
Enables implementers to react on deserialization of meta data.
Interface class from which all plugins have to be created.
QString description()
Return a description of what the plugin is doing.
QString name()
Return a name for the plugin.
Add a toolbox to OpenFlipper.