home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / TPlot / Plottoolbar.hpp < prev    next >
C/C++ Source or Header  |  2001-07-31  |  2KB  |  71 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) 'Plottoolbar.pas' rev: 3.00
  6.  
  7. #ifndef PlottoolbarHPP
  8. #define PlottoolbarHPP
  9. #include <Plottooledit.hpp>
  10. #include <Misc.hpp>
  11. #include <Plot.hpp>
  12. #include <Plotdefs.hpp>
  13. #include <Dialogs.hpp>
  14. #include <Controls.hpp>
  15. #include <ComCtrls.hpp>
  16. #include <Windows.hpp>
  17. #include <SysUtils.hpp>
  18. #include <Classes.hpp>
  19. #include <SysInit.hpp>
  20. #include <System.hpp>
  21.  
  22. //-- user supplied -----------------------------------------------------------
  23.  
  24. namespace Plottoolbar
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. class DELPHICLASS TPlotToolBar;
  28. class PASCALIMPLEMENTATION TPlotToolBar : public Comctrls::TToolBar 
  29. {
  30.     typedef Comctrls::TToolBar inherited;
  31.     
  32. private:
  33.     bool FCanConfigure;
  34.     Plot::TPlot* FPlot;
  35.     bool __fastcall ToolButtonExists(int ATag, System::AnsiString ACaption);
  36.     
  37. protected:
  38.     virtual Plot::TPlot* __fastcall GetPlot(System::TObject* Target);
  39.     void __fastcall SetPlot(Plot::TPlot* Value);
  40.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  41.         );
  42.     void __fastcall CreateToolButtons(void);
  43.     void __fastcall DidMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState 
  44.         Shift, int X, int Y);
  45.     DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
  46.         int Y);
  47.     
  48. public:
  49.     __fastcall virtual TPlotToolBar(Classes::TComponent* AOwner);
  50.     __fastcall virtual ~TPlotToolBar(void);
  51.     void __fastcall ApplyChanges(System::TObject* Sender);
  52.     void __fastcall ApplyOptions(Plotdefs::TPopupOptions* Value);
  53.     
  54. __published:
  55.     __property bool CanConfigure = {read=FCanConfigure, write=FCanConfigure, nodefault};
  56.     __property Plot::TPlot* Plot = {read=FPlot, write=SetPlot};
  57. public:
  58.     /* TWinControl.CreateParented */ __fastcall TPlotToolBar(HWND ParentWindow) : Comctrls::TToolBar(ParentWindow
  59.         ) { }
  60.     
  61. };
  62.  
  63. //-- var, const, procedure ---------------------------------------------------
  64.  
  65. }    /* namespace Plottoolbar */
  66. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  67. using namespace Plottoolbar;
  68. #endif
  69. //-- end unit ----------------------------------------------------------------
  70. #endif    // Plottoolbar
  71.