Changeset View
Changeset View
Standalone View
Standalone View
src/dialog/palettedialog.h
Show All 15 Lines | |||||
16 | * Free Software Foundation, Inc., * | 16 | * Free Software Foundation, Inc., * | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * | ||
18 | *********************************************************************************/ | 18 | *********************************************************************************/ | ||
19 | 19 | | |||
20 | #ifndef PALETTE_DIALOG_H | 20 | #ifndef PALETTE_DIALOG_H | ||
21 | #define PALETTE_DIALOG_H | 21 | #define PALETTE_DIALOG_H | ||
22 | 22 | | |||
23 | #include <KColorDialog> | 23 | #include <KColorDialog> | ||
24 | #include <KUrl> | ||||
24 | 25 | | |||
25 | class QLabel; | 26 | class QLabel; | ||
26 | class QStringList; | 27 | class QStringList; | ||
28 | class QTabWidget; | ||||
27 | 29 | | |||
28 | class KFileWidget; | 30 | class KFileWidget; | ||
29 | class KTabWidget; | | |||
30 | 31 | | |||
31 | class CollectionGrid : public KColorCells | 32 | class CollectionGrid : public KColorCells | ||
32 | { | 33 | { | ||
33 | Q_OBJECT | 34 | Q_OBJECT | ||
34 | 35 | | |||
35 | public: | 36 | public: | ||
36 | explicit CollectionGrid(const QString & collection, QWidget * parent = 0); | 37 | explicit CollectionGrid(const QString & collection, QWidget * parent = 0); | ||
37 | 38 | | |||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 75 | public: | |||
82 | bool isKdePalette() const; | 83 | bool isKdePalette() const; | ||
83 | 84 | | |||
84 | private slots: | 85 | private slots: | ||
85 | void updateDialogBtns(int tabIndex); | 86 | void updateDialogBtns(int tabIndex); | ||
86 | void selectKdePalette(const QString & kdePalette); | 87 | void selectKdePalette(const QString & kdePalette); | ||
87 | void selectUrl(); | 88 | void selectUrl(); | ||
88 | 89 | | |||
89 | private: | 90 | private: | ||
90 | KTabWidget * m_mainWidget; | 91 | QTabWidget * m_mainWidget; | ||
91 | 92 | | |||
92 | CollectionsWidget * m_collectionsWidget; | 93 | CollectionsWidget * m_collectionsWidget; | ||
93 | KFileWidget * m_fileWidget; | 94 | KFileWidget * m_fileWidget; | ||
94 | 95 | | |||
95 | KUrl m_paletteUrl; // the url of the palette file (custom palette or KDE palette) | 96 | KUrl m_paletteUrl; // the url of the palette file (custom palette or KDE palette) | ||
96 | bool m_isKdePalette; // tell me if m_paletteUrl.path() is a kdepalette or a sigle file name | 97 | bool m_isKdePalette; // tell me if m_paletteUrl.path() is a kdepalette or a sigle file name | ||
97 | }; | 98 | }; | ||
98 | 99 | | |||
99 | #endif // PALETTE_DIALOG_H | 100 | #endif // PALETTE_DIALOG_H |