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
54 lines
2.0 KiB
C++
54 lines
2.0 KiB
C++
//----------------------------------------------------------------------------
|
|
#ifndef CleanupH
|
|
#define CleanupH
|
|
//----------------------------------------------------------------------------
|
|
#include <System.Classes.hpp>
|
|
#include <Vcl.ComCtrls.hpp>
|
|
#include <Vcl.Controls.hpp>
|
|
#include <Vcl.StdCtrls.hpp>
|
|
//----------------------------------------------------------------------------
|
|
#include <Configuration.h>
|
|
#include <SessionData.h>
|
|
#include <WinInterface.h>
|
|
#include <GUITools.h>
|
|
//---------------------------------------------------------------------
|
|
class TCleanupDialog : public TForm
|
|
{
|
|
__published:
|
|
TButton *OKButton;
|
|
TButton *CancelButton;
|
|
TListView *DataListView;
|
|
TLabel *Label1;
|
|
TButton *CheckAllButton;
|
|
TButton *HelpButton;
|
|
void __fastcall DataListViewMouseDown(TObject *Sender,
|
|
TMouseButton Button, TShiftState Shift, int X, int Y);
|
|
void __fastcall DataListViewKeyUp(TObject *Sender, WORD &Key,
|
|
TShiftState Shift);
|
|
void __fastcall FormShow(TObject *Sender);
|
|
void __fastcall CheckAllButtonClick(TObject *Sender);
|
|
void __fastcall DataListViewInfoTip(TObject *Sender,
|
|
TListItem *Item, UnicodeString &InfoTip);
|
|
void __fastcall HelpButtonClick(TObject *Sender);
|
|
private:
|
|
std::vector<UnicodeString> FCaptions;
|
|
std::vector<UnicodeString> FLocations;
|
|
typedef void __fastcall (__closure *TCleanupEvent)();
|
|
std::vector<TCleanupEvent> FCleanupEvents;
|
|
bool FAnyData;
|
|
void __fastcall InitControls();
|
|
void __fastcall UpdateControls();
|
|
void __fastcall FindData();
|
|
void __fastcall AddLocation(int CaptionId, const UnicodeString & Location, TCleanupEvent Event);
|
|
void __fastcall AddRegistryLocation(int CaptionId, const UnicodeString & Location, TCleanupEvent Event);
|
|
|
|
INTERFACE_HOOK
|
|
|
|
public:
|
|
virtual __fastcall TCleanupDialog(TComponent * AOwner);
|
|
bool __fastcall Execute();
|
|
bool __fastcall AnyData();
|
|
};
|
|
//----------------------------------------------------------------------------
|
|
#endif
|