ImportSessions.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. TLabel *Label2;
  26. TButton *CheckAllButton;
  27. TCheckBox *ImportKeysCheck;
  28. TButton *HelpButton;
  29. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  30. void __fastcall SessionListViewInfoTip(TObject *Sender,
  31. TListItem *Item, AnsiString &InfoTip);
  32. void __fastcall SessionListViewMouseDown(TObject *Sender,
  33. TMouseButton Button, TShiftState Shift, int X, int Y);
  34. void __fastcall SessionListViewKeyUp(TObject *Sender, WORD &Key,
  35. TShiftState Shift);
  36. void __fastcall FormShow(TObject *Sender);
  37. void __fastcall CheckAllButtonClick(TObject *Sender);
  38. void __fastcall HelpButtonClick(TObject *Sender);
  39. private:
  40. TStoredSessionList *FSessionList;
  41. void __fastcall UpdateControls();
  42. void __fastcall SetSessionList(TStoredSessionList *value);
  43. void __fastcall LoadSessions();
  44. bool __fastcall GetImportKeys();
  45. public:
  46. virtual __fastcall TImportSessionsDialog(TComponent* AOwner);
  47. __property TStoredSessionList *SessionList = { read=FSessionList, write=SetSessionList };
  48. __property bool ImportKeys = { read=GetImportKeys };
  49. };
  50. //----------------------------------------------------------------------------
  51. #endif