mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 16:59:09 +02:00
IDE: Custom IDE title, changed storage default value
This commit is contained in:
parent
2de900cb00
commit
59f5c61e2e
@ -131,6 +131,8 @@ type
|
|||||||
{ TDesktopOpt }
|
{ TDesktopOpt }
|
||||||
|
|
||||||
TDesktopOpt = class(TCustomDesktopOpt)
|
TDesktopOpt = class(TCustomDesktopOpt)
|
||||||
|
private const
|
||||||
|
DEFAULT_CUSTOM_TITLE = '$project(TitleNew) $EncloseBracket($project(infodir)) $(BuildModeCaption)';
|
||||||
private
|
private
|
||||||
// window layout
|
// window layout
|
||||||
FIDEWindowCreatorsLayoutList: TSimpleWindowLayoutList;
|
FIDEWindowCreatorsLayoutList: TSimpleWindowLayoutList;
|
||||||
@ -674,8 +676,8 @@ begin
|
|||||||
FIDETitleStartsWithProject:=FXMLCfg.GetValue(Path+'IDETitleStartsWithProject/Value',true);
|
FIDETitleStartsWithProject:=FXMLCfg.GetValue(Path+'IDETitleStartsWithProject/Value',true);
|
||||||
FIDETitleShowsBuildMode:=FXMLCfg.GetValue(Path+'IDETitleShowsBuildMode/Value',true);
|
FIDETitleShowsBuildMode:=FXMLCfg.GetValue(Path+'IDETitleShowsBuildMode/Value',true);
|
||||||
FIDETitleShowsProjectDir:=FXMLCfg.GetValue(Path+'IDETitleShowsProjectDir/Value',true);
|
FIDETitleShowsProjectDir:=FXMLCfg.GetValue(Path+'IDETitleShowsProjectDir/Value',true);
|
||||||
FIDETitleBarCustomText:=FXMLCfg.GetValue(Path+'IDETitleBarCustomText/Value','');
|
FIDETitleBarCustomText:=FXMLCfg.GetValue(Path+'IDETitleBarCustomText/Value',DEFAULT_CUSTOM_TITLE);
|
||||||
if (EnvironmentOptions.FileVersion < 112) and (FIDETitleBarCustomText = '')
|
if (EnvironmentOptions.FileVersion < 112) and (FIDETitleBarCustomText = DEFAULT_CUSTOM_TITLE)
|
||||||
then begin
|
then begin
|
||||||
FIDETitleBarCustomText := '$project(TitleNew)';
|
FIDETitleBarCustomText := '$project(TitleNew)';
|
||||||
if FIDETitleShowsProjectDir then
|
if FIDETitleShowsProjectDir then
|
||||||
@ -735,7 +737,7 @@ begin
|
|||||||
FXMLCfg.SetDeleteValue(Path+'IDETitleStartsWithProject/Value',FIDETitleStartsWithProject,true);
|
FXMLCfg.SetDeleteValue(Path+'IDETitleStartsWithProject/Value',FIDETitleStartsWithProject,true);
|
||||||
FXMLCfg.SetDeleteValue(Path+'IDETitleShowsBuildMode/Value',FIDETitleShowsBuildMode,true);
|
FXMLCfg.SetDeleteValue(Path+'IDETitleShowsBuildMode/Value',FIDETitleShowsBuildMode,true);
|
||||||
FXMLCfg.SetDeleteValue(Path+'IDETitleShowsProjectDir/Value',FIDETitleShowsProjectDir,true);
|
FXMLCfg.SetDeleteValue(Path+'IDETitleShowsProjectDir/Value',FIDETitleShowsProjectDir,true);
|
||||||
FXMLCfg.SetDeleteValue(Path+'IDETitleBarCustomText/Value',FIDETitleBarCustomText,'');
|
FXMLCfg.SetDeleteValue(Path+'IDETitleBarCustomText/Value',FIDETitleBarCustomText,DEFAULT_CUSTOM_TITLE);
|
||||||
// CompletionWindow
|
// CompletionWindow
|
||||||
FXMLCfg.SetValue(Path+'CompletionWindowOptions/Width/Value',FCompletionWindowWidth);
|
FXMLCfg.SetValue(Path+'CompletionWindowOptions/Width/Value',FCompletionWindowWidth);
|
||||||
FXMLCfg.SetDeleteValue(Path+'CompletionWindowOptions/Height/Value',FCompletionWindowHeight, 6);
|
FXMLCfg.SetDeleteValue(Path+'CompletionWindowOptions/Height/Value',FCompletionWindowHeight, 6);
|
||||||
|
Loading…
Reference in New Issue
Block a user