home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / vopengl / shapes / tglcmdw.h < prev    next >
C/C++ Source or Header  |  1996-09-24  |  2KB  |  58 lines

  1. //    tglcmdw.h:    Header for testGLcmdw class
  2. //=======================================================================
  3.  
  4. #ifndef testGLCMDW_H
  5. #define testGLCMDW_H
  6.  
  7. #include <v/vcmdwin.h>    // So we can use vCmdWindow
  8. #include <v/vmenu.h>    // For the menu pane
  9. #include <v/vutil.h>    // For V Utilities
  10. #include <v/vcmdpane.h> // command pane
  11. #include <v/vstatusp.h>    // For the status pane
  12. #include <v/vtimer.h>   // Timer
  13.  
  14. #ifdef vDEBUG
  15. #include <v/vdebug.h>
  16. #endif
  17.  
  18. #include "tglcnv.h"    // testGLCanvasPane
  19.  
  20.     class testGLCmdWindow;
  21.  
  22.     class testGLTimer : public vTimer
  23.       {
  24.       public:        //---------------------------------------- public
  25.     testGLTimer(testGLCmdWindow* cw) { cmdw = cw; }
  26.     ~testGLTimer() {}
  27.     virtual void TimerTick();
  28.       private:        //--------------------------------------- private
  29.     testGLCmdWindow* cmdw;
  30.       };
  31.  
  32.     class testGLCmdWindow : public vCmdWindow
  33.       {
  34.     friend int AppMain(int, char**);    // allow AppMain access
  35.     friend class testGLTimer;
  36.  
  37.       public:        //---------------------------------------- public
  38.     testGLCmdWindow(char*, int, int);
  39.     virtual ~testGLCmdWindow();
  40.     virtual void WindowCommand(ItemVal id, ItemVal val, CmdType cType);
  41.     virtual void KeyIn(vKey keysym, unsigned int shift);
  42.  
  43.       protected:    //--------------------------------------- protected
  44.  
  45.       private:        //--------------------------------------- private
  46.  
  47.     int _spinSpeed;        // speed when spinning 0-100
  48.  
  49.     // Standard elements
  50.     vMenuPane* testGLMenu;        // For the menu bar
  51.     testGLCanvasPane* testGLCanvas;        // For the canvas
  52.     vCommandPane* testGLCmdPane;    // for the command pane
  53.     vStatusPane* testGLStatus;        // For the status bar
  54.     testGLTimer* _timer;    // Timer for spin
  55.  
  56.       };
  57. #endif
  58.