GenerateUrl.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. TLabel *ScriptDescriptionLabel;
  35. TLabel *AssemblyDescriptionLabel;
  36. void __fastcall ControlChange(TObject *Sender);
  37. void __fastcall ClipboardButtonClick(TObject *Sender);
  38. void __fastcall HelpButtonClick(TObject *Sender);
  39. void __fastcall WMNCCreate(TWMNCCreate & Message);
  40. private:
  41. TSessionData * FData;
  42. TStrings * FPaths;
  43. bool FChanging;
  44. protected:
  45. void __fastcall UpdateControls();
  46. UnicodeString __fastcall GenerateUrl(UnicodeString Path);
  47. bool __fastcall IsFileUrl();
  48. virtual void __fastcall CreateParams(TCreateParams & Params);
  49. virtual void __fastcall Dispatch(void * AMessage);
  50. public:
  51. __fastcall TGenerateUrlDialog(TComponent * Owner, TSessionData * Data, TStrings * Paths);
  52. void __fastcall Execute();
  53. };
  54. //---------------------------------------------------------------------------
  55. #endif