kandy.h
00001 #ifndef KANDY_H
00002 #define KANDY_H
00003
00004 #ifdef HAVE_CONFIG_H
00005 #include <config.h>
00006 #endif
00007
00008 #include <kapplication.h>
00009 #include <kmainwindow.h>
00010
00011 #include "kandyview.h"
00012
00013 class QPrinter;
00014
00015 class KToggleAction;
00016
00017 class KandyPrefsDialog;
00018
00027 class Kandy : public KMainWindow
00028 {
00029 Q_OBJECT
00030 public:
00034 Kandy(CommandScheduler *);
00035
00039 virtual ~Kandy();
00040
00044 void load(const QString& url);
00045 void save(const QString& url);
00046
00047 public slots:
00048 void setTitle();
00049
00050 void modemConnect();
00051
00052 signals:
00053 void showMobileWin();
00054 void connectStateChanged(bool);
00055
00056 protected:
00060 virtual void dragEnterEvent(QDragEnterEvent *event);
00061 virtual void dropEvent(QDropEvent *event);
00062
00063 bool queryClose();
00064
00065 protected:
00070 void saveProperties(KConfig *);
00071
00077 void readProperties(KConfig *);
00078
00079
00080 private slots:
00081 void fileOpen();
00082 void fileSave();
00083 void fileSaveAs();
00084 void filePrint();
00085 void optionsShowToolbar();
00086 void optionsShowStatusbar();
00087 void optionsConfigureKeys();
00088 void optionsConfigureToolbars();
00089 void optionsPreferences();
00090 void modemDisconnect();
00091 void showMobileGui();
00092
00093 void changeStatusbar(const QString& text);
00094 void changeCaption(const QString& text);
00095
00096
00097 private:
00098 void setupAccel();
00099 void setupActions();
00100
00101 private:
00102 CommandScheduler *mScheduler;
00103
00104 KandyView *mView;
00105
00106 QPrinter *mPrinter;
00107
00108 KToggleAction *mToolbarAction;
00109 KToggleAction *mStatusbarAction;
00110 KAction *mConnectAction;
00111 KAction *mDisconnectAction;
00112
00113 QString mFilename;
00114
00115 KandyPrefsDialog *mPreferencesDialog;
00116 };
00117
00118 #endif // KANDY_H
This file is part of the documentation for kdelibs Version 3.1.4.