home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / TPlot / Plotmenu.hpp < prev    next >
C/C++ Source or Header  |  2001-07-31  |  2KB  |  73 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'Plotmenu.pas' rev: 3.00
  6.  
  7. #ifndef PlotmenuHPP
  8. #define PlotmenuHPP
  9. #include <Plotdefs.hpp>
  10. #include <Plot.hpp>
  11. #include <Misc.hpp>
  12. #include <Menus.hpp>
  13. #include <SysUtils.hpp>
  14. #include <Classes.hpp>
  15. #include <SysInit.hpp>
  16. #include <System.hpp>
  17.  
  18. //-- user supplied -----------------------------------------------------------
  19.  
  20. namespace Plotmenu
  21. {
  22. //-- type declarations -------------------------------------------------------
  23. class DELPHICLASS TPlotMenu;
  24. class PASCALIMPLEMENTATION TPlotMenu : public Menus::TMainMenu 
  25. {
  26.     typedef Menus::TMainMenu inherited;
  27.     
  28. private:
  29.     Plot::TPlot* FPlot;
  30.     Byte FHistoryLimit;
  31.     void __fastcall CreateMenus(void);
  32.     void __fastcall CreateReopenSubMenu(void);
  33.     System::AnsiString __fastcall GetHistory();
  34.     
  35. protected:
  36.     void __fastcall HandleClick(System::TObject* Sender);
  37.     void __fastcall HandleClunk(System::TObject* Sender);
  38.     void __fastcall HandleFileClick(System::TObject* Sender);
  39.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  40.         );
  41.     void __fastcall SetPlot(Plot::TPlot* Value);
  42.     
  43. public:
  44.     __property System::AnsiString History = {read=GetHistory, stored=false};
  45.     __fastcall virtual TPlotMenu(Classes::TComponent* AOwner);
  46.     __fastcall virtual ~TPlotMenu(void);
  47.     void __fastcall ApplyOptions(Plotdefs::TPopupOptions* Value);
  48.     void __fastcall AddHistory(System::AnsiString Value);
  49.     bool __fastcall MenuExists(int ATag, System::AnsiString ACaption);
  50.     void __fastcall SetUpOnClicks(void);
  51.     
  52. __published:
  53.     __property Byte HistoryLimit = {read=FHistoryLimit, write=FHistoryLimit, nodefault};
  54.     __property Plot::TPlot* Plot = {read=FPlot, write=SetPlot};
  55. };
  56.  
  57. //-- var, const, procedure ---------------------------------------------------
  58. #define TPLOTMENU_VERSION (Byte)(200)
  59. #define FILE_TAG (Word)(1000)
  60. #define HELP_TAG (Word)(1095)
  61. #define ABOUT_TAG (Word)(1096)
  62. #define REOPEN_TAG (Word)(1097)
  63. #define EXIT_DIV_TAG (Word)(1098)
  64. #define EXIT_TAG (Word)(1099)
  65. #define mnuReopen (Byte)(2)
  66.  
  67. }    /* namespace Plotmenu */
  68. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  69. using namespace Plotmenu;
  70. #endif
  71. //-- end unit ----------------------------------------------------------------
  72. #endif    // Plotmenu
  73.