Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_paintop_presets_popup.h
Context not available. | |||||
27 | #include <kis_types.h> | 27 | #include <kis_types.h> | ||
---|---|---|---|---|---|
28 | #include <brushengine/kis_paintop_factory.h> | 28 | #include <brushengine/kis_paintop_factory.h> | ||
29 | #include "../kis_paint_ops_model.h" | 29 | #include "../kis_paint_ops_model.h" | ||
30 | #include <kis_action.h> | ||||
30 | #include <widgets/kis_paintop_presets_save.h> | 31 | #include <widgets/kis_paintop_presets_save.h> | ||
31 | #include "widgets/kis_paintop_presets_popup.h" | 32 | #include "widgets/kis_paintop_presets_popup.h" | ||
32 | #include "kis_favorite_resource_manager.h" | 33 | #include "kis_favorite_resource_manager.h" | ||
Context not available. | |||||
80 | 81 | | |||
81 | KisPresetSaveWidget * saveDialog; | 82 | KisPresetSaveWidget * saveDialog; | ||
82 | 83 | | |||
84 | // toggle the state when we are creating a brush from scratch | ||||
85 | void setCreatingBrushFromScratch(bool enable); | ||||
86 | | ||||
83 | protected: | 87 | protected: | ||
84 | void contextMenuEvent(QContextMenuEvent *) override; | 88 | void contextMenuEvent(QContextMenuEvent *) override; | ||
85 | void hideEvent(QHideEvent *) override; | 89 | void hideEvent(QHideEvent *) override; | ||
Context not available. | |||||
96 | void slotRenameBrushActivated(); | 100 | void slotRenameBrushActivated(); | ||
97 | void slotRenameBrushDeactivated(); | 101 | void slotRenameBrushDeactivated(); | ||
98 | void slotSaveRenameCurrentBrush(); | 102 | void slotSaveRenameCurrentBrush(); | ||
103 | void slotCreateNewBrushPresetEngine(); | ||||
99 | 104 | | |||
100 | Q_SIGNALS: | 105 | Q_SIGNALS: | ||
101 | void savePresetClicked(); | 106 | void savePresetClicked(); | ||
Context not available. | |||||
109 | void eraserBrushOpacityToggled(bool value); | 114 | void eraserBrushOpacityToggled(bool value); | ||
110 | void sizeChanged(); | 115 | void sizeChanged(); | ||
111 | void brushEditorShown(); | 116 | void brushEditorShown(); | ||
117 | void createPresetFromScratch(const QString& paintOpName); | ||||
112 | 118 | | |||
113 | private Q_SLOTS: | 119 | private Q_SLOTS: | ||
114 | void slotSwitchScratchpad(bool visible); | 120 | void slotSwitchScratchpad(bool visible); | ||
Context not available. | |||||
119 | void slotSwitchShowPresets(bool visible); | 125 | void slotSwitchShowPresets(bool visible); | ||
120 | void slotSaveBrushPreset(); | 126 | void slotSaveBrushPreset(); | ||
121 | void slotSaveNewBrushPreset(); | 127 | void slotSaveNewBrushPreset(); | ||
122 | 128 | void slotBlackListCurrentPreset(); | |||
123 | | ||||
124 | 129 | | |||
125 | private: | 130 | private: | ||
126 | 131 | | |||
Context not available. | |||||
128 | Private * const m_d; | 133 | Private * const m_d; | ||
129 | QString current_paintOpId; | 134 | QString current_paintOpId; | ||
130 | QList<KisPaintOpInfo> sortedBrushEnginesList; | 135 | QList<KisPaintOpInfo> sortedBrushEnginesList; | ||
136 | | ||||
137 | | ||||
138 | QMenu * newPresetBrushEnginesMenu; | ||||
139 | QList<KisAction*> newBrushEngineOptions; | ||||
140 | | ||||
141 | | ||||
131 | void toggleBrushRenameUIActive(bool isRenaming); | 142 | void toggleBrushRenameUIActive(bool isRenaming); | ||
132 | }; | 143 | }; | ||
133 | 144 | | |||
Context not available. |