Skip to content

Commit

Permalink
Placeholder add comment widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirudh Sanjeev committed Feb 25, 2010
1 parent 15eb30c commit a26d765
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 31 deletions.
123 changes: 105 additions & 18 deletions Frontend/gtk-gui/Frontend.MainWindow.cs
Expand Up @@ -24,10 +24,24 @@ public partial class MainWindow

private global::Gtk.Notebook notebook2;

private global::Gtk.VBox vbox9;

private global::Gtk.ScrolledWindow scrolledwindow2;

private global::Gtk.VBox commentVBox;

private global::Gtk.VBox vbox10;

private global::Gtk.Label label7;

private global::Gtk.HBox hbox4;

private global::Gtk.ScrolledWindow GtkScrolledWindow1;

private global::Gtk.TextView textview3;

private global::Gtk.Button button244;

private global::Gtk.Label label5;

private global::Gtk.Table bugPropertyTable;
Expand Down Expand Up @@ -102,8 +116,12 @@ protected virtual void Build ()
this.notebook2 = new global::Gtk.Notebook ();
this.notebook2.CanFocus = true;
this.notebook2.Name = "notebook2";
this.notebook2.CurrentPage = 1;
this.notebook2.CurrentPage = 0;
// Container child notebook2.Gtk.Notebook+NotebookChild
this.vbox9 = new global::Gtk.VBox ();
this.vbox9.Name = "vbox9";
this.vbox9.Spacing = 6;
// Container child vbox9.Gtk.Box+BoxChild
this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
this.scrolledwindow2.CanFocus = true;
this.scrolledwindow2.Name = "scrolledwindow2";
Expand All @@ -117,23 +135,92 @@ protected virtual void Build ()
this.commentVBox.Spacing = 6;
w5.Add (this.commentVBox);
this.scrolledwindow2.Add (w5);
this.notebook2.Add (this.scrolledwindow2);
this.vbox9.Add (this.scrolledwindow2);
global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.scrolledwindow2]));
w8.Position = 0;
// Container child vbox9.Gtk.Box+BoxChild
this.vbox10 = new global::Gtk.VBox ();
this.vbox10.Name = "vbox10";
this.vbox10.Spacing = 6;
// Container child vbox10.Gtk.Box+BoxChild
this.label7 = new global::Gtk.Label ();
this.label7.Name = "label7";
this.label7.Xpad = 9;
this.label7.Xalign = 0f;
this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Post Comment:");
this.vbox10.Add (this.label7);
global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox10[this.label7]));
w9.Position = 0;
w9.Expand = false;
w9.Fill = false;
// Container child vbox10.Gtk.Box+BoxChild
this.hbox4 = new global::Gtk.HBox ();
this.hbox4.Name = "hbox4";
this.hbox4.Spacing = 6;
// Container child hbox4.Gtk.Box+BoxChild
this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
this.GtkScrolledWindow1.VscrollbarPolicy = ((global::Gtk.PolicyType)(2));
this.GtkScrolledWindow1.HscrollbarPolicy = ((global::Gtk.PolicyType)(2));
this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
this.textview3 = new global::Gtk.TextView ();
this.textview3.HeightRequest = 60;
this.textview3.CanFocus = true;
this.textview3.Name = "textview3";
this.GtkScrolledWindow1.Add (this.textview3);
this.hbox4.Add (this.GtkScrolledWindow1);
global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.GtkScrolledWindow1]));
w11.Position = 0;
// Container child hbox4.Gtk.Box+BoxChild
this.button244 = new global::Gtk.Button ();
this.button244.CanFocus = true;
this.button244.Name = "button244";
this.button244.UseUnderline = true;
// Container child button244.Gtk.Container+ContainerChild
global::Gtk.Alignment w12 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
// Container child GtkAlignment.Gtk.Container+ContainerChild
global::Gtk.HBox w13 = new global::Gtk.HBox ();
w13.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
global::Gtk.Image w14 = new global::Gtk.Image ();
w14.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-network", global::Gtk.IconSize.Menu);
w13.Add (w14);
// Container child GtkHBox.Gtk.Container+ContainerChild
global::Gtk.Label w16 = new global::Gtk.Label ();
w16.LabelProp = global::Mono.Unix.Catalog.GetString ("Send");
w16.UseUnderline = true;
w13.Add (w16);
w12.Add (w13);
this.button244.Add (w12);
this.hbox4.Add (this.button244);
global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.button244]));
w20.Position = 1;
w20.Expand = false;
this.vbox10.Add (this.hbox4);
global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox10[this.hbox4]));
w21.Position = 1;
this.vbox9.Add (this.vbox10);
global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.vbox10]));
w22.Position = 1;
w22.Expand = false;
this.notebook2.Add (this.vbox9);
// Notebook tab
this.label5 = new global::Gtk.Label ();
this.label5.Name = "label5";
this.label5.Xpad = 16;
this.label5.Ypad = 3;
this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Comments");
this.notebook2.SetTabLabel (this.scrolledwindow2, this.label5);
this.notebook2.SetTabLabel (this.vbox9, this.label5);
this.label5.ShowAll ();
// Container child notebook2.Gtk.Notebook+NotebookChild
this.bugPropertyTable = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
this.bugPropertyTable.Name = "bugPropertyTable";
this.bugPropertyTable.RowSpacing = ((uint)(6));
this.bugPropertyTable.ColumnSpacing = ((uint)(6));
this.notebook2.Add (this.bugPropertyTable);
global::Gtk.Notebook.NotebookChild w9 = ((global::Gtk.Notebook.NotebookChild)(this.notebook2[this.bugPropertyTable]));
w9.Position = 1;
global::Gtk.Notebook.NotebookChild w24 = ((global::Gtk.Notebook.NotebookChild)(this.notebook2[this.bugPropertyTable]));
w24.Position = 1;
// Notebook tab
this.label6 = new global::Gtk.Label ();
this.label6.Name = "label6";
Expand All @@ -143,8 +230,8 @@ protected virtual void Build ()
this.label6.ShowAll ();
this.hpaned1.Add (this.notebook2);
this.vbox1.Add (this.hpaned1);
global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
w11.Position = 1;
global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
w26.Position = 1;
// Container child vbox1.Gtk.Box+BoxChild
this.statusbar1 = new global::Gtk.Statusbar ();
this.statusbar1.Name = "statusbar1";
Expand All @@ -153,29 +240,29 @@ protected virtual void Build ()
this.progressbar1 = new global::Gtk.ProgressBar ();
this.progressbar1.Name = "progressbar1";
this.statusbar1.Add (this.progressbar1);
global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.progressbar1]));
w12.Position = 1;
w12.Expand = false;
w12.Fill = false;
global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.progressbar1]));
w27.Position = 1;
w27.Expand = false;
w27.Fill = false;
// Container child statusbar1.Gtk.Box+BoxChild
this.statusLabel = new global::Gtk.Label ();
this.statusLabel.Name = "statusLabel";
this.statusLabel.Xpad = 13;
this.statusLabel.Xalign = 0f;
this.statusbar1.Add (this.statusLabel);
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.statusLabel]));
w13.Position = 2;
global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.statusLabel]));
w28.Position = 2;
this.vbox1.Add (this.statusbar1);
global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
w14.Position = 2;
w14.Expand = false;
w14.Fill = false;
global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
w29.Position = 2;
w29.Expand = false;
w29.Fill = false;
this.Add (this.vbox1);
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.DefaultWidth = 751;
this.DefaultHeight = 540;
this.DefaultHeight = 658;
this.Show ();
this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
this.addAction.Activated += new global::System.EventHandler (this.AddNewQueryClicked);
Expand Down
99 changes: 90 additions & 9 deletions Frontend/gtk-gui/gui.stetic
Expand Up @@ -9,7 +9,7 @@
<widget-library name="../../Splatter/bin/BugzillaInterface.dll" />
<widget-library name="../../Splatter/bin/Frontend.exe" internal="true" />
</import>
<widget class="Gtk.Window" id="Frontend.MainWindow" design-size="751 540">
<widget class="Gtk.Window" id="Frontend.MainWindow" design-size="751 658">
<action-group name="Default">
<action id="addAction">
<property name="Type">Action</property>
Expand Down Expand Up @@ -97,27 +97,108 @@
<property name="CanFocus">True</property>
<property name="CurrentPage">0</property>
<child>
<widget class="Gtk.ScrolledWindow" id="scrolledwindow2">
<widget class="Gtk.VBox" id="vbox9">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShadowType">In</property>
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Viewport" id="GtkViewport">
<widget class="Gtk.ScrolledWindow" id="scrolledwindow2">
<property name="MemberName" />
<property name="ShadowType">None</property>
<property name="CanFocus">True</property>
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.VBox" id="commentVBox">
<widget class="Gtk.Viewport" id="GtkViewport">
<property name="MemberName" />
<property name="ShadowType">None</property>
<child>
<widget class="Gtk.VBox" id="commentVBox">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<placeholder />
</child>
<child>
<placeholder />
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
</packing>
</child>
<child>
<widget class="Gtk.VBox" id="vbox10">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Label" id="label7">
<property name="MemberName" />
<property name="Xpad">9</property>
<property name="Xalign">0</property>
<property name="LabelProp" translatable="yes">Post Comment:</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.HBox" id="hbox4">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<placeholder />
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow1">
<property name="MemberName" />
<property name="VscrollbarPolicy">Never</property>
<property name="HscrollbarPolicy">Never</property>
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TextView" id="textview3">
<property name="MemberName" />
<property name="HeightRequest">60</property>
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
<property name="Text" translatable="yes" />
</widget>
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">False</property>
</packing>
</child>
<child>
<placeholder />
<widget class="Gtk.Button" id="button244">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Type">TextAndIcon</property>
<property name="Icon">stock:gtk-network Menu</property>
<property name="Label" translatable="yes">Send</property>
<property name="UseUnderline">True</property>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">False</property>
<property name="Expand">False</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">False</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">False</property>
<property name="Expand">False</property>
</packing>
</child>
</widget>
</child>
Expand Down
9 changes: 5 additions & 4 deletions Splatter.userprefs
Expand Up @@ -5,15 +5,16 @@
</MonoDevelop.Ide.DebuggingService>
<MonoDevelop.Ide.Workbench ActiveDocument="Frontend/MainWindow.cs" ctype="Workbench">
<Files>
<File FileName="BugzillaInterface/BugService.cs" Line="1" Column="1" />
<File FileName="Frontend/MainWindow.cs" Line="127" Column="1" />
<File FileName="BugzillaInterface/QueryService.cs" Line="1" Column="1" />
<File FileName="BugzillaInterface/BugService.cs" Line="132" Column="21" />
<File FileName="BugzillaInterface/QueryService.cs" Line="212" Column="6" />
<File FileName="Frontend/MainWindow.cs" Line="154" Column="28" />
<File FileName="Frontend/CommentSingletonWidget.cs" Line="57" Column="1" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State expanded="True">
<Node name="BugzillaInterface" expanded="True">
<Node name="QueryGUI" expanded="True" />
<Node name="References" expanded="True" />
</Node>
<Node name="Frontend" expanded="True">
<Node name="MainWindow.cs" selected="True" />
Expand Down

0 comments on commit a26d765

Please sign in to comment.