00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef SCHEMAEDITOR_H
00019 #define SCHEMAEDITOR_H
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025 #include <kapplication.h>
00026 #include <tqwidget.h>
00027 class TQPixmap;
00028 class KSharedPixmap;
00029
00030 #include "schemadialog.h"
00031
00033 class SchemaEditor : public SchemaDialog
00034 {
00035 Q_OBJECT
00036 public:
00038 SchemaEditor(TQWidget* parent=0, const char *name=0);
00040 ~SchemaEditor();
00041
00042 TQString schema();
00043 void setSchema(TQString);
00044 bool isModified() const { return schMod; }
00045 void querySave();
00046
00047 signals:
00048 void changed();
00049 void schemaListChanged(const TQStringList &titles, const TQStringList &filenames);
00050
00051 public slots:
00052 void slotColorChanged(int);
00053 void imageSelect();
00054 void slotTypeChanged(int);
00055 void readSchema(int);
00056 void saveCurrent();
00057 void removeCurrent();
00058 void previewLoaded(bool l);
00059 void getList();
00060 private slots:
00061 void show();
00062 void schemaModified();
00063 void loadAllSchema(TQString currentFile="");
00064 void updatePreview();
00065 private:
00066 bool schMod;
00067 TQMemArray<TQColor> color;
00068 TQMemArray<int> type;
00069 TQMemArray<bool> transparent;
00070 TQMemArray<bool> bold;
00071 TQPixmap pix;
00072 KSharedPixmap *spix;
00073 TQString defaultSchema;
00074 bool loaded;
00075 bool schemaLoaded;
00076 bool change;
00077 int oldSchema;
00078 int oldSlot;
00079 TQString readSchemaTitle(const TQString& filename);
00080 void schemaListChanged();
00081
00082 };
00083
00084 #endif