Cleanup.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 };
  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. void __fastcall DataListViewMouseDown(TObject *Sender,
  33. TMouseButton Button, TShiftState Shift, int X, int Y);
  34. void __fastcall DataListViewKeyUp(TObject *Sender, WORD &Key,
  35. TShiftState Shift);
  36. void __fastcall FormShow(TObject *Sender);
  37. void __fastcall CheckAllButtonClick(TObject *Sender);
  38. void __fastcall DataListViewInfoTip(TObject *Sender,
  39. TListItem *Item, AnsiString &InfoTip);
  40. private:
  41. TStoredSessionList *FSessionList;
  42. TConfiguration * FConfiguration;
  43. void __fastcall InitControls();
  44. void __fastcall UpdateControls();
  45. void __fastcall SetCleanupData(TWinSCPData Data, Boolean value);
  46. Boolean __fastcall GetCleanupData(TWinSCPData Data);
  47. public:
  48. virtual __fastcall TCleanupDialog(TComponent* AOwner);
  49. __property TStoredSessionList *SessionList = { read=FSessionList, write=FSessionList };
  50. __property TConfiguration * Configuration = { read=FConfiguration, write=FConfiguration };
  51. __property Boolean CleanupData[TWinSCPData Data] = { read=GetCleanupData, write=SetCleanupData };
  52. };
  53. //----------------------------------------------------------------------------
  54. #endif