no more submodule
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Gtk;
|
||||
using UI = Gtk.Builder.ObjectAttribute;
|
||||
|
||||
namespace ${Namespace}
|
||||
{
|
||||
class ${EscapedIdentifier} : Dialog
|
||||
{
|
||||
public MyDialog() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
|
||||
|
||||
private MyDialog(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
|
||||
{
|
||||
builder.Autoconnect(this);
|
||||
DefaultResponse = ResponseType.Cancel;
|
||||
|
||||
Response += OnResponse;
|
||||
}
|
||||
|
||||
private void OnResponse(object o, ResponseArgs args)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace ${Namespace}
|
||||
|
||||
open Gtk
|
||||
|
||||
type ${EscapedIdentifier} (builder : Builder) as this =
|
||||
inherit Dialog(builder.GetObject("${EscapedIdentifier}").Handle)
|
||||
do
|
||||
this.DefaultResponse <- ResponseType.Cancel;
|
||||
this.Response.Add(fun _ ->
|
||||
this.Hide();
|
||||
)
|
||||
|
||||
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.18"/>
|
||||
<object class="GtkDialog" id="${EscapedIdentifier}">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="default_width">320</property>
|
||||
<property name="default_height">260</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<child internal-child="vbox">
|
||||
<object class="GtkBox">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">2</property>
|
||||
<child internal-child="action_area">
|
||||
<object class="GtkButtonBox">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="layout_style">end</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="label">gtk-close</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_stock">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<action-widgets>
|
||||
<action-widget response="-7">button1</action-widget>
|
||||
</action-widgets>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using Gtk;
|
||||
using UI = Gtk.Builder.ObjectAttribute;
|
||||
|
||||
namespace ${Namespace}
|
||||
{
|
||||
public class ${EscapedIdentifier} : Box
|
||||
{
|
||||
public ${EscapedIdentifier}() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
|
||||
|
||||
private ${EscapedIdentifier}(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
|
||||
{
|
||||
builder.Autoconnect(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace ${Namespace}
|
||||
|
||||
open Gtk
|
||||
|
||||
type ${EscapedIdentifier} (builder : Builder) =
|
||||
inherit Box(builder.GetObject("${EscapedIdentifier}").Handle)
|
||||
|
||||
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.18"/>
|
||||
<object class="GtkBox" id="${EscapedIdentifier}">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using Gtk;
|
||||
using UI = Gtk.Builder.ObjectAttribute;
|
||||
|
||||
namespace ${Namespace}
|
||||
{
|
||||
class ${EscapedIdentifier} : Window
|
||||
{
|
||||
public ${EscapedIdentifier}() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
|
||||
|
||||
private ${EscapedIdentifier}(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
|
||||
{
|
||||
builder.Autoconnect(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace ${Namespace}
|
||||
|
||||
open Gtk
|
||||
|
||||
type ${EscapedIdentifier} (builder : Builder) =
|
||||
inherit Window(builder.GetObject("${EscapedIdentifier}").Handle)
|
||||
|
||||
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.18"/>
|
||||
<object class="GtkWindow" id="${EscapedIdentifier}">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="title" translatable="yes">${Name}</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Template>
|
||||
<TemplateConfiguration>
|
||||
<_Name>Dialog</_Name>
|
||||
<Icon>md-gui-file</Icon>
|
||||
<_Category>Gtk</_Category>
|
||||
<LanguageName>C#</LanguageName>
|
||||
<DefaultFilename>MyDialog</DefaultFilename>
|
||||
<_Description>Creates a new Gtk dialog.</_Description>
|
||||
</TemplateConfiguration>
|
||||
|
||||
<TemplateFiles>
|
||||
<File name="${Name}.glade" src="Data/Dialog.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
|
||||
<File name="${Name}.cs" src="Data/Dialog.cs" />
|
||||
</TemplateFiles>
|
||||
</Template>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Template>
|
||||
<TemplateConfiguration>
|
||||
<_Name>Dialog</_Name>
|
||||
<Icon>md-gui-file</Icon>
|
||||
<_Category>Gtk</_Category>
|
||||
<LanguageName>F#</LanguageName>
|
||||
<DefaultFilename>MyDialog</DefaultFilename>
|
||||
<_Description>Creates a new Gtk dialog.</_Description>
|
||||
</TemplateConfiguration>
|
||||
|
||||
<TemplateFiles>
|
||||
<File name="${Name}.glade" src="Data/Dialog.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
|
||||
<File name="${Name}.fs" src="Data/Dialog.fs" />
|
||||
</TemplateFiles>
|
||||
</Template>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Template>
|
||||
<TemplateConfiguration>
|
||||
<_Name>Widget</_Name>
|
||||
<Icon>md-gui-file</Icon>
|
||||
<_Category>Gtk</_Category>
|
||||
<LanguageName>C#</LanguageName>
|
||||
<DefaultFilename>MyWidget</DefaultFilename>
|
||||
<_Description>Creates a new Gtk custom widget.</_Description>
|
||||
</TemplateConfiguration>
|
||||
|
||||
<TemplateFiles>
|
||||
<File name="${Name}.glade" src="Data/Widget.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
|
||||
<File name="${Name}.cs" src="Data/Widget.cs" />
|
||||
</TemplateFiles>
|
||||
</Template>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Template>
|
||||
<TemplateConfiguration>
|
||||
<_Name>Widget</_Name>
|
||||
<Icon>md-gui-file</Icon>
|
||||
<_Category>Gtk</_Category>
|
||||
<LanguageName>F#</LanguageName>
|
||||
<DefaultFilename>MyWidget</DefaultFilename>
|
||||
<_Description>Creates a new Gtk custom widget.</_Description>
|
||||
</TemplateConfiguration>
|
||||
|
||||
<TemplateFiles>
|
||||
<File name="${Name}.glade" src="Data/Widget.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
|
||||
<File name="${Name}.fs" src="Data/Widget.fs" />
|
||||
</TemplateFiles>
|
||||
</Template>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Template>
|
||||
<TemplateConfiguration>
|
||||
<_Name>Window</_Name>
|
||||
<Icon>md-gui-file</Icon>
|
||||
<_Category>Gtk</_Category>
|
||||
<LanguageName>C#</LanguageName>
|
||||
<DefaultFilename>MyWindow</DefaultFilename>
|
||||
<_Description>Creates a new Gtk window.</_Description>
|
||||
</TemplateConfiguration>
|
||||
|
||||
<TemplateFiles>
|
||||
<File name="${Name}.glade" src="Data/Window.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
|
||||
<File name="${Name}.cs" src="Data/Window.cs" />
|
||||
</TemplateFiles>
|
||||
</Template>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Template>
|
||||
<TemplateConfiguration>
|
||||
<_Name>Window</_Name>
|
||||
<Icon>md-gui-file</Icon>
|
||||
<_Category>Gtk</_Category>
|
||||
<LanguageName>F#</LanguageName>
|
||||
<DefaultFilename>MyWindow</DefaultFilename>
|
||||
<_Description>Creates a new Gtk window.</_Description>
|
||||
</TemplateConfiguration>
|
||||
|
||||
<TemplateFiles>
|
||||
<File name="${Name}.glade" src="Data/Window.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
|
||||
<File name="${Name}.fs" src="Data/Window.fs" />
|
||||
</TemplateFiles>
|
||||
</Template>
|
||||
Reference in New Issue
Block a user