ADD: Option to enable/disable confirmation dialog on drag&drop operations.

This commit is contained in:
cobines 2009-11-16 05:38:35 +00:00
commit abc2de2b49
5 changed files with 3853 additions and 3830 deletions

View file

@ -920,7 +920,8 @@ begin
begin
Self.MoveFiles(SourcePanel.FileSource,
TargetPanel.FileSource,
Files, TargetPath, True);
Files, TargetPath,
gShowDialogOnDragDrop);
end
else
begin
@ -930,7 +931,8 @@ begin
Self.MoveFiles(SourceFileSource,
TargetPanel.FileSource,
Files, TargetPath, True);
Files, TargetPath,
gShowDialogOnDragDrop);
end;
ddoCopy:
@ -938,7 +940,8 @@ begin
begin
Self.CopyFiles(SourcePanel.FileSource,
TargetPanel.FileSource,
Files, TargetPath, True);
Files, TargetPath,
gShowDialogOnDragDrop);
end
else
begin
@ -948,7 +951,8 @@ begin
Self.CopyFiles(SourceFileSource,
TargetPanel.FileSource,
Files, TargetPath, True);
Files, TargetPath,
gShowDialogOnDragDrop);
end;
ddoSymLink, ddoHardLink:

File diff suppressed because it is too large Load diff

View file

@ -105,6 +105,7 @@ TFRMOPTIONS.CBRENAMESELONLYNAME.CAPTION=Select only the file name then renaming
TFRMOPTIONS.CBSHOWCOPYTABSELECTPANEL.CAPTION=Show tab select panel in copy/move dialog
TFRMOPTIONS.CBDELETETOTRASH.CAPTION=&F8/Del deletes to recycle bin (Shift=directly)
TFRMOPTIONS.CBSKIPFILEOPERROR.CAPTION=Skip file operations errors and write them to log window
TFRMOPTIONS.CBSHOWDIALOGONDRAGDROP.CAPTION=Show confirmation dialog on drag&&drop operations
TFRMOPTIONS.GBFILESEARCH.CAPTION=File search
TFRMOPTIONS.RBUSEMMAPINSEARCH.CAPTION=Use memory mapping for search text in files
TFRMOPTIONS.RBUSESTREAMINSEARCH.CAPTION=Use stream for search text in files

View file

@ -124,6 +124,7 @@ type
cbDeleteToTrash: TCheckBox;
cbAlwaysShowTrayIcon: TCheckBox;
cbSkipFileOpError: TCheckBox;
cbShowDialogOnDragDrop: TCheckBox;
cmbTabsPosition: TComboBox;
cTextLabel: TLabel;
dlgFnt: TFontDialog;
@ -2088,6 +2089,7 @@ begin
cbProcessComments.Checked:= gProcessComments;
cbShowCopyTabSelectPanel.Checked:=gShowCopyTabSelectPanel;
cbDeleteToTrash.Checked:= gUseTrash;
cbShowDialogOnDragDrop.Checked := gShowDialogOnDragDrop;
{ Log file }
cbLogFile.Checked := gLogFile;
@ -2265,6 +2267,7 @@ begin
gProcessComments:= cbProcessComments.Checked;
gShowCopyTabSelectPanel:=cbShowCopyTabSelectPanel.Checked;
gUseTrash:= cbDeleteToTrash.Checked;
gShowDialogOnDragDrop := cbShowDialogOnDragDrop.Checked;
{ Log file }
gLogFile := cbLogFile.Checked;

View file

@ -178,6 +178,7 @@ var
gShowCopyTabSelectPanel:boolean;
gUseTrash : Boolean = True; // 05.05.2009 - global trash variable. Enabled by default.
gRenameSelOnlyName:boolean;
gShowDialogOnDragDrop: Boolean = False;
{ Folder tabs page }
@ -573,6 +574,7 @@ begin
gRenameSelOnlyName:= gIni.ReadBool('Configuration', 'RenameSelOnlyName', false);
gShowCopyTabSelectPanel:= gIni.ReadBool('Configuration', 'ShowCopyTabSelectPanel', false);
gUseTrash := gIni.ReadBool('Configuration', 'UseTrash', True); // 05.05.2009 - read global trash option from configuration file
gShowDialogOnDragDrop := gIni.ReadBool('Configuration', 'ShowDialogOnDragDrop', gShowDialogOnDragDrop);
{ Log }
gLogFile := gIni.ReadBool('Configuration', 'LogFile', True);
@ -800,6 +802,7 @@ begin
gIni.WriteBool('Configuration', 'RenameSelOnlyName', gRenameSelOnlyName);
gIni.WriteBool('Configuration', 'ShowCopyTabSelectPanel', gShowCopyTabSelectPanel);
gIni.WriteBool('Configuration', 'UseTrash', gUseTrash);
gIni.WriteBool('Configuration', 'ShowDialogOnDragDrop', gShowDialogOnDragDrop);
{ Log }
gIni.WriteBool('Configuration', 'LogFile', gLogFile);