1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/forms/CopyLocal.h
Martin Prikryl 71754fc61f Renaming pas to cpp and adding generated hpp as h to guide git in recognizing future translation to C++
(not compilable)

Source commit: a9468bbb15a8c5f9d4381cdc0299c378a2fbe90a
2025-11-06 07:34:54 +01:00

52 lines
1.8 KiB
C++

//---------------------------------------------------------------------------
#ifndef CopyLocalH
#define CopyLocalH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "HistoryComboBox.h"
#include <Vcl.ExtCtrls.hpp>
#include <GUITools.h>
//---------------------------------------------------------------------------
class TCopyLocalDialog : public TForm
{
__published:
TImage *Image;
TLabel *DirectoryLabel;
THistoryComboBox *DirectoryEdit;
TButton *OkButton;
TButton *CancelButton;
TButton *LocalDirectoryBrowseButton;
TButton *HelpButton;
TCheckBox *NeverShowAgainCheck;
TPanel *ShortCutHintPanel;
TLabel *ShortCutHintLabel;
void __fastcall ShortCutHintLabelClick(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall DirectoryEditExit(TObject *Sender);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall LocalDirectoryBrowseButtonClick(TObject *Sender);
void __fastcall FormAfterMonitorDpiChanged(TObject *Sender, int OldDPI, int NewDPI);
private:
int FOptions;
void UpdateControls();
void ValidateDirectoryEdit();
UnicodeString GetDirectory();
UnicodeString GetFileMask();
void SetDirectoryAndFileMask(const UnicodeString & Directory, const UnicodeString & FileMask);
INTERFACE_HOOK
public:
TCopyLocalDialog(TComponent * Owner, bool Move, int Options);
bool Execute(UnicodeString & TargetDirectory, UnicodeString & FileMask, int & OutputOptions);
};
//---------------------------------------------------------------------------
#endif