kandy

mobilemain.h

00001 /*
00002     This file is part of Kandy.
00003 
00004     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
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
KDE Home | KDE Accessibility Home | Description of Access Keys