home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / demo / opengl / glworkspace.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-24  |  699 b   |  38 lines

  1. #ifndef GLWORKSPACE_H
  2. #define GLWORKSPACE_H
  3.  
  4. #include <qmainwindow.h>
  5.  
  6. class QWorkspace;
  7. class QPrinter;
  8.  
  9. class GLWorkspace : public QMainWindow
  10. {
  11.     Q_OBJECT
  12. public:
  13.     GLWorkspace( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
  14.     ~GLWorkspace();
  15.  
  16. protected:
  17.     void setupSceneActions();
  18.  
  19. protected slots:
  20.     void newWirebox();
  21.     void newGear();
  22.     void newTexture();
  23.     void newNurbs();
  24.     void filePrint( int x, int y );
  25.     void filePrintWindowRes();
  26.     void filePrintLowRes();
  27.     void filePrintMedRes();
  28.     void filePrintHighRes();
  29.     bool filePrintSetup();
  30.     void fileClose();
  31.  
  32. private:
  33.     QWorkspace *workspace;
  34.     QPrinter *printer;
  35. };
  36.  
  37. #endif //GLWORKSPACE_H
  38.