Skip to content

Commit

Permalink
Release v1.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soulflyman committed Apr 8, 2019
1 parent 8f941f7 commit 451a0ea
Show file tree
Hide file tree
Showing 29 changed files with 2,671 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XdebugTraceViewer.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/CodeAnnotations/NamespacesWithAnnotations/=XdebugTraceViewer_002EAnnotations/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
18 changes: 18 additions & 0 deletions XdebugTraceViewer/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="XdbgTraceViewer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
</startup>
<userSettings>
<XdbgTraceViewer.Properties.Settings>
<setting name="CustomTraceFileFolder" serializeAs="String">
<value>c:\</value>
</setting>
</XdbgTraceViewer.Properties.Settings>
</userSettings>
</configuration>
9 changes: 9 additions & 0 deletions XdebugTraceViewer/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="XdbgTraceViewer.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:XdbgTraceViewer"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions XdebugTraceViewer/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace XdbgTraceViewer
{
/// <summary>
/// Interaktionslogik für "App.xaml"
/// </summary>
public partial class App : Application
{
}
}
33 changes: 33 additions & 0 deletions XdebugTraceViewer/COPYRIGHTS
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Application Icon made by Freepik from flaticon.com.

---

License agreement for Ookii.Dialogs.

Copyright (c) Sven Groot (Ookii.org) 2009
All rights reserved.


Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1) Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2) Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3) Neither the name of the ORGANIZATION nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
Binary file added XdebugTraceViewer/Images/expand-all-outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XdebugTraceViewer/Images/folder-open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XdebugTraceViewer/Images/trace_icon_flaticon.ico
Binary file not shown.
Binary file added XdebugTraceViewer/Images/trace_icon_flaticon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XdebugTraceViewer/Images/unfold-less-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XdebugTraceViewer/Images/unfold-more-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions XdebugTraceViewer/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 XdbgTraceViewer

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.
135 changes: 135 additions & 0 deletions XdebugTraceViewer/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<Window x:Name="XdbgTraceViewer" x:Class="XdbgTraceViewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:XdbgTraceViewer"
mc:Ignorable="d"
Title="XdbgTraceViewer" Height="772" Width="1344">
<Window.Resources>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</Window.Resources>
<Grid>
<GroupBox x:Name="grpRecordDetails" Header="Record Details" Margin="425,10,0,10" HorizontalAlignment="Left" Width="385">
<Grid Margin="10,0,-2,4">
<TextBox x:Name="tbReturnValue" Margin="24,449,15,36" TextWrapping="NoWrap" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" IsReadOnly="True"/>
<Label Content="Return value:" HorizontalAlignment="Left" Height="25" Margin="0,424,0,0" VerticalAlignment="Top" Width="169" FontWeight="Bold" ToolTip="Trace field 6" AutomationProperties.HelpText="Trace field 6"/>
<Label Content="Function name:" HorizontalAlignment="Left" Height="24" Margin="0,5,0,0" VerticalAlignment="Top" Width="184" FontWeight="Bold" ToolTip="Trace field 6" AutomationProperties.HelpText="Trace field 6"/>
<Label Content="Execution time:" HorizontalAlignment="Left" Height="25" Margin="0,114,0,0" VerticalAlignment="Top" Width="195" FontWeight="Bold" AutomationProperties.HelpText="Trace field 4: Exit minus entry time" ToolTip="Trace field 4: Exit minus entry time"/>
<ListBox x:Name="lbParameters" Height="109" Margin="24,195,15,0" VerticalAlignment="Top"/>
<Label Content="Parameter(s):" HorizontalAlignment="Left" Margin="0,169,0,0" VerticalAlignment="Top" Width="175" FontWeight="Bold" AutomationProperties.HelpText="Trace field 12 - ..." ToolTip="Trace field 12 - ..."/>
<Label Content="File:" HorizontalAlignment="Left" Height="25" Margin="0,309,0,0" VerticalAlignment="Top" Width="140" FontWeight="Bold" ToolTip="Trace field 9" AutomationProperties.HelpText="Trace field 9"/>
<Label Content="Line number:" HorizontalAlignment="Left" Height="25" Margin="0,369,0,0" VerticalAlignment="Top" Width="135" FontWeight="Bold" ToolTip="Trace field 10" AutomationProperties.HelpText="Trace field 10"/>
<TextBox x:Name="tbFunctionName" Height="80" Margin="24,29,15,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True"/>
<TextBox x:Name="tbExecutionTime" Height="25" Margin="24,139,15,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True"/>
<TextBox x:Name="tbFileName" Height="35" Margin="24,334,15,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True"/>
<TextBox x:Name="tbLineNumber" Height="25" Margin="24,394,15,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True"/>
<Button x:Name="btnTryToFormatResult" Content="Try to format return value" HorizontalAlignment="Left" Margin="24,0,0,5" Width="160" ToolTip="This can go horribly wrong" AutomationProperties.HelpText="This can go horribly wrong" Click="BtnTryToFormatResult_Click" Height="21" VerticalAlignment="Bottom"/>
<Button x:Name="btnDisplayOriginalResultValue" Content="Display original value" HorizontalAlignment="Left" Margin="200,0,0,5" Width="150" Click="BtnDisplayOriginalResultValue_Click" Height="21" VerticalAlignment="Bottom"/>
</Grid>
</GroupBox>
<Label Content="© SPA GmbH, Germany 2019, spa-gmbh.de&#xA;" HorizontalAlignment="Left" Margin="10,0,0,21" Width="365" FontSize="10" HorizontalContentAlignment="Center" Height="25" VerticalAlignment="Bottom" Visibility="Collapsed"/>
<Label Content="Application Icon made by Freepik from flaticon.com." HorizontalAlignment="Left" Margin="445,0,0,281" Width="365" FontSize="10" HorizontalContentAlignment="Center" Height="25" VerticalAlignment="Bottom"/>
<GroupBox x:Name="gbTraceFileContent" Header="Trace File" HorizontalAlignment="Stretch" Height="Auto" Margin="815,10,10,10" VerticalAlignment="Stretch" Width="Auto">
<Grid Margin="0,0,-2,4">
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<TreeView x:Name="TraceItemsTree" Margin="10,10,10,36" SelectedItemChanged="TraceItemsTree_SelectedItemChanged"
VirtualizingPanel.IsVirtualizing="True"
VirtualizingPanel.VirtualizationMode="Recycling" Height="Auto" VerticalAlignment="Stretch">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type local:XdebugTraceItem}" ItemsSource="{Binding SubElements}">
<StackPanel Orientation="Horizontal">
<StackPanel.Resources>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
</StackPanel.Resources>
<StackPanel.ContextMenu>
<ContextMenu>
<MenuItem Header="Collapse" Click="TraceItemsTreeContextCollapse_Click">
<MenuItem.Icon>
<Image Source="/XdbgTraceViewer;component/Images/unfold-less-horizontal.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Expand" Click="TraceItemsTreeContextExpand_Click">
<MenuItem.Icon>
<Image Source="/XdbgTraceViewer;component/Images/unfold-more-horizontal.png" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</StackPanel.ContextMenu>
<TextBlock Text="[" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=chkShowFunctionNumbers}" />
<TextBlock Text="{Binding FunctionNumber}" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=chkShowFunctionNumbers}" />
<TextBlock Text="] " Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=chkShowFunctionNumbers}" />
<TextBlock Text="(" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=chkShowExecutionTime}" />
<TextBlock Text="{Binding ExecutionTime}" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=chkShowExecutionTime}" />
<TextBlock Text=") " Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=chkShowExecutionTime}" />
<TextBlock Text="{Binding FunctionName}" FontSize="14" FontFamily="Verdana">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding HighlightOwn}" Value="True" />
<Condition Binding="{Binding IsChecked, ElementName=ckbHighlightOwn}" Value="True" />
</MultiDataTrigger.Conditions>
<Setter Property="FontWeight" Value="Bold" />
</MultiDataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</HierarchicalDataTemplate>
</TreeView.Resources>
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<CheckBox x:Name="chkShowFunctionNumbers" Content="show function number" HorizontalAlignment="Left" Margin="161,0,0,7" Height="15" VerticalAlignment="Bottom" ToolTip="Trace field 2" AutomationProperties.HelpText="Trace field 2" />
<CheckBox x:Name="chkShowExecutionTime" Content="show function execution time" HorizontalAlignment="Left" Margin="309,0,0,7" Width="190" Height="15" VerticalAlignment="Bottom" ToolTip="Trace field 4: Exit minus entry time" AutomationProperties.HelpText="Trace field 4: Exit minus entry time"/>
<CheckBox x:Name="ckbHighlightOwn" Content="highlight own functions" HorizontalAlignment="Left" Margin="9,0,0,5" Width="170" Height="17" VerticalAlignment="Bottom" AutomationProperties.HelpText="Trace field 7: user-defined (1) or internal function (0)" ToolTip="Trace field 7: user-defined (1) or internal function (0)"/>
</Grid>
</GroupBox>
<GroupBox Header="Trace file selection" HorizontalAlignment="Left" Margin="10,10,0,10" Width="410">
<Grid Margin="0,0,-12,-12">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ListView x:Name="TraceFileList" Margin="9,34,0,22" IsSynchronizedWithCurrentItem="True" RenderTransformOrigin="0.5,0.5" MouseUp="TraceFileList_MouseUp" HorizontalAlignment="Left" Width="380" SelectionMode="Single">
<ListView.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleY="0.122"/>
<RotateTransform/>
<TranslateTransform Y="0.406"/>
</TransformGroup>
</ListView.RenderTransform>
<ListView.View>
<GridView>
<GridViewColumn Header="XdebugTrace" DisplayMemberBinding="{Binding TraceFileName}" Width="150"/>
<GridViewColumn Header="Timestamp" DisplayMemberBinding="{Binding TraceFileDate}" Width="120"/>
<GridViewColumn Header="Size" Width="80">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding TraceFileSize}" TextAlignment="Right" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
<TextBox x:Name="tbSelectedFolder" HorizontalAlignment="Left" Height="20" Margin="10,10,0,0" TextWrapping="Wrap" Text="{Binding TracesFolder, Mode=TwoWay, Source={x:Static local:RuntimeConfig.Instance}}" VerticalAlignment="Top" Width="342" IsReadOnly="True"/>
<Button x:Name="btnSelectFolder" HorizontalAlignment="Left" Margin="357,10,0,0" VerticalAlignment="Top" Height="20" Width="32" Click="BtnSelectFolder_Click">
<StackPanel Orientation="Horizontal">
<Image Source="/XdbgTraceViewer;component/Images/folder-open.png" Height="18" Width="26" />
</StackPanel>
</Button>
</Grid>
</GroupBox>
</Grid>
</Window>
Loading

0 comments on commit 451a0ea

Please sign in to comment.