| Last change
 on this file since 73 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:
            950 bytes | 
      
      
| 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 |  | 
|---|
| 16 | class QTextEdit; | 
|---|
| 17 |  | 
|---|
| 18 | class ApplicationWindow: public QMainWindow | 
|---|
| 19 | { | 
|---|
| 20 | Q_OBJECT | 
|---|
| 21 |  | 
|---|
| 22 | public: | 
|---|
| 23 | ApplicationWindow(); | 
|---|
| 24 | ~ApplicationWindow(); | 
|---|
| 25 |  | 
|---|
| 26 | protected: | 
|---|
| 27 | void closeEvent( QCloseEvent* ); | 
|---|
| 28 |  | 
|---|
| 29 | private slots: | 
|---|
| 30 | void newDoc(); | 
|---|
| 31 | void choose(); | 
|---|
| 32 | void load( const QString &fileName ); | 
|---|
| 33 | void save(); | 
|---|
| 34 | void saveAs(); | 
|---|
| 35 | void print(); | 
|---|
| 36 |  | 
|---|
| 37 | void about(); | 
|---|
| 38 | void aboutQt(); | 
|---|
| 39 |  | 
|---|
| 40 | private: | 
|---|
| 41 | QPrinter *printer; | 
|---|
| 42 | QTextEdit *e; | 
|---|
| 43 | QString filename; | 
|---|
| 44 | }; | 
|---|
| 45 |  | 
|---|
| 46 |  | 
|---|
| 47 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.