add DocumentExplorerPanel

This commit is contained in:
Michael Becker 2019-12-22 02:45:25 -05:00
parent 52f28fb7e9
commit c6c1cc87b3
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7
3 changed files with 30 additions and 0 deletions

View File

@ -39,6 +39,7 @@ namespace UniversalEditor.UserInterface
private ErrorListPanel pnlErrorList = new ErrorListPanel();
private SolutionExplorerPanel pnlSolutionExplorer = new SolutionExplorerPanel();
private PropertyListPanel pnlPropertyList = new PropertyListPanel();
private DocumentExplorerPanel pnlDocumentExplorer = new DocumentExplorerPanel();
private RibbonTab LoadRibbonBar(CommandBar cb)
{
@ -244,6 +245,8 @@ namespace UniversalEditor.UserInterface
lblToolbox.Text = "TOOLBOX PLACEHOLDER";
AddPanel("Toolbox", DockingItemPlacement.Left, lblToolbox);
AddPanel("Document Explorer", DockingItemPlacement.Bottom, pnlDocumentExplorer);
DockingContainer dcExplorerProperties = AddPanelContainer(DockingItemPlacement.Right, null);
AddPanel("Solution Explorer", DockingItemPlacement.Top, pnlSolutionExplorer, dcExplorerProperties);
AddPanel("Properties", DockingItemPlacement.Bottom, pnlPropertyList, dcExplorerProperties);

View File

@ -0,0 +1,26 @@
using System;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Controls;
using MBS.Framework.UserInterface.Layouts;
namespace UniversalEditor.UserInterface.Panels
{
public class DocumentExplorerPanel : Panel
{
private ListView lv = null;
private DefaultTreeModel tm = null;
public DocumentExplorerPanel()
{
Layout = new BoxLayout(Orientation.Vertical);
lv = new ListView();
tm = new DefaultTreeModel(new Type[] { typeof(string) });
lv.Model = tm;
lv.HeaderStyle = ColumnHeaderStyle.None;
lv.Columns.Add(new ListViewColumnText(tm.Columns[0], "Item"));
Controls.Add(lv, new BoxLayout.Constraints(true, true));
}
}
}

View File

@ -134,6 +134,7 @@
<Compile Include="Panels\PropertyListPanel.cs" />
<Compile Include="Panels\PropertyListPanel.Designer.cs" />
<Compile Include="View.cs" />
<Compile Include="Panels\DocumentExplorerPanel.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">