Added tooltip to auto-profile path and title editbox fields

This commit is contained in:
mika-n 2020-01-13 13:29:46 +02:00
parent 3a482eca13
commit 208687e395
3 changed files with 26 additions and 2 deletions

View File

@ -116,8 +116,8 @@
</Grid> </Grid>
<CheckBox Content="Turn Off DS4Window Temporarily" Margin="{StaticResource spaceMargin}" <CheckBox Content="Turn Off DS4Window Temporarily" Margin="{StaticResource spaceMargin}"
IsChecked="{Binding Turnoff}" /> IsChecked="{Binding Turnoff}" />
<TextBox Text="{Binding Path}" Margin="{StaticResource spaceMargin}" /> <TextBox Text="{Binding Path}" Margin="{StaticResource spaceMargin}" ToolTip="{lex:Loc AutoProfPathTip}"/>
<TextBox Text="{Binding Title, UpdateSourceTrigger=LostFocus}" Margin="{StaticResource spaceMargin}" /> <TextBox Text="{Binding Title, UpdateSourceTrigger=LostFocus}" Margin="{StaticResource spaceMargin}" ToolTip="{lex:Loc AutoProfTitleTip}"/>
<Border Height="4" Background="#FFDADADA" Margin="0,10,0,0" /> <Border Height="4" Background="#FFDADADA" Margin="0,10,0,0" />
</StackPanel> </StackPanel>
<CheckBox x:Name="revertDefaultProfileOnUnknownCk" Content="Revert to default profile on unknown" Margin="0,10,0,0" IsChecked="{Binding RevertDefaultProfileOnUnknown}" /> <CheckBox x:Name="revertDefaultProfileOnUnknownCk" Content="Revert to default profile on unknown" Margin="0,10,0,0" IsChecked="{Binding RevertDefaultProfileOnUnknown}" />

View File

@ -132,6 +132,24 @@ namespace DS4WinWPF.Translations {
} }
} }
/// <summary>
/// Looks up a localized string similar to Process path. ^ABC = Match at the beginning of string (^) | ABC$ = Match at the end of string ($) | *ABC =Contains a string (*).
/// </summary>
public static string AutoProfPathTip {
get {
return ResourceManager.GetString("AutoProfPathTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Window title. ^ABC = Match at the beginning of string (^) | ABC$ = Match at the end of string ($) | *ABC =Contains a string (*).
/// </summary>
public static string AutoProfTitleTip {
get {
return ResourceManager.GetString("AutoProfTitleTip", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Battery. /// Looks up a localized string similar to Battery.
/// </summary> /// </summary>

View File

@ -321,4 +321,10 @@
<data name="MoveDown" xml:space="preserve"> <data name="MoveDown" xml:space="preserve">
<value>Move Down</value> <value>Move Down</value>
</data> </data>
<data name="AutoProfPathTip" xml:space="preserve">
<value>Process path. ^ABC = Match at the beginning of string (^) | ABC$ = Match at the end of string ($) | *ABC =Contains a string (*)</value>
</data>
<data name="AutoProfTitleTip" xml:space="preserve">
<value>Window title. ^ABC = Match at the beginning of string (^) | ABC$ = Match at the end of string ($) | *ABC =Contains a string (*)</value>
</data>
</root> </root>