home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / TPlot / Axisedit.hpp < prev    next >
C/C++ Source or Header  |  2001-07-31  |  7KB  |  194 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) 'Axisedit.pas' rev: 3.00
  6.  
  7. #ifndef AxiseditHPP
  8. #define AxiseditHPP
  9. #include <Titles.hpp>
  10. #include <Plotdefs.hpp>
  11. #include <Nedit.hpp>
  12. #include <Misc.hpp>
  13. #include <Coloredt.hpp>
  14. #include <Axis.hpp>
  15. #include <StdCtrls.hpp>
  16. #include <Graphics.hpp>
  17. #include <Forms.hpp>
  18. #include <Controls.hpp>
  19. #include <Buttons.hpp>
  20. #include <Windows.hpp>
  21. #include <TypInfo.hpp>
  22. #include <SysUtils.hpp>
  23. #include <Classes.hpp>
  24. #include <SysInit.hpp>
  25. #include <System.hpp>
  26.  
  27. //-- user supplied -----------------------------------------------------------
  28.  
  29. namespace Axisedit
  30. {
  31. //-- type declarations -------------------------------------------------------
  32. struct TAxisProperty
  33. {
  34.     bool Visible;
  35.     TLabelFormat LabelFormat;
  36.     Byte LabelDigits;
  37.     Byte LabelPrecision;
  38.     TDirection LabelDirection;
  39.     Graphics::TColor PenColor;
  40.     int PenWidthIndex;
  41.     int PenStyleIndex;
  42.     Byte TickSize;
  43.     TOrientation TickDirection;
  44.     float TickStepSize;
  45.     Byte TickMinors;
  46.     float ScaleMin;
  47.     float ScaleMax;
  48.     float ScaleIntercept;
  49.     bool ScaleAuto;
  50.     bool ScaleLog;
  51.     Byte ArrowSize;
  52.     TAlignment ArrowDirection;
  53.     float LimitLower;
  54.     float LimitUpper;
  55.     bool LimitsVisible;
  56.     Word ZAngle;
  57.     float ZInterceptY;
  58.     Word ZLength;
  59. } ;
  60.  
  61. class DELPHICLASS TAxisEditorForm;
  62. class PASCALIMPLEMENTATION TAxisEditorForm : public Forms::TForm 
  63. {
  64.     typedef Forms::TForm inherited;
  65.     
  66. __published:
  67.     Buttons::TBitBtn* HelpBitBtn;
  68.     Buttons::TBitBtn* CancelBitBtn;
  69.     Buttons::TBitBtn* OKBitBtn;
  70.     Stdctrls::TCheckBox* VisibleCheckBox;
  71.     Stdctrls::TGroupBox* PenGroupBox;
  72.     Stdctrls::TLabel* PenColorLabel;
  73.     Stdctrls::TLabel* PenWidthLabel;
  74.     Stdctrls::TComboBox* PenWidthComboBox;
  75.     Stdctrls::TComboBox* PenStyleComboBox;
  76.     Stdctrls::TLabel* PenStyleLabel;
  77.     Stdctrls::TGroupBox* LabelsGroupBox;
  78.     Stdctrls::TLabel* DigitsLabel;
  79.     Stdctrls::TLabel* PrecisionLabel;
  80.     Stdctrls::TLabel* FormatLabel;
  81.     Stdctrls::TComboBox* DigitsComboBox;
  82.     Stdctrls::TComboBox* PrecisionComboBox;
  83.     Stdctrls::TComboBox* FormatComboBox;
  84.     Stdctrls::TGroupBox* TickGroupBox;
  85.     Stdctrls::TLabel* TickSizeLabel;
  86.     Stdctrls::TLabel* TickDirectionLabel;
  87.     Stdctrls::TComboBox* TickDirectionComboBox;
  88.     Stdctrls::TLabel* StepSizeLabel;
  89.     Stdctrls::TGroupBox* ScaleGroupBox;
  90.     Stdctrls::TLabel* InterceptLabel;
  91.     Stdctrls::TCheckBox* LogScaleCheckBox;
  92.     Stdctrls::TLabel* MinLabel;
  93.     Stdctrls::TLabel* MaxLabel;
  94.     Stdctrls::TGroupBox* ArrowsGroupBox;
  95.     Stdctrls::TLabel* ArrowSizeLabel;
  96.     Stdctrls::TLabel* ArrowDirectionLabel;
  97.     Stdctrls::TComboBox* ArrowDirectionComboBox;
  98.     Stdctrls::TEdit* TitleEdit;
  99.     Stdctrls::TLabel* TickMinorsLabel;
  100.     Stdctrls::TComboBox* MinorsComboBox;
  101.     Stdctrls::TComboBox* NoComboBox;
  102.     Stdctrls::TLabel* AxisNumberLabel;
  103.     Stdctrls::TCheckBox* AutoScaleCheckBox;
  104.     Nedit::TNEdit* TickSizeNEdit;
  105.     Nedit::TNEdit* StepSizeNEdit;
  106.     Nedit::TNEdit* MinNEdit;
  107.     Nedit::TNEdit* MaxNEdit;
  108.     Nedit::TNEdit* InterceptNEdit;
  109.     Nedit::TNEdit* ArrowSizeNEdit;
  110.     Coloredt::TColorEdit* PenColorEdit;
  111.     Buttons::TBitBtn* ApplyBitBtn;
  112.     Stdctrls::TLabel* LabelDirectionLabel;
  113.     Stdctrls::TComboBox* LabelDirectionComboBox;
  114.     Stdctrls::TGroupBox* ZAxisGroupBox;
  115.     Stdctrls::TLabel* ZAngleLabel;
  116.     Stdctrls::TLabel* ZLengthLabel;
  117.     Nedit::TNEdit* ZAngleNEdit;
  118.     Nedit::TNEdit* ZLengthNEdit;
  119.     Stdctrls::TLabel* ZInterceptLabel;
  120.     Nedit::TNEdit* ZInterceptNEdit;
  121.     Stdctrls::TGroupBox* LimitsGroupBox;
  122.     Stdctrls::TLabel* LowerLimitLabel;
  123.     Stdctrls::TLabel* UpperLimitLabel;
  124.     Nedit::TNEdit* LowerLimitNEdit;
  125.     Nedit::TNEdit* UpperLimitNEdit;
  126.     Stdctrls::TCheckBox* LimitsVisibleCheckBox;
  127.     void __fastcall FormCreate(System::TObject* Sender);
  128.     void __fastcall FormatComboBoxClick(System::TObject* Sender);
  129.     void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
  130.     void __fastcall PenStyleComboBoxClick(System::TObject* Sender);
  131.     void __fastcall FormActivate(System::TObject* Sender);
  132.     void __fastcall FormDestroy(System::TObject* Sender);
  133.     void __fastcall NoComboBoxClick(System::TObject* Sender);
  134.     void __fastcall TitleEditChange(System::TObject* Sender);
  135.     void __fastcall DigitsComboBoxClick(System::TObject* Sender);
  136.     void __fastcall PrecisionComboBoxClick(System::TObject* Sender);
  137.     void __fastcall TickDirectionComboBoxClick(System::TObject* Sender);
  138.     void __fastcall TickSizeNEditChange(System::TObject* Sender);
  139.     void __fastcall StepSizeNEditChange(System::TObject* Sender);
  140.     void __fastcall MinNEditChange(System::TObject* Sender);
  141.     void __fastcall MaxNEditChange(System::TObject* Sender);
  142.     void __fastcall InterceptNEditChange(System::TObject* Sender);
  143.     void __fastcall MinorsComboBoxClick(System::TObject* Sender);
  144.     void __fastcall ArrowDirectionComboBoxClick(System::TObject* Sender);
  145.     void __fastcall ArrowSizeNEditChange(System::TObject* Sender);
  146.     void __fastcall VisibleCheckBoxClick(System::TObject* Sender);
  147.     void __fastcall AutoScaleCheckBoxClick(System::TObject* Sender);
  148.     void __fastcall LogScaleCheckBoxClick(System::TObject* Sender);
  149.     void __fastcall PenWidthComboBoxClick(System::TObject* Sender);
  150.     void __fastcall PenColorEditChange(System::TObject* Sender);
  151.     void __fastcall ApplyBitBtnClick(System::TObject* Sender);
  152.     void __fastcall LabelDirectionComboBoxClick(System::TObject* Sender);
  153.     void __fastcall ZAngleNEditChange(System::TObject* Sender);
  154.     void __fastcall ZLengthNEditChange(System::TObject* Sender);
  155.     void __fastcall ZInterceptNEditChange(System::TObject* Sender);
  156.     void __fastcall LowerLimitNEditChange(System::TObject* Sender);
  157.     void __fastcall UpperLimitNEditChange(System::TObject* Sender);
  158.     void __fastcall LimitsVisibleCheckBoxClick(System::TObject* Sender);
  159.     
  160. private:
  161.     TAxisProperty *pAXP;
  162.     int CurrentIndex;
  163.     
  164. public:
  165.     Classes::TList* AxisPropertyList;
  166.     Classes::TStringList* AxisNames;
  167.     bool HistoryMode;
  168.     System::TObject* ThePlot;
  169.     int __fastcall AddAxis(System::AnsiString AName, const TAxisProperty &AnAxisProperty);
  170.     void __fastcall SelectAxis(int Index);
  171.     void __fastcall DoHintsFromResource(void);
  172. public:
  173.     /* TCustomForm.Create */ __fastcall virtual TAxisEditorForm(Classes::TComponent* AOwner) : Forms::TForm(
  174.         AOwner) { }
  175.     /* TCustomForm.CreateNew */ __fastcall TAxisEditorForm(Classes::TComponent* AOwner, int Dummy) : Forms::
  176.         TForm(AOwner, Dummy) { }
  177.     /* TCustomForm.Destroy */ __fastcall virtual ~TAxisEditorForm(void) { }
  178.     
  179. public:
  180.     /* TWinControl.CreateParented */ __fastcall TAxisEditorForm(HWND ParentWindow) : Forms::TForm(ParentWindow
  181.         ) { }
  182.     
  183. };
  184.  
  185. //-- var, const, procedure ---------------------------------------------------
  186. extern PACKAGE TAxisEditorForm* AxisEditorForm;
  187.  
  188. }    /* namespace Axisedit */
  189. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  190. using namespace Axisedit;
  191. #endif
  192. //-- end unit ----------------------------------------------------------------
  193. #endif    // Axisedit
  194.