summaryrefslogtreecommitdiffstats
path: root/kcoloredit/loadpalettedlg.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kcoloredit/loadpalettedlg.h
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcoloredit/loadpalettedlg.h')
-rw-r--r--kcoloredit/loadpalettedlg.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/kcoloredit/loadpalettedlg.h b/kcoloredit/loadpalettedlg.h
new file mode 100644
index 00000000..3168ed68
--- /dev/null
+++ b/kcoloredit/loadpalettedlg.h
@@ -0,0 +1,67 @@
+/***************************************************************************
+ loadpalettedlg.h - description
+ -------------------
+ begin : Sat Jul 8 2000
+ copyright : (C) 2000 by Artur Rataj
+ email : art@zeus.polsl.gliwice.pl
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef LOADPALETTEDLG_H
+#define LOADPALETTEDLG_H
+
+#include <qcombobox.h>
+#include <kdialog.h>
+
+/**A dialog showing a list of installed palettes, with a possibility
+ *of choosing a custom file
+ *@author Artur Rataj
+ */
+class LoadPaletteDlg : public KDialogBase {
+ Q_OBJECT
+
+public:
+ /** constructs the dialog
+ */
+ LoadPaletteDlg(QWidget *parent = 0, const char *name = 0);
+ ~LoadPaletteDlg();
+ /** @return the fetched file name
+ */
+ QString getFileName();
+
+protected slots:
+ /** sets fileName
+ */
+ void setFileName(QString* fileName);
+ /** sets fileName to that at position index in palettesFileNames
+ */
+ void setFileName(int index);
+ /** browses file names and if a file name fetched sets fileName
+ */
+ void browseFileNames();
+
+private:
+ /** A widget holding palettes names
+ */
+ QComboBox* paletteBox;
+ /** A list of KDE palettes file names
+ */
+ QStringList palettesFileNames;
+ /** A fetched palette file name
+ */
+ QString fileName;
+ /** whether a browse file name hab already been inserted into
+ * palettesFilenames
+ */
+ bool browseFileNameInserted;
+};
+
+#endif