ImportSessions.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //----------------------------------------------------------------------------
  2. #ifndef ImportSessionsH
  3. #define ImportSessionsH
  4. //----------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.ComCtrls.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. //---------------------------------------------------------------------
  10. #include <SessionData.h>
  11. //---------------------------------------------------------------------
  12. class TImportSessionsDialog : public TForm
  13. {
  14. __published:
  15. TButton *OKButton;
  16. TButton *CancelButton;
  17. TListView *SessionListView;
  18. TLabel *Label1;
  19. TButton *CheckAllButton;
  20. TCheckBox *ImportKeysCheck;
  21. TButton *HelpButton;
  22. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  23. void __fastcall SessionListViewInfoTip(TObject *Sender,
  24. TListItem *Item, UnicodeString &InfoTip);
  25. void __fastcall SessionListViewMouseDown(TObject *Sender,
  26. TMouseButton Button, TShiftState Shift, int X, int Y);
  27. void __fastcall SessionListViewKeyUp(TObject *Sender, WORD &Key,
  28. TShiftState Shift);
  29. void __fastcall FormShow(TObject *Sender);
  30. void __fastcall CheckAllButtonClick(TObject *Sender);
  31. void __fastcall HelpButtonClick(TObject *Sender);
  32. private:
  33. TStoredSessionList *FSessionList;
  34. void __fastcall UpdateControls();
  35. void __fastcall SetSessionList(TStoredSessionList *value);
  36. void __fastcall LoadSessions();
  37. bool __fastcall GetImportKeys();
  38. public:
  39. virtual __fastcall TImportSessionsDialog(TComponent* AOwner);
  40. __property TStoredSessionList *SessionList = { read=FSessionList, write=SetSessionList };
  41. __property bool ImportKeys = { read=GetImportKeys };
  42. };
  43. //----------------------------------------------------------------------------
  44. #endif