Listing 4: Header file for minimal prototype V application
//================================================================
// mycmdwin.h:
// Copyright (C) 1995 Bruce E. Wampler
//================================================================
#ifndef DRAWCMDW_H
#define DRAWCMDW_H
#include <v/include/vcmdwin.h> // So we can use vCmdWindow
#include <v/include/vmenu.h> // For the menu pane
#include <v/include/vcmdpane.h> // command pane
#include <v/include/vpen.h> // for a pen
#include "drawcnv.h" // myCanvasPane class
class myCmdWindow : public vCmdWindow
{
friend int AppMain(int, char**); // allow AppMain access
public: //--------------------------------- public
myCmdWindow(char*, int, int); // Constructor with size
virtual ~myCmdWindow(); // Destructor
virtual void WindowCommand(ItemVal id, ItemVal val,
CmdType cType);
protected: //------------------------------ protected
private: //-------------------------------- private
// Pointers to panes this window contains
vMenuPane* myMenu; // For the menu bar
myCanvasPane* myCanvas; // For the canvas
vCommandPane* myCmdPane; // for the command pane
// other stuff
vPen _pen; // track pen color
char _fname[100]; // file name
};
#endif
/* End of File */