mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
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
57 lines
2.1 KiB
C++
57 lines
2.1 KiB
C++
//---------------------------------------------------------------------------
|
|
#ifndef SymlinkH
|
|
#define SymlinkH
|
|
//---------------------------------------------------------------------------
|
|
#include <Classes.hpp>
|
|
#include <Controls.hpp>
|
|
#include <StdCtrls.hpp>
|
|
#include <Forms.hpp>
|
|
//---------------------------------------------------------------------------
|
|
#include "CopyParam.h"
|
|
#include "GUITools.h"
|
|
//---------------------------------------------------------------------------
|
|
class TSymlinkDialog : public TForm
|
|
{
|
|
__published:
|
|
TGroupBox *SymlinkGroup;
|
|
TButton *OkButton;
|
|
TButton *CancelButton;
|
|
TLabel *FileNameLabel;
|
|
TEdit *FileNameEdit;
|
|
TLabel *Label1;
|
|
TEdit *PointToEdit;
|
|
TCheckBox *HardLinkCheck;
|
|
TButton *HelpButton;
|
|
void __fastcall ControlChange(TObject *Sender);
|
|
void __fastcall FormShow(TObject *Sender);
|
|
void __fastcall HelpButtonClick(TObject *Sender);
|
|
private:
|
|
bool FAllowHardLink;
|
|
bool FEdit;
|
|
TOperationSide FSide;
|
|
void __fastcall SetFileName(UnicodeString value);
|
|
UnicodeString __fastcall GetFileName();
|
|
void __fastcall SetPointTo(UnicodeString value);
|
|
UnicodeString __fastcall GetPointTo();
|
|
void __fastcall SetSymbolicLink(bool value);
|
|
bool __fastcall GetSymbolicLink();
|
|
void __fastcall SetAllowHardLink(bool value);
|
|
void __fastcall SetEdit(bool value);
|
|
void __fastcall SetSide(TOperationSide value);
|
|
public:
|
|
bool __fastcall Execute();
|
|
__fastcall TSymlinkDialog(TComponent* Owner);
|
|
__property bool AllowHardLink = { read = FAllowHardLink, write = SetAllowHardLink };
|
|
__property bool Edit = { read = FEdit, write = SetEdit };
|
|
__property UnicodeString FileName = { read = GetFileName, write = SetFileName };
|
|
__property UnicodeString PointTo = { read = GetPointTo, write = SetPointTo };
|
|
__property TOperationSide Side = { read = FSide, write = SetSide };
|
|
__property bool SymbolicLink = { read = GetSymbolicLink, write = SetSymbolicLink };
|
|
protected:
|
|
void __fastcall UpdateControls();
|
|
|
|
INTERFACE_HOOK
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
#endif
|