Cleanup.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //----------------------------------------------------------------------------
  2. #ifndef CleanupH
  3. #define CleanupH
  4. //----------------------------------------------------------------------------
  5. #include <vcl\System.hpp>
  6. #include <vcl\Windows.hpp>
  7. #include <vcl\SysUtils.hpp>
  8. #include <vcl\Classes.hpp>
  9. #include <vcl\Graphics.hpp>
  10. #include <vcl\StdCtrls.hpp>
  11. #include <vcl\Forms.hpp>
  12. #include <vcl\Controls.hpp>
  13. #include <vcl\Buttons.hpp>
  14. #include <vcl\ExtCtrls.hpp>
  15. #include <ComCtrls.hpp>
  16. //----------------------------------------------------------------------------
  17. #include <Configuration.h>
  18. #include <SessionData.h>
  19. #include <WinInterface.h>
  20. //---------------------------------------------------------------------
  21. enum TWinSCPData {wdConfiguration = 1, wdStoredSessions, wdHostKeys,
  22. wdConfigurationIniFile, wdRandomSeedFile, wdTemporaryFolders };
  23. //---------------------------------------------------------------------
  24. class TCleanupDialog : public TForm
  25. {
  26. __published:
  27. TButton *OKButton;
  28. TButton *CancelButton;
  29. TListView *DataListView;
  30. TLabel *Label1;
  31. TButton *CheckAllButton;
  32. TButton *HelpButton;
  33. void __fastcall DataListViewMouseDown(TObject *Sender,
  34. TMouseButton Button, TShiftState Shift, int X, int Y);
  35. void __fastcall DataListViewKeyUp(TObject *Sender, WORD &Key,
  36. TShiftState Shift);
  37. void __fastcall FormShow(TObject *Sender);
  38. void __fastcall CheckAllButtonClick(TObject *Sender);
  39. void __fastcall DataListViewInfoTip(TObject *Sender,
  40. TListItem *Item, AnsiString &InfoTip);
  41. void __fastcall HelpButtonClick(TObject *Sender);
  42. private:
  43. TStoredSessionList *FSessionList;
  44. TConfiguration * FConfiguration;
  45. void __fastcall InitControls();
  46. void __fastcall UpdateControls();
  47. void __fastcall SetCleanupData(TWinSCPData Data, Boolean value);
  48. Boolean __fastcall GetCleanupData(TWinSCPData Data);
  49. public:
  50. virtual __fastcall TCleanupDialog(TComponent* AOwner);
  51. __property TStoredSessionList *SessionList = { read=FSessionList, write=FSessionList };
  52. __property TConfiguration * Configuration = { read=FConfiguration, write=FConfiguration };
  53. __property Boolean CleanupData[TWinSCPData Data] = { read=GetCleanupData, write=SetCleanupData };
  54. };
  55. //----------------------------------------------------------------------------
  56. #endif