home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / kolekce / d12345 / CHEMPLOT.ZIP / TPlot / Titles.hpp < prev    next >
C/C++ Source or Header  |  2001-06-01  |  10KB  |  287 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) 'Titles.pas' rev: 3.00
  6.  
  7. #ifndef TitlesHPP
  8. #define TitlesHPP
  9. #include <Plotdefs.hpp>
  10. #include <Misc.hpp>
  11. #include <Graphics.hpp>
  12. #include <Dialogs.hpp>
  13. #include <Controls.hpp>
  14. #include <Windows.hpp>
  15. #include <SysUtils.hpp>
  16. #include <Classes.hpp>
  17. #include <SysInit.hpp>
  18. #include <System.hpp>
  19.  
  20. //-- user supplied -----------------------------------------------------------
  21.  
  22. namespace Titles
  23. {
  24. //-- type declarations -------------------------------------------------------
  25. enum TDirection { drHorizontal, drVertical };
  26.  
  27. enum TOrientation { orRight, orLeft };
  28.  
  29. class DELPHICLASS TRectangle;
  30. class PASCALIMPLEMENTATION TRectangle : public Classes::TPersistent 
  31. {
  32.     typedef Classes::TPersistent inherited;
  33.     
  34. private:
  35.     TAlignment FAlignment;
  36.     bool FFireEvents;
  37.     int FLeft;
  38.     int FTop;
  39.     int FRight;
  40.     int FBottom;
  41.     System::AnsiString FName;
  42.     Classes::TPersistent* FOwner;
  43.     int FTag;
  44.     bool FVisible;
  45.     int __fastcall GetHeight(void);
  46.     int __fastcall GetWidth(void);
  47.     
  48. protected:
  49.     Classes::TNotifyEvent FOnChange;
  50.     int __fastcall GetMidX(void);
  51.     int __fastcall GetMidY(void);
  52.     virtual void __fastcall SetLeft(int Value);
  53.     virtual void __fastcall SetMidX(int Value);
  54.     virtual void __fastcall SetMidY(int Value);
  55.     virtual void __fastcall SetTop(int Value);
  56.     void __fastcall SetAlignment(Classes::TAlignment Value);
  57.     void __fastcall SetRight(int Value);
  58.     void __fastcall SetBottom(int Value);
  59.     void __fastcall SetVisible(bool Value);
  60.     void __fastcall SetHeight(int Value);
  61.     void __fastcall SetWidth(int Value);
  62.     void __fastcall SetDeltaX(int Value);
  63.     void __fastcall SetDeltaY(int Value);
  64.     virtual void __fastcall DoHandleChange(void);
  65.     
  66. public:
  67.     __property int DeltaX = {write=SetDeltaX, nodefault};
  68.     __property int DeltaY = {write=SetDeltaY, nodefault};
  69.     __property Classes::TPersistent* Owner = {read=FOwner};
  70.     __property int Tag = {read=FTag, write=FTag, nodefault};
  71.     __fastcall virtual TRectangle(Classes::TPersistent* AOwner);
  72.     __fastcall virtual ~TRectangle(void);
  73.     virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
  74.     virtual bool __fastcall ClickedOn(int iX, int iY);
  75.     void __fastcall Outline(Graphics::TCanvas* ACanvas);
  76.     
  77. __published:
  78.     __property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, nodefault};
  79.     __property bool FireEvents = {read=FFireEvents, write=FFireEvents, nodefault};
  80.     __property System::AnsiString Name = {read=FName, write=FName};
  81.     __property int Left = {read=FLeft, write=SetLeft, nodefault};
  82.     __property int Top = {read=FTop, write=SetTop, nodefault};
  83.     __property int Right = {read=FRight, write=SetRight, nodefault};
  84.     __property int Bottom = {read=FBottom, write=SetBottom, nodefault};
  85.     __property bool Visible = {read=FVisible, write=SetVisible, nodefault};
  86.     __property int Height = {read=GetHeight, write=SetHeight, nodefault};
  87.     __property int Width = {read=GetWidth, write=SetWidth, nodefault};
  88.     __property int MidX = {read=GetMidX, write=SetMidX, nodefault};
  89.     __property int MidY = {read=GetMidY, write=SetMidY, nodefault};
  90.     __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
  91. };
  92.  
  93. class DELPHICLASS TBorder;
  94. class PASCALIMPLEMENTATION TBorder : public Titles::TRectangle 
  95. {
  96.     typedef Titles::TRectangle inherited;
  97.     
  98. private:
  99.     int FRightEx;
  100.     int FBottomEx;
  101.     void __fastcall SetRightEx(int Value);
  102.     void __fastcall SetBottomEx(int Value);
  103.     int __fastcall GetRightGap(void);
  104.     int __fastcall GetBottomGap(void);
  105.     int __fastcall GetHeightEx(void);
  106.     int __fastcall GetWidthEx(void);
  107.     void __fastcall SetRightGap(int Value);
  108.     void __fastcall SetBottomGap(int Value);
  109.     void __fastcall SetHeightEx(int Value);
  110.     void __fastcall SetWidthEx(int Value);
  111.     
  112. protected:
  113.     virtual void __fastcall SetLeft(int Value);
  114.     virtual void __fastcall SetTop(int Value);
  115.     
  116. public:
  117.     __fastcall virtual TBorder(Classes::TPersistent* AOwner);
  118.     
  119. __published:
  120.     __property int RightEx = {read=FRightEx, write=SetRightEx, nodefault};
  121.     __property int BottomEx = {read=FBottomEx, write=SetBottomEx, nodefault};
  122.     __property int RightGap = {read=GetRightGap, write=SetRightGap, nodefault};
  123.     __property int BottomGap = {read=GetBottomGap, write=SetBottomGap, nodefault};
  124.     __property int HeightEx = {read=GetHeightEx, write=SetHeightEx, nodefault};
  125.     __property int WidthEx = {read=GetWidthEx, write=SetWidthEx, nodefault};
  126. public:
  127.     /* TRectangle.Destroy */ __fastcall virtual ~TBorder(void) { }
  128.     
  129. };
  130.  
  131. class DELPHICLASS TCaption;
  132. class PASCALIMPLEMENTATION TCaption : public Titles::TRectangle 
  133. {
  134.     typedef Titles::TRectangle inherited;
  135.     
  136. private:
  137.     System::AnsiString FCaption;
  138.     Graphics::TFont* FFont;
  139.     Classes::TNotifyEvent FOnCaptionChange;
  140.     
  141. protected:
  142.     virtual void __fastcall CreateName(void);
  143.     virtual void __fastcall SetCaption(System::AnsiString Value);
  144.     void __fastcall SetFont(Graphics::TFont* Value);
  145.     
  146. public:
  147.     __fastcall virtual TCaption(Classes::TPersistent* AOwner);
  148.     __fastcall virtual ~TCaption(void);
  149.     virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
  150.     
  151. __published:
  152.     __property System::AnsiString Caption = {read=FCaption, write=SetCaption};
  153.     __property Graphics::TFont* Font = {read=FFont, write=SetFont};
  154.     __property Classes::TNotifyEvent OnCaptionChange = {read=FOnCaptionChange, write=FOnCaptionChange};
  155.         
  156. };
  157.  
  158. class DELPHICLASS TTitle;
  159. class PASCALIMPLEMENTATION TTitle : public Titles::TCaption 
  160. {
  161.     typedef Titles::TCaption inherited;
  162.     
  163. private:
  164.     TDirection FDirection;
  165.     TOrientation FOrientation;
  166.     Windows::TRect FEnvelope;
  167.     System::AnsiString FUnits;
  168.     System::AnsiString FFullCaption;
  169.     void __fastcall SetDirection(TDirection Value);
  170.     void __fastcall SetOrientation(TOrientation Value);
  171.     void __fastcall SetEnvelope(const Windows::TRect &Value);
  172.     void __fastcall SetUnits(System::AnsiString Value);
  173.     
  174. protected:
  175.     DYNAMIC void __fastcall DoGeometry(Graphics::TCanvas* ACanvas, System::AnsiString TheText);
  176.     virtual void __fastcall SetCaption(System::AnsiString Value);
  177.     
  178. public:
  179.     __property Windows::TRect Envelope = {read=FEnvelope, write=SetEnvelope};
  180.     __property System::AnsiString FullCaption = {read=FFullCaption};
  181.     __fastcall virtual TTitle(Classes::TPersistent* AOwner);
  182.     void __fastcall Draw(Graphics::TCanvas* ACanvas);
  183.     virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
  184.     
  185. __published:
  186.     __property System::AnsiString Units = {read=FUnits, write=SetUnits};
  187.     __property TDirection Direction = {read=FDirection, write=SetDirection, nodefault};
  188.     __property TOrientation Orientation = {read=FOrientation, write=SetOrientation, nodefault};
  189. public:
  190.     /* TCaption.Destroy */ __fastcall virtual ~TTitle(void) { }
  191.     
  192. };
  193.  
  194. class DELPHICLASS TLegend;
  195. class PASCALIMPLEMENTATION TLegend : public Titles::TRectangle 
  196. {
  197.     typedef Titles::TRectangle inherited;
  198.     
  199. private:
  200.     bool FCheckboxes;
  201.     TDirection FDirection;
  202.     Graphics::TFont* FFont;
  203.     int FFontHeight;
  204.     int FStringWidth;
  205.     int FCheckWidth;
  206.     int FLineWidth;
  207.     Classes::TList* FSeriesList;
  208.     
  209. protected:
  210.     int __fastcall GetItemWidth(void);
  211.     void __fastcall SetCheckboxes(bool Value);
  212.     void __fastcall SetDirection(TDirection Value);
  213.     void __fastcall SetFont(Graphics::TFont* Value);
  214.     
  215. public:
  216.     __property int FontHeight = {read=FFontHeight, nodefault};
  217.     __property int ItemWidth = {read=GetItemWidth, nodefault};
  218.     __fastcall virtual TLegend(Classes::TPersistent* AOwner, Classes::TList* SeriesList);
  219.     __fastcall virtual ~TLegend(void);
  220.     int __fastcall GetHit(int iX, int iY, Windows::TRect &TheRect);
  221.     void __fastcall Draw(Graphics::TCanvas* ACanvas, int SeriesIncrement);
  222.     
  223. __published:
  224.     __property bool CheckBoxes = {read=FCheckboxes, write=SetCheckboxes, nodefault};
  225.     __property TDirection Direction = {read=FDirection, write=SetDirection, nodefault};
  226.     __property Graphics::TFont* Font = {read=FFont, write=SetFont};
  227. public:
  228.     /* TRectangle.Create */ __fastcall virtual TLegend(Classes::TPersistent* AOwner) : Titles::TRectangle(
  229.         AOwner) { }
  230.     
  231. };
  232.  
  233. class DELPHICLASS TNote;
  234. class PASCALIMPLEMENTATION TNote : public Titles::TCaption 
  235. {
  236.     typedef Titles::TCaption inherited;
  237.     
  238. private:
  239.     int FArrowLeft;
  240.     int FArrowTop;
  241.     float FArrowLeftReal;
  242.     float FArrowTopReal;
  243.     Classes::TPersistent* FOwner;
  244.     float FLeftReal;
  245.     float FTopReal;
  246.     int ArrowStartLeft;
  247.     int ArrowStartTop;
  248.     
  249. protected:
  250.     virtual void __fastcall SetLeft(int Value);
  251.     virtual void __fastcall SetTop(int Value);
  252.     virtual void __fastcall SetArrowLeft(int Value);
  253.     virtual void __fastcall SetArrowTop(int Value);
  254.     virtual void __fastcall SetArrowLeftReal(float Value);
  255.     virtual void __fastcall SetArrowTopReal(float Value);
  256.     virtual void __fastcall SetLeftReal(float Value);
  257.     virtual void __fastcall SetTopReal(float Value);
  258.     
  259. public:
  260.     __fastcall virtual TNote(Classes::TPersistent* AOwner);
  261.     virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
  262.     void __fastcall Draw(Graphics::TCanvas* ACanvas);
  263.     void __fastcall TracePointerTo(Graphics::TCanvas* ACanvas, int iX, int iY);
  264.     
  265. __published:
  266.     __property int ArrowLeft = {read=FArrowLeft, write=SetArrowLeft, nodefault};
  267.     __property int ArrowTop = {read=FArrowTop, write=SetArrowTop, nodefault};
  268.     __property float ArrowLeftReal = {read=FArrowLeftReal, write=SetArrowLeftReal};
  269.     __property float ArrowTopReal = {read=FArrowTopReal, write=SetArrowTopReal};
  270.     __property float LeftReal = {read=FLeftReal, write=SetLeftReal};
  271.     __property float TopReal = {read=FTopReal, write=SetTopReal};
  272. public:
  273.     /* TCaption.Destroy */ __fastcall virtual ~TNote(void) { }
  274.     
  275. };
  276.  
  277. //-- var, const, procedure ---------------------------------------------------
  278. extern PACKAGE System::ResourceString _sLegendDrawError;
  279. #define Titles_sLegendDrawError System::LoadResourceString(&Titles::_sLegendDrawError)
  280.  
  281. }    /* namespace Titles */
  282. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  283. using namespace Titles;
  284. #endif
  285. //-- end unit ----------------------------------------------------------------
  286. #endif    // Titles
  287.