NortonLikeListView.hpp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. #pragma option push -b-
  33. enum TNortonLikeMode { nlOn, nlOff, nlKeyboard };
  34. #pragma option pop
  35. class DELPHICLASS TCustomNortonLikeListView;
  36. typedef void __fastcall (__closure *TSelectByMaskEvent)(TCustomNortonLikeListView* Control, bool Select);
  37. class PASCALIMPLEMENTATION TCustomNortonLikeListView : public Comctrls::TCustomListView
  38. {
  39. typedef Comctrls::TCustomListView inherited;
  40. private:
  41. Listviewcolproperties::TCustomListViewColProperties* FColProperties;
  42. bool FDontSelectItem;
  43. bool FDontUnSelectItem;
  44. int FSelCount;
  45. TNortonLikeMode FNortonLike;
  46. TSelectByMaskEvent FOnSelectByMask;
  47. Comctrls::TListItem* FLastDeletedItem;
  48. bool FFocusingItem;
  49. bool FManageSelection;
  50. int FFirstSelected;
  51. int FLastSelected;
  52. bool FFocusedWhenClicked;
  53. HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
  54. HIDESBASE MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
  55. HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Message);
  56. HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Message);
  57. HIDESBASE MESSAGE void __fastcall WMNotify(Messages::TWMNotify &Message);
  58. HIDESBASE MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
  59. int __fastcall GetMarkedCount(void);
  60. Comctrls::TListItem* __fastcall GetMarkedFile(void);
  61. void __fastcall ItemSelected(Comctrls::TListItem* Item, int Index);
  62. void __fastcall ItemUnselected(Comctrls::TListItem* Item, int Index);
  63. protected:
  64. bool FClearingItems;
  65. int FUpdatingSelection;
  66. virtual void __fastcall CreateWnd(void);
  67. virtual void __fastcall BeginSelectionUpdate(void);
  68. virtual void __fastcall EndSelectionUpdate(void);
  69. virtual bool __fastcall CanChangeSelection(Comctrls::TListItem* Item, bool Select);
  70. virtual void __fastcall ClearItems(void);
  71. void __fastcall ItemsReordered(void);
  72. DYNAMIC void __fastcall ColRightClick(Comctrls::TListColumn* Column, const Types::TPoint &Point);
  73. DYNAMIC void __fastcall Delete(Comctrls::TListItem* Item);
  74. virtual bool __fastcall DoSelectByMask(bool Select);
  75. DYNAMIC bool __fastcall ExCanChange(Comctrls::TListItem* Item, int Change, Word NewState, Word OldState);
  76. DYNAMIC void __fastcall InsertItem(Comctrls::TListItem* Item);
  77. virtual Listviewcolproperties::TCustomListViewColProperties* __fastcall NewColProperties(void);
  78. virtual void __fastcall FocusSomething(void);
  79. virtual bool __fastcall EnableDragOnClick(void);
  80. void __fastcall FocusItem(Comctrls::TListItem* Item);
  81. Comctrls::TListItem* __fastcall GetItemFromHItem(const tagLVITEMA &Item);
  82. virtual bool __fastcall GetValid(void);
  83. virtual int __fastcall GetSelCount(void);
  84. void __fastcall DDBeforeDrag(void);
  85. DYNAMIC bool __fastcall CanEdit(Comctrls::TListItem* Item);
  86. public:
  87. __fastcall virtual TCustomNortonLikeListView(Classes::TComponent* AOwner);
  88. __fastcall virtual ~TCustomNortonLikeListView(void);
  89. Comctrls::TListItem* __fastcall ClosestUnselected(Comctrls::TListItem* Item);
  90. HIDESBASE void __fastcall SelectAll(TSelectMode Mode);
  91. void __fastcall SelectCurrentItem(bool FocusNext);
  92. HIDESBASE Comctrls::TListItem* __fastcall GetNextItem(Comctrls::TListItem* StartItem, Comctrls::TSearchDirection Direction, Comctrls::TItemStates States);
  93. __property Listviewcolproperties::TCustomListViewColProperties* ColProperties = {read=FColProperties, write=FColProperties, stored=false};
  94. __property MultiSelect = {default=1};
  95. __property TNortonLikeMode NortonLike = {read=FNortonLike, write=FNortonLike, default=0};
  96. __property TSelectByMaskEvent OnSelectByMask = {read=FOnSelectByMask, write=FOnSelectByMask};
  97. __property int MarkedCount = {read=GetMarkedCount, nodefault};
  98. __property Comctrls::TListItem* MarkedFile = {read=GetMarkedFile};
  99. __property bool Valid = {read=GetValid, nodefault};
  100. public:
  101. #pragma option push -w-inl
  102. /* TWinControl.CreateParented */ inline __fastcall TCustomNortonLikeListView(HWND ParentWindow) : Comctrls::TCustomListView(ParentWindow) { }
  103. #pragma option pop
  104. };
  105. class DELPHICLASS TNortonLikeListView;
  106. class PASCALIMPLEMENTATION TNortonLikeListView : public TCustomNortonLikeListView
  107. {
  108. typedef TCustomNortonLikeListView inherited;
  109. __published:
  110. __property Align = {default=0};
  111. __property AllocBy = {default=0};
  112. __property Anchors = {default=3};
  113. __property BiDiMode ;
  114. __property BorderStyle = {default=1};
  115. __property BorderWidth = {default=0};
  116. __property Checkboxes = {default=0};
  117. __property Color = {default=-2147483643};
  118. __property ColumnClick = {default=1};
  119. __property Constraints ;
  120. __property Ctl3D ;
  121. __property Enabled = {default=1};
  122. __property Font ;
  123. __property FlatScrollBars = {default=0};
  124. __property FullDrag = {default=0};
  125. __property GridLines = {default=0};
  126. __property HideSelection = {default=1};
  127. __property HotTrack = {default=0};
  128. __property HotTrackStyles = {default=0};
  129. __property IconOptions ;
  130. __property Items ;
  131. __property LargeImages ;
  132. __property ReadOnly ;
  133. __property RowSelect = {default=0};
  134. __property ParentBiDiMode = {default=1};
  135. __property ParentColor = {default=1};
  136. __property ParentFont = {default=1};
  137. __property ParentShowHint = {default=1};
  138. __property PopupMenu ;
  139. __property ShowColumnHeaders = {default=1};
  140. __property ShowHint ;
  141. __property SmallImages ;
  142. __property StateImages ;
  143. __property TabOrder = {default=-1};
  144. __property TabStop = {default=0};
  145. __property ViewStyle = {default=0};
  146. __property Visible = {default=1};
  147. __property OnChange ;
  148. __property OnChanging ;
  149. __property OnClick ;
  150. __property OnColumnClick ;
  151. __property OnCustomDraw ;
  152. __property OwnerDraw = {default=0};
  153. __property OnCustomDrawItem ;
  154. __property OnCustomDrawSubItem ;
  155. __property OwnerData = {default=0};
  156. __property OnGetImageIndex ;
  157. __property OnCompare ;
  158. __property OnData ;
  159. __property OnDataFind ;
  160. __property OnDataHint ;
  161. __property OnDataStateChange ;
  162. __property OnDblClick ;
  163. __property OnDeletion ;
  164. __property OnDrawItem ;
  165. __property OnEdited ;
  166. __property OnEditing ;
  167. __property OnEndDock ;
  168. __property OnEnter ;
  169. __property OnExit ;
  170. __property OnInsert ;
  171. __property OnKeyDown ;
  172. __property OnKeyPress ;
  173. __property OnKeyUp ;
  174. __property OnMouseDown ;
  175. __property OnMouseMove ;
  176. __property OnMouseUp ;
  177. __property OnResize ;
  178. __property OnStartDock ;
  179. __property OnSelectItem ;
  180. __property NortonLike = {default=0};
  181. __property OnSelectByMask ;
  182. __property ColProperties ;
  183. public:
  184. #pragma option push -w-inl
  185. /* TCustomNortonLikeListView.Create */ inline __fastcall virtual TNortonLikeListView(Classes::TComponent* AOwner) : TCustomNortonLikeListView(AOwner) { }
  186. #pragma option pop
  187. #pragma option push -w-inl
  188. /* TCustomNortonLikeListView.Destroy */ inline __fastcall virtual ~TNortonLikeListView(void) { }
  189. #pragma option pop
  190. public:
  191. #pragma option push -w-inl
  192. /* TWinControl.CreateParented */ inline __fastcall TNortonLikeListView(HWND ParentWindow) : TCustomNortonLikeListView(ParentWindow) { }
  193. #pragma option pop
  194. };
  195. //-- var, const, procedure ---------------------------------------------------
  196. extern PACKAGE void __fastcall Register(void);
  197. } /* namespace Nortonlikelistview */
  198. using namespace Nortonlikelistview;
  199. #pragma option pop // -w-
  200. #pragma option pop // -Vx
  201. #pragma delphiheader end.
  202. //-- end unit ----------------------------------------------------------------
  203. #endif // NortonLikeListView