1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/forms/GenerateUrl.h
Martin Prikryl 74fdf539de Clang imposed changes that should be noop and have no effect on classic compiler (2nd after 92ba1e3f0 + preceding commits)
Mostly
– explicit static global variables
– const, sign and down casts safety
– same-named variables in nested scopes
– incorrectly identified uninitialized variables
– semicolon after function implementation
– unused variables, fields, arguments and macros
– exact include filename case
– field initialization order
– typename use
– struct vs class declarations
– incorrectly identified uninitialized variables
– refactoring to solve Clang internal compiler error when using new variable in __finally block

Source commit: 3da995ff5169eefcfe3b3b7cc0d019c660096c07
2025-06-24 16:32:34 +02:00

89 lines
3.0 KiB
C++

//---------------------------------------------------------------------------
#ifndef GenerateUrlH
#define GenerateUrlH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.Menus.hpp>
#include <System.Actions.hpp>
#include <Vcl.ActnList.hpp>
#include <Vcl.StdActns.hpp>
//---------------------------------------------------------------------------
#include "SessionData.h"
#include <WinInterface.h>
#include <GUITools.h>
//---------------------------------------------------------------------------
class TGenerateUrlDialog : public TForm
{
__published:
TGroupBox *ResultGroup;
TMemo *ResultMemo;
TButton *CancelBtn;
TButton *HelpButton;
TButton *ClipboardButton;
TPageControl *OptionsPageControl;
TTabSheet *UrlSheet;
TTabSheet *ScriptSheet;
TTabSheet *AssemblySheet;
TCheckBox *UserNameCheck;
TCheckBox *HostKeyCheck;
TCheckBox *WinSCPSpecificCheck;
TCheckBox *SaveExtensionCheck;
TCheckBox *RemoteDirectoryCheck;
TCheckBox *PasswordCheck;
TLabel *Label2;
TComboBox *ScriptFormatCombo;
TLabel *Label1;
TComboBox *AssemblyLanguageCombo;
TLabel *ScriptDescriptionLabel;
TLabel *AssemblyDescriptionLabel;
TCheckBox *RawSettingsCheck;
void __fastcall ControlChange(TObject *Sender);
void __fastcall ClipboardButtonClick(TObject *Sender);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall WMNCCreate(TWMNCCreate & Message);
void __fastcall FormShow(TObject *Sender);
private:
TSessionData * FData;
std::unique_ptr<TStrings> FPaths;
bool FPathsSample;
bool FChanging;
TRichEdit * FResultMemoWithLinks;
bool FTransfer;
bool FToRemote;
bool FMove;
int FCopyParamAttrs;
UnicodeString FPath;
TFilesSelected FFilesSelected;
UnicodeString FSourcePath;
TCopyParamType FCopyParam;
bool FUrlCounted;
bool FScriptCounted;
bool FAssemblyCounted;
protected:
void __fastcall UpdateControls();
UnicodeString __fastcall GenerateUrl(UnicodeString Path);
bool __fastcall IsFileUrl();
virtual void __fastcall CreateParams(TCreateParams & Params);
virtual void __fastcall Dispatch(void * AMessage);
UnicodeString __fastcall GenerateUrl();
UnicodeString __fastcall GenerateScript(UnicodeString & ScriptDescription);
UnicodeString __fastcall GenerateAssemblyCode(UnicodeString & AssemblyDescription);
void __fastcall AddSampleDescription(UnicodeString & Description);
INTERFACE_HOOK
public:
__fastcall TGenerateUrlDialog(
TComponent * Owner, TSessionData * Data, TFilesSelected FilesSelected, TStrings * Paths,
bool Transfer, bool ToRemote, bool Move, int CopyParamAttrs, const UnicodeString & Path, const TCopyParamType & CopyParam);
void __fastcall Execute();
};
//---------------------------------------------------------------------------
#endif