source: trunk/examples/mdi/application.h@ 7

Last change on this file since 7 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
17class QTextEdit;
18class QToolBar;
19class QPopupMenu;
20class QWorkspace;
21class QPopupMenu;
22class QMovie;
23
24class MDIWindow: public QMainWindow
25{
26 Q_OBJECT
27public:
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
36protected:
37 void closeEvent( QCloseEvent * );
38
39signals:
40 void message(const QString&, int );
41
42private:
43 QTextEdit* medit;
44 QMovie * mmovie;
45 QString filename;
46};
47
48
49class ApplicationWindow: public QMainWindow
50{
51 Q_OBJECT
52public:
53 ApplicationWindow();
54 ~ApplicationWindow();
55
56protected:
57 void closeEvent( QCloseEvent * );
58
59private 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
74private:
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.