Cleanup.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //----------------------------------------------------------------------------
  2. #ifndef CleanupH
  3. #define CleanupH
  4. //----------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.ComCtrls.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. //----------------------------------------------------------------------------
  10. #include <Configuration.h>
  11. #include <SessionData.h>
  12. #include <WinInterface.h>
  13. #include <GUITools.h>
  14. //---------------------------------------------------------------------
  15. class TCleanupDialog : public TForm
  16. {
  17. __published:
  18. TButton *OKButton;
  19. TButton *CancelButton;
  20. TListView *DataListView;
  21. TLabel *Label1;
  22. TButton *CheckAllButton;
  23. TButton *HelpButton;
  24. void __fastcall DataListViewMouseDown(TObject *Sender,
  25. TMouseButton Button, TShiftState Shift, int X, int Y);
  26. void __fastcall DataListViewKeyUp(TObject *Sender, WORD &Key,
  27. TShiftState Shift);
  28. void __fastcall FormShow(TObject *Sender);
  29. void __fastcall CheckAllButtonClick(TObject *Sender);
  30. void __fastcall DataListViewInfoTip(TObject *Sender,
  31. TListItem *Item, UnicodeString &InfoTip);
  32. void __fastcall HelpButtonClick(TObject *Sender);
  33. private:
  34. std::vector<UnicodeString> FCaptions;
  35. std::vector<UnicodeString> FLocations;
  36. typedef void __fastcall (__closure *TCleanupEvent)();
  37. std::vector<TCleanupEvent> FCleanupEvents;
  38. bool FAnyData;
  39. void __fastcall InitControls();
  40. void __fastcall UpdateControls();
  41. void __fastcall FindData();
  42. void __fastcall AddLocation(int CaptionId, const UnicodeString & Location, TCleanupEvent Event);
  43. void __fastcall AddRegistryLocation(int CaptionId, const UnicodeString & Location, TCleanupEvent Event);
  44. INTERFACE_HOOK;
  45. public:
  46. virtual __fastcall TCleanupDialog(TComponent * AOwner);
  47. bool __fastcall Execute();
  48. bool __fastcall AnyData();
  49. };
  50. //----------------------------------------------------------------------------
  51. #endif