Commit 3f2d3099 authored by Boudewijn Rempt's avatar Boudewijn Rempt
parent 3f715ef1
......@@ -176,6 +176,10 @@ KisPaintopBox::KisPaintopBox(KisView2 *view, QWidget *parent, const char *name)
m_cmbCompositeOp = new KisCompositeOpComboBox();
foreach(KAction *a, m_cmbCompositeOp->blendmodeActions()) {
qDebug() << "Adding action" << a->text();
m_view->actionCollection()->addAction(a->text(), a);
m_workspaceWidget = new KisPopupButton(view);
This diff is collapsed.
......@@ -26,6 +26,7 @@
#include <krita_export.h>
#include "kis_categorized_list_view.h"
class KAction;
class KoID;
class KoColorSpace;
class KisSortedCompositeOpListModel;
......@@ -59,14 +60,47 @@ public:
KoID selectedCompositeOp() const;
bool hasSelectedCompositeOp() const;
QList<KAction*> blendmodeActions();
private slots:
void slotCategoryToggled(const QModelIndex& index, bool toggled);
void slotEntryChecked(const QModelIndex& index);
void slotNextBlendingMode();
void slotPreviousBlendingMode();
void slotNormal();
void slotDissolve();
void slotBehind();
void slotClear();
void slotDarken();
void slotMultiply();
void slotColorBurn();
void slotLinearBurn();
void slotLighten();
void slotScreen();
void slotColorDodge();
void slotLinearDodge();
void slotOverlay();
void slotSoftLight();
void slotHardLight();
void slotVividLight();
void slotLinearLight();
void slotPinLight();
void slotHardMix();
void slotDifference();
void slotExclusion();
void slotHue();
void slotSaturation();
void slotColor();
void slotLuminosity();
KisSortedCompositeOpListModel *m_model;
KisCategorizedListView *m_view;
bool m_allowToHidePopup;
QList<KAction*> m_actions;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment