Permalink
Browse files

Files need to be committed for GUI designer ..

These are the files the GUI designer reads apparently. I am still trying
to figure Gtk GUI designer though. So, some mistakes might be made
  • Loading branch information...
1 parent 50083f0 commit ec45e1baf936773591807d1bae33c5d4e79f3989 @abhinavc committed Oct 7, 2012
Showing with 41 additions and 80 deletions.
  1. +32 −47 Scanbot/gtk-gui/MainWindow.cs
  2. +6 −11 Scanbot/gtk-gui/generated.cs
  3. +3 −22 Scanbot/gtk-gui/gui.stetic
@@ -6,16 +6,14 @@ public partial class MainWindow
private global::Gtk.VBox vbox1;
private global::Gtk.Table btnRow;
private global::Gtk.Button btnResolve;
- private global::Gtk.Button btnRestart;
private global::Gtk.Button btnScanStart;
private global::Gtk.Table table2;
private global::Gtk.Label lbDetect;
private global::Gtk.Label lbTransmit;
private global::Gtk.ProgressBar pbDetect;
private global::Gtk.ProgressBar pbTransmit;
- protected virtual void Build ()
- {
+ protected virtual void Build () {
global::Stetic.Gui.Initialize (this);
// Widget MainWindow
this.WidthRequest = 350;
@@ -49,32 +47,20 @@ protected virtual void Build ()
w1.RightAttach = ((uint)(2));
w1.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child btnRow.Gtk.Table+TableChild
- this.btnRestart = new global::Gtk.Button ();
- this.btnRestart.Sensitive = false;
- this.btnRestart.CanFocus = true;
- this.btnRestart.Name = "btnRestart";
- this.btnRestart.UseUnderline = true;
- this.btnRestart.Label = "Restart";
- this.btnRow.Add (this.btnRestart);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.btnRow [this.btnRestart]));
- w2.LeftAttach = ((uint)(2));
- w2.RightAttach = ((uint)(3));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child btnRow.Gtk.Table+TableChild
this.btnScanStart = new global::Gtk.Button ();
this.btnScanStart.Sensitive = false;
this.btnScanStart.CanFocus = true;
this.btnScanStart.Name = "btnScanStart";
this.btnScanStart.UseUnderline = true;
this.btnScanStart.Label = "Start Scanning";
this.btnRow.Add (this.btnScanStart);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.btnRow [this.btnScanStart]));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
+ global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.btnRow [this.btnScanStart]));
+ w2.YOptions = ((global::Gtk.AttachOptions)(4));
this.vbox1.Add (this.btnRow);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.btnRow]));
- w4.Position = 0;
- w4.Expand = false;
- w4.Fill = false;
+ global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.btnRow]));
+ w3.Position = 0;
+ w3.Expand = false;
+ w3.Fill = false;
// Container child vbox1.Gtk.Box+BoxChild
this.table2 = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false);
this.table2.Name = "table2";
@@ -85,47 +71,46 @@ protected virtual void Build ()
this.lbDetect.Name = "lbDetect";
this.lbDetect.LabelProp = "Detection";
this.table2.Add (this.lbDetect);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2 [this.lbDetect]));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
+ global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2 [this.lbDetect]));
+ w4.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table2.Gtk.Table+TableChild
this.lbTransmit = new global::Gtk.Label ();
this.lbTransmit.Name = "lbTransmit";
this.lbTransmit.LabelProp = "Transmission";
this.table2.Add (this.lbTransmit);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table2 [this.lbTransmit]));
- w6.LeftAttach = ((uint)(1));
- w6.RightAttach = ((uint)(2));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
+ global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2 [this.lbTransmit]));
+ w5.LeftAttach = ((uint)(1));
+ w5.RightAttach = ((uint)(2));
+ w5.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table2.Gtk.Table+TableChild
this.pbDetect = new global::Gtk.ProgressBar ();
this.pbDetect.Name = "pbDetect";
this.table2.Add (this.pbDetect);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table2 [this.pbDetect]));
- w7.TopAttach = ((uint)(1));
- w7.BottomAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
+ global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table2 [this.pbDetect]));
+ w6.TopAttach = ((uint)(1));
+ w6.BottomAttach = ((uint)(2));
+ w6.XOptions = ((global::Gtk.AttachOptions)(4));
+ w6.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table2.Gtk.Table+TableChild
this.pbTransmit = new global::Gtk.ProgressBar ();
this.pbTransmit.Name = "pbTransmit";
this.table2.Add (this.pbTransmit);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2 [this.pbTransmit]));
- w8.TopAttach = ((uint)(1));
- w8.BottomAttach = ((uint)(2));
- w8.LeftAttach = ((uint)(1));
- w8.RightAttach = ((uint)(2));
- w8.XOptions = ((global::Gtk.AttachOptions)(4));
- w8.YOptions = ((global::Gtk.AttachOptions)(4));
+ global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table2 [this.pbTransmit]));
+ w7.TopAttach = ((uint)(1));
+ w7.BottomAttach = ((uint)(2));
+ w7.LeftAttach = ((uint)(1));
+ w7.RightAttach = ((uint)(2));
+ w7.XOptions = ((global::Gtk.AttachOptions)(4));
+ w7.YOptions = ((global::Gtk.AttachOptions)(4));
this.vbox1.Add (this.table2);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.table2]));
- w9.PackType = ((global::Gtk.PackType)(1));
- w9.Position = 1;
- w9.Expand = false;
- w9.Fill = false;
+ global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.table2]));
+ w8.PackType = ((global::Gtk.PackType)(1));
+ w8.Position = 1;
+ w8.Expand = false;
+ w8.Fill = false;
this.Add (this.vbox1);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
+ if ((this.Child != null))
+ this.Child.ShowAll();
this.Show ();
this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
}
@@ -1,28 +1,23 @@
// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
+namespace Stetic {
internal class Gui
{
private static bool initialized;
- internal static void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
+ internal static void Initialize (Gtk.Widget iconRenderer) {
+ if ((Stetic.Gui.initialized == false))
+ Stetic.Gui.initialized = true;
}
}
internal class ActionGroups
{
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
+ public static Gtk.ActionGroup GetActionGroup (System.Type type) {
return Stetic.ActionGroups.GetActionGroup (type.FullName);
}
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
+ public static Gtk.ActionGroup GetActionGroup (string name) {
return null;
}
}
View
@@ -31,6 +31,9 @@
<property name="RowSpacing">6</property>
<property name="ColumnSpacing">6</property>
<child>
+ <placeholder />
+ </child>
+ <child>
<widget class="Gtk.Button" id="btnResolve">
<property name="MemberName" />
<property name="CanFocus">True</property>
@@ -52,28 +55,6 @@
</packing>
</child>
<child>
- <widget class="Gtk.Button" id="btnRestart">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Restart</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="LeftAttach">2</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
<widget class="Gtk.Button" id="btnScanStart">
<property name="MemberName" />
<property name="Sensitive">False</property>

0 comments on commit ec45e1b

Please sign in to comment.