IDE: partially revert r50517 #d696ee5a59

git-svn-id: trunk@50520 -
This commit is contained in:
ondrej 2015-11-28 19:42:00 +00:00
parent 2a47550bba
commit 19206bce93
7 changed files with 35 additions and 90 deletions

View File

@ -148,12 +148,6 @@ type
procedure RemoveHandlerAddToRecentProjectFiles(Handler: TOnAddToRecent); procedure RemoveHandlerAddToRecentProjectFiles(Handler: TOnAddToRecent);
procedure AddHandlerAddToRecentPackageFiles(Handler: TOnAddToRecent; const AsFirst: boolean = true); // AsFirst means: first to call procedure AddHandlerAddToRecentPackageFiles(Handler: TOnAddToRecent; const AsFirst: boolean = true); // AsFirst means: first to call
procedure RemoveHandlerAddToRecentPackageFiles(Handler: TOnAddToRecent); procedure RemoveHandlerAddToRecentPackageFiles(Handler: TOnAddToRecent);
protected
function GetUseDoubleClickToCloseTabs: Boolean; virtual; abstract;
public
// read-only access to options needed by external packages.
// feel free to extend when needed
property UseDoubleClickToCloseTabs: Boolean read GetUseDoubleClickToCloseTabs;
end; end;
TIDEEditorOptions = class(TAbstractIDEEnvironmentOptions) TIDEEditorOptions = class(TAbstractIDEEnvironmentOptions)

View File

@ -393,9 +393,6 @@ type
FShowButtonGlyphs: TApplicationShowGlyphs; FShowButtonGlyphs: TApplicationShowGlyphs;
FShowMenuGlyphs: TApplicationShowGlyphs; FShowMenuGlyphs: TApplicationShowGlyphs;
// global tabs
FUseDoubleClickToCloseTabs: boolean;
// auto save // auto save
FAutoSaveEditorFiles: boolean; FAutoSaveEditorFiles: boolean;
FAutoSaveProject: boolean; FAutoSaveProject: boolean;
@ -575,8 +572,6 @@ type
procedure InitXMLCfg(CleanConfig: boolean); procedure InitXMLCfg(CleanConfig: boolean);
procedure FileUpdated; procedure FileUpdated;
procedure SetTestBuildDirectory(const AValue: string); procedure SetTestBuildDirectory(const AValue: string);
protected
function GetUseDoubleClickToCloseTabs: Boolean; override;
public public
class function GetGroupCaption:string; override; class function GetGroupCaption:string; override;
class function GetInstance: TAbstractIDEOptions; override; class function GetInstance: TAbstractIDEOptions; override;
@ -817,10 +812,6 @@ type
property MsgColors[u: TMessageLineUrgency]: TColor read GetMsgColors write SetMsgColors; property MsgColors[u: TMessageLineUrgency]: TColor read GetMsgColors write SetMsgColors;
property MsgViewShowFPCMsgLinesCompiled: Boolean read FMsgViewShowFPCMsgLinesCompiled write FMsgViewShowFPCMsgLinesCompiled; property MsgViewShowFPCMsgLinesCompiled: Boolean read FMsgViewShowFPCMsgLinesCompiled write FMsgViewShowFPCMsgLinesCompiled;
//global tab handling
property UseDoubleClickToCloseTabs: Boolean
read FUseDoubleClickToCloseTabs write FUseDoubleClickToCloseTabs;
// glyphs // glyphs
property ShowButtonGlyphs: TApplicationShowGlyphs read FShowButtonGlyphs write FShowButtonGlyphs; property ShowButtonGlyphs: TApplicationShowGlyphs read FShowButtonGlyphs write FShowButtonGlyphs;
property ShowMenuGlyphs: TApplicationShowGlyphs read FShowMenuGlyphs write FShowMenuGlyphs; property ShowMenuGlyphs: TApplicationShowGlyphs read FShowMenuGlyphs write FShowMenuGlyphs;
@ -1336,9 +1327,6 @@ begin
FMsgViewFilters:=TLMsgViewFilters.Create(nil); FMsgViewFilters:=TLMsgViewFilters.Create(nil);
FMsgViewShowFPCMsgLinesCompiled:=false; FMsgViewShowFPCMsgLinesCompiled:=false;
// global tabs
FUseDoubleClickToCloseTabs := False;
// glyphs // glyphs
FShowButtonGlyphs := sbgSystem; FShowButtonGlyphs := sbgSystem;
FShowMenuGlyphs := sbgSystem; FShowMenuGlyphs := sbgSystem;
@ -1757,9 +1745,6 @@ begin
MsgViewFilters.LoadFromXMLConfig(FXMLCfg,'MsgView/Filters/'); MsgViewFilters.LoadFromXMLConfig(FXMLCfg,'MsgView/Filters/');
FMsgViewShowFPCMsgLinesCompiled:=FXMLCfg.GetValue(Path+'MsgView/FPCMsg/ShowLinesCompiled',false); FMsgViewShowFPCMsgLinesCompiled:=FXMLCfg.GetValue(Path+'MsgView/FPCMsg/ShowLinesCompiled',false);
// global tabs
FUseDoubleClickToCloseTabs:=FXMLCfg.GetValue(Path+'UseDoubleClickToCloseTabs/Value',false);
// glyphs // glyphs
FShowButtonGlyphs := TApplicationShowGlyphs(FXMLCfg.GetValue(Path+'ShowButtonGlyphs/Value', FShowButtonGlyphs := TApplicationShowGlyphs(FXMLCfg.GetValue(Path+'ShowButtonGlyphs/Value',
Ord(sbgSystem))); Ord(sbgSystem)));
@ -2095,9 +2080,6 @@ begin
MsgViewFilters.SaveToXMLConfig(FXMLCfg,'MsgView/Filters/'); MsgViewFilters.SaveToXMLConfig(FXMLCfg,'MsgView/Filters/');
FXMLCfg.SetDeleteValue(Path+'MsgView/FPCMsg/ShowLinesCompiled',FMsgViewShowFPCMsgLinesCompiled,false); FXMLCfg.SetDeleteValue(Path+'MsgView/FPCMsg/ShowLinesCompiled',FMsgViewShowFPCMsgLinesCompiled,false);
// global tabs
FXMLCfg.SetDeleteValue(Path+'UseDoubleClickToCloseTabs/Value',FUseDoubleClickToCloseTabs,false);
// glyphs // glyphs
FXMLCfg.SetDeleteValue(Path+'ShowButtonGlyphs/Value',Ord(FShowButtonGlyphs), Ord(sbgSystem)); FXMLCfg.SetDeleteValue(Path+'ShowButtonGlyphs/Value',Ord(FShowButtonGlyphs), Ord(sbgSystem));
FXMLCfg.SetDeleteValue(Path+'ShowMenuGlyphs/Value',Ord(FShowMenuGlyphs), Ord(sbgSystem)); FXMLCfg.SetDeleteValue(Path+'ShowMenuGlyphs/Value',Ord(FShowMenuGlyphs), Ord(sbgSystem));
@ -2770,11 +2752,6 @@ begin
Result:=FParseValues[eopTestBuildDirectory].UnparsedValue; Result:=FParseValues[eopTestBuildDirectory].UnparsedValue;
end; end;
function TEnvironmentOptions.GetUseDoubleClickToCloseTabs: Boolean;
begin
Result := FUseDoubleClickToCloseTabs;
end;
procedure TEnvironmentOptions.SetDebuggerEventLogColors(AIndex: TDBGEventType; const AValue: TDebuggerEventLogColor); procedure TEnvironmentOptions.SetDebuggerEventLogColors(AIndex: TDBGEventType; const AValue: TDebuggerEventLogColor);
begin begin
FDebuggerEventLogColors[AIndex] := AValue; FDebuggerEventLogColors[AIndex] := AValue;

View File

@ -15,7 +15,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 15 Height = 15
Top = 327 Top = 308
Width = 150 Width = 150
BorderSpacing.Left = 6 BorderSpacing.Left = 6
BorderSpacing.Top = 6 BorderSpacing.Top = 6
@ -30,7 +30,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrCenter AnchorSideTop.Side = asrCenter
Left = 6 Left = 6
Height = 15 Height = 15
Top = 185 Top = 166
Width = 57 Width = 57
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'lblButtons' Caption = 'lblButtons'
@ -44,7 +44,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrCenter AnchorSideTop.Side = asrCenter
Left = 6 Left = 6
Height = 15 Height = 15
Top = 207 Top = 188
Width = 50 Width = 50
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'lblMenus' Caption = 'lblMenus'
@ -58,13 +58,13 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 19 Height = 19
Top = 245 Top = 226
Width = 241 Width = 241
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'CheckDiskChangesWithLoadingCheckBox' Caption = 'CheckDiskChangesWithLoadingCheckBox'
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 7 TabOrder = 6
end end
object ShowHintsForComponentPaletteCheckBox: TCheckBox object ShowHintsForComponentPaletteCheckBox: TCheckBox
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
@ -72,11 +72,11 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 19 Height = 19
Top = 140 Top = 121
Width = 246 Width = 246
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'ShowHintsForComponentPaletteCheckBox' Caption = 'ShowHintsForComponentPaletteCheckBox'
TabOrder = 4 TabOrder = 3
end end
object ShowHintsForMainSpeedButtonsCheckBox: TCheckBox object ShowHintsForMainSpeedButtonsCheckBox: TCheckBox
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
@ -84,11 +84,11 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 19 Height = 19
Top = 121 Top = 102
Width = 246 Width = 246
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'ShowHintsForMainSpeedButtonsCheckBox' Caption = 'ShowHintsForMainSpeedButtonsCheckBox'
TabOrder = 3 TabOrder = 2
end end
object LanguageComboBox: TComboBox object LanguageComboBox: TComboBox
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
@ -118,7 +118,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 6 Left = 6
Height = 23 Height = 23
Top = 348 Top = 329
Width = 584 Width = 584
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6 BorderSpacing.Around = 6
@ -130,7 +130,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
'300' '300'
'120' '120'
) )
TabOrder = 11 TabOrder = 10
Visible = False Visible = False
end end
object AutoSaveProjectCheckBox: TCheckBox object AutoSaveProjectCheckBox: TCheckBox
@ -139,14 +139,14 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 19 Height = 19
Top = 302 Top = 283
Width = 159 Width = 159
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'AutoSaveProjectCheckBox' Caption = 'AutoSaveProjectCheckBox'
Enabled = False Enabled = False
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 10 TabOrder = 9
Visible = False Visible = False
end end
object AutoSaveEditorFilesCheckBox: TCheckBox object AutoSaveEditorFilesCheckBox: TCheckBox
@ -155,14 +155,14 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 19 Height = 19
Top = 283 Top = 264
Width = 176 Width = 176
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'AutoSaveEditorFilesCheckBox' Caption = 'AutoSaveEditorFilesCheckBox'
Enabled = False Enabled = False
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 9 TabOrder = 8
Visible = False Visible = False
end end
object ImportDesktopButton: TButton object ImportDesktopButton: TButton
@ -173,7 +173,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 299 Left = 299
Height = 25 Height = 25
Top = 395 Top = 376
Width = 291 Width = 291
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
@ -183,7 +183,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
OnClick = ImportDesktopButtonClick OnClick = ImportDesktopButtonClick
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 13 TabOrder = 12
end end
object ExportDesktopButton: TButton object ExportDesktopButton: TButton
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
@ -192,7 +192,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideRight.Control = lblCenter AnchorSideRight.Control = lblCenter
Left = 6 Left = 6
Height = 25 Height = 25
Top = 395 Top = 376
Width = 287 Width = 287
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
@ -203,7 +203,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
OnClick = ExportDesktopButtonClick OnClick = ExportDesktopButtonClick
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 12 TabOrder = 11
end end
object PanelGlyphsButtonsOptions: TPanel object PanelGlyphsButtonsOptions: TPanel
AnchorSideLeft.Control = lblButtons AnchorSideLeft.Control = lblButtons
@ -214,7 +214,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 69 Left = 69
Height = 19 Height = 19
Top = 183 Top = 164
Width = 521 Width = 521
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
@ -226,7 +226,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
ChildSizing.ControlsPerLine = 3 ChildSizing.ControlsPerLine = 3
ClientHeight = 19 ClientHeight = 19
ClientWidth = 521 ClientWidth = 521
TabOrder = 5 TabOrder = 4
object rbBtnGlyphShowSystem: TRadioButton object rbBtnGlyphShowSystem: TRadioButton
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 0 Left = 0
@ -264,7 +264,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 69 Left = 69
Height = 19 Height = 19
Top = 205 Top = 186
Width = 521 Width = 521
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
@ -275,7 +275,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
ChildSizing.ControlsPerLine = 3 ChildSizing.ControlsPerLine = 3
ClientHeight = 19 ClientHeight = 19
ClientWidth = 521 ClientWidth = 521
TabOrder = 6 TabOrder = 5
object rbMenuGlyphShowSystem: TRadioButton object rbMenuGlyphShowSystem: TRadioButton
AnchorSideRight.Control = PanelGlyphsMenusOptions AnchorSideRight.Control = PanelGlyphsMenusOptions
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
@ -313,7 +313,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 296 Left = 296
Height = 5 Height = 5
Top = 392 Top = 373
Width = 5 Width = 5
AutoSize = False AutoSize = False
ParentColor = False ParentColor = False
@ -324,13 +324,13 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 19 Height = 19
Top = 264 Top = 245
Width = 190 Width = 190
BorderSpacing.Left = 6 BorderSpacing.Left = 6
Caption = 'AskSavingOnlySessionCheckBox' Caption = 'AskSavingOnlySessionCheckBox'
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 8 TabOrder = 7
end end
object PreferDoubleClickCheckBox: TCheckBox object PreferDoubleClickCheckBox: TCheckBox
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
@ -363,7 +363,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 0 Left = 0
Height = 15 Height = 15
Top = 230 Top = 211
Width = 597 Width = 597
Caption = 'Check and Auto Save Files' Caption = 'Check and Auto Save Files'
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
@ -377,7 +377,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 0 Left = 0
Height = 15 Height = 15
Top = 377 Top = 358
Width = 597 Width = 597
Caption = 'Import / Export' Caption = 'Import / Export'
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
@ -391,7 +391,7 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 0 Left = 0
Height = 15 Height = 15
Top = 165 Top = 146
Width = 597 Width = 597
Caption = 'Show Glyphs for' Caption = 'Show Glyphs for'
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
@ -401,11 +401,11 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
ParentFont = False ParentFont = False
end end
object lblHints: TDividerBevel object lblHints: TDividerBevel
AnchorSideTop.Control = PreferDoubleClickCloseTabCheckBox AnchorSideTop.Control = PreferDoubleClickCheckBox
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 0 Left = 0
Height = 15 Height = 15
Top = 106 Top = 87
Width = 597 Width = 597
Caption = 'Hints' Caption = 'Hints'
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
@ -428,18 +428,4 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
ParentColor = False ParentColor = False
ParentFont = False ParentFont = False
end end
object PreferDoubleClickCloseTabCheckBox: TCheckBox
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = PreferDoubleClickCheckBox
AnchorSideTop.Side = asrBottom
Left = 6
Height = 19
Top = 81
Width = 216
BorderSpacing.Left = 6
Caption = 'PreferDoubleClickCloseTabCheckBox'
ParentShowHint = False
ShowHint = True
TabOrder = 2
end
end end

View File

@ -54,7 +54,6 @@ type
ImportDesktopButton: TButton; ImportDesktopButton: TButton;
PanelGlyphsButtonsOptions: TPanel; PanelGlyphsButtonsOptions: TPanel;
PanelGlyphsMenusOptions: TPanel; PanelGlyphsMenusOptions: TPanel;
PreferDoubleClickCloseTabCheckBox: TCheckBox;
rbMenuGlyphShowAlways: TRadioButton; rbMenuGlyphShowAlways: TRadioButton;
rbMenuGlyphShowNever: TRadioButton; rbMenuGlyphShowNever: TRadioButton;
rbMenuGlyphShowSystem: TRadioButton; rbMenuGlyphShowSystem: TRadioButton;
@ -118,8 +117,6 @@ begin
lblMouseAction.Caption := dlgMouseAction; lblMouseAction.Caption := dlgMouseAction;
PreferDoubleClickCheckBox.Caption := dlgPreferDoubleClickOverSingleClick; PreferDoubleClickCheckBox.Caption := dlgPreferDoubleClickOverSingleClick;
PreferDoubleClickCheckBox.Hint := dlgCurrentlyRespectedByMessagesWindow; PreferDoubleClickCheckBox.Hint := dlgCurrentlyRespectedByMessagesWindow;
PreferDoubleClickCloseTabCheckBox.Caption := dlgPreferDoubleClickOverMiddleClickToClose;
PreferDoubleClickCloseTabCheckBox.Hint := dlgCurrentlyRespectedByNotebookWindow;
// hints // hints
lblHints.Caption := dlgDesktopHints; lblHints.Caption := dlgDesktopHints;
@ -166,7 +163,6 @@ begin
// mouse action // mouse action
PreferDoubleClickCheckBox.Checked := MsgViewDblClickJumps; PreferDoubleClickCheckBox.Checked := MsgViewDblClickJumps;
PreferDoubleClickCloseTabCheckBox.Checked := UseDoubleClickToCloseTabs;
// hints // hints
ShowHintsForMainSpeedButtonsCheckBox.Checked:=ShowHintsForMainSpeedButtons; ShowHintsForMainSpeedButtonsCheckBox.Checked:=ShowHintsForMainSpeedButtons;
@ -204,7 +200,6 @@ begin
// mouse action // mouse action
MsgViewDblClickJumps := PreferDoubleClickCheckBox.Checked; MsgViewDblClickJumps := PreferDoubleClickCheckBox.Checked;
UseDoubleClickToCloseTabs := PreferDoubleClickCloseTabCheckBox.Checked;
// hints // hints
ShowHintsForMainSpeedButtons:=ShowHintsForMainSpeedButtonsCheckBox.Checked; ShowHintsForMainSpeedButtons:=ShowHintsForMainSpeedButtonsCheckBox.Checked;

View File

@ -1279,9 +1279,6 @@ resourcestring
dlgPreferDoubleClickOverSingleClick = 'Prefer double-click over single-click'; dlgPreferDoubleClickOverSingleClick = 'Prefer double-click over single-click';
dlgCurrentlyRespectedByMessagesWindow = 'Currently respected by messages window, ' dlgCurrentlyRespectedByMessagesWindow = 'Currently respected by messages window, '
+'jump history and search results.'; +'jump history and search results.';
dlgPreferDoubleClickOverMiddleClickToClose = 'Prefer double-click over middle-click when closing tabs';
dlgCurrentlyRespectedByNotebookWindow = 'Currently respected by source notebook '
+'and search results.';
lisExportEnvironmentOptions = 'Export environment options'; lisExportEnvironmentOptions = 'Export environment options';
lisImportEnvironmentOptions = 'Import environment options'; lisImportEnvironmentOptions = 'Import environment options';

View File

@ -261,7 +261,6 @@ var
begin begin
FMaxItems:=50000; FMaxItems:=50000;
ResultsNoteBook.Options:= ResultsNoteBook.Options+[nboShowCloseButtons]; ResultsNoteBook.Options:= ResultsNoteBook.Options+[nboShowCloseButtons];
ResultsNoteBook.ControlStyle:=ResultsNoteBook.ControlStyle+[csDoubleClicks];
ResultsNoteBook.Update; ResultsNoteBook.Update;
Name:=NonModalIDEWindowNames[nmiwSearchResultsViewName]; Name:=NonModalIDEWindowNames[nmiwSearchResultsViewName];
@ -369,9 +368,8 @@ procedure TSearchResultsView.ResultsNoteBookMouseDown(Sender: TObject; Button: T
var var
TabIndex: LongInt; TabIndex: LongInt;
begin begin
if (not EnvironmentOptions.UseDoubleClickToCloseTabs and (Button = mbMiddle)) if (Button = mbMiddle) then
or ( EnvironmentOptions.UseDoubleClickToCloseTabs and (Button = mbLeft) and (ssDouble in Shift)) begin
then begin
TabIndex := ResultsNoteBook.TabIndexAtClientPos(Point(X,Y)); TabIndex := ResultsNoteBook.TabIndexAtClientPos(Point(X,Y));
if TabIndex >= 0 then if TabIndex >= 0 then
ResultsNoteBookClosetabclicked(ResultsNoteBook.Page[TabIndex]); ResultsNoteBookClosetabclicked(ResultsNoteBook.Page[TabIndex]);

View File

@ -6312,7 +6312,6 @@ Begin
ShowTabs := True; ShowTabs := True;
if ShowTabs then if ShowTabs then
TabPosition := EditorOpts.TabPosition; TabPosition := EditorOpts.TabPosition;
ControlStyle := ControlStyle + [csDoubleClicks];
OnChange := @NotebookPageChanged; OnChange := @NotebookPageChanged;
OnCloseTabClicked := @CloseTabClicked; OnCloseTabClicked := @CloseTabClicked;
OnMouseDown:=@NotebookMouseDown; OnMouseDown:=@NotebookMouseDown;
@ -8358,9 +8357,8 @@ procedure TSourceNotebook.NotebookMouseDown(Sender: TObject; Button: TMouseButto
var var
TabIndex: Integer; TabIndex: Integer;
begin begin
if (not EnvironmentOptions.UseDoubleClickToCloseTabs and (Button = mbMiddle)) if (Button = mbMiddle) then
or ( EnvironmentOptions.UseDoubleClickToCloseTabs and (Button = mbLeft) and (ssDouble in Shift)) begin
then begin
TabIndex:=FNotebook.TabIndexAtClientPos(Point(X,Y)); TabIndex:=FNotebook.TabIndexAtClientPos(Point(X,Y));
if TabIndex>=0 then if TabIndex>=0 then
CloseClicked(NoteBookPage[TabIndex], CloseClicked(NoteBookPage[TabIndex],