home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / kolekce / d12345 / CHEMPLOT.ZIP / TPlot / Plotmenu.hpp < prev    next >
C/C++ Source or Header  |  2001-06-01  |  2KB  |  72 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 <Menus.hpp>
  12. #include <SysUtils.hpp>
  13. #include <Classes.hpp>
  14. #include <SysInit.hpp>
  15. #include <System.hpp>
  16.  
  17. //-- user supplied -----------------------------------------------------------
  18.  
  19. namespace Plotmenu
  20. {
  21. //-- type declarations -------------------------------------------------------
  22. class DELPHICLASS TPlotMenu;
  23. class PASCALIMPLEMENTATION TPlotMenu : public Menus::TMainMenu 
  24. {
  25.     typedef Menus::TMainMenu inherited;
  26.     
  27. private:
  28.     Plot::TPlot* FPlot;
  29.     Byte FHistoryLimit;
  30.     void __fastcall CreateMenus(void);
  31.     void __fastcall CreateReopenSubMenu(void);
  32.     System::AnsiString __fastcall GetHistory();
  33.     
  34. protected:
  35.     void __fastcall HandleClick(System::TObject* Sender);
  36.     void __fastcall HandleClunk(System::TObject* Sender);
  37.     void __fastcall HandleFileClick(System::TObject* Sender);
  38.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  39.         );
  40.     void __fastcall SetPlot(Plot::TPlot* Value);
  41.     
  42. public:
  43.     __property System::AnsiString History = {read=GetHistory, stored=false};
  44.     __fastcall virtual TPlotMenu(Classes::TComponent* AOwner);
  45.     __fastcall virtual ~TPlotMenu(void);
  46.     void __fastcall ApplyOptions(Plotdefs::TPopupOptions* Value);
  47.     void __fastcall AddHistory(System::AnsiString Value);
  48.     bool __fastcall MenuExists(int ATag, System::AnsiString ACaption);
  49.     void __fastcall SetUpOnClicks(void);
  50.     
  51. __published:
  52.     __property Byte HistoryLimit = {read=FHistoryLimit, write=FHistoryLimit, nodefault};
  53.     __property Plot::TPlot* Plot = {read=FPlot, write=SetPlot};
  54. };
  55.  
  56. //-- var, const, procedure ---------------------------------------------------
  57. #define TPLOTMENU_VERSION (Byte)(200)
  58. #define FILE_TAG (Word)(1000)
  59. #define HELP_TAG (Word)(1095)
  60. #define ABOUT_TAG (Word)(1096)
  61. #define REOPEN_TAG (Word)(1097)
  62. #define EXIT_DIV_TAG (Word)(1098)
  63. #define EXIT_TAG (Word)(1099)
  64. #define mnuReopen (Byte)(2)
  65.  
  66. }    /* namespace Plotmenu */
  67. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  68. using namespace Plotmenu;
  69. #endif
  70. //-- end unit ----------------------------------------------------------------
  71. #endif    // Plotmenu
  72.