Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/palettedocker/palettedocker_dock.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 63 | private Q_SLOTS: | |||
---|---|---|---|---|---|
77 | void slotPaletteIndexClicked(const QModelIndex &index); | 77 | void slotPaletteIndexClicked(const QModelIndex &index); | ||
78 | void slotPaletteIndexDoubleClicked(const QModelIndex &index); | 78 | void slotPaletteIndexDoubleClicked(const QModelIndex &index); | ||
79 | void slotNameListSelection(const KoColor &color); | 79 | void slotNameListSelection(const KoColor &color); | ||
80 | void slotSetColorSet(KoColorSet* colorSet); | 80 | void slotSetColorSet(KoColorSet* colorSet); | ||
81 | 81 | | |||
82 | void saveToWorkspace(KisWorkspaceResource* workspace); | 82 | void saveToWorkspace(KisWorkspaceResource* workspace); | ||
83 | void loadFromWorkspace(KisWorkspaceResource* workspace); | 83 | void loadFromWorkspace(KisWorkspaceResource* workspace); | ||
84 | 84 | | |||
85 | void slotFGColorResourceChanged(const KoColor& color); | ||||
86 | | ||||
85 | private: | 87 | private: | ||
86 | void setEntryByForeground(const QModelIndex &index); | 88 | void setEntryByForeground(const QModelIndex &index); | ||
87 | void setFGColorByPalette(const KisSwatch &entry); | 89 | void setFGColorByPalette(const KisSwatch &entry); | ||
88 | 90 | | |||
89 | private /* member variables */: | 91 | private /* member variables */: | ||
90 | QScopedPointer<Ui_WdgPaletteDock> m_ui; | 92 | QScopedPointer<Ui_WdgPaletteDock> m_ui; | ||
91 | KisPaletteModel *m_model; | 93 | KisPaletteModel *m_model; | ||
92 | KisPaletteListWidget *m_paletteChooser; | 94 | KisPaletteListWidget *m_paletteChooser; | ||
93 | 95 | | |||
94 | QPointer<KisViewManager> m_view; | 96 | QPointer<KisViewManager> m_view; | ||
95 | KisCanvasResourceProvider *m_resourceProvider; | 97 | KisCanvasResourceProvider *m_resourceProvider; | ||
96 | 98 | | |||
97 | KoResourceServer<KoColorSet> * const m_rServer; | 99 | KoResourceServer<KoColorSet> * const m_rServer; | ||
98 | 100 | | |||
99 | QPointer<KisDocument> m_activeDocument; | 101 | QPointer<KisDocument> m_activeDocument; | ||
100 | QPointer<KoColorSet> m_currentColorSet; | 102 | QPointer<KoColorSet> m_currentColorSet; | ||
101 | QScopedPointer<KisPaletteEditor> m_paletteEditor; | 103 | QScopedPointer<KisPaletteEditor> m_paletteEditor; | ||
102 | 104 | | |||
103 | QScopedPointer<QAction> m_actAdd; | 105 | QScopedPointer<QAction> m_actAdd; | ||
104 | QScopedPointer<QAction> m_actRemove; | 106 | QScopedPointer<QAction> m_actRemove; | ||
105 | QScopedPointer<QAction> m_actModify; | 107 | QScopedPointer<QAction> m_actModify; | ||
106 | QScopedPointer<QAction> m_actEditPalette; | 108 | QScopedPointer<QAction> m_actEditPalette; | ||
107 | QMenu m_viewContextMenu; | 109 | QMenu m_viewContextMenu; | ||
110 | | ||||
111 | bool m_colorSelfUpdate; | ||||
108 | }; | 112 | }; | ||
109 | 113 | | |||
110 | 114 | | |||
111 | #endif | 115 | #endif |