home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 5 / Komponety.exe / piereg.h < prev    next >
C/C++ Source or Header  |  1998-02-09  |  3KB  |  75 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1998 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. #ifndef PieRegHPP
  6. #define PieRegHPP
  7. //----------------------------------------------------------------------------
  8. #include <ComCtrls.hpp>
  9. #include <StdCtrls.hpp>
  10. #include <DsgnWnds.hpp>
  11. #include <DsgnIntf.hpp>
  12. #include <Buttons.hpp>
  13. #include <Controls.hpp>
  14. #include <Forms.hpp>
  15. #include <Graphics.hpp>
  16. #include <Classes.hpp>
  17. #include <Windows.hpp>
  18. #include <System.hpp>
  19. #include  "pies.h"
  20.  
  21. //-- type declarations -------------------------------------------------------
  22. class  PACKAGE 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 PACKAGE TAnglesProperty : public TClassProperty
  50. {
  51. public:
  52.     virtual void __fastcall Edit();
  53.     virtual TPropertyAttributes __fastcall GetAttributes(void);
  54.     __fastcall virtual ~TAnglesProperty(void);
  55.     __fastcall TAnglesProperty(void);
  56. };
  57.  
  58. class PACKAGE TPieEditor : public TDefaultEditor
  59. {
  60. protected:
  61.     virtual void __fastcall EditProperty(TPropertyEditor* PropertyEditor,
  62.                                          bool& Continue, bool& FreeEditor);
  63. public:
  64.   //      virtual void __fastcall Edit();
  65.     virtual void __fastcall ExecuteVerb(int Index);
  66.     virtual AnsiString __fastcall GetVerb(int Index);
  67.     virtual int __fastcall GetVerbCount(void);
  68.     __fastcall virtual TPieEditor(TComponent* AComponent, TFormDesigner* ADesigner);
  69.     __fastcall virtual ~TPieEditor(void);
  70. };
  71.  
  72. //-- var, const, procedure ---------------------------------------------------
  73. //-- end unit ----------------------------------------------------------------
  74. #endif    // PieReg
  75.