home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / PIEREG.H < prev    next >
C/C++ Source or Header  |  1997-02-14  |  3KB  |  79 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 <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. #if !defined (REGISTER_ALL_CONTROLS)
  20.   #include  "pies.h"
  21. #else
  22.   #include "source\pies.h"
  23. #endif
  24.  
  25. //-- type declarations -------------------------------------------------------
  26. class  TAngleEditorDlg : public TForm
  27. {
  28. __published:
  29.     TLabel *EAngleLabel;
  30.     TLabel *SAngleLabel;
  31.     TButton *OKButton;
  32.     TButton *CancelButton;
  33.     TTrackBar *STrackBar;
  34.     TTrackBar *ETrackBar;
  35.     void __fastcall CancelClick(TObject* Sender);
  36.     void __fastcall STrackBarChange(TObject* Sender);
  37.     void __fastcall ETrackBarChange(TObject* Sender);
  38. private:
  39.     int FOrigStart;
  40.     int FOrigEnd;
  41.     TAngles* FAngles;
  42.     void __fastcall SetStartAngle(int Value);
  43.     void __fastcall SetEndAngle(int Value);
  44.     void __fastcall SetAngles(TAngles* Value);
  45. public:
  46.     __property TAngles* EditorAngles = {read=FAngles, write=SetAngles, nodefault};
  47.     __fastcall virtual TAngleEditorDlg(TComponent* AOwner);
  48.     __fastcall TAngleEditorDlg(TComponent* AOwner, int Dummy);
  49.     __fastcall TAngleEditorDlg(HWND ParentWindow);
  50.     __fastcall virtual ~TAngleEditorDlg(void);
  51. };
  52.  
  53. class TAnglesProperty : public TClassProperty
  54. {
  55. public:
  56.     virtual void __fastcall Edit();
  57.     virtual TPropertyAttributes __fastcall GetAttributes(void);
  58.     __fastcall virtual ~TAnglesProperty(void);
  59.     __fastcall TAnglesProperty(void);
  60. };
  61.  
  62. class TPieEditor : public TDefaultEditor
  63. {
  64. protected:
  65.     virtual void __fastcall EditProperty(TPropertyEditor* PropertyEditor,
  66.                                          bool& Continue, bool& FreeEditor);
  67. public:
  68.   //      virtual void __fastcall Edit();
  69.     virtual void __fastcall ExecuteVerb(int Index);
  70.     virtual AnsiString __fastcall GetVerb(int Index);
  71.     virtual int __fastcall GetVerbCount(void);
  72.     __fastcall virtual TPieEditor(TComponent* AComponent, TFormDesigner* ADesigner);
  73.     __fastcall virtual ~TPieEditor(void);
  74. };
  75.  
  76. //-- var, const, procedure ---------------------------------------------------
  77. //-- end unit ----------------------------------------------------------------
  78. #endif    // PieReg
  79.