1
0

NortonLikeListView.hpp 8.6 KB

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