Skip to content

Commit

Permalink
DSI Viewer - 5.0.3.1 - SDLCOM-6462:
Browse files Browse the repository at this point in the history
Updated the TextBlock to read-only TextBoxes to enable the copy command.
  • Loading branch information
aflorescu579774 committed Feb 28, 2025
1 parent bdaa827 commit afddbc8
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@


[assembly: AssemblyVersion("5.0.0.0")]
[assembly: AssemblyFileVersion("5.0.3.0")]
[assembly: AssemblyFileVersion("5.0.3.1")]
111 changes: 81 additions & 30 deletions DSI Viewer/Sdl.Community.SdiViewer/View/DsiViewerView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@
</DockPanel>

<DataGrid Grid.Row="1"
SelectionMode="Extended"
SelectionUnit="CellOrRowHeader"
ClipboardCopyMode="ExcludeHeader"
Name="DSITabel"
ItemsSource="{Binding DocumentStructureInformation}"
Style="{StaticResource Sdl.DataGrid.GenericStyle}"
Expand Down Expand Up @@ -199,9 +196,6 @@
</DockPanel>

<DataGrid Grid.Row="4"
SelectionMode="Extended"
SelectionUnit="CellOrRowHeader"
ClipboardCopyMode="ExcludeHeader"
Name="CommentsTable"
ItemsSource="{Binding Comments}"
AutomationProperties.Name="Comments"
Expand Down Expand Up @@ -373,31 +367,88 @@
</DataGrid.Visibility>

<DataGrid.Columns>
<DataGridTextColumn Header="Tag ID"
Binding="{Binding Id}"
ElementStyle="{StaticResource DataGridTextColumnStyle}"
IsReadOnly="True" />

<DataGridTextColumn Header="Start tag"
Binding="{Binding StartTag}"
ElementStyle="{StaticResource DataGridTextColumnStyle}"
IsReadOnly="True" />

<DataGridTextColumn Header="End tag"
Binding="{Binding EndTag}"
ElementStyle="{StaticResource DataGridTextColumnStyle}"
IsReadOnly="True" />

<DataGridTextColumn Header="Tag Attributes"
Binding="{Binding Attributes}"
ElementStyle="{StaticResource DataGridTextColumnStyle}"
IsReadOnly="True" />

<DataGridTextColumn Header="Tag Content"
Binding="{Binding Content}"
ElementStyle="{StaticResource DataGridTextColumnStyle}"
<DataGridTemplateColumn Header="Tag ID"
IsReadOnly="True" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding Id}"
Background="Transparent"
BorderThickness="0"
VerticalAlignment="Center"
IsReadOnly="True"
TextWrapping="Wrap"
IsHitTestVisible="True"
IsReadOnlyCaretVisible="True" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>

<DataGridTemplateColumn Header="Start tag"
IsReadOnly="True" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding StartTag}"
Background="Transparent"
BorderThickness="0"
VerticalAlignment="Center"
IsReadOnly="True"
TextWrapping="Wrap"
IsHitTestVisible="True"
IsReadOnlyCaretVisible="True" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>

<DataGridTemplateColumn Header="End tag"
IsReadOnly="True" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding EndTag}"
Background="Transparent"
BorderThickness="0"
VerticalAlignment="Center"
IsReadOnly="True"
TextWrapping="Wrap"
IsHitTestVisible="True"
IsReadOnlyCaretVisible="True" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>

<DataGridTemplateColumn Header="Tag Attributes"
IsReadOnly="True" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding Attributes}"
Background="Transparent"
BorderThickness="0"
VerticalAlignment="Center"
IsReadOnly="True"
TextWrapping="Wrap"
IsHitTestVisible="True"
IsReadOnlyCaretVisible="True" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>

</DataGridTemplateColumn>

<DataGridTemplateColumn Header="Tag Content"
IsReadOnly="True"
Width="*" />
Width="*" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding Content}"
Background="Transparent"
BorderThickness="0"
VerticalAlignment="Center"
IsReadOnly="True"
TextWrapping="Wrap"
IsHitTestVisible="True"
IsReadOnlyCaretVisible="True" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>

</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>

Expand Down
28 changes: 24 additions & 4 deletions DSI Viewer/Sdl.Community.SdiViewer/View/TqeCard.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@
</Label>


<TextBlock Grid.Row="0"
<TextBox Grid.Row="0"
Grid.Column="0"
Grid.ColumnSpan="2"
TextWrapping="Wrap"
IsHitTestVisible="True"
Background="Transparent"
BorderThickness="0"
IsReadOnlyCaretVisible="True"
IsReadOnly="True"
Text="{Binding TqeData.Description, ElementName=Root}"
Focusable="True"
Margin="5 0 5 0"
Expand All @@ -63,17 +68,27 @@
Grid.Column="0"
Grid.ColumnSpan="2" />

<TextBlock Grid.Row="2"
<TextBox Grid.Row="2"
Grid.Column="1"
IsHitTestVisible="True"
Background="Transparent"
BorderThickness="0"
IsReadOnlyCaretVisible="True"
Name="QESystem"
IsReadOnly="True"
Text="{Binding TqeData.System, ElementName=Root}"
Focusable="True"
HorizontalAlignment="Right"
Margin="0 0 5 0"
VerticalAlignment="Center" />

<TextBlock Grid.Row="3"
<TextBox Grid.Row="3"
Grid.Column="1"
IsReadOnly="True"
IsHitTestVisible="True"
Background="Transparent"
BorderThickness="0"
IsReadOnlyCaretVisible="True"
Name="QECurrentValue"
Text="{Binding TqeData.QualityEstimation, ElementName=Root}"
AutomationProperties.Name="{Binding AccessibilityQELabel}"
Expand All @@ -82,8 +97,13 @@
HorizontalAlignment="Right"
VerticalAlignment="Center" />

<TextBlock Grid.Row="4"
<TextBox Grid.Row="4"
Grid.Column="1"
IsHitTestVisible="True"
Background="Transparent"
BorderThickness="0"
IsReadOnlyCaretVisible="True"
IsReadOnly="True"
Name="ModelCurrentValue"
Text="{Binding TqeData.Model, ElementName=Root}"
AutomationProperties.Name="{Binding AccessibilityModelLabel}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PluginPackage xmlns="http://www.sdl.com/Plugins/PluginPackage/1.0">
<PlugInName>DSI Viewer</PlugInName>
<Version>5.0.3.0</Version>
<Version>5.0.3.1</Version>
<Description>This plugin adds preview capability for Document Structure Information and Comments so they can be viewed in real-time as you work on a document.</Description>
<Author>Trados AppStore Team</Author>
<RequiredProduct name="TradosStudio" minversion="18.0" maxversion="18.9" />
Expand Down

0 comments on commit afddbc8

Please sign in to comment.