NortonLikeListView.hpp 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 2002 by Borland Software Corporation
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'NortonLikeListView.pas' rev: 6.00
  5. #ifndef NortonLikeListViewHPP
  6. #define NortonLikeListViewHPP
  7. #pragma delphiheader begin
  8. #pragma option push -w-
  9. #pragma option push -Vx
  10. #include <Menus.hpp> // Pascal unit
  11. #include <ImgList.hpp> // Pascal unit
  12. #include <CommCtrl.hpp> // Pascal unit
  13. #include <ListViewColProperties.hpp> // Pascal unit
  14. #include <ComCtrls.hpp> // Pascal unit
  15. #include <Dialogs.hpp> // Pascal unit
  16. #include <Forms.hpp> // Pascal unit
  17. #include <Controls.hpp> // Pascal unit
  18. #include <Graphics.hpp> // Pascal unit
  19. #include <Classes.hpp> // Pascal unit
  20. #include <SysUtils.hpp> // Pascal unit
  21. #include <Messages.hpp> // Pascal unit
  22. #include <Windows.hpp> // Pascal unit
  23. #include <SysInit.hpp> // Pascal unit
  24. #include <System.hpp> // Pascal unit
  25. //-- user supplied -----------------------------------------------------------
  26. namespace Nortonlikelistview
  27. {
  28. //-- type declarations -------------------------------------------------------
  29. #pragma option push -b-
  30. enum TSelectMode { smAll, smNone, smInvert };
  31. #pragma option pop
  32. class DELPHICLASS TCustomNortonLikeListView;
  33. typedef void __fastcall (__closure *TSelectByMaskEvent)(TCustomNortonLikeListView* Control, bool Select);
  34. class PASCALIMPLEMENTATION TCustomNortonLikeListView : public Comctrls::TCustomListView
  35. {
  36. typedef Comctrls::TCustomListView inherited;
  37. private:
  38. Listviewcolproperties::TCustomListViewColProperties* FColProperties;
  39. bool FDontSelectItem;
  40. bool FDontUnSelectItem;
  41. int FSelCount;
  42. bool FNortonLike;
  43. TSelectByMaskEvent FOnSelectByMask;
  44. Comctrls::TListItem* FLastDeletedItem;
  45. HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
  46. HIDESBASE MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
  47. HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Message);
  48. HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Message);
  49. HIDESBASE MESSAGE void __fastcall WMNotify(Messages::TWMNotify &Message);
  50. HIDESBASE MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
  51. int __fastcall GetMarkedCount(void);
  52. Comctrls::TListItem* __fastcall GetMarkedFile(void);
  53. protected:
  54. bool FClearingItems;
  55. int FUpdatingSelection;
  56. virtual void __fastcall CreateWnd(void);
  57. virtual void __fastcall BeginSelectionUpdate(void);
  58. virtual void __fastcall EndSelectionUpdate(void);
  59. virtual bool __fastcall CanChangeSelection(Comctrls::TListItem* Item, bool Select);
  60. virtual void __fastcall ClearItems(void);
  61. DYNAMIC void __fastcall ColRightClick(Comctrls::TListColumn* Column, const Types::TPoint &Point);
  62. DYNAMIC void __fastcall Delete(Comctrls::TListItem* Item);
  63. virtual bool __fastcall DoSelectByMask(bool Select);
  64. DYNAMIC bool __fastcall ExCanChange(Comctrls::TListItem* Item, int Change, Word NewState, Word OldState);
  65. DYNAMIC void __fastcall InsertItem(Comctrls::TListItem* Item);
  66. virtual Listviewcolproperties::TCustomListViewColProperties* __fastcall NewColProperties(void);
  67. virtual void __fastcall FocusSomething(void);
  68. Comctrls::TListItem* __fastcall GetItemFromHItem(const tagLVITEMA &Item);
  69. virtual bool __fastcall GetValid(void);
  70. virtual int __fastcall GetSelCount(void);
  71. public:
  72. __fastcall virtual TCustomNortonLikeListView(Classes::TComponent* AOwner);
  73. Comctrls::TListItem* __fastcall ClosestUnselected(Comctrls::TListItem* Item);
  74. HIDESBASE void __fastcall SelectAll(TSelectMode Mode);
  75. void __fastcall SelectCurrentItem(bool FocusNext);
  76. __property Listviewcolproperties::TCustomListViewColProperties* ColProperties = {read=FColProperties, write=FColProperties, stored=false};
  77. __property MultiSelect = {default=1};
  78. __property bool NortonLike = {read=FNortonLike, write=FNortonLike, default=1};
  79. __property TSelectByMaskEvent OnSelectByMask = {read=FOnSelectByMask, write=FOnSelectByMask};
  80. __property int MarkedCount = {read=GetMarkedCount, nodefault};
  81. __property Comctrls::TListItem* MarkedFile = {read=GetMarkedFile};
  82. __property bool Valid = {read=GetValid, nodefault};
  83. public:
  84. #pragma option push -w-inl
  85. /* TCustomListView.Destroy */ inline __fastcall virtual ~TCustomNortonLikeListView(void) { }
  86. #pragma option pop
  87. public:
  88. #pragma option push -w-inl
  89. /* TWinControl.CreateParented */ inline __fastcall TCustomNortonLikeListView(HWND ParentWindow) : Comctrls::TCustomListView(ParentWindow) { }
  90. #pragma option pop
  91. };
  92. class DELPHICLASS TNortonLikeListView;
  93. class PASCALIMPLEMENTATION TNortonLikeListView : public TCustomNortonLikeListView
  94. {
  95. typedef TCustomNortonLikeListView inherited;
  96. __published:
  97. __property Align = {default=0};
  98. __property AllocBy = {default=0};
  99. __property Anchors = {default=3};
  100. __property BiDiMode ;
  101. __property BorderStyle = {default=1};
  102. __property BorderWidth = {default=0};
  103. __property Checkboxes = {default=0};
  104. __property Color = {default=-2147483643};
  105. __property ColumnClick = {default=1};
  106. __property Constraints ;
  107. __property Ctl3D ;
  108. __property Enabled = {default=1};
  109. __property Font ;
  110. __property FlatScrollBars = {default=0};
  111. __property FullDrag = {default=0};
  112. __property GridLines = {default=0};
  113. __property HideSelection = {default=1};
  114. __property HotTrack = {default=0};
  115. __property HotTrackStyles = {default=0};
  116. __property IconOptions ;
  117. __property Items ;
  118. __property LargeImages ;
  119. __property ReadOnly ;
  120. __property RowSelect = {default=0};
  121. __property ParentBiDiMode = {default=1};
  122. __property ParentColor = {default=1};
  123. __property ParentFont = {default=1};
  124. __property ParentShowHint = {default=1};
  125. __property PopupMenu ;
  126. __property ShowColumnHeaders = {default=1};
  127. __property ShowHint ;
  128. __property SmallImages ;
  129. __property StateImages ;
  130. __property TabOrder = {default=-1};
  131. __property TabStop = {default=0};
  132. __property ViewStyle = {default=0};
  133. __property Visible = {default=1};
  134. __property OnChange ;
  135. __property OnChanging ;
  136. __property OnClick ;
  137. __property OnColumnClick ;
  138. __property OnCustomDraw ;
  139. __property OwnerDraw = {default=0};
  140. __property OnCustomDrawItem ;
  141. __property OnCustomDrawSubItem ;
  142. __property OwnerData = {default=0};
  143. __property OnGetImageIndex ;
  144. __property OnCompare ;
  145. __property OnData ;
  146. __property OnDataFind ;
  147. __property OnDataHint ;
  148. __property OnDataStateChange ;
  149. __property OnDblClick ;
  150. __property OnDeletion ;
  151. __property OnDrawItem ;
  152. __property OnEdited ;
  153. __property OnEditing ;
  154. __property OnEndDock ;
  155. __property OnEnter ;
  156. __property OnExit ;
  157. __property OnInsert ;
  158. __property OnKeyDown ;
  159. __property OnKeyPress ;
  160. __property OnKeyUp ;
  161. __property OnMouseDown ;
  162. __property OnMouseMove ;
  163. __property OnMouseUp ;
  164. __property OnResize ;
  165. __property OnStartDock ;
  166. __property OnSelectItem ;
  167. __property NortonLike = {default=1};
  168. __property OnSelectByMask ;
  169. __property ColProperties ;
  170. public:
  171. #pragma option push -w-inl
  172. /* TCustomNortonLikeListView.Create */ inline __fastcall virtual TNortonLikeListView(Classes::TComponent* AOwner) : TCustomNortonLikeListView(AOwner) { }
  173. #pragma option pop
  174. public:
  175. #pragma option push -w-inl
  176. /* TCustomListView.Destroy */ inline __fastcall virtual ~TNortonLikeListView(void) { }
  177. #pragma option pop
  178. public:
  179. #pragma option push -w-inl
  180. /* TWinControl.CreateParented */ inline __fastcall TNortonLikeListView(HWND ParentWindow) : TCustomNortonLikeListView(ParentWindow) { }
  181. #pragma option pop
  182. };
  183. //-- var, const, procedure ---------------------------------------------------
  184. extern PACKAGE void __fastcall Register(void);
  185. } /* namespace Nortonlikelistview */
  186. using namespace Nortonlikelistview;
  187. #pragma option pop // -w-
  188. #pragma option pop // -Vx
  189. #pragma delphiheader end.
  190. //-- end unit ----------------------------------------------------------------
  191. #endif // NortonLikeListView