1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/forms/CopyParamPreset.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

61 lines
1.9 KiB
C++

//---------------------------------------------------------------------------
#ifndef CopyParamPresetH
#define CopyParamPresetH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "CopyParams.h"
//---------------------------------------------------------------------------
class TCopyParamPresetDialog : public TForm
{
__published:
TButton *OkButton;
TButton *CancelButton;
TLabel *Label1;
TEdit *DescriptionEdit;
TCopyParamsFrame *CopyParamsFrame;
TGroupBox *RuleGroup;
TLabel *Label2;
TEdit *HostNameEdit;
TCheckBox *HasRuleCheck;
TLabel *Label3;
TEdit *UserNameEdit;
TLabel *Label4;
TEdit *RemoteDirectoryEdit;
TLabel *Label5;
TEdit *LocalDirectoryEdit;
TButton *CurrentRuleButton;
TButton *HelpButton;
TStaticText *RuleMaskHintText;
void __fastcall ControlChange(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall CurrentRuleButtonClick(TObject *Sender);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall MaskEditExit(TObject *Sender);
private:
TCopyParamPresetMode FMode;
TCopyParamList * FCopyParamList;
int FIndex;
TCopyParamRuleData * FCurrentRuleData;
protected:
void __fastcall UpdateControls();
TCopyParamRule * __fastcall GetRule();
void __fastcall SetRuleData(const TCopyParamRuleData & Data);
INTERFACE_HOOK
public:
__fastcall TCopyParamPresetDialog(TComponent * Owner,
TCopyParamPresetMode Mode, TCopyParamRuleData * CurrentRuleData);
bool __fastcall Execute(TCopyParamList * CopyParamList, int & Index,
const TCopyParamType & DefaultCopyParams);
};
//---------------------------------------------------------------------------
#endif