IDE: add hints to desktop and window options.

git-svn-id: trunk@46720 -
This commit is contained in:
juha 2014-10-30 19:49:35 +00:00
parent b155443682
commit 171e7adf9a
5 changed files with 20 additions and 5 deletions

View File

@ -336,6 +336,8 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
BorderSpacing.Top = 6
BorderSpacing.Right = 6
ItemHeight = 0
ParentShowHint = False
ShowHint = True
Style = csDropDownList
TabOrder = 3
end
@ -373,6 +375,8 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
BorderSpacing.Left = 6
Caption = 'AutoSaveProjectCheckBox'
Enabled = False
ParentShowHint = False
ShowHint = True
TabOrder = 5
Visible = False
end
@ -387,6 +391,8 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
BorderSpacing.Left = 6
Caption = 'AutoSaveEditorFilesCheckBox'
Enabled = False
ParentShowHint = False
ShowHint = True
TabOrder = 6
Visible = False
end
@ -552,6 +558,8 @@ object DesktopOptionsFrame: TDesktopOptionsFrame
BorderSpacing.Left = 6
BorderSpacing.Top = 6
Caption = 'AskSavingOnlySessionCheckBox'
ParentShowHint = False
ShowHint = True
TabOrder = 11
end
end

View File

@ -109,6 +109,7 @@ var
begin
// language
lblLanguage.Caption := dlgEnvLanguage;
LanguageComboBox.Hint := dlgEnvLanguageHint;
// languages: first the automatic, then sorted the rest
sl:=TStringList.Create;
@ -125,7 +126,8 @@ begin
// auto save
lblAutoSave.Caption := dlgAutoSave;
AskSavingOnlySessionCheckBox.Caption:=lisAskBeforeSavingProjectSSession;
AskSavingOnlySessionCheckBox.Caption := lisAskBeforeSavingProjectSSession;
AskSavingOnlySessionCheckBox.Hint := lisIfOnlySessionInfoChangedThenAsk;
AutoSaveEditorFilesCheckBox.Caption := dlgEdFiles;
AutoSaveProjectCheckBox.Caption := dlgProject;
AutoSaveIntervalInSecsLabel.Caption := dlgIntvInSec;

View File

@ -18,7 +18,8 @@ object WindowOptionsFrame: TWindowOptionsFrame
Top = 0
Width = 181
Caption = 'SingleTaskBarButtonCheckBox'
Enabled = False
ParentShowHint = False
ShowHint = True
TabOrder = 0
end
object HideIDEOnRunCheckBox: TCheckBox
@ -31,6 +32,8 @@ object WindowOptionsFrame: TWindowOptionsFrame
Top = 17
Width = 151
Caption = 'HideIDEOnRunCheckBox'
ParentShowHint = False
ShowHint = True
TabOrder = 1
end
object WindowPositionsGroupBox: TGroupBox

View File

@ -113,10 +113,9 @@ begin
SingleTaskBarButtonCheckBox.Caption := dlgSingleTaskBarButton;
SingleTaskBarButtonCheckBox.Enabled :=
WidgetSet.GetLCLCapability(lcNeedMininimizeAppWithMainForm) = LCL_CAPABILITY_YES;
SingleTaskBarButtonCheckBox.ShowHint:=true;
SingleTaskBarButtonCheckBox.Hint:=
lisShowOnlyOneButtonInTheTaskbarForTheWholeIDEInstead;
SingleTaskBarButtonCheckBox.Hint:=lisShowOnlyOneButtonInTheTaskbarForTheWholeIDEInstead;
HideIDEOnRunCheckBox.Caption := dlgHideIDEOnRun;
HideIDEOnRunCheckBox.Hint := dlgHideIDEOnRunHint;
TitleStartsWithProjectCheckBox.Caption:=lisIDETitleStartsWithProjectName;
TitleStartsWithProjectCheckBox.Hint:=lisTitleInTaskbarShowsForExampleProject1LpiLazarus;
TitleIncludesBuildMode.Caption:=lisIDETitleShowsBuildMode;

View File

@ -1200,8 +1200,10 @@ resourcestring
lisInsertMacro = 'Insert Macro';
lisCTPleaseSelectAMacro = 'please select a macro';
dlgEnvLanguage = 'Language';
dlgEnvLanguageHint = 'Language of all IDE strings. Restart IDE after changing it for best result.';
dlgAutoSave = 'Auto Save';
lisAskBeforeSavingProjectSSession = 'Ask before saving project''s session';
lisIfOnlySessionInfoChangedThenAsk = 'If only the session info changed, ask about saving it.';
dlgEdFiles = 'Editor Files';
dlgEnvProject = 'Tabs for project';
lisCenterALostWindow = 'Center a lost window';
@ -1220,6 +1222,7 @@ resourcestring
dlgLoadDFile = 'Load desktop settings from file';
dlgSingleTaskBarButton = 'Show single button in TaskBar';
dlgHideIDEOnRun = 'Hide IDE windows on run';
dlgHideIDEOnRunHint = 'Do not show the IDE at all while program is running.';
lisShowOnlyOneButtonInTheTaskbarForTheWholeIDEInstead = 'Show only one '
+'button in the taskbar for the whole IDE, instead of one per window. Some'
+' Linux Window Managers like Cinnamon do not support this and always show'