Skip to content

Commit

Permalink
minor gtk2 gui generated
Browse files Browse the repository at this point in the history
gtk# is partially made
  • Loading branch information
Ru Uba authored Dec 24, 2019
1 parent 44130ba commit 51571a8
Show file tree
Hide file tree
Showing 7 changed files with 376 additions and 6 deletions.
Binary file not shown.
Binary file modified CombatSportsScore/CombatSportsScore/bin/Debug/CombatSportsScore.pdb
Binary file not shown.
215 changes: 212 additions & 3 deletions CombatSportsScore/CombatSportsScore/gtk-gui/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,228 @@

public partial class MainWindow
{
private global::Gtk.UIManager UIManager;

private global::Gtk.Action FileAction;

private global::Gtk.Action LoadAction;

private global::Gtk.Action SaveAction;

private global::Gtk.Action ExitAction;

private global::Gtk.Action FileAction1;

private global::Gtk.Action LoadDatabaseAction;

private global::Gtk.Action SaveAction1;

private global::Gtk.Action ExitAction1;

private global::Gtk.Action HelpAction;

private global::Gtk.Action AboutAction;

private global::Gtk.VBox vbox1;

private global::Gtk.HBox hbox1;

private global::Gtk.MenuBar menubar1;

private global::Gtk.HSeparator hseparator1;

private global::Gtk.HBox hbox3;

private global::Gtk.Label lblFighter1mid;

private global::Gtk.TextView textviewmiddle;

private global::Gtk.Label lblFighter2mid;

private global::Gtk.HBox hbox4;

private global::Gtk.Frame frame2;

private global::Gtk.Alignment GtkAlignment;

private global::Gtk.Label GtkLabel2;

private global::Gtk.Frame frame3;

private global::Gtk.Alignment GtkAlignment1;

private global::Gtk.ScrolledWindow scrolledwindow1;

private global::Gtk.Label GtkLabel3;

protected virtual void Build()
{
global::Stetic.Gui.Initialize(this);
// Widget MainWindow
this.UIManager = new global::Gtk.UIManager();
global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default");
this.FileAction = new global::Gtk.Action("FileAction", global::Mono.Unix.Catalog.GetString("File"), null, null);
this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString("File");
w1.Add(this.FileAction, null);
this.LoadAction = new global::Gtk.Action("LoadAction", global::Mono.Unix.Catalog.GetString("Load"), null, null);
this.LoadAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Load");
w1.Add(this.LoadAction, null);
this.SaveAction = new global::Gtk.Action("SaveAction", global::Mono.Unix.Catalog.GetString("Save"), null, null);
this.SaveAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Save");
w1.Add(this.SaveAction, null);
this.ExitAction = new global::Gtk.Action("ExitAction", global::Mono.Unix.Catalog.GetString("Exit"), null, null);
this.ExitAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Exit");
w1.Add(this.ExitAction, null);
this.FileAction1 = new global::Gtk.Action("FileAction1", global::Mono.Unix.Catalog.GetString("File"), null, null);
this.FileAction1.ShortLabel = global::Mono.Unix.Catalog.GetString("File");
w1.Add(this.FileAction1, null);
this.LoadDatabaseAction = new global::Gtk.Action("LoadDatabaseAction", global::Mono.Unix.Catalog.GetString("Load Database"), null, null);
this.LoadDatabaseAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Load Database");
w1.Add(this.LoadDatabaseAction, null);
this.SaveAction1 = new global::Gtk.Action("SaveAction1", global::Mono.Unix.Catalog.GetString("Save Database"), null, null);
this.SaveAction1.ShortLabel = global::Mono.Unix.Catalog.GetString("Save Database");
w1.Add(this.SaveAction1, null);
this.ExitAction1 = new global::Gtk.Action("ExitAction1", global::Mono.Unix.Catalog.GetString("Exit"), null, null);
this.ExitAction1.ShortLabel = global::Mono.Unix.Catalog.GetString("Exit");
w1.Add(this.ExitAction1, null);
this.HelpAction = new global::Gtk.Action("HelpAction", global::Mono.Unix.Catalog.GetString("Help"), null, null);
this.HelpAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Help");
w1.Add(this.HelpAction, null);
this.AboutAction = new global::Gtk.Action("AboutAction", global::Mono.Unix.Catalog.GetString("About"), null, null);
this.AboutAction.ShortLabel = global::Mono.Unix.Catalog.GetString("About");
w1.Add(this.AboutAction, null);
this.UIManager.InsertActionGroup(w1, 0);
this.AddAccelGroup(this.UIManager.AccelGroup);
this.Name = "MainWindow";
this.Title = global::Mono.Unix.Catalog.GetString("MainWindow");
this.Title = global::Mono.Unix.Catalog.GetString("Combat Sports Scorecard");
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
this.BorderWidth = ((uint)(6));
// Container child MainWindow.Gtk.Container+ContainerChild
this.vbox1 = new global::Gtk.VBox();
this.vbox1.Name = "vbox1";
this.vbox1.Spacing = 6;
this.vbox1.BorderWidth = ((uint)(3));
// Container child vbox1.Gtk.Box+BoxChild
this.hbox1 = new global::Gtk.HBox();
this.hbox1.Name = "hbox1";
this.hbox1.Spacing = 6;
// Container child hbox1.Gtk.Box+BoxChild
this.UIManager.AddUiFromString(@"<ui><menubar name='menubar1'><menu name='FileAction1' action='FileAction1'><menuitem name='LoadDatabaseAction' action='LoadDatabaseAction'/><menuitem name='SaveAction1' action='SaveAction1'/><menuitem name='ExitAction1' action='ExitAction1'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
this.menubar1.Name = "menubar1";
this.hbox1.Add(this.menubar1);
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.menubar1]));
w2.Position = 0;
w2.Expand = false;
w2.Fill = false;
w2.Padding = ((uint)(5));
this.vbox1.Add(this.hbox1);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
w3.Position = 0;
w3.Expand = false;
w3.Fill = false;
// Container child vbox1.Gtk.Box+BoxChild
this.hseparator1 = new global::Gtk.HSeparator();
this.hseparator1.Name = "hseparator1";
this.vbox1.Add(this.hseparator1);
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
w4.Position = 1;
w4.Expand = false;
w4.Fill = false;
// Container child vbox1.Gtk.Box+BoxChild
this.hbox3 = new global::Gtk.HBox();
this.hbox3.Name = "hbox3";
this.hbox3.Spacing = 6;
// Container child hbox3.Gtk.Box+BoxChild
this.lblFighter1mid = new global::Gtk.Label();
this.lblFighter1mid.Name = "lblFighter1mid";
this.lblFighter1mid.LabelProp = global::Mono.Unix.Catalog.GetString("label6");
this.hbox3.Add(this.lblFighter1mid);
global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.lblFighter1mid]));
w5.Position = 0;
w5.Expand = false;
w5.Fill = false;
// Container child hbox3.Gtk.Box+BoxChild
this.textviewmiddle = new global::Gtk.TextView();
this.textviewmiddle.Buffer.Text = global::Mono.Unix.Catalog.GetString("Fight Details");
this.textviewmiddle.Name = "textviewmiddle";
this.textviewmiddle.Justification = ((global::Gtk.Justification)(2));
this.textviewmiddle.WrapMode = ((global::Gtk.WrapMode)(2));
this.hbox3.Add(this.textviewmiddle);
global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.textviewmiddle]));
w6.Position = 1;
// Container child hbox3.Gtk.Box+BoxChild
this.lblFighter2mid = new global::Gtk.Label();
this.lblFighter2mid.Name = "lblFighter2mid";
this.lblFighter2mid.LabelProp = global::Mono.Unix.Catalog.GetString("label7");
this.hbox3.Add(this.lblFighter2mid);
global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.lblFighter2mid]));
w7.Position = 2;
w7.Expand = false;
w7.Fill = false;
this.vbox1.Add(this.hbox3);
global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
w8.Position = 2;
w8.Expand = false;
w8.Fill = false;
// Container child vbox1.Gtk.Box+BoxChild
this.hbox4 = new global::Gtk.HBox();
this.hbox4.Name = "hbox4";
this.hbox4.Spacing = 6;
// Container child hbox4.Gtk.Box+BoxChild
this.frame2 = new global::Gtk.Frame();
this.frame2.Name = "frame2";
this.frame2.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child frame2.Gtk.Container+ContainerChild
this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F);
this.GtkAlignment.Name = "GtkAlignment";
this.GtkAlignment.LeftPadding = ((uint)(12));
this.frame2.Add(this.GtkAlignment);
this.GtkLabel2 = new global::Gtk.Label();
this.GtkLabel2.Name = "GtkLabel2";
this.GtkLabel2.LabelProp = global::Mono.Unix.Catalog.GetString("<b>GtkFrame</b>");
this.GtkLabel2.UseMarkup = true;
this.frame2.LabelWidget = this.GtkLabel2;
this.hbox4.Add(this.frame2);
global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.frame2]));
w10.Position = 0;
w10.Expand = false;
w10.Fill = false;
// Container child hbox4.Gtk.Box+BoxChild
this.frame3 = new global::Gtk.Frame();
this.frame3.Name = "frame3";
this.frame3.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child frame3.Gtk.Container+ContainerChild
this.GtkAlignment1 = new global::Gtk.Alignment(0F, 0F, 1F, 1F);
this.GtkAlignment1.Name = "GtkAlignment1";
this.GtkAlignment1.LeftPadding = ((uint)(12));
// Container child GtkAlignment1.Gtk.Container+ContainerChild
this.scrolledwindow1 = new global::Gtk.ScrolledWindow();
this.scrolledwindow1.CanFocus = true;
this.scrolledwindow1.Name = "scrolledwindow1";
this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
this.GtkAlignment1.Add(this.scrolledwindow1);
this.frame3.Add(this.GtkAlignment1);
this.GtkLabel3 = new global::Gtk.Label();
this.GtkLabel3.Name = "GtkLabel3";
this.GtkLabel3.LabelProp = global::Mono.Unix.Catalog.GetString("<b>GtkFrame</b>");
this.GtkLabel3.UseMarkup = true;
this.frame3.LabelWidget = this.GtkLabel3;
this.hbox4.Add(this.frame3);
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.frame3]));
w13.Position = 2;
w13.Expand = false;
w13.Fill = false;
this.vbox1.Add(this.hbox4);
global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox4]));
w14.Position = 3;
this.Add(this.vbox1);
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.DefaultWidth = 400;
this.DefaultHeight = 300;
this.DefaultWidth = 404;
this.DefaultHeight = 556;
this.Show();
this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
}
Expand Down
Loading

0 comments on commit 51571a8

Please sign in to comment.