Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/KoColorSetWidget_p.h
Context not available. | |||||
40 | 40 | | |||
---|---|---|---|---|---|
41 | #include <klocalizedstring.h> | 41 | #include <klocalizedstring.h> | ||
42 | #include <WidgetsDebug.h> | 42 | #include <WidgetsDebug.h> | ||
43 | #include <KoResourceServer.h> | ||||
44 | #include <kis_popup_button.h> | ||||
45 | #include <KisPaletteListWidget.h> | ||||
46 | #include <KisPaletteComboBox.h> | ||||
43 | 47 | | |||
44 | #include <resources/KoColorSet.h> | 48 | #include <resources/KoColorSet.h> | ||
45 | #include <KoColorDisplayRendererInterface.h> | 49 | #include <KoColorDisplayRendererInterface.h> | ||
46 | 50 | | |||
47 | class KoColorPatch; | 51 | class KoColorPatch; | ||
52 | class KisPaletteView; | ||||
48 | 53 | | |||
49 | class Q_DECL_HIDDEN KoColorSetWidget::KoColorSetWidgetPrivate { | 54 | class Q_DECL_HIDDEN KoColorSetWidget::KoColorSetWidgetPrivate { | ||
50 | public: | 55 | public: | ||
51 | KoColorSetWidget *thePublic; | 56 | KoColorSetWidget *thePublic; | ||
52 | QPointer<KoColorSet> colorSet; | 57 | QPointer<KoColorSet> colorSet; | ||
53 | QTimer m_timer; | 58 | | ||
59 | KisPaletteView *paletteView; | ||||
60 | KisPaletteListWidget *paletteChooser; | ||||
61 | KisPopupButton *paletteChooserButton; | ||||
62 | | ||||
54 | QVBoxLayout *mainLayout; | 63 | QVBoxLayout *mainLayout; | ||
55 | bool firstShowOfContainer; | | |||
56 | QWidget *colorSetContainer; | | |||
57 | QScrollArea *scrollArea; | | |||
58 | QVBoxLayout *colorSetLayout; | 64 | QVBoxLayout *colorSetLayout; | ||
59 | QHBoxLayout *recentsLayout; | 65 | QHBoxLayout *recentsLayout; | ||
66 | QHBoxLayout *bottomLayout; | ||||
67 | | ||||
60 | KoColorPatch *recentPatches[6]; | 68 | KoColorPatch *recentPatches[6]; | ||
61 | QToolButton *addRemoveButton; | 69 | QToolButton *addRemoveButton; | ||
62 | QComboBox *colorNameCmb; | 70 | KisPaletteComboBox *colorNameCmb; | ||
63 | QStringList colornames; | | |||
64 | int numRecents; | 71 | int numRecents; | ||
65 | 72 | | |||
66 | void colorTriggered(KoColorPatch *patch); | 73 | const KoColorDisplayRendererInterface *displayRenderer; | ||
74 | KoResourceServer<KoColorSet> *rServer; | ||||
75 | | ||||
67 | void addRecent(const KoColor &); | 76 | void addRecent(const KoColor &); | ||
68 | void activateRecent(int i); | 77 | void activateRecent(int i); | ||
69 | void fillColors(); | | |||
70 | void addRemoveColors(); | 78 | void addRemoveColors(); | ||
71 | void setColorFromString(QString s); | | |||
72 | | ||||
73 | QList<KoColorPatch*> patchWidgetList; | | |||
74 | const KoColorDisplayRendererInterface *displayRenderer; | | |||
75 | | ||||
76 | }; | 79 | }; | ||
77 | 80 | | |||
78 | #endif | 81 | #endif | ||
Context not available. |