00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef SESSIONEDITOR_H
00019 #define SESSIONEDITOR_H
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025 #include <tqptrlist.h>
00026 #include <tqstringlist.h>
00027 #include <kapplication.h>
00028 #include <tqwidget.h>
00029
00030 #include "sessiondialog.h"
00031
00032 class SessionEditor : public SessionDialog
00033 {
00034 Q_OBJECT
00035 public:
00036 SessionEditor(TQWidget* parent=0, const char *name=0);
00037 ~SessionEditor();
00038
00039 bool isModified() const { return sesMod; }
00040 void querySave();
00041
00042 signals:
00043 void changed();
00044 void getList();
00045
00046 public slots:
00047 void schemaListChanged(const TQStringList &titles, const TQStringList &filenames);
00048
00049 private slots:
00050 void readSession(int);
00051 void saveCurrent();
00052 void removeCurrent();
00053 void sessionModified();
00054
00055 private:
00056 void show();
00057 void loadAllKeytab();
00058 void loadAllSession(TQString currentFile="");
00059 TQString readKeymapTitle(const TQString& filename);
00060
00061 bool sesMod;
00062 int oldSession;
00063 bool loaded;
00064 TQPtrList<TQString> keytabFilename;
00065 TQPtrList<TQString> schemaFilename;
00066 };
00067
00068 #endif