home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / PICEDIT.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  5.3 KB  |  176 lines

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