GenerateUrl.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //---------------------------------------------------------------------------
  2. #ifndef GenerateUrlH
  3. #define GenerateUrlH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "SessionData.h"
  10. #include <Vcl.ComCtrls.hpp>
  11. //---------------------------------------------------------------------------
  12. class TGenerateUrlDialog : public TForm
  13. {
  14. __published:
  15. TGroupBox *ResultGroup;
  16. TMemo *ResultMemo;
  17. TButton *CancelBtn;
  18. TButton *HelpButton;
  19. TButton *ClipboardButton;
  20. TPageControl *OptionsPageControl;
  21. TTabSheet *UrlSheet;
  22. TTabSheet *ScriptSheet;
  23. TTabSheet *AssemblySheet;
  24. TCheckBox *UserNameCheck;
  25. TCheckBox *HostKeyCheck;
  26. TCheckBox *WinSCPSpecificCheck;
  27. TCheckBox *SaveExtensionCheck;
  28. TCheckBox *RemoteDirectoryCheck;
  29. TCheckBox *PasswordCheck;
  30. TLabel *Label2;
  31. TComboBox *ScriptFormatCombo;
  32. TLabel *Label1;
  33. TComboBox *AssemblyLanguageCombo;
  34. void __fastcall ControlChange(TObject *Sender);
  35. void __fastcall ClipboardButtonClick(TObject *Sender);
  36. void __fastcall HelpButtonClick(TObject *Sender);
  37. void __fastcall WMNCCreate(TWMNCCreate & Message);
  38. private:
  39. TSessionData * FData;
  40. TStrings * FPaths;
  41. bool FChanging;
  42. protected:
  43. void __fastcall UpdateControls();
  44. UnicodeString __fastcall GenerateUrl(UnicodeString Path);
  45. bool __fastcall IsFileUrl();
  46. virtual void __fastcall CreateParams(TCreateParams & Params);
  47. virtual void __fastcall Dispatch(void * AMessage);
  48. public:
  49. __fastcall TGenerateUrlDialog(TComponent * Owner, TSessionData * Data, TStrings * Paths);
  50. void __fastcall Execute();
  51. };
  52. //---------------------------------------------------------------------------
  53. #endif