Added 'Create Document' dialog to GTK interface
This commit is contained in:
parent
30567d2889
commit
ccd00d9955
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
namespace UniversalEditor.Engines.GTK.Dialogs
|
||||
{
|
||||
public partial class CreateDocumentDialog : Gtk.Dialog
|
||||
{
|
||||
public CreateDocumentDialog ()
|
||||
{
|
||||
this.Build ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,6 +64,8 @@
|
||||
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.MainWindow.cs" />
|
||||
<Compile Include="Editor.cs" />
|
||||
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.Editor.cs" />
|
||||
<Compile Include="Dialogs\CreateDocumentDialog.cs" />
|
||||
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
@ -80,4 +82,7 @@
|
||||
<Name>UniversalEditor.UserInterface</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Dialogs\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@ -0,0 +1,9 @@
|
||||
|
||||
namespace UniversalEditor.Engines.GTK
|
||||
{
|
||||
public partial class CreateDocumentDialog
|
||||
{
|
||||
private Gtk.Button buttonCancel;
|
||||
private Gtk.Button buttonOk;
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<stetic-interface>
|
||||
<configuration>
|
||||
<images-root-path>../../UniversalEditor.Environments.GTK</images-root-path>
|
||||
<images-root-path>../../UniversalEditor.Engines.GTK</images-root-path>
|
||||
<target-gtk-version>2.12</target-gtk-version>
|
||||
</configuration>
|
||||
<import>
|
||||
@ -160,4 +160,89 @@
|
||||
<placeholder />
|
||||
</child>
|
||||
</widget>
|
||||
<widget class="Gtk.Dialog" id="UniversalEditor.Engines.GTK.Dialogs.CreateDocumentDialog" design-size="400 300">
|
||||
<property name="MemberName" />
|
||||
<property name="Title" translatable="yes">Create Document</property>
|
||||
<property name="WindowPosition">CenterOnParent</property>
|
||||
<property name="Buttons">2</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.HPaned" id="hpaned1">
|
||||
<property name="MemberName" />
|
||||
<property name="CanFocus">True</property>
|
||||
<property name="Position">154</property>
|
||||
<child>
|
||||
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
|
||||
<property name="MemberName" />
|
||||
<property name="ShadowType">In</property>
|
||||
<child>
|
||||
<widget class="Gtk.TreeView" id="tvDocumentTypes">
|
||||
<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>
|
||||
<placeholder />
|
||||
</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">2</property>
|
||||
<property name="LayoutStyle">End</property>
|
||||
<child>
|
||||
<widget class="Gtk.Button" id="buttonCancel">
|
||||
<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-cancel</property>
|
||||
<property name="ResponseId">-6</property>
|
||||
<property name="label">gtk-cancel</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="Expand">False</property>
|
||||
<property name="Fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<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="Position">1</property>
|
||||
<property name="Expand">False</property>
|
||||
<property name="Fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</stetic-interface>
|
||||
Loading…
x
Reference in New Issue
Block a user