SaveSession.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //----------------------------------------------------------------------------
  2. #ifndef SaveSessionH
  3. #define SaveSessionH
  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. //----------------------------------------------------------------------------
  16. #include <SessionData.h>
  17. //----------------------------------------------------------------------------
  18. class TSaveSessionDialog : public TForm
  19. {
  20. __published:
  21. TButton * OKButton;
  22. TButton * CancelButton;
  23. TComboBox * InputCombo;
  24. TLabel * InputLabel;
  25. TButton * HelpButton;
  26. TCheckBox *SavePasswordCheck;
  27. void __fastcall InputComboChange(TObject * Sender);
  28. void __fastcall HelpButtonClick(TObject *Sender);
  29. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  30. void __fastcall FormShow(TObject *Sender);
  31. public:
  32. virtual __fastcall TSaveSessionDialog(TComponent * AOwner, TStrings * Items,
  33. TSessionData * OriginalSession, bool AllowSavePassword);
  34. bool __fastcall Execute(AnsiString & SessionName, bool & SavePassword);
  35. private:
  36. TSessionData * FOriginalSession;
  37. void __fastcall UpdateControls();
  38. };
  39. //----------------------------------------------------------------------------
  40. #endif