kandy

mobilemain.h
1 /*
2  This file is part of Kandy.
3 
4  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of TQt, and distribute the resulting executable,
22  without including the source code for TQt in the source distribution.
23 */
24 #ifndef MOBILEMAIN_H
25 #define MOBILEMAIN_H
26 
27 #ifdef HAVE_CONFIG_H
28 #include <config.h>
29 #endif
30 
31 #include <tdeapplication.h>
32 #include <tdemainwindow.h>
33 
34 #include "kandyprefs.h"
35 
36 class CommandScheduler;
37 
46 class MobileMain : public TDEMainWindow
47 {
48  TQ_OBJECT
49 
50  public:
54  MobileMain(CommandScheduler *, KandyPrefs *prefs);
55 
59  virtual ~MobileMain();
60 
61  MobileGui *view() { return mView; };
62 
63  signals:
64  void showTerminalWin();
65  void showPreferencesWin();
66 
67  protected:
71  virtual void dragEnterEvent(TQDragEnterEvent *event);
72  virtual void dropEvent(TQDropEvent *event);
73 
74  bool queryClose();
75 
76  protected:
81  void saveProperties(TDEConfig *);
82 
88  void readProperties(TDEConfig *);
89 
90 
91  private slots:
92  void showTerminal();
93  void optionsConfigureKeys();
94  void optionsConfigureToolbars();
95  void optionsPreferences();
96  void newToolbarConfig();
97 
98  void showStatusMessage(const TQString& text);
99  void showTransienStatusMessage(const TQString& text);
100  void changeCaption(const TQString& text);
101 
102 
103  private:
104  void setupActions();
105 
106  private:
107  MobileGui *mView;
108 };
109 
110 #endif // MOBILEMAIN_H
This class serves as the main window for MobileMain.
Definition: mobilemain.h:47
virtual ~MobileMain()
Default Destructor.
Definition: mobilemain.cpp:68
void saveProperties(TDEConfig *)
This function is called when it is time for the app to save its properties for session management pur...
Definition: mobilemain.cpp:89
void readProperties(TDEConfig *)
This function is called when this app is restored.
Definition: mobilemain.cpp:96
MobileMain(CommandScheduler *, KandyPrefs *prefs)
Default Constructor.
Definition: mobilemain.cpp:50
virtual void dragEnterEvent(TQDragEnterEvent *event)
Overridden virtuals for TQt drag 'n drop (XDND)
Definition: mobilemain.cpp:104