Cleanup.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. enum TWinSCPData {wdConfiguration = 1, wdStoredSessions, wdHostKeys,
  16. wdConfigurationIniFile, wdRandomSeedFile, wdTemporaryFolders };
  17. //---------------------------------------------------------------------
  18. class TCleanupDialog : public TForm
  19. {
  20. __published:
  21. TButton *OKButton;
  22. TButton *CancelButton;
  23. TListView *DataListView;
  24. TLabel *Label1;
  25. TButton *CheckAllButton;
  26. TButton *HelpButton;
  27. void __fastcall DataListViewMouseDown(TObject *Sender,
  28. TMouseButton Button, TShiftState Shift, int X, int Y);
  29. void __fastcall DataListViewKeyUp(TObject *Sender, WORD &Key,
  30. TShiftState Shift);
  31. void __fastcall FormShow(TObject *Sender);
  32. void __fastcall CheckAllButtonClick(TObject *Sender);
  33. void __fastcall DataListViewInfoTip(TObject *Sender,
  34. TListItem *Item, UnicodeString &InfoTip);
  35. void __fastcall HelpButtonClick(TObject *Sender);
  36. private:
  37. TStoredSessionList *FSessionList;
  38. TConfiguration * FConfiguration;
  39. void __fastcall InitControls();
  40. void __fastcall UpdateControls();
  41. bool __fastcall GetCleanupData(TWinSCPData Data);
  42. INTERFACE_HOOK;
  43. public:
  44. virtual __fastcall TCleanupDialog(TComponent* AOwner);
  45. __property TStoredSessionList *SessionList = { read=FSessionList, write=FSessionList };
  46. __property TConfiguration * Configuration = { read=FConfiguration, write=FConfiguration };
  47. __property Boolean CleanupData[TWinSCPData Data] = { read=GetCleanupData };
  48. };
  49. //----------------------------------------------------------------------------
  50. #endif