home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / texted / vedcmdw.h < prev    next >
C/C++ Source or Header  |  1998-07-07  |  2KB  |  58 lines

  1. //    vedcmdw.h:    Header for vedcmdw class
  2. //=======================================================================
  3.  
  4. #ifndef vedCMDW_H
  5. #define vedCMDW_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/vfont.h>    // for fonts
  13.  
  14.  
  15. #ifdef vDEBUG
  16. #include <v/vdebug.h>
  17. #endif
  18.  
  19.     class vedTextEditor;
  20.     class vTextEdCmdInterp;
  21.  
  22.     class vedCmdWindow : public vCmdWindow
  23.       {
  24.     friend int AppMain(int, char**);    // allow AppMain access
  25.  
  26.       public:        //---------------------------------------- public
  27.     vedCmdWindow(char*, int, int);
  28.     virtual ~vedCmdWindow();
  29.     virtual void WindowCommand(ItemVal id, ItemVal val, CmdType cType);
  30.     virtual void KeyIn(vKey keysym, unsigned int shift);
  31.  
  32.     void ChangeLoc(long line, int col);
  33.     void ChangeInsMode(int IsInsMode, char* msg = 0);
  34.     void StatusMessage(char *msg);
  35.     void ErrorMsg(char *str);
  36.     int OpenFile(char* name, int ReadOnly = 0);
  37.     int CheckClose(int ask = 1);
  38.  
  39.       protected:    //--------------------------------------- protected
  40.   
  41.       private:        //--------------------------------------- private
  42.  
  43.     // Standard elements
  44.     vMenuPane* vedMenu;        // For the menu bar
  45.     vedTextEditor* vedCanvas;    // For the canvas
  46.     vCommandPane* vedCmdPane;    // for the command pane
  47.     vStatusPane* vedStatus;        // For the status bar
  48.         vFont vedFont;            // for the font
  49.         vTextEdCmdInterp* vedCI;    // command interp
  50.  
  51.     // Dialogs associated with CmdWindow
  52.  
  53.     char fileName[200];
  54.  
  55.  
  56.       };
  57. #endif
  58.