home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / PICEDIT.HPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  5KB  |  151 lines

  1. //----------------------------------------------------------------------------
  2. // PicEdit.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: PicEdit.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef PicEditHPP
  6. #define PicEditHPP
  7. //----------------------------------------------------------------------------
  8. #include <ExtCtrls.hpp>
  9. #include <StdCtrls.hpp>
  10. #include <DsgnIntf.hpp>
  11. #include <Buttons.hpp>
  12. #include <Dialogs.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. #pragma warn -par
  20. #pragma warn -hid 
  21. #pragma warn -inl
  22.  
  23. namespace Picedit
  24. {
  25. //-- type declarations -------------------------------------------------------
  26. class __declspec(delphiclass) TPictureEditorDlg;
  27. class __declspec(pascalimplementation) TPictureEditorDlg : public Forms::TForm
  28. {
  29.     typedef Forms::TForm inherited;
  30.     
  31. __published:
  32.     Stdctrls::TButton* Load;
  33.     Stdctrls::TButton* Save;
  34.     Dialogs::TOpenDialog* FileDialog;
  35.     Dialogs::TSaveDialog* SaveDialog;
  36.     Stdctrls::TButton* Clear;
  37.     Extctrls::TShape* Shape1;
  38.     Extctrls::TShape* Shape2;
  39.     Stdctrls::TButton* OKButton;
  40.     Stdctrls::TButton* CancelButton;
  41.     Stdctrls::TButton* HelpButton;
  42.     void __fastcall FormCreate(System::TObject* Sender);
  43.     void __fastcall FormDestroy(System::TObject* Sender);
  44.     void __fastcall LoadClick(System::TObject* Sender);
  45.     void __fastcall SaveClick(System::TObject* Sender);
  46.     void __fastcall FormPaint(System::TObject* Sender);
  47.     void __fastcall ClearClick(System::TObject* Sender);
  48.     void __fastcall HelpButtonClick(System::TObject* Sender);
  49.     
  50. private:
  51.     Graphics::TPicture* Pic;
  52. public:
  53.     /* TForm.Create */ __fastcall virtual TPictureEditorDlg(Classes::TComponent* AOwner) : Forms::TForm(
  54.         AOwner) { }
  55.     /* TForm.CreateNew */ __fastcall TPictureEditorDlg(Classes::TComponent* AOwner, int Dummy) : Forms::
  56.         TForm(AOwner, Dummy) { }
  57.     /* TForm.Destroy */ __fastcall virtual ~TPictureEditorDlg(void) { }
  58.     
  59. public:
  60.     /* TWinControl.CreateParented */ __fastcall TPictureEditorDlg(HWND ParentWindow) : Forms::TForm(ParentWindow
  61.         ) { }
  62.     
  63. };
  64.  
  65. class __declspec(delphiclass) TPictureEditor;
  66. class __declspec(pascalimplementation) TPictureEditor : public Classes::TComponent
  67. {
  68.     typedef Classes::TComponent inherited;
  69.     
  70. private:
  71.     System::TMetaClass*FGraphicClass;
  72.     Graphics::TPicture* FPicture;
  73.     TPictureEditorDlg* FPicDlg;
  74.     void __fastcall SetPicture(Graphics::TPicture* Value);
  75.     
  76. public:
  77.     __fastcall virtual TPictureEditor(Classes::TComponent* AOwner);
  78.     __fastcall virtual ~TPictureEditor(void);
  79.     bool __fastcall Execute(void);
  80.     __property System::TMetaClass* GraphicClass = {read=FGraphicClass, write=FGraphicClass, nodefault};
  81.         
  82.     __property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture, nodefault};
  83. };
  84.  
  85. class __declspec(delphiclass) TPictureProperty;
  86. class __declspec(pascalimplementation) TPictureProperty : public Dsgnintf::TPropertyEditor
  87. {
  88.     typedef Dsgnintf::TPropertyEditor inherited;
  89.     
  90. public:
  91.     virtual void __fastcall Edit(void);
  92.     virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void);
  93.     virtual System::AnsiString __fastcall GetValue(void);
  94.     virtual void __fastcall SetValue(const System::AnsiString Value);
  95. public:
  96.     /* TPropertyEditor.Destroy */ __fastcall virtual ~TPictureProperty(void) { }
  97.     
  98. public:
  99.     /* TObject.Create */ __fastcall TPictureProperty(void) : Dsgnintf::TPropertyEditor() { }
  100.     
  101. };
  102.  
  103. class __declspec(delphiclass) TGraphicProperty;
  104. class __declspec(pascalimplementation) TGraphicProperty : public Dsgnintf::TClassProperty
  105. {
  106.     typedef Dsgnintf::TClassProperty inherited;
  107.     
  108. public:
  109.     virtual void __fastcall Edit(void);
  110.     virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void);
  111.     virtual System::AnsiString __fastcall GetValue(void);
  112.     virtual void __fastcall SetValue(const System::AnsiString Value);
  113. public:
  114.     /* TPropertyEditor.Destroy */ __fastcall virtual ~TGraphicProperty(void) { }
  115.     
  116. public:
  117.     /* TObject.Create */ __fastcall TGraphicProperty(void) : Dsgnintf::TClassProperty() { }
  118.     
  119. };
  120.  
  121. class __declspec(delphiclass) TGraphicEditor;
  122. class __declspec(pascalimplementation) TGraphicEditor : public Dsgnintf::TDefaultEditor
  123. {
  124.     typedef Dsgnintf::TDefaultEditor inherited;
  125.     
  126. public:
  127.     virtual void __fastcall EditProperty(Dsgnintf::TPropertyEditor* PropertyEditor, bool &Continue, bool 
  128.         &FreeEditor);
  129. public:
  130.     /* TComponentEditor.Create */ __fastcall virtual TGraphicEditor(Classes::TComponent* AComponent, Dsgnintf::TFormDesigner* 
  131.         ADesigner) : Dsgnintf::TDefaultEditor(AComponent, ADesigner) { }
  132.     
  133. public:
  134.     /* TObject.Destroy */ __fastcall virtual ~TGraphicEditor(void) { }
  135.     
  136. };
  137.  
  138. //-- var, const, procedure ---------------------------------------------------
  139.  
  140. }    /* namespace Picedit */
  141.  
  142. #pragma warn .par
  143. #pragma warn .hid 
  144. #pragma warn .inl
  145.  
  146. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  147. using namespace Picedit;
  148. #endif
  149. //-- end unit ----------------------------------------------------------------
  150. #endif    // PicEdit
  151.