Moved Perspective into Engine

This commit is contained in:
Michael Becker 2014-07-18 18:43:24 -04:00
parent 08f0a3c77f
commit 013c6ac4fe
6 changed files with 6 additions and 17 deletions

View File

@ -13,7 +13,7 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs
{
InitializeComponent();
foreach (Perspective perspective in PerspectiveManager.Perspectives)
foreach (Perspective perspective in Engine.CurrentEngine.Perspectives)
{
ListViewItem lvi = new ListViewItem();
lvi.Text = perspective.Title;

View File

@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.UserInterface.WindowsForms
{
public static class PerspectiveManager
{
private static Perspective.PerspectiveCollection mvarPerspectives = new Perspective.PerspectiveCollection();
public static Perspective.PerspectiveCollection Perspectives { get { return mvarPerspectives; } }
}
}

View File

@ -133,8 +133,6 @@
<DependentUpon>UnsavedDocumentsDialog.cs</DependentUpon>
</Compile>
<Compile Include="IconMethods.cs" />
<Compile Include="Perspective.cs" />
<Compile Include="PerspectiveManager.cs" />
<Compile Include="MainWindow.cs">
<SubType>Form</SubType>
</Compile>

View File

@ -770,6 +770,9 @@ namespace UniversalEditor.UserInterface
private static Engine mvarCurrentEngine = null;
public static Engine CurrentEngine { get { return mvarCurrentEngine; } }
private Perspective.PerspectiveCollection mvarPerspectives = new Perspective.PerspectiveCollection();
public Perspective.PerspectiveCollection Perspectives { get { return mvarPerspectives; } }
protected virtual void ShowSplashScreen()
{
}

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor
namespace UniversalEditor.UserInterface
{
public class Perspective
{

View File

@ -69,6 +69,7 @@
<Compile Include="Language.cs" />
<Compile Include="MenuBar.cs" />
<Compile Include="ObjectModelChangingEvent.cs" />
<Compile Include="Perspective.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="PropertyMapping.cs" />
<Compile Include="RecentFileManager.cs" />