blob: 02d26d0c417e346a873680365a297885214a769a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
%{H_TEMPLATE}
#ifndef _%{APPNAMEUC}KMDI_H
#define _%{APPNAMEUC}KMDI_H
#include <tqvaluelist.h>
#include <kapplication.h>
#include <tdemdimainfrm.h>
#include <kurl.h>
class KToggleAction;
class KRecentFilesAction;
class tdemdikonsole;
class KMdiChildView;
class TQWidgetStack;
class %{APPNAMELC}tdemdiView;
class TextProperties;
class MiscProperties;
/**
* This class serves as the main window for %{APPNAMELC}tdemdi. It handles the
* menus, toolbars, and status bars.
*
* @short Main window class
*/
class %{APPNAMELC}tdemdi : public KMdiMainFrm
{
Q_OBJECT
public:
%{APPNAMELC}tdemdi( KMdi::MdiMode mode );
virtual ~%{APPNAMELC}tdemdi();
void showTipOnStart();
public slots:
void openURL( const KURL& );
protected:
virtual void dragEnterEvent(TQDragEnterEvent *event);
virtual void dropEvent(TQDropEvent *event);
virtual bool queryClose();
private slots:
void slotFileNew();
void slotFileClose();
void slotFileQuit();
/// this is called when a new file is saved
void showTip();
void optionsShowToolbar();
void optionsShowStatusbar();
void optionsConfigureKeys();
void optionsConfigureToolbars();
void optionsPreferences();
void newToolbarConfig();
void changeStatusbar(const TQString& text);
void currentChanged( KMdiChildView *current );
bool requestClose(KMdiChildView* view);
void settingsChanged();
private:
void setupAccel();
void setupActions();
TQValueList<%{APPNAMELC}tdemdiView*> m_views;
KToggleAction *m_toolbarAction;
KToggleAction *m_statusbarAction;
KParts::PartManager *m_manager;
tdemdikonsole *m_console;
};
#endif // _%{APPNAMEUC}KMDI_H
|