home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / demos / tvedit.h < prev    next >
C/C++ Source or Header  |  1999-05-19  |  1KB  |  52 lines

  1. /*----------------------------------------------------------*/
  2. /*                                                          */
  3. /*   Turbo Vision 1.0                                       */
  4. /*   Copyright (c) 1991 by Borland International            */
  5. /*                                                          */
  6. /*   Turbo Vision TVEDIT header file                        */
  7. /*----------------------------------------------------------*/
  8.  
  9. class TMenuBar;
  10. class TStatusLine;
  11. class TEditWindow;
  12. class TDialog;
  13.  
  14. #define    cmOpen    100
  15. #define    cmNew        101
  16. #define    cmChangeDrct    102
  17. #define    cmDosShell    103
  18. #define    cmCalculator    104
  19. #define    cmShowClip    105
  20.  
  21. class TEditorApp : public TApplication
  22. {
  23.  
  24. public:
  25.  
  26.     TEditorApp();
  27.  
  28.     virtual void handleEvent( TEvent& event );
  29.     static TMenuBar *initMenuBar( TRect );
  30.     static TStatusLine *initStatusLine( TRect );
  31.     virtual void outOfMemory();
  32.  
  33. private:
  34.  
  35.     TEditWindow *openEditor( const char *fileName, Boolean visible );
  36.     void fileOpen();
  37.     void fileNew();
  38.     void changeDir();
  39.     void dosShell();
  40.     void showClip();
  41.     void tile();
  42.     void cascade();
  43. };
  44.  
  45. extern TEditWindow *clipWindow;
  46.  
  47. ushort execDialog( TDialog *d, void *data );
  48. TDialog *createFindDialog();
  49. TDialog *createReplaceDialog();
  50. ushort doEditDialog( int dialog, ... );
  51.  
  52.