home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / DOCKING.PAK / DOCKING.H next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.3 KB  |  50 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1995 by Borland International, All Rights Reserved
  4. //
  5. // Docking window example main header file
  6. //----------------------------------------------------------------------------
  7. #if !defined(DOCKING_H)
  8. #define DOCKING_H
  9.  
  10. #include <owl/docking.h>
  11. #include <owl/opensave.h>
  12.  
  13. #include "docking.rh"            // Definition of all resources.
  14.  
  15. class TDockingApp : public TApplication {
  16.   public:
  17.     TDockingApp();
  18.    ~TDockingApp();
  19.  
  20.     TOpenSaveDialog::TData  FileData;       // Data to control open/saveas standard dialog.
  21.  
  22.     THarbor*    Harbor;
  23.     TMDIClient* MdiClient;
  24.     int         ChildCount;                 // Number of child window created. 
  25.  
  26.     // Public data members used by the print menu commands and Paint routine in MDIChild.
  27.  
  28.   protected:
  29.     virtual void InitMainWindow();
  30.  
  31.     void OpenFile(const char* fileName = 0);
  32.  
  33.     void CmHelpAbout();
  34.  
  35.     void CmFileNew();
  36.     void CmFileOpen();
  37.     void CmFilePrint();
  38.     void CmFilePrintSetup();
  39.     void CmFilePrintPreview();
  40.     void CePrint(TCommandEnabler& ce);
  41.  
  42.   private:
  43.     void SetupSpeedBar(TDecoratedFrame* frame);
  44.     void AddFiles(TFileDropletList& files);
  45.  
  46.   DECLARE_RESPONSE_TABLE(TDockingApp);
  47. };
  48.  
  49. #endif
  50.