00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#ifndef KANDY_H
00025
#define KANDY_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 "kandyview.h"
00035
00036
class QPrinter;
00037
00038
class KandyPrefsDialog;
00039
00048 class Kandy :
public KMainWindow
00049 {
00050 Q_OBJECT
00051
public:
00055
Kandy(CommandScheduler *);
00056
00060
virtual ~Kandy();
00061
00065
void load(
const QString& url);
00066
void save(
const QString& url);
00067
00068
public slots:
00069
void setTitle();
00070
00071
void modemConnect();
00072
00073
void showErrorMessage(
const QString & );
00074
00075 signals:
00076
void showMobileWin();
00077
void connectStateChanged(
bool);
00078
00079
protected:
00083
virtual void dragEnterEvent(
QDragEnterEvent *event);
00084
virtual void dropEvent(
QDropEvent *event);
00085
00086
bool queryClose();
00087
00088
protected:
00093
void saveProperties(KConfig *);
00094
00100
void readProperties(KConfig *);
00101
00102
00103
private slots:
00104
void fileOpen();
00105
void fileSave();
00106
void fileSaveAs();
00107
void filePrint();
00108
void optionsConfigureKeys();
00109
void optionsConfigureToolbars();
00110
void optionsPreferences();
00111
void modemDisconnect();
00112
void showMobileGui();
00113
void newToolbarConfig();
00114
00115
void changeStatusbar(
const QString& text);
00116
void changeCaption(
const QString& text);
00117
00118
00119
private:
00120
void setupAccel();
00121
void setupActions();
00122
00123
private:
00124 CommandScheduler *mScheduler;
00125
00126
KandyView *mView;
00127
00128
QPrinter *mPrinter;
00129
00130 KAction *mConnectAction;
00131 KAction *mDisconnectAction;
00132
00133
QString mFilename;
00134
00135
KandyPrefsDialog *mPreferencesDialog;
00136 };
00137
00138
#endif // KANDY_H