home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / application / application.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  953b  |  48 lines

  1. /****************************************************************************
  2. ** $Id:  qt/application.h   3.0.0   edited Jun 22 13:24 $
  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
  48.