home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / vopengl / gears / gearcmdw.h < prev    next >
C/C++ Source or Header  |  1998-06-22  |  2KB  |  57 lines

  1. //    gearcmdw.h:    Header for gearcmdw class
  2. //=======================================================================
  3.  
  4. #ifndef gearCMDW_H
  5. #define gearCMDW_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/vtimer.h>    // Timer
  12.  
  13. #ifdef vDEBUG
  14. #include <v/vdebug.h>
  15. #endif
  16.  
  17. #include "gearcnv.h"    // gearOGLCanvasPane
  18.  
  19.     class gearCmdWindow;
  20.  
  21.     class gearAuxTimer : public vTimer
  22.       {
  23.       public:        //---------------------------------------- public
  24.     gearAuxTimer(gearCmdWindow* cw) { cmdw = cw; }
  25.     ~gearAuxTimer() {}
  26.     virtual void TimerTick();
  27.       private:        //--------------------------------------- private
  28.     gearCmdWindow* cmdw;
  29.       };
  30.  
  31.     class gearCmdWindow : public vCmdWindow
  32.       {
  33.     friend int AppMain(int, char**);    // allow AppMain access
  34.  
  35.       public:        //---------------------------------------- public
  36.     gearCmdWindow(char*, int, int);
  37.     virtual ~gearCmdWindow();
  38.     virtual void WindowCommand(ItemVal id, ItemVal val, CmdType cType);
  39.     virtual void KeyIn(vKey keysym, unsigned int shift);
  40.     gearAuxTimer* GetgearAuxTimer() {return _auxTimer;}// Aux Timer
  41.  
  42.       protected:    //--------------------------------------- protected
  43.  
  44.       private:        //--------------------------------------- private
  45.  
  46.     // Standard elements
  47.     vMenuPane* gearMenu;        // For the menu bar
  48.     gearOGLCanvasPane* gearCanvas;        // For the canvas
  49.     vCommandPane* gearCmdPane;    // for the command pane
  50.     gearAuxTimer* _auxTimer;    // Aux Timer
  51.  
  52.     // Dialogs associated with CmdWindow
  53.  
  54.  
  55.       };
  56. #endif
  57.