fcCollection.hpp
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:3k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'fcCollection.pas' rev: 5.00
  5. #ifndef fcCollectionHPP
  6. #define fcCollectionHPP
  7. #pragma delphiheader begin
  8. #pragma option push -w-
  9. #pragma option push -Vx
  10. #include <Dialogs.hpp> // Pascal unit
  11. #include <SysUtils.hpp> // Pascal unit
  12. #include <ActiveX.hpp> // Pascal unit
  13. #include <Windows.hpp> // Pascal unit
  14. #include <Controls.hpp> // Pascal unit
  15. #include <Classes.hpp> // Pascal unit
  16. #include <SysInit.hpp> // Pascal unit
  17. #include <System.hpp> // Pascal unit
  18. //-- user supplied -----------------------------------------------------------
  19. namespace Fccollection
  20. {
  21. //-- type declarations -------------------------------------------------------
  22. class DELPHICLASS TfcCollectionItem;
  23. typedef void __fastcall (__closure *TfcSelectionMethod)(TfcCollectionItem* Item);
  24. class PASCALIMPLEMENTATION TfcCollectionItem : public Classes::TCollectionItem 
  25. {
  26. typedef Classes::TCollectionItem inherited;
  27. private:
  28. void *FPointerTag;
  29. TfcSelectionMethod FSelectionMethod;
  30. int FTag;
  31. Classes::TNotifyEvent FOnRefreshDesign;
  32. protected:
  33. virtual void __fastcall SetSelectionMethod(TfcSelectionMethod Value);
  34. virtual void __fastcall RefreshDesign(void);
  35. public:
  36. virtual Classes::TPersistent* __fastcall GetInstance(const AnsiString PropertyName);
  37. virtual void __fastcall GotSelected(void);
  38. void __fastcall SetButtonName(System::TObject* Sender);
  39. __property void * PointerTag = {read=FPointerTag, write=FPointerTag};
  40. __property TfcSelectionMethod SelectionMethod = {read=FSelectionMethod, write=SetSelectionMethod};
  41. __property int Tag = {read=FTag, write=FTag, nodefault};
  42. __property Classes::TNotifyEvent OnRefreshDesign = {read=FOnRefreshDesign, write=FOnRefreshDesign};
  43. public:
  44. #pragma option push -w-inl
  45. /* TCollectionItem.Create */ inline __fastcall virtual TfcCollectionItem(Classes::TCollection* Collection
  46. ) : Classes::TCollectionItem(Collection) { }
  47. #pragma option pop
  48. #pragma option push -w-inl
  49. /* TCollectionItem.Destroy */ inline __fastcall virtual ~TfcCollectionItem(void) { }
  50. #pragma option pop
  51. };
  52. class DELPHICLASS TfcCollection;
  53. class PASCALIMPLEMENTATION TfcCollection : public Classes::TCollection 
  54. {
  55. typedef Classes::TCollection inherited;
  56. private:
  57. Controls::TControl* FDesigner;
  58. TfcCollectionItem* __fastcall GetItems(int Index);
  59. protected:
  60. virtual void __fastcall SetDesigner(Controls::TControl* Value);
  61. public:
  62. __fastcall virtual ~TfcCollection(void);
  63. virtual TfcCollectionItem* __fastcall AddItem(void);
  64. __property Controls::TControl* Designer = {read=FDesigner, write=SetDesigner};
  65. __property TfcCollectionItem* Items[int Index] = {read=GetItems};
  66. public:
  67. #pragma option push -w-inl
  68. /* TCollection.Create */ inline __fastcall TfcCollection(TMetaClass* ItemClass) : Classes::TCollection(
  69. ItemClass) { }
  70. #pragma option pop
  71. };
  72. //-- var, const, procedure ---------------------------------------------------
  73. } /* namespace Fccollection */
  74. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  75. using namespace Fccollection;
  76. #endif
  77. #pragma option pop // -w-
  78. #pragma option pop // -Vx
  79. #pragma delphiheader end.
  80. //-- end unit ----------------------------------------------------------------
  81. #endif // fcCollection