Skip to content

Commit

Permalink
Begin work integrating the git app in
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyeeedar committed Dec 30, 2019
1 parent 4d97005 commit 5b52ef3
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "StructuredXmlEditor/Tools/GitTool"]
path = StructuredXmlEditor/Tools/GitTool
url = https://github.com/Lyeeedar/GitApp.git
1 change: 1 addition & 0 deletions StructuredXmlEditor/Data/Workspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public Workspace()
Tools.Add(new ProjectViewTool(this));
Tools.Add(new TemplateCreatorTool(this));
Tools.Add(new FocusTool(this));
Tools.Add(new GitTool(this));

Thread workerThread = new Thread(WorkerThreadLoop);
workerThread.IsBackground = true;
Expand Down
5 changes: 5 additions & 0 deletions StructuredXmlEditor/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@
DataType="{x:Type t:TemplateCreatorTool}">
<v:TemplateCreatorToolView />
</DataTemplate>
<DataTemplate
DataType="{x:Type t:GitTool}">
<ContentPresenter
Content="{Binding View}" />
</DataTemplate>
</dock:DockingManager.Resources>

<dock:DockingManager.LayoutItemContainerStyleSelector>
Expand Down
Binary file added StructuredXmlEditor/Resources/Branch.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 StructuredXmlEditor/Resources/DownArrow.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 StructuredXmlEditor/Resources/Pull.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 StructuredXmlEditor/Resources/Push.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 121 additions & 0 deletions StructuredXmlEditor/StructuredXmlEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,41 @@
<Compile Include="Definition\ReferenceDefinition.cs" />
<Compile Include="Definition\TreeDefinition.cs" />
<Compile Include="Tools\FocusTool.cs" />
<Compile Include="Tools\GitTool.cs" />
<Compile Include="Tools\GitTool\GitApp\Util\Command.cs" />
<Compile Include="Tools\GitTool\GitApp\Util\Extensions.cs" />
<Compile Include="Tools\GitTool\GitApp\Util\Future.cs" />
<Compile Include="Tools\GitTool\GitApp\Util\NotifyPropertyChanged.cs" />
<Compile Include="Tools\GitTool\GitApp\Util\Pool.cs" />
<Compile Include="Tools\GitTool\GitApp\Util\ProcessUtils.cs" />
<Compile Include="Tools\GitTool\GitApp\ViewModel.cs" />
<Compile Include="Tools\GitTool\GitApp\ViewModelView.xaml.cs">
<DependentUpon>ViewModelView.xaml</DependentUpon>
</Compile>
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\AnimatedImage.xaml.cs">
<DependentUpon>AnimatedImage.xaml</DependentUpon>
</Compile>
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\AutoCompleteTextBox.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\ColourPicker\ColorCanvas.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\ColourPicker\ColorSpectrumSlider.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\ColourPicker\ColourUtilities.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\ColourPicker\HsvColor.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\ContentPopup.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\InsertionAdorner.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\MenuItemGroupHeader.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\Message.xaml.cs">
<DependentUpon>Message.xaml</DependentUpon>
</Compile>
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\MultilineTextEditor.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\NumericTextBox.cs" />
<Compile Include="Tools\GitTool\GitApp\View\CustomControls\PromptTextBox.cs" />
<Compile Include="Tools\GitTool\GitApp\View\SharedResourceDictionary.cs" />
<Compile Include="Tools\GitTool\GitApp\View\ValueConverters\ColourMarkupConverter.cs" />
<Compile Include="Tools\GitTool\GitApp\View\ValueConverters\ContrastTextConverter.cs" />
<Compile Include="Tools\GitTool\GitApp\View\ValueConverters\ConverterBase.cs" />
<Compile Include="Tools\GitTool\GitApp\View\ValueConverters\NullImageConverter.cs" />
<Compile Include="Tools\GitTool\GitApp\View\ValueConverters\NullOrZeroConverter.cs" />
<Compile Include="Tools\GitTool\GitApp\View\ValueConverters\ValueTypeConverter.cs" />
<Compile Include="Tools\ProjectView\ProjectItem.cs" />
<Compile Include="Tools\ProjectView\ProjectViewTool.cs" />
<Compile Include="Tools\StartPage.cs" />
Expand Down Expand Up @@ -239,6 +274,86 @@
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Page Include="Tools\GitTool\GitApp\ViewModelView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Tools\GitTool\GitApp\View\CustomControls\AnimatedImage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\CustomControls\Message.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\AutoCompleteTextBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\Brushes.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\Button.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\CheckBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\ColorCanvas.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\ComboBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\ContentPopup.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\GeneralStyles.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\ListView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\Menu.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\MultilineTextEditor.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\NumericTextBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\PromptTextBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\Scrollbar.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\Slider.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\TabControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Tools\GitTool\GitApp\View\Styles\TextBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="View\CustomControls\AnimatedImage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down Expand Up @@ -443,6 +558,12 @@
<ItemGroup>
<Resource Include="Resources\DefIcon.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Branch.png" />
<Resource Include="Resources\DownArrow.png" />
<Resource Include="Resources\Pull.png" />
<Resource Include="Resources\Push.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Fody.4.2.1\build\Fody.targets" Condition="Exists('..\packages\Fody.4.2.1\build\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
1 change: 1 addition & 0 deletions StructuredXmlEditor/Tools/GitTool
Submodule GitTool added at 29c0d2
32 changes: 32 additions & 0 deletions StructuredXmlEditor/Tools/GitTool.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GitApp;
using StructuredXmlEditor.Data;

namespace StructuredXmlEditor.Tools
{
public class GitTool : ToolBase
{
public ViewModelView View
{
get
{
if (m_view == null)
{
m_view = new GitApp.ViewModelView();
}

return m_view;
}
}
private GitApp.ViewModelView m_view;

public GitTool(Workspace workspace) : base(workspace, "Git Tool")
{
DefaultPositionDocument = ToolPosition.Document;
}
}
}

0 comments on commit 5b52ef3

Please sign in to comment.