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) : Classes::TCollectionItem(Collection) { }
  46. #pragma option pop
  47. #pragma option push -w-inl
  48. /* TCollectionItem.Destroy */ inline __fastcall virtual ~TfcCollectionItem(void) { }
  49. #pragma option pop
  50. };
  51. class DELPHICLASS TfcCollection;
  52. class PASCALIMPLEMENTATION TfcCollection : public Classes::TCollection 
  53. {
  54. typedef Classes::TCollection inherited;
  55. private:
  56. Controls::TControl* FDesigner;
  57. TfcCollectionItem* __fastcall GetItems(int Index);
  58. protected:
  59. virtual void __fastcall SetDesigner(Controls::TControl* Value);
  60. public:
  61. __fastcall virtual ~TfcCollection(void);
  62. virtual TfcCollectionItem* __fastcall AddItem(void);
  63. __property Controls::TControl* Designer = {read=FDesigner, write=SetDesigner};
  64. __property TfcCollectionItem* Items[int Index] = {read=GetItems};
  65. public:
  66. #pragma option push -w-inl
  67. /* TCollection.Create */ inline __fastcall TfcCollection(TMetaClass* ItemClass) : Classes::TCollection(ItemClass) { }
  68. #pragma option pop
  69. };
  70. //-- var, const, procedure ---------------------------------------------------
  71. } /* namespace Fccollection */
  72. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  73. using namespace Fccollection;
  74. #endif
  75. #pragma option pop // -w-
  76. #pragma option pop // -Vx
  77. #pragma delphiheader end.
  78. //-- end unit ----------------------------------------------------------------
  79. #endif // fcCollection