home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / df3os2.zip / TED.H < prev    next >
C/C++ Source or Header  |  1993-09-24  |  1KB  |  45 lines

  1. // --------- ted.h
  2.  
  3. #ifndef TED_H
  4. #define TED_H
  5.  
  6. #include "dflatpp.h"
  7. #include "fileopen.h"
  8. #include "tedtools.h"
  9.  
  10. #define Df void (DFWindow::*)()
  11. #define Ap void (Application::*)()
  12.  
  13. extern MenuBarItem TedMenu[];
  14. extern MenuSelection InsertCmd, WordWrapCmd;
  15.  
  16. // ------- Ted application definition
  17. class Ted : public Application {
  18.     MenuBar menubar;
  19.     TedTools toolbar;
  20.     String  fname;
  21.     Editor editor;
  22. protected:
  23.     virtual void Move(int x, int y);
  24.     virtual void Size(int x, int y);
  25.     void BuildTitle();
  26.     void TestChanged();
  27. public:
  28.     Ted();
  29.     void OpenFile(String fn);
  30.     // ----- menu command functions
  31.     void CmNew();
  32.     void CmOpen();
  33.     void CmSave();
  34.     void CmSaveAs();
  35.     void CmInsert();
  36.     void CmCut()    { /* not implemented */ }
  37.     void CmCopy()   { /* not implemented */ }
  38.     void CmPaste()  { /* not implemented */ }
  39.     void CmPara();
  40.     void CmExit()   { CloseWindow(); }
  41.     virtual void CloseWindow();
  42. };
  43.  
  44. #endif
  45.