Browse Source
- Added resource strings for some labels not localized until now. - Added error messages shown to user in some error cases. - Ctrl+F in list now jumps to filter text box.pull/567/head
16 changed files with 288 additions and 39 deletions
@ -0,0 +1,38 @@ |
|||||||
|
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
// software and associated documentation files (the "Software"), to deal in the Software
|
||||||
|
// without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||||
|
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
|
||||||
|
// to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included in all copies or
|
||||||
|
// substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||||
|
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Linq; |
||||||
|
using ResourceEditor.ViewModels; |
||||||
|
|
||||||
|
namespace ResourceEditor.Commands |
||||||
|
{ |
||||||
|
class AddBooleanEntryCommand : ResourceItemCommand |
||||||
|
{ |
||||||
|
public override bool EmptySelectionAllowed { |
||||||
|
get { |
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public override void ExecuteWithResourceItems(System.Collections.Generic.IEnumerable<ResourceItem> resourceItems) |
||||||
|
{ |
||||||
|
ResourceEditor.AddBooleanEntry(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -1,7 +1,26 @@ |
|||||||
<UserControl x:Class="ResourceEditor.Views.BinaryView" |
<UserControl x:Class="ResourceEditor.Views.BinaryView" |
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
xmlns:resvm="clr-namespace:ResourceEditor.ViewModels" |
||||||
|
xmlns:resv="clr-namespace:ResourceEditor.Views" |
||||||
|
xmlns:core="clr-namespace:ICSharpCode.Core.Presentation;assembly=ICSharpCode.Core.Presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||||
<Grid> |
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="*" /> |
||||||
|
<RowDefinition Height="Auto" /> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
|
||||||
|
<TextBox Name="binaryDataTextBox" |
||||||
|
Grid.Row="0" |
||||||
|
Text="{Binding DisplayedByteData}" |
||||||
|
Margin="0,0,0,0" |
||||||
|
VerticalScrollBarVisibility="Auto" |
||||||
|
HorizontalScrollBarVisibility="Disabled" |
||||||
|
IsReadOnly="True" |
||||||
|
IsReadOnlyCaretVisible="True" /> |
||||||
|
<CheckBox Grid.Row="1" |
||||||
|
Margin="5,5,5,5" |
||||||
|
Content="{core:Localize ResourceEditor.ResourceEdit.ShowAsHexDump}" |
||||||
|
IsChecked="{Binding ViewHexDump, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
||||||
</Grid> |
</Grid> |
||||||
</UserControl> |
</UserControl> |
||||||
@ -1,7 +1,21 @@ |
|||||||
<UserControl x:Class="ResourceEditor.Views.BooleanView" |
<UserControl x:Class="ResourceEditor.Views.BooleanView" |
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||||
<Grid> |
|
||||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Vertical"> |
||||||
</Grid> |
<RadioButton |
||||||
|
Name="falseValueRadioButton" |
||||||
|
GroupName="BooleanResourceValue" |
||||||
|
Content="False" |
||||||
|
IsThreeState="False" |
||||||
|
Margin="3,3,3,3" |
||||||
|
Click="RadioButtonValueChanged" /> |
||||||
|
<RadioButton |
||||||
|
Name="trueValueRadioButton" |
||||||
|
GroupName="BooleanResourceValue" |
||||||
|
Content="True" |
||||||
|
IsThreeState="False" |
||||||
|
Margin="3,3,3,3" |
||||||
|
Click="RadioButtonValueChanged" /> |
||||||
|
</StackPanel> |
||||||
</UserControl> |
</UserControl> |
||||||
Loading…
Reference in new issue