summaryrefslogtreecommitdiffstats
path: root/kcontrol/konsole/schemaeditor.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
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/konsole/schemaeditor.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.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/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/konsole/schemaeditor.h')
-rw-r--r--kcontrol/konsole/schemaeditor.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/kcontrol/konsole/schemaeditor.h b/kcontrol/konsole/schemaeditor.h
new file mode 100644
index 000000000..550f51762
--- /dev/null
+++ b/kcontrol/konsole/schemaeditor.h
@@ -0,0 +1,84 @@
+/***************************************************************************
+ schemaeditor.h - description
+ -------------------
+ begin : mar apr 17 16:44:59 CEST 2001
+ copyright : (C) 2001 by Andrea Rizzi
+ email : rizzi@kde.org
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 SCHEMAEDITOR_H
+#define SCHEMAEDITOR_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <kapplication.h>
+#include <qwidget.h>
+class QPixmap;
+class KSharedPixmap;
+
+#include "schemadialog.h"
+
+/** SchemaEditor is the base class of the porject */
+class SchemaEditor : public SchemaDialog
+{
+ Q_OBJECT
+ public:
+ /** constructor */
+ SchemaEditor(QWidget* parent=0, const char *name=0);
+ /** destructor */
+ ~SchemaEditor();
+
+ QString schema();
+ void setSchema(QString);
+ bool isModified() const { return schMod; }
+ void querySave();
+
+ signals:
+ void changed();
+ void schemaListChanged(const QStringList &titles, const QStringList &filenames);
+
+ public slots:
+ void slotColorChanged(int);
+ void imageSelect();
+ void slotTypeChanged(int);
+ void readSchema(int);
+ void saveCurrent();
+ void removeCurrent();
+ void previewLoaded(bool l);
+ void getList();
+ private slots:
+ void show();
+ void schemaModified();
+ void loadAllSchema(QString currentFile="");
+ void updatePreview();
+ private:
+ bool schMod;
+ QMemArray<QColor> color;
+ QMemArray<int> type; // 0= custom, 1= sysfg, 2=sysbg, 3=rcolor
+ QMemArray<bool> transparent;
+ QMemArray<bool> bold;
+ QPixmap pix;
+ KSharedPixmap *spix;
+ QString defaultSchema;
+ bool loaded;
+ bool schemaLoaded;
+ bool change;
+ int oldSchema;
+ int oldSlot;
+ QString readSchemaTitle(const QString& filename);
+ void schemaListChanged();
+
+};
+
+#endif