home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / vide / videcmdw.h < prev    next >
C/C++ Source or Header  |  1999-03-03  |  2KB  |  84 lines

  1. //    videcmdw.h:    Header for videcmdw class
  2. //=======================================================================
  3.  
  4. #ifndef videCMDW_H
  5. #define videCMDW_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. #ifdef vDEBUG
  15. #include <v/vdebug.h>
  16. #endif
  17.  
  18. #include "videmake.h"    // our make class
  19.  
  20. #include "vedcnv.h"    // vedCanvasPane
  21. #include "projdlg.h"
  22. #include "mmaker.h"
  23.  
  24.     enum {m_updateMkFile = 500 };
  25.  
  26.     class videCmdWindow;
  27.     class vTextEdCmdInterp;
  28.  
  29. //function to convert Dos to ux filenames
  30. extern void Dos2UxFName(char *dosFileName, char *uxFileName, BOOL fix);
  31.  
  32.     class videCmdWindow : public vCmdWindow
  33.       {
  34.     friend int AppMain(int, char**);    // allow AppMain access
  35.  
  36.       public:        //---------------------------------------- public
  37.     videCmdWindow(char*, int, int);
  38.     virtual ~videCmdWindow();
  39.     virtual void WindowCommand(ItemVal id, ItemVal val, CmdType cType);
  40.     virtual void KeyIn(vKey keysym, unsigned int shift);
  41.  
  42.     void ChangeLoc(long line, int col);
  43.     void ChangeInsMode(int IsInsMode, char* msg = 0);
  44.     void StatusMessage(char *msg);
  45.     void ErrorMsg(char *str);
  46.     int OpenFile(char* name, int RdOnly = 0, int notify = 1);
  47.     int CheckClose(int ask = 1);
  48.         int SetViewWindow(char *name);
  49.         int AddLine(char* line);
  50.         vedTextEditor* GetTextEd() { return vedCanvas; }
  51.         void SetRdOnly(int ro);
  52.         void GotoErrorLine();
  53.         char* GetFileName() { return fileName; }
  54.     void SetSyntaxType(videCmdWindow* cmdw, char* name, int RdOnly);
  55.  
  56.       protected:    //--------------------------------------- protected
  57.         videCmdWindow* FindCmdWin(char* fname);
  58.         
  59.   
  60.       private:        //--------------------------------------- private
  61.  
  62.     // Standard elements
  63.     vMenuPane* videMenu;        // For the menu bar
  64.     vedTextEditor* vedCanvas;    // For the canvas
  65.     vCommandPane* videCmdPane;    // for the command pane
  66.     vStatusPane* videStatus;    // For the status bar
  67.         vFont vedFont;            // for the font
  68.  
  69.     // Dialogs associated with CmdWindow
  70.  
  71.         // Other stuff
  72.         videMake* ideMake;
  73.         vTextEdCmdInterp* vedCI;    // command interp
  74.  
  75.     // stuff for makefileMaker
  76.     makefileMaker mm;
  77.     char prjName[maxFileNameSize+2];
  78.  
  79.     char fileName[maxFileNameSize+2];
  80.  
  81.  
  82.       };
  83. #endif
  84.