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

65 lines
2.1 KiB
C++

//---------------------------------------------------------------------------
#ifndef EditMaskH
#define EditMaskH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
#include <WinInterface.h>
#include <GUITools.h>
//---------------------------------------------------------------------------
class TEditMaskDialog : public TForm
{
__published:
TButton *OKBtn;
TButton *CancelBtn;
TGroupBox *FilesGroup;
TButton *HelpButton;
TButton *ClearButton;
TLabel *Label3;
TMemo *IncludeFileMasksMemo;
TLabel *Label1;
TMemo *ExcludeFileMasksMemo;
TGroupBox *DirectoriesGroup;
TLabel *Label2;
TLabel *Label4;
TMemo *IncludeDirectoryMasksMemo;
TMemo *ExcludeDirectoryMasksMemo;
TGroupBox *MaskGroup;
TMemo *MaskMemo;
TStaticText *MaskHintText;
TCheckBox *ExcludeDirectoryAllCheck;
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall ClearButtonClick(TObject *Sender);
void __fastcall FileMasksMemoExit(TObject *Sender);
void __fastcall DirectoryMasksMemoExit(TObject *Sender);
void __fastcall ControlChange(TObject *Sender);
void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall FormShow(TObject *Sender);
void __fastcall ExcludeDirectoryAllCheckClick(TObject *Sender);
void __fastcall ExcludeDirectoryMasksMemoChange(TObject *Sender);
public:
__fastcall TEditMaskDialog(TComponent* Owner);
bool __fastcall Execute(TFileMasks & Mask);
protected:
void __fastcall LoadFileMasks(const TFileMasks & Mask);
void __fastcall SaveFileMasks(TFileMasks & Mask);
void __fastcall LoadFileMasks(TMemo * Memo, TStrings * MasksStr);
void __fastcall UpdateControls();
INTERFACE_HOOK
private:
UnicodeString FExcludeDirectoryMasks;
bool FChanging;
};
//---------------------------------------------------------------------------
#endif