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 >
Wrap
C/C++ Source or Header
|
1998-06-22
|
2KB
|
57 lines
// gearcmdw.h: Header for gearcmdw class
//=======================================================================
#ifndef gearCMDW_H
#define gearCMDW_H
#include <v/vcmdwin.h> // So we can use vCmdWindow
#include <v/vmenu.h> // For the menu pane
#include <v/vutil.h> // For V Utilities
#include <v/vcmdpane.h> // command pane
#include <v/vtimer.h> // Timer
#ifdef vDEBUG
#include <v/vdebug.h>
#endif
#include "gearcnv.h" // gearOGLCanvasPane
class gearCmdWindow;
class gearAuxTimer : public vTimer
{
public: //---------------------------------------- public
gearAuxTimer(gearCmdWindow* cw) { cmdw = cw; }
~gearAuxTimer() {}
virtual void TimerTick();
private: //--------------------------------------- private
gearCmdWindow* cmdw;
};
class gearCmdWindow : public vCmdWindow
{
friend int AppMain(int, char**); // allow AppMain access
public: //---------------------------------------- public
gearCmdWindow(char*, int, int);
virtual ~gearCmdWindow();
virtual void WindowCommand(ItemVal id, ItemVal val, CmdType cType);
virtual void KeyIn(vKey keysym, unsigned int shift);
gearAuxTimer* GetgearAuxTimer() {return _auxTimer;}// Aux Timer
protected: //--------------------------------------- protected
private: //--------------------------------------- private
// Standard elements
vMenuPane* gearMenu; // For the menu bar
gearOGLCanvasPane* gearCanvas; // For the canvas
vCommandPane* gearCmdPane; // for the command pane
gearAuxTimer* _auxTimer; // Aux Timer
// Dialogs associated with CmdWindow
};
#endif