Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/extensions/metadataeditor/metadataeditor.cc
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | #include "kis_entry_editor.h" | 44 | #include "kis_entry_editor.h" | ||
45 | #include "kis_meta_data_editor.h" | 45 | #include "kis_meta_data_editor.h" | ||
46 | 46 | | |||
47 | K_PLUGIN_FACTORY_WITH_JSON(metadataeditorPluginFactory, "kritametadataeditor.json", registerPlugin<metadataeditorPlugin>();) | 47 | K_PLUGIN_FACTORY_WITH_JSON(metadataeditorPluginFactory, "kritametadataeditor.json", registerPlugin<metadataeditorPlugin>();) | ||
48 | 48 | | |||
49 | metadataeditorPlugin::metadataeditorPlugin(QObject *parent, const QVariantList &) | 49 | metadataeditorPlugin::metadataeditorPlugin(QObject *parent, const QVariantList &) | ||
50 | : KisViewPlugin(parent) | 50 | : KisViewPlugin(parent) | ||
51 | { | 51 | { | ||
52 | KisAction *action = new KisAction(i18n("&Edit metadata..."), this); | 52 | KisAction *action = createAction("EditLayerMetaData"); | ||
53 | action->setActivationFlags(KisAction::ACTIVE_LAYER); | 53 | action->setActivationFlags(KisAction::ACTIVE_LAYER); | ||
54 | action->setActivationConditions(KisAction::ACTIVE_NODE_EDITABLE); | 54 | action->setActivationConditions(KisAction::ACTIVE_NODE_EDITABLE); | ||
55 | addAction("EditLayerMetaData", action); | | |||
56 | connect(action, SIGNAL(triggered()), this, SLOT(slotEditLayerMetaData())); | 55 | connect(action, SIGNAL(triggered()), this, SLOT(slotEditLayerMetaData())); | ||
57 | } | 56 | } | ||
58 | 57 | | |||
59 | metadataeditorPlugin::~metadataeditorPlugin() | 58 | metadataeditorPlugin::~metadataeditorPlugin() | ||
60 | { | 59 | { | ||
61 | } | 60 | } | ||
62 | 61 | | |||
63 | void metadataeditorPlugin::slotEditLayerMetaData() | 62 | void metadataeditorPlugin::slotEditLayerMetaData() | ||
Show All 9 Lines |