Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add missing action XML data

Freya Lupen1d22320d41ba
diff --git a/krita/krita.action b/krita/krita.action
index 7bc59ac3d9..c5d80641dc 100644
--- a/krita/krita.action
+++ b/krita/krita.action
@@ -2331,7 +2331,7 @@
<statusTip/>
</Action>
<Action name="add_scalar_keyframes">
- <icon></icon>
+ <icon>keyframe-add</icon>
<text>Add scalar keyframes</text>
<whatsThis></whatsThis>
<toolTip>Adds keyframe to control scalar property</toolTip>
@@ -2343,7 +2343,7 @@
<statusTip/>
</Action>
<Action name="remove_scalar_keyframe">
- <icon></icon>
+ <icon>keyframe-remove</icon>
<text>Remove scalar keyframe</text>
<whatsThis></whatsThis>
<toolTip>Removes the selected scalar keyframe</toolTip>
@@ -2522,6 +2522,90 @@
<isCheckable>false</isCheckable>
<statusTip/>
</Action>
+ <Action name="interpolation_constant">
+ <icon>interpolation_constant</icon>
+ <text>Interpolate Constant</text>
+ <whatsThis/>
+ <toolTip>Hold constant value. No interpolation.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ <Action name="interpolation_linear">
+ <icon>interpolation_linear</icon>
+ <text>Interpolate Linear</text>
+ <whatsThis/>
+ <toolTip>Linear interpolation.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ <Action name="interpolation_bezier">
+ <icon>interpolation_bezier</icon>
+ <text>Interpolate Bezier</text>
+ <whatsThis/>
+ <toolTip>Bezier curve interpolation.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ <Action name="tangents_sharp">
+ <icon>interpolation_sharp</icon>
+ <text>Interpolate Sharp</text>
+ <whatsThis/>
+ <toolTip>Sharp interpolation tangents.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ <Action name="tangents_smooth">
+ <icon>interpolation_smooth</icon>
+ <text>Interpolate Smooth</text>
+ <whatsThis/>
+ <toolTip>Smooth interpolation tangents.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ <Action name="zoom_to_fit_range">
+ <icon>zoom-fit</icon>
+ <text>Zoom to Fit Range</text>
+ <whatsThis/>
+ <toolTip>Zoom view to fit channel range.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ <Action name="zoom_to_fit_curve">
+ <icon>zoom-fit-curve</icon>
+ <text>Zoom to Fit Curve</text>
+ <whatsThis/>
+ <toolTip>Zoom view to fit curve.</toolTip>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
</Actions>
<Actions category="Layers">
<text>Layers</text>
diff --git a/plugins/dockers/animation/KisAnimCurvesDocker.cpp b/plugins/dockers/animation/KisAnimCurvesDocker.cpp
index 97e5e4b3a2..bf1a76fe57 100644
--- a/plugins/dockers/animation/KisAnimCurvesDocker.cpp
+++ b/plugins/dockers/animation/KisAnimCurvesDocker.cpp
@@ -474,64 +474,48 @@ void KisAnimCurvesDocker::setViewManager(KisViewManager *view)
KisActionManager* actionManager = view->actionManager();
KisAction* action = actionManager->createAction("add_scalar_keyframes");
- action->setIcon(KisIconUtils::loadIcon("keyframe-add"));
connect(action, SIGNAL(triggered(bool)),
this, SLOT(slotAddAllEnabledKeys()));
m_d->titlebar->btnAddKey->setDefaultAction(action);
m_d->titlebar->btnAddKey->setIconSize(QSize(22, 22));
action = actionManager->createAction("remove_scalar_keyframe");
- action->setIcon(KisIconUtils::loadIcon("keyframe-remove"));
connect(action, SIGNAL(triggered(bool)),
this, SLOT(slotRemoveSelectedKeys()));
m_d->titlebar->btnRemoveKey->setDefaultAction(action);
m_d->titlebar->btnRemoveKey->setIconSize(QSize(22, 22));
action = actionManager->createAction("interpolation_constant");
- action->setIcon(KisIconUtils::loadIcon("interpolation_constant"));
- action->setToolTip(i18n("Hold constant value. No interpolation."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::applyConstantMode);
m_d->titlebar->btnGroupInterpolation->addAction(action);
action = actionManager->createAction("interpolation_linear");
- action->setIcon(KisIconUtils::loadIcon("interpolation_linear"));
- action->setToolTip(i18n("Linear interpolation."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::applyLinearMode);
m_d->titlebar->btnGroupInterpolation->addAction(action);
action = actionManager->createAction("interpolation_bezier");
- action->setIcon(KisIconUtils::loadIcon("interpolation_bezier"));
- action->setToolTip(i18n("Bezier curve interpolation."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::applyBezierMode);
m_d->titlebar->btnGroupInterpolation->addAction(action);
action = actionManager->createAction("tangents_sharp");
- action->setIcon(KisIconUtils::loadIcon("interpolation_sharp"));
- action->setToolTip(i18n("Sharp interpolation tangents."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::applySharpMode);
m_d->titlebar->btnGroupTangents->addAction(action);
action = actionManager->createAction("tangents_smooth");
- action->setIcon(KisIconUtils::loadIcon("interpolation_smooth"));
- action->setToolTip(i18n("Smooth interpolation tangents."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::applySmoothMode);
m_d->titlebar->btnGroupTangents->addAction(action);
action = actionManager->createAction("zoom_to_fit_range");
- action->setIcon(KisIconUtils::loadIcon("zoom-fit"));
- action->setToolTip(i18n("Zoom view to fit channel range."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::zoomToFitChannel);
m_d->titlebar->btnGroupZoomFit->addAction(action);
action = actionManager->createAction("zoom_to_fit_curve");
- action->setIcon(KisIconUtils::loadIcon("zoom-fit-curve"));
- action->setToolTip(i18n("Zoom view to fit curve."));
connect(action, &KisAction::triggered,
m_d->curvesView, &KisAnimCurvesView::zoomToFitCurve);
m_d->titlebar->btnGroupZoomFit->addAction(action);
diff --git a/plugins/python/CMakeLists.txt b/plugins/python/CMakeLists.txt
index 4260fa1fdd..67952100ed 100644
--- a/plugins/python/CMakeLists.txt
+++ b/plugins/python/CMakeLists.txt
@@ -88,10 +88,19 @@ install_pykrita_plugin(workflow_buttons)
# endif()
install( FILES
+ assignprofiledialog/assignprofiledialog.action
+ channels2layers/channels2layers.action
+ colorspace/colorspace.action
+ documenttools/documenttools.action
+ exportlayers/exportlayers.action
+ filtermanager/filtermanager.action
+ # highpass/highpass.action
+ krita_script_starter/krita_script_starter.action
+ mutator/mutator.action
+ plugin_importer/plugin_importer.action
+ scripter/scripter.action
tenbrushes/tenbrushes.action
tenscripts/tenscripts.action
- plugin_importer/plugin_importer.action
- mutator/mutator.action
DESTINATION ${KDE_INSTALL_DATADIR}/krita/actions)
install(
diff --git a/plugins/python/assignprofiledialog/assignprofiledialog.action b/plugins/python/assignprofiledialog/assignprofiledialog.action
new file mode 100644
index 0000000000..b7614ded61
--- /dev/null
+++ b/plugins/python/assignprofiledialog/assignprofiledialog.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Assign Profile to Image</text>
+
+ <Action name="assign_profile_to_image">
+ <icon/>
+ <text>Assign Profile to Image</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/assignprofiledialog/assignprofiledialog.py b/plugins/python/assignprofiledialog/assignprofiledialog.py
index 7be147b70a..92667da60e 100644
--- a/plugins/python/assignprofiledialog/assignprofiledialog.py
+++ b/plugins/python/assignprofiledialog/assignprofiledialog.py
@@ -55,6 +55,6 @@ class AssignProfileDialog(Extension):
pass
def createActions(self, window):
- action = window.createAction("assing_profile_to_image",
+ action = window.createAction("assign_profile_to_image",
i18n("Assign Profile to Image"))
action.triggered.connect(self.assignProfile)
diff --git a/plugins/python/channels2layers/channels2layers.action b/plugins/python/channels2layers/channels2layers.action
new file mode 100644
index 0000000000..b33c6515e3
--- /dev/null
+++ b/plugins/python/channels2layers/channels2layers.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Channels to layers</text>
+
+ <Action name="pykrita_channels2layers">
+ <icon/>
+ <text>Channels to layers</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/colorspace/colorspace.action b/plugins/python/colorspace/colorspace.action
new file mode 100644
index 0000000000..2e91021fa0
--- /dev/null
+++ b/plugins/python/colorspace/colorspace.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Color Space</text>
+
+ <Action name="color_space">
+ <icon/>
+ <text>Color Space</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/documenttools/documenttools.action b/plugins/python/documenttools/documenttools.action
new file mode 100644
index 0000000000..a0c5774c46
--- /dev/null
+++ b/plugins/python/documenttools/documenttools.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Document Tools</text>
+
+ <Action name="document_tools">
+ <icon/>
+ <text>Document Tools</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>0</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/exportlayers/exportlayers.action b/plugins/python/exportlayers/exportlayers.action
new file mode 100644
index 0000000000..b4e036bf6a
--- /dev/null
+++ b/plugins/python/exportlayers/exportlayers.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Export Layers</text>
+
+ <Action name="export_layers">
+ <icon/>
+ <text>Export Layers</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/filtermanager/filtermanager.action b/plugins/python/filtermanager/filtermanager.action
new file mode 100644
index 0000000000..5044dffe4a
--- /dev/null
+++ b/plugins/python/filtermanager/filtermanager.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Filter Manager</text>
+
+ <Action name="filter_manager">
+ <icon/>
+ <text>Filter Manager</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/highpass/highpass.action b/plugins/python/highpass/highpass.action
new file mode 100644
index 0000000000..bf12926d52
--- /dev/null
+++ b/plugins/python/highpass/highpass.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>High Pass</text>
+
+ <Action name="high_pass_filter">
+ <icon/>
+ <text>High Pass</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>1</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/krita_script_starter/krita_script_starter.action b/plugins/python/krita_script_starter/krita_script_starter.action
new file mode 100644
index 0000000000..5d87f02c7d
--- /dev/null
+++ b/plugins/python/krita_script_starter/krita_script_starter.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Krita Script Starter</text>
+
+ <Action name="Krita Script Starter">
+ <icon/>
+ <text>Krita Script Starter</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>0</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>
diff --git a/plugins/python/scripter/scripter.action b/plugins/python/scripter/scripter.action
new file mode 100644
index 0000000000..923543f010
--- /dev/null
+++ b/plugins/python/scripter/scripter.action
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ActionCollection version="2" name="Scripts">
+ <Actions category="Scripts">
+ <text>Scripter</text>
+
+ <Action name="python_scripter">
+ <icon/>
+ <text>Scripter</text>
+ <whatsThis/>
+ <toolTip/>
+ <iconText/>
+ <activationFlags>0</activationFlags>
+ <activationConditions>0</activationConditions>
+ <shortcut/>
+ <isCheckable>false</isCheckable>
+ <statusTip/>
+ </Action>
+ </Actions>
+</ActionCollection>