|
Last change
on this file since 44 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.0 KB
|
| Line | |
|---|
| 1 | /****************************************************************************
|
|---|
| 2 | ** $Id: mainwindow.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 AB_MAINWINDOW_H
|
|---|
| 12 | #define AB_MAINWINDOW_H
|
|---|
| 13 |
|
|---|
| 14 | #include <qmainwindow.h>
|
|---|
| 15 | #include <qstring.h>
|
|---|
| 16 |
|
|---|
| 17 | class QToolBar;
|
|---|
| 18 | class QPopupMenu;
|
|---|
| 19 | class ABCentralWidget;
|
|---|
| 20 |
|
|---|
| 21 | class ABMainWindow: public QMainWindow
|
|---|
| 22 | {
|
|---|
| 23 | Q_OBJECT
|
|---|
| 24 |
|
|---|
| 25 | public:
|
|---|
| 26 | ABMainWindow();
|
|---|
| 27 | ~ABMainWindow();
|
|---|
| 28 |
|
|---|
| 29 | protected slots:
|
|---|
| 30 | void fileNew();
|
|---|
| 31 | void fileOpen();
|
|---|
| 32 | void fileSave();
|
|---|
| 33 | void fileSaveAs();
|
|---|
| 34 | void filePrint();
|
|---|
| 35 | void closeWindow();
|
|---|
| 36 |
|
|---|
| 37 | protected:
|
|---|
| 38 | void setupMenuBar();
|
|---|
| 39 | void setupFileTools();
|
|---|
| 40 | void setupStatusBar();
|
|---|
| 41 | void setupCentralWidget();
|
|---|
| 42 |
|
|---|
| 43 | QToolBar *fileTools;
|
|---|
| 44 | QString filename;
|
|---|
| 45 | ABCentralWidget *view;
|
|---|
| 46 |
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.