Added About dialog and ObjectModelBrowser for the Create Document dialog

This commit is contained in:
Michael Becker 2014-08-09 21:38:19 -04:00
parent e807c0b627
commit c541d57244
9 changed files with 940 additions and 18 deletions

View File

@ -0,0 +1,75 @@
//
// ObjectModelBrowser.cs
//
// Author:
// beckermj <${AuthorEmail}>
//
// Copyright (c) 2014 beckermj
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
namespace UniversalEditor.Engines.GTK
{
[System.ComponentModel.ToolboxItem(true)]
public partial class ObjectModelBrowser : Gtk.Bin
{
public ObjectModelBrowser()
{
this.Build();
this.txtSearch.Changed += txtSearch_Changed;
this.tv.AppendColumn("Title", new Gtk.CellRendererText(), "text", 1);
this.tv.AppendColumn("Description", new Gtk.CellRendererText(), "text", 2);
UpdateTreeView();
}
private void txtSearch_Changed(object sender, EventArgs e)
{
UpdateTreeView();
}
private void UpdateTreeView()
{
ObjectModelReference[] omrs = UniversalEditor.Common.Reflection.GetAvailableObjectModels();
Gtk.TreeStore ts = new Gtk.TreeStore(typeof(ObjectModel), typeof(string), typeof(string));
foreach (ObjectModelReference omr in omrs)
{
if (omr == null) continue;
bool found = false;
if (!String.IsNullOrEmpty(txtSearch.Text))
{
if (omr.Title != null)
{
if (omr.Title.ToLower().Contains(txtSearch.Text.ToLower())) found = true;
}
if (omr.Description != null)
{
if (omr.Description.ToLower().Contains(txtSearch.Text.ToLower())) found = true;
}
}
else
{
found = true;
}
if (found)
{
ts.AppendValues(omr, omr.Title, omr.Description);
}
}
tv.Model = ts;
}
}
}

View File

@ -0,0 +1,34 @@
//
// AboutDialog.cs
//
// Author:
// beckermj <${AuthorEmail}>
//
// Copyright (c) 2014 beckermj
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using UniversalEditor.UserInterface;
namespace UniversalEditor.Engines.GTK
{
public partial class AboutDialog : Gtk.Dialog
{
public AboutDialog()
{
this.Build();
this.Title = "About " + Engine.CurrentEngine.DefaultLanguage.GetStringTableEntry("ApplicationTitle", "Universal Editor");
}
}
}

View File

@ -6,6 +6,7 @@ namespace UniversalEditor.Engines.GTK.Dialogs
public CreateDocumentDialog ()
{
this.Build ();
}
}
}

View File

@ -15,6 +15,14 @@ namespace UniversalEditor.Engines.GTK
Build ();
InitializeMenuBar();
tbsDocumentTabs.RemovePage(0);
RefreshEditor();
}
protected override void OnShown()
{
base.OnShown();
this.Maximize();
}
public void ShowStartPage()
@ -286,6 +294,20 @@ namespace UniversalEditor.Engines.GTK
}
}
private void RefreshEditor()
{
Editor editor = (GetCurrentEditor() as Editor);
string WindowTitle = Engine.CurrentEngine.DefaultLanguage.GetStringTableEntry("ApplicationTitle", "Universal Editor");
if (editor != null)
{
}
else
{
}
this.Title = WindowTitle;
}
private void AddDocumentTab(Widget child, string tabTitle, Document doc = null)
{
child.Data.Add("Document", doc);

View File

@ -66,6 +66,10 @@
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.MainWindow.cs" />
<Compile Include="Dialogs\CreateDocumentDialog.cs" />
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog.cs" />
<Compile Include="Controls\ObjectModelBrowser.cs" />
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.ObjectModelBrowser.cs" />
<Compile Include="Dialogs\AboutDialog.cs" />
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.AboutDialog.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
@ -84,5 +88,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Dialogs\" />
<Folder Include="Controls\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,263 @@
// This file has been generated by the GUI designer. Do not modify.
namespace UniversalEditor.Engines.GTK
{
public partial class AboutDialog
{
private global::Gtk.VBox vbox3;
private global::Gtk.Image picLogo;
private global::Gtk.Label label1;
private global::Gtk.Label lblVersion;
private global::Gtk.Notebook tbsTabs;
private global::Gtk.ScrolledWindow GtkScrolledWindow1;
private global::Gtk.TextView txtApplicationInformation;
private global::Gtk.Label label9;
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.TextView txtApplicationLicense;
private global::Gtk.Label label3;
private global::Gtk.HPaned hpaned2;
private global::Gtk.ScrolledWindow GtkScrolledWindow5;
private global::Gtk.TreeView tvComponents;
private global::Gtk.Notebook notebook2;
private global::Gtk.VBox vbox4;
private global::Gtk.Label label13;
private global::Gtk.Label label12;
private global::Gtk.ScrolledWindow GtkScrolledWindow4;
private global::Gtk.TextView textview5;
private global::Gtk.Label label6;
private global::Gtk.ScrolledWindow GtkScrolledWindow3;
private global::Gtk.TreeView tvComponentContributors;
private global::Gtk.Label label7;
private global::Gtk.ScrolledWindow GtkScrolledWindow2;
private global::Gtk.TextView txtComponentLicense;
private global::Gtk.Label label8;
private global::Gtk.Label label11;
private global::Gtk.Button buttonOk;
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
// Widget UniversalEditor.Engines.GTK.AboutDialog
this.Name = "UniversalEditor.Engines.GTK.AboutDialog";
this.Title = global::Mono.Unix.Catalog.GetString ("About [ApplicationTitle]");
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
this.Resizable = false;
// Internal child UniversalEditor.Engines.GTK.AboutDialog.VBox
global::Gtk.VBox w1 = this.VBox;
w1.Name = "dialog1_VBox";
w1.BorderWidth = ((uint)(2));
// Container child dialog1_VBox.Gtk.Box+BoxChild
this.vbox3 = new global::Gtk.VBox ();
this.vbox3.Name = "vbox3";
this.vbox3.Spacing = 6;
// Container child vbox3.Gtk.Box+BoxChild
this.picLogo = new global::Gtk.Image ();
this.picLogo.Name = "picLogo";
this.vbox3.Add (this.picLogo);
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.picLogo]));
w2.Position = 0;
w2.Expand = false;
w2.Fill = false;
// Container child vbox3.Gtk.Box+BoxChild
this.label1 = new global::Gtk.Label ();
this.label1.Name = "label1";
this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("<big><big><big><b>Universal Editor</b></big></big></big>");
this.label1.UseMarkup = true;
this.vbox3.Add (this.label1);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.label1]));
w3.Position = 1;
w3.Expand = false;
w3.Fill = false;
// Container child vbox3.Gtk.Box+BoxChild
this.lblVersion = new global::Gtk.Label ();
this.lblVersion.Name = "lblVersion";
this.lblVersion.LabelProp = global::Mono.Unix.Catalog.GetString ("Version 1.0");
this.vbox3.Add (this.lblVersion);
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.lblVersion]));
w4.Position = 2;
w4.Expand = false;
w4.Fill = false;
// Container child vbox3.Gtk.Box+BoxChild
this.tbsTabs = new global::Gtk.Notebook ();
this.tbsTabs.CanFocus = true;
this.tbsTabs.Name = "tbsTabs";
this.tbsTabs.CurrentPage = 0;
// Container child tbsTabs.Gtk.Notebook+NotebookChild
this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
this.txtApplicationInformation = new global::Gtk.TextView ();
this.txtApplicationInformation.Buffer.Text = "Universal Editor is a cross-platform, Free Software modular document editor. Anyone can write plugins that provide new DataFormats, ObjectModels, and Accessors for use with the Universal Editor Platform. The Universal Editor Platform can be customized to meet your specific needs.\n\nThis implementation of the Universal Editor Platform is primarily developed and supported by Michael Becker with contributions from other Free Software developers. See the Components tab for information on individual contributors to various Universal Editor Platform components.";
this.txtApplicationInformation.CanFocus = true;
this.txtApplicationInformation.Name = "txtApplicationInformation";
this.txtApplicationInformation.WrapMode = ((global::Gtk.WrapMode)(2));
this.GtkScrolledWindow1.Add (this.txtApplicationInformation);
this.tbsTabs.Add (this.GtkScrolledWindow1);
// Notebook tab
this.label9 = new global::Gtk.Label ();
this.label9.Name = "label9";
this.label9.LabelProp = global::Mono.Unix.Catalog.GetString ("Information");
this.tbsTabs.SetTabLabel (this.GtkScrolledWindow1, this.label9);
this.label9.ShowAll ();
// Container child tbsTabs.Gtk.Notebook+NotebookChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
this.txtApplicationLicense = new global::Gtk.TextView ();
this.txtApplicationLicense.CanFocus = true;
this.txtApplicationLicense.Name = "txtApplicationLicense";
this.GtkScrolledWindow.Add (this.txtApplicationLicense);
this.tbsTabs.Add (this.GtkScrolledWindow);
global::Gtk.Notebook.NotebookChild w8 = ((global::Gtk.Notebook.NotebookChild)(this.tbsTabs [this.GtkScrolledWindow]));
w8.Position = 1;
// Notebook tab
this.label3 = new global::Gtk.Label ();
this.label3.Name = "label3";
this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("License");
this.tbsTabs.SetTabLabel (this.GtkScrolledWindow, this.label3);
this.label3.ShowAll ();
// Container child tbsTabs.Gtk.Notebook+NotebookChild
this.hpaned2 = new global::Gtk.HPaned ();
this.hpaned2.CanFocus = true;
this.hpaned2.Name = "hpaned2";
this.hpaned2.Position = 166;
// Container child hpaned2.Gtk.Paned+PanedChild
this.GtkScrolledWindow5 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow5.Name = "GtkScrolledWindow5";
this.GtkScrolledWindow5.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow5.Gtk.Container+ContainerChild
this.tvComponents = new global::Gtk.TreeView ();
this.tvComponents.CanFocus = true;
this.tvComponents.Name = "tvComponents";
this.GtkScrolledWindow5.Add (this.tvComponents);
this.hpaned2.Add (this.GtkScrolledWindow5);
global::Gtk.Paned.PanedChild w10 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.GtkScrolledWindow5]));
w10.Resize = false;
// Container child hpaned2.Gtk.Paned+PanedChild
this.notebook2 = new global::Gtk.Notebook ();
this.notebook2.CanFocus = true;
this.notebook2.Name = "notebook2";
this.notebook2.CurrentPage = 2;
// Container child notebook2.Gtk.Notebook+NotebookChild
this.vbox4 = new global::Gtk.VBox ();
this.vbox4.Name = "vbox4";
this.vbox4.Spacing = 6;
// Container child vbox4.Gtk.Box+BoxChild
this.label13 = new global::Gtk.Label ();
this.label13.Name = "label13";
this.label13.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Acme Plug-In for Universal Editor</b>");
this.label13.UseMarkup = true;
this.vbox4.Add (this.label13);
global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.label13]));
w11.Position = 0;
w11.Expand = false;
w11.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild
this.label12 = new global::Gtk.Label ();
this.label12.Name = "label12";
this.label12.LabelProp = global::Mono.Unix.Catalog.GetString ("Version 5.0");
this.vbox4.Add (this.label12);
global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.label12]));
w12.Position = 1;
w12.Expand = false;
w12.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild
this.GtkScrolledWindow4 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow4.Name = "GtkScrolledWindow4";
this.GtkScrolledWindow4.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow4.Gtk.Container+ContainerChild
this.textview5 = new global::Gtk.TextView ();
this.textview5.CanFocus = true;
this.textview5.Name = "textview5";
this.GtkScrolledWindow4.Add (this.textview5);
this.vbox4.Add (this.GtkScrolledWindow4);
global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.GtkScrolledWindow4]));
w14.Position = 2;
this.notebook2.Add (this.vbox4);
// Notebook tab
this.label6 = new global::Gtk.Label ();
this.label6.Name = "label6";
this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Information");
this.notebook2.SetTabLabel (this.vbox4, this.label6);
this.label6.ShowAll ();
// Container child notebook2.Gtk.Notebook+NotebookChild
this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
this.tvComponentContributors = new global::Gtk.TreeView ();
this.tvComponentContributors.CanFocus = true;
this.tvComponentContributors.Name = "tvComponentContributors";
this.GtkScrolledWindow3.Add (this.tvComponentContributors);
this.notebook2.Add (this.GtkScrolledWindow3);
global::Gtk.Notebook.NotebookChild w17 = ((global::Gtk.Notebook.NotebookChild)(this.notebook2 [this.GtkScrolledWindow3]));
w17.Position = 1;
// Notebook tab
this.label7 = new global::Gtk.Label ();
this.label7.Name = "label7";
this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Contributors");
this.notebook2.SetTabLabel (this.GtkScrolledWindow3, this.label7);
this.label7.ShowAll ();
// Container child notebook2.Gtk.Notebook+NotebookChild
this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
this.txtComponentLicense = new global::Gtk.TextView ();
this.txtComponentLicense.CanFocus = true;
this.txtComponentLicense.Name = "txtComponentLicense";
this.GtkScrolledWindow2.Add (this.txtComponentLicense);
this.notebook2.Add (this.GtkScrolledWindow2);
global::Gtk.Notebook.NotebookChild w19 = ((global::Gtk.Notebook.NotebookChild)(this.notebook2 [this.GtkScrolledWindow2]));
w19.Position = 2;
// Notebook tab
this.label8 = new global::Gtk.Label ();
this.label8.Name = "label8";
this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("License");
this.notebook2.SetTabLabel (this.GtkScrolledWindow2, this.label8);
this.label8.ShowAll ();
this.hpaned2.Add (this.notebook2);
this.tbsTabs.Add (this.hpaned2);
global::Gtk.Notebook.NotebookChild w21 = ((global::Gtk.Notebook.NotebookChild)(this.tbsTabs [this.hpaned2]));
w21.Position = 2;
// Notebook tab
this.label11 = new global::Gtk.Label ();
this.label11.Name = "label11";
this.label11.LabelProp = global::Mono.Unix.Catalog.GetString ("Components");
this.tbsTabs.SetTabLabel (this.hpaned2, this.label11);
this.label11.ShowAll ();
this.vbox3.Add (this.tbsTabs);
global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.tbsTabs]));
w22.Position = 3;
w1.Add (this.vbox3);
global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox3]));
w23.Position = 0;
// Internal child UniversalEditor.Engines.GTK.AboutDialog.ActionArea
global::Gtk.HButtonBox w24 = this.ActionArea;
w24.Name = "dialog1_ActionArea";
w24.Spacing = 10;
w24.BorderWidth = ((uint)(5));
w24.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonOk = new global::Gtk.Button ();
this.buttonOk.CanDefault = true;
this.buttonOk.CanFocus = true;
this.buttonOk.Name = "buttonOk";
this.buttonOk.UseStock = true;
this.buttonOk.UseUnderline = true;
this.buttonOk.Label = "gtk-ok";
this.AddActionWidget (this.buttonOk, -5);
global::Gtk.ButtonBox.ButtonBoxChild w25 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w24 [this.buttonOk]));
w25.Expand = false;
w25.Fill = false;
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.DefaultWidth = 572;
this.DefaultHeight = 444;
this.Show ();
}
}
}

View File

@ -4,6 +4,15 @@ namespace UniversalEditor.Engines.GTK.Dialogs
{
public partial class CreateDocumentDialog
{
private global::Gtk.HPaned hpaned1;
private global::Gtk.Frame frame2;
private global::Gtk.Alignment GtkAlignment3;
private global::UniversalEditor.Engines.GTK.ObjectModelBrowser omb;
private global::Gtk.Label GtkLabel3;
private global::Gtk.Frame frame1;
private global::Gtk.Alignment GtkAlignment2;
private global::Gtk.IconView iconview1;
private global::Gtk.Label GtkLabel2;
private global::Gtk.Button buttonCancel;
private global::Gtk.Button buttonOk;
@ -12,18 +21,68 @@ namespace UniversalEditor.Engines.GTK.Dialogs
global::Stetic.Gui.Initialize (this);
// Widget UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog
this.Name = "UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog";
this.Title = global::Mono.Unix.Catalog.GetString ("dialog1");
this.Title = global::Mono.Unix.Catalog.GetString ("Create Document");
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
// Internal child UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog.VBox
global::Gtk.VBox w1 = this.VBox;
w1.Name = "dialog1_VBox";
w1.BorderWidth = ((uint)(2));
// Container child dialog1_VBox.Gtk.Box+BoxChild
this.hpaned1 = new global::Gtk.HPaned ();
this.hpaned1.CanFocus = true;
this.hpaned1.Name = "hpaned1";
this.hpaned1.Position = 235;
// Container child hpaned1.Gtk.Paned+PanedChild
this.frame2 = new global::Gtk.Frame ();
this.frame2.Name = "frame2";
this.frame2.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child frame2.Gtk.Container+ContainerChild
this.GtkAlignment3 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
this.GtkAlignment3.Name = "GtkAlignment3";
this.GtkAlignment3.LeftPadding = ((uint)(12));
// Container child GtkAlignment3.Gtk.Container+ContainerChild
this.omb = new global::UniversalEditor.Engines.GTK.ObjectModelBrowser ();
this.omb.Events = ((global::Gdk.EventMask)(256));
this.omb.Name = "omb";
this.GtkAlignment3.Add (this.omb);
this.frame2.Add (this.GtkAlignment3);
this.GtkLabel3 = new global::Gtk.Label ();
this.GtkLabel3.Name = "GtkLabel3";
this.GtkLabel3.LabelProp = global::Mono.Unix.Catalog.GetString ("Document Types");
this.GtkLabel3.UseMarkup = true;
this.frame2.LabelWidget = this.GtkLabel3;
this.hpaned1.Add (this.frame2);
global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.frame2]));
w4.Resize = false;
// Container child hpaned1.Gtk.Paned+PanedChild
this.frame1 = new global::Gtk.Frame ();
this.frame1.Name = "frame1";
this.frame1.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child frame1.Gtk.Container+ContainerChild
this.GtkAlignment2 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
this.GtkAlignment2.Name = "GtkAlignment2";
this.GtkAlignment2.LeftPadding = ((uint)(12));
// Container child GtkAlignment2.Gtk.Container+ContainerChild
this.iconview1 = new global::Gtk.IconView ();
this.iconview1.CanFocus = true;
this.iconview1.Name = "iconview1";
this.GtkAlignment2.Add (this.iconview1);
this.frame1.Add (this.GtkAlignment2);
this.GtkLabel2 = new global::Gtk.Label ();
this.GtkLabel2.Name = "GtkLabel2";
this.GtkLabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("Templates");
this.GtkLabel2.UseMarkup = true;
this.frame1.LabelWidget = this.GtkLabel2;
this.hpaned1.Add (this.frame1);
w1.Add (this.hpaned1);
global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1 [this.hpaned1]));
w8.Position = 0;
// Internal child UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog.ActionArea
global::Gtk.HButtonBox w2 = this.ActionArea;
w2.Name = "dialog1_ActionArea";
w2.Spacing = 10;
w2.BorderWidth = ((uint)(5));
w2.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
global::Gtk.HButtonBox w9 = this.ActionArea;
w9.Name = "dialog1_ActionArea";
w9.Spacing = 10;
w9.BorderWidth = ((uint)(5));
w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonCancel = new global::Gtk.Button ();
this.buttonCancel.CanDefault = true;
@ -33,9 +92,9 @@ namespace UniversalEditor.Engines.GTK.Dialogs
this.buttonCancel.UseUnderline = true;
this.buttonCancel.Label = "gtk-cancel";
this.AddActionWidget (this.buttonCancel, -6);
global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w2 [this.buttonCancel]));
w3.Expand = false;
w3.Fill = false;
global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9 [this.buttonCancel]));
w10.Expand = false;
w10.Fill = false;
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonOk = new global::Gtk.Button ();
this.buttonOk.CanDefault = true;
@ -45,15 +104,15 @@ namespace UniversalEditor.Engines.GTK.Dialogs
this.buttonOk.UseUnderline = true;
this.buttonOk.Label = "gtk-ok";
this.AddActionWidget (this.buttonOk, -5);
global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w2 [this.buttonOk]));
w4.Position = 1;
w4.Expand = false;
w4.Fill = false;
global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9 [this.buttonOk]));
w11.Position = 1;
w11.Expand = false;
w11.Fill = false;
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.DefaultWidth = 400;
this.DefaultHeight = 300;
this.DefaultWidth = 593;
this.DefaultHeight = 354;
this.Show ();
}
}

View File

@ -0,0 +1,52 @@
// This file has been generated by the GUI designer. Do not modify.
namespace UniversalEditor.Engines.GTK
{
public partial class ObjectModelBrowser
{
private global::Gtk.VBox vbox2;
private global::Gtk.Entry txtSearch;
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.TreeView tv;
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
// Widget UniversalEditor.Engines.GTK.ObjectModelBrowser
global::Stetic.BinContainer.Attach (this);
this.Name = "UniversalEditor.Engines.GTK.ObjectModelBrowser";
// Container child UniversalEditor.Engines.GTK.ObjectModelBrowser.Gtk.Container+ContainerChild
this.vbox2 = new global::Gtk.VBox ();
this.vbox2.Name = "vbox2";
this.vbox2.Spacing = 6;
// Container child vbox2.Gtk.Box+BoxChild
this.txtSearch = new global::Gtk.Entry ();
this.txtSearch.CanFocus = true;
this.txtSearch.Name = "txtSearch";
this.txtSearch.IsEditable = true;
this.txtSearch.InvisibleChar = '•';
this.vbox2.Add (this.txtSearch);
global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.txtSearch]));
w1.Position = 0;
w1.Expand = false;
w1.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
this.tv = new global::Gtk.TreeView ();
this.tv.CanFocus = true;
this.tv.Name = "tv";
this.GtkScrolledWindow.Add (this.tv);
this.vbox2.Add (this.GtkScrolledWindow);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow]));
w3.Position = 1;
this.Add (this.vbox2);
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.Hide ();
}
}
}

View File

@ -94,9 +94,9 @@
</widget>
</child>
</widget>
<widget class="Gtk.Dialog" id="UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog" design-size="400 300">
<widget class="Gtk.Dialog" id="UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog" design-size="593 354">
<property name="MemberName" />
<property name="Title" translatable="yes">dialog1</property>
<property name="Title" translatable="yes">Create Document</property>
<property name="WindowPosition">CenterOnParent</property>
<property name="Buttons">2</property>
<property name="HelpButton">False</property>
@ -105,7 +105,78 @@
<property name="MemberName" />
<property name="BorderWidth">2</property>
<child>
<placeholder />
<widget class="Gtk.HPaned" id="hpaned1">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Position">235</property>
<child>
<widget class="Gtk.Frame" id="frame2">
<property name="MemberName" />
<property name="ShadowType">None</property>
<child>
<widget class="Gtk.Alignment" id="GtkAlignment3">
<property name="MemberName" />
<property name="Xalign">0</property>
<property name="Yalign">0</property>
<property name="LeftPadding">12</property>
<child>
<widget class="UniversalEditor.Engines.GTK.ObjectModelBrowser" id="omb">
<property name="MemberName" />
<property name="Events">ButtonPressMask</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="Gtk.Label" id="GtkLabel3">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Document Types</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="Resize">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Frame" id="frame1">
<property name="MemberName" />
<property name="ShadowType">None</property>
<child>
<widget class="Gtk.Alignment" id="GtkAlignment2">
<property name="MemberName" />
<property name="Xalign">0</property>
<property name="Yalign">0</property>
<property name="LeftPadding">12</property>
<child>
<widget class="Gtk.IconView" id="iconview1">
<property name="MemberName" />
<property name="CanFocus">True</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="Gtk.Label" id="GtkLabel2">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Templates</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
</child>
@ -152,4 +223,344 @@
</widget>
</child>
</widget>
<widget class="Gtk.Bin" id="UniversalEditor.Engines.GTK.ObjectModelBrowser" design-size="300 300">
<property name="MemberName" />
<property name="Visible">False</property>
<child>
<widget class="Gtk.VBox" id="vbox2">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Entry" id="txtSearch">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="IsEditable">True</property>
<property name="InvisibleChar">•</property>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TreeView" id="tv">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
</child>
</widget>
<widget class="Gtk.Dialog" id="UniversalEditor.Engines.GTK.AboutDialog" design-size="572 444">
<property name="MemberName" />
<property name="Title" translatable="yes">About [ApplicationTitle]</property>
<property name="WindowPosition">CenterOnParent</property>
<property name="Resizable">False</property>
<property name="Buttons">1</property>
<property name="HelpButton">False</property>
<child internal-child="VBox">
<widget class="Gtk.VBox" id="dialog1_VBox">
<property name="MemberName" />
<property name="BorderWidth">2</property>
<child>
<widget class="Gtk.VBox" id="vbox3">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Image" id="picLogo">
<property name="MemberName" />
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label1">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">&lt;big&gt;&lt;big&gt;&lt;big&gt;&lt;b&gt;Universal Editor&lt;/b&gt;&lt;/big&gt;&lt;/big&gt;&lt;/big&gt;</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="lblVersion">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Version 1.0</property>
</widget>
<packing>
<property name="Position">2</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Notebook" id="tbsTabs">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="CurrentPage">0</property>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow1">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TextView" id="txtApplicationInformation">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
<property name="Text" translatable="yes">Universal Editor is a cross-platform, Free Software modular document editor. Anyone can write plugins that provide new DataFormats, ObjectModels, and Accessors for use with the Universal Editor Platform. The Universal Editor Platform can be customized to meet your specific needs.
This implementation of the Universal Editor Platform is primarily developed and supported by Michael Becker with contributions from other Free Software developers. See the Components tab for information on individual contributors to various Universal Editor Platform components.</property>
<property name="WrapMode">Word</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="Gtk.Label" id="label9">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Information</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TextView" id="txtApplicationLicense">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
<property name="Text" translatable="yes" />
</widget>
</child>
</widget>
<packing>
<property name="Position">1</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label3">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">License</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="Gtk.HPaned" id="hpaned2">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Position">166</property>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow5">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TreeView" id="tvComponents">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Resize">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Notebook" id="notebook2">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="CurrentPage">2</property>
<child>
<widget class="Gtk.VBox" id="vbox4">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Label" id="label13">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">&lt;b&gt;Acme Plug-In for Universal Editor&lt;/b&gt;</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label12">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Version 5.0</property>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow4">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TextView" id="textview5">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
<property name="Text" translatable="yes" />
</widget>
</child>
</widget>
<packing>
<property name="Position">2</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
</child>
<child>
<widget class="Gtk.Label" id="label6">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Information</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow3">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TreeView" id="tvComponentContributors">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Position">1</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label7">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Contributors</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow2">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TextView" id="txtComponentLicense">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
<property name="Text" translatable="yes" />
</widget>
</child>
</widget>
<packing>
<property name="Position">2</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label8">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">License</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="Position">2</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label11">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Components</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">3</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
</child>
<child internal-child="ActionArea">
<widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
<property name="MemberName" />
<property name="Spacing">10</property>
<property name="BorderWidth">5</property>
<property name="Size">1</property>
<property name="LayoutStyle">End</property>
<child>
<widget class="Gtk.Button" id="buttonOk">
<property name="MemberName" />
<property name="CanDefault">True</property>
<property name="CanFocus">True</property>
<property name="UseStock">True</property>
<property name="Type">StockItem</property>
<property name="StockId">gtk-ok</property>
<property name="ResponseId">-5</property>
<property name="label">gtk-ok</property>
</widget>
<packing>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
</widget>
</child>
</widget>
</stetic-interface>