Last change
on this file since 127 was 2, checked in by dmik, 20 years ago |
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
File size:
1.6 KB
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: application.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
---|
5 | **
|
---|
6 | ** This file is part of an example program for Qt. This example
|
---|
7 | ** program may be used, distributed and modified without limitation.
|
---|
8 | **
|
---|
9 | *****************************************************************************/
|
---|
10 |
|
---|
11 | #ifndef APPLICATION_H
|
---|
12 | #define APPLICATION_H
|
---|
13 |
|
---|
14 | #include <qmainwindow.h>
|
---|
15 | #include <qptrlist.h>
|
---|
16 |
|
---|
17 | class QTextEdit;
|
---|
18 | class QToolBar;
|
---|
19 | class QPopupMenu;
|
---|
20 | class QWorkspace;
|
---|
21 | class QPopupMenu;
|
---|
22 | class QMovie;
|
---|
23 |
|
---|
24 | class MDIWindow: public QMainWindow
|
---|
25 | {
|
---|
26 | Q_OBJECT
|
---|
27 | public:
|
---|
28 | MDIWindow( QWidget* parent, const char* name, int wflags );
|
---|
29 | ~MDIWindow();
|
---|
30 |
|
---|
31 | void load( const QString& fn );
|
---|
32 | void save();
|
---|
33 | void saveAs();
|
---|
34 | void print( QPrinter* );
|
---|
35 |
|
---|
36 | protected:
|
---|
37 | void closeEvent( QCloseEvent * );
|
---|
38 |
|
---|
39 | signals:
|
---|
40 | void message(const QString&, int );
|
---|
41 |
|
---|
42 | private:
|
---|
43 | QTextEdit* medit;
|
---|
44 | QMovie * mmovie;
|
---|
45 | QString filename;
|
---|
46 | };
|
---|
47 |
|
---|
48 |
|
---|
49 | class ApplicationWindow: public QMainWindow
|
---|
50 | {
|
---|
51 | Q_OBJECT
|
---|
52 | public:
|
---|
53 | ApplicationWindow();
|
---|
54 | ~ApplicationWindow();
|
---|
55 |
|
---|
56 | protected:
|
---|
57 | void closeEvent( QCloseEvent * );
|
---|
58 |
|
---|
59 | private slots:
|
---|
60 | MDIWindow* newDoc();
|
---|
61 | void load();
|
---|
62 | void save();
|
---|
63 | void saveAs();
|
---|
64 | void print();
|
---|
65 | void closeWindow();
|
---|
66 | void tileHorizontal();
|
---|
67 |
|
---|
68 | void about();
|
---|
69 | void aboutQt();
|
---|
70 |
|
---|
71 | void windowsMenuAboutToShow();
|
---|
72 | void windowsMenuActivated( int id );
|
---|
73 |
|
---|
74 | private:
|
---|
75 | QPrinter *printer;
|
---|
76 | QWorkspace* ws;
|
---|
77 | QToolBar *fileTools;
|
---|
78 | QPopupMenu* windowsMenu;
|
---|
79 | };
|
---|
80 |
|
---|
81 |
|
---|
82 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.