/
Copy.h
92 lines (90 loc) · 3.44 KB
/
Copy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//---------------------------------------------------------------------------
#ifndef CopyH
#define CopyH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Mask.hpp>
#include <ExtCtrls.hpp>
#include <HistoryComboBox.hpp>
#include <Vcl.Imaging.pngimage.hpp>
#include "Rights.h"
#include "CopyParams.h"
#include <Menus.hpp>
//---------------------------------------------------------------------------
class TCopyDialog : public TForm
{
__published:
TLabel *DirectoryLabel;
THistoryComboBox *LocalDirectoryEdit;
THistoryComboBox *RemoteDirectoryEdit;
TButton *OkButton;
TButton *CancelButton;
TButton *LocalDirectoryBrowseButton;
TCheckBox *QueueCheck2;
TButton *HelpButton;
TCheckBox *NeverShowAgainCheck;
TButton *TransferSettingsButton;
TGroupBox *CopyParamGroup;
TLabel *CopyParamLabel;
TImage *Image;
TPanel *ShortCutHintPanel;
TLabel *ShortCutHintLabel;
void __fastcall FormShow(TObject *Sender);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall LocalDirectoryBrowseButtonClick(TObject *Sender);
void __fastcall ControlChange(TObject *Sender);
void __fastcall TransferSettingsButtonClick(TObject *Sender);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall CopyParamGroupClick(TObject *Sender);
void __fastcall CopyParamGroupContextPopup(TObject *Sender,
TPoint &MousePos, bool &Handled);
void __fastcall TransferSettingsButtonDropDownClick(TObject *Sender);
void __fastcall NeverShowAgainCheckClick(TObject *Sender);
void __fastcall ShortCutHintLabelClick(TObject *Sender);
private:
bool FDefaultToRemote;
bool FToRemote;
TStrings * FFileList;
bool FMove;
int FOptions;
int FOutputOptions;
TGUICopyParamType FParams;
TPopupMenu * FPresetsMenu;
UnicodeString FPreset;
TCopyParamType FCopyParams;
int FCopyParamAttrs;
TSessionData * FSessionData;
bool FSaveSettings;
UnicodeString __fastcall GetDirectory();
THistoryComboBox * __fastcall GetDirectoryEdit();
void __fastcall SetParams(const TGUICopyParamType & value);
TGUICopyParamType __fastcall GetParams();
void __fastcall SetDirectory(UnicodeString value);
UnicodeString __fastcall GetFileMask();
void __fastcall SetOutputOptions(int value);
int __fastcall GetOutputOptions();
void __fastcall CopyParamClick(TObject * Sender);
void __fastcall GenerateCode();
protected:
void __fastcall UpdateControls();
void __fastcall AdjustControls();
void __fastcall AdjustTransferControls();
bool __fastcall RemotePaths();
void __fastcall CopyParamListPopup(TRect R, int AdditionalOptions);
int __fastcall ActualCopyParamAttrs();
public:
__fastcall TCopyDialog(
TComponent* Owner, bool ToRemote, bool Move, TStrings * FileList, int Options,
int CopyParamAttrs, TSessionData * SessionData);
virtual __fastcall ~TCopyDialog();
bool __fastcall Execute();
__property UnicodeString Directory = { read = GetDirectory, write = SetDirectory };
__property THistoryComboBox * DirectoryEdit = { read = GetDirectoryEdit };
__property TGUICopyParamType Params = { read = GetParams, write = SetParams };
__property int OutputOptions = { read = GetOutputOptions, write = SetOutputOptions };
};
//---------------------------------------------------------------------------
#endif