ImportSessions.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include <Vcl.ExtCtrls.hpp>
  12. //---------------------------------------------------------------------
  13. class TImportSessionsDialog : public TForm
  14. {
  15. __published:
  16. TButton *OKButton;
  17. TButton *CancelButton;
  18. TListView *SessionListView2;
  19. TLabel *Label;
  20. TButton *CheckAllButton;
  21. TCheckBox *ImportKeysCheck;
  22. TButton *HelpButton;
  23. TComboBox *SourceComboBox;
  24. TPanel *ErrorPanel;
  25. TLabel *ErrorLabel;
  26. void __fastcall SessionListView2InfoTip(TObject *Sender,
  27. TListItem *Item, UnicodeString &InfoTip);
  28. void __fastcall SessionListView2MouseDown(TObject *Sender,
  29. TMouseButton Button, TShiftState Shift, int X, int Y);
  30. void __fastcall SessionListView2KeyUp(TObject *Sender, WORD &Key,
  31. TShiftState Shift);
  32. void __fastcall FormShow(TObject *Sender);
  33. void __fastcall CheckAllButtonClick(TObject *Sender);
  34. void __fastcall HelpButtonClick(TObject *Sender);
  35. void __fastcall SourceComboBoxSelect(TObject *Sender);
  36. private:
  37. TStrings * FErrors;
  38. void __fastcall UpdateControls();
  39. void __fastcall LoadSessions();
  40. void __fastcall ClearSelections();
  41. void __fastcall SaveSelection();
  42. TStoredSessionList * __fastcall GetSessionList(int Index);
  43. public:
  44. virtual __fastcall TImportSessionsDialog(TComponent * AOwner);
  45. void __fastcall Init(TList * SessionListsList, TStrings * Errors);
  46. bool __fastcall Execute(bool & ImportKeys);
  47. };
  48. //----------------------------------------------------------------------------
  49. #endif