home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April / Chip_1997-04_cd.bin / prezent / cb / data.z / PIEREG.H < prev    next >
C/C++ Source or Header  |  1997-01-16  |  3KB  |  74 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1997 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. #ifndef PieRegHPP
  6. #define PieRegHPP
  7. //----------------------------------------------------------------------------
  8. #include "pies.h"
  9. #include <ComCtrls.hpp>
  10. #include <StdCtrls.hpp>
  11. #include <DsgnWnds.hpp>
  12. #include <DsgnIntf.hpp>
  13. #include <Buttons.hpp>
  14. #include <Controls.hpp>
  15. #include <Forms.hpp>
  16. #include <Graphics.hpp>
  17. #include <Classes.hpp>
  18. #include <Windows.hpp>
  19. #include <System.hpp>
  20.  
  21. //-- type declarations -------------------------------------------------------
  22. class  TAngleEditorDlg : public TForm
  23. {
  24. __published:
  25.     TLabel *EAngleLabel;
  26.     TLabel *SAngleLabel;
  27.     TButton *OKButton;
  28.     TButton *CancelButton;
  29.     TTrackBar *STrackBar;
  30.     TTrackBar *ETrackBar;
  31.     void __fastcall CancelClick(TObject* Sender);
  32.     void __fastcall STrackBarChange(TObject* Sender);
  33.     void __fastcall ETrackBarChange(TObject* Sender);
  34. private:
  35.     int FOrigStart;
  36.     int FOrigEnd;
  37.     TAngles* FAngles;
  38.     void __fastcall SetStartAngle(int Value);
  39.     void __fastcall SetEndAngle(int Value);
  40.     void __fastcall SetAngles(TAngles* Value);
  41. public:
  42.     __property TAngles* EditorAngles = {read=FAngles, write=SetAngles, nodefault};
  43.     __fastcall virtual TAngleEditorDlg(TComponent* AOwner);
  44.     __fastcall TAngleEditorDlg(TComponent* AOwner, int Dummy);
  45.     __fastcall TAngleEditorDlg(HWND ParentWindow);
  46.     __fastcall virtual ~TAngleEditorDlg(void);
  47. };
  48.  
  49. class TAnglesProperty : public TClassProperty
  50. {
  51. public:
  52.     virtual void __fastcall Edit(void);
  53.     virtual TPropertyAttributes __fastcall GetAttributes(void);
  54.     __fastcall virtual ~TAnglesProperty(void);
  55.     __fastcall TAnglesProperty(void);
  56. };
  57.  
  58. class TPieEditor : public TDefaultEditor
  59. {
  60. protected:
  61.     virtual void __fastcall EditProperty(TPropertyEditor* PropertyEditor,
  62.                                          bool& Continue, bool& FreeEditor);
  63. public:
  64.     virtual void __fastcall ExecuteVerb(int Index);
  65.     virtual AnsiString __fastcall GetVerb(int Index);
  66.     virtual int __fastcall GetVerbCount(void);
  67.     __fastcall virtual TPieEditor(TComponent* AComponent, TFormDesigner* ADesigner);
  68.     __fastcall virtual ~TPieEditor(void);
  69. };
  70.  
  71. //-- var, const, procedure ---------------------------------------------------
  72. //-- end unit ----------------------------------------------------------------
  73. #endif    // PieReg
  74.