kandy
mobilemain.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef MOBILEMAIN_H
00025 #define MOBILEMAIN_H
00026
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030
00031 #include <kapplication.h>
00032 #include <kmainwindow.h>
00033
00034 #include "kandyprefs.h"
00035
00036 class CommandScheduler;
00037
00046 class MobileMain : public KMainWindow
00047 {
00048 Q_OBJECT
00049 public:
00053 MobileMain(CommandScheduler *, KandyPrefs *prefs);
00054
00058 virtual ~MobileMain();
00059
00060 MobileGui *view() { return mView; };
00061
00062 signals:
00063 void showTerminalWin();
00064 void showPreferencesWin();
00065
00066 protected:
00070 virtual void dragEnterEvent(QDragEnterEvent *event);
00071 virtual void dropEvent(QDropEvent *event);
00072
00073 bool queryClose();
00074
00075 protected:
00080 void saveProperties(KConfig *);
00081
00087 void readProperties(KConfig *);
00088
00089
00090 private slots:
00091 void showTerminal();
00092 void optionsConfigureKeys();
00093 void optionsConfigureToolbars();
00094 void optionsPreferences();
00095 void newToolbarConfig();
00096
00097 void showStatusMessage(const QString& text);
00098 void showTransientStatusMessage(const QString& text);
00099 void changeCaption(const QString& text);
00100
00101
00102 private:
00103 void setupActions();
00104
00105 private:
00106 MobileGui *mView;
00107 };
00108
00109 #endif // MOBILEMAIN_H
|