ImportSessions.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //----------------------------------------------------------------------------
  2. #ifndef ImportSessionsH
  3. #define ImportSessionsH
  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. #include <SessionData.h>
  17. //---------------------------------------------------------------------
  18. class TImportSessionsDialog : public TForm
  19. {
  20. __published:
  21. TButton *OKButton;
  22. TButton *CancelButton;
  23. TListView *SessionListView;
  24. TLabel *Label1;
  25. TButton *CheckAllButton;
  26. TCheckBox *ImportKeysCheck;
  27. TButton *HelpButton;
  28. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  29. void __fastcall SessionListViewInfoTip(TObject *Sender,
  30. TListItem *Item, AnsiString &InfoTip);
  31. void __fastcall SessionListViewMouseDown(TObject *Sender,
  32. TMouseButton Button, TShiftState Shift, int X, int Y);
  33. void __fastcall SessionListViewKeyUp(TObject *Sender, WORD &Key,
  34. TShiftState Shift);
  35. void __fastcall FormShow(TObject *Sender);
  36. void __fastcall CheckAllButtonClick(TObject *Sender);
  37. void __fastcall HelpButtonClick(TObject *Sender);
  38. private:
  39. TStoredSessionList *FSessionList;
  40. void __fastcall UpdateControls();
  41. void __fastcall SetSessionList(TStoredSessionList *value);
  42. void __fastcall LoadSessions();
  43. bool __fastcall GetImportKeys();
  44. public:
  45. virtual __fastcall TImportSessionsDialog(TComponent* AOwner);
  46. __property TStoredSessionList *SessionList = { read=FSessionList, write=SetSessionList };
  47. __property bool ImportKeys = { read=GetImportKeys };
  48. };
  49. //----------------------------------------------------------------------------
  50. #endif