aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgareth2007-05-17 00:29:03 +0000
committergareth2007-05-17 00:29:03 +0000
commitf9a9bf504644cf47004aa1d3c6dd6d75109b40f2 (patch)
tree2c7e8673cdbf7e169b69435b42113a2186f7583c
parent* OpenGridServices.Manager/gtk-gui/MainWindow.cs, (diff)
downloadopensim-SC_OLD-f9a9bf504644cf47004aa1d3c6dd6d75109b40f2.zip
opensim-SC_OLD-f9a9bf504644cf47004aa1d3c6dd6d75109b40f2.tar.gz
opensim-SC_OLD-f9a9bf504644cf47004aa1d3c6dd6d75109b40f2.tar.bz2
opensim-SC_OLD-f9a9bf504644cf47004aa1d3c6dd6d75109b40f2.tar.xz
Added statusbar functionality
Added pending operations processing thread
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager.mds2
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/BlockingQueue.cs33
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/ConnectToGridServerDialog.cs20
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/Main.cs44
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/MainWindow.cs53
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/OpenGridServices.Manager.mdp16
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/ConnectToGridServerDialog.cs145
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/MainWindow.cs356
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.ConnectToGridServerDialog.cs144
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.MainWindow.cs359
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/gui.stetic18
11 files changed, 640 insertions, 550 deletions
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager.mds b/OpenGridServices.Manager/OpenGridServices.Manager.mds
index 42711f3..ed7bc24 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager.mds
+++ b/OpenGridServices.Manager/OpenGridServices.Manager.mds
@@ -1,4 +1,4 @@
1<Combine name="OpenGridServices.Manager" fileversion="2.0"> 1<Combine name="OpenGridServices.Manager" fileversion="2.0" outputpath="../../mono-1.2.3.1/lib/monodevelop/bin" MakePkgConfig="False" MakeLibPC="True">
2 <Configurations active="Debug"> 2 <Configurations active="Debug">
3 <Configuration name="Debug" ctype="CombineConfiguration"> 3 <Configuration name="Debug" ctype="CombineConfiguration">
4 <Entry build="True" name="OpenGridServices.Manager" configuration="Debug" /> 4 <Entry build="True" name="OpenGridServices.Manager" configuration="Debug" />
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/BlockingQueue.cs b/OpenGridServices.Manager/OpenGridServices.Manager/BlockingQueue.cs
new file mode 100644
index 0000000..83685fc
--- /dev/null
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/BlockingQueue.cs
@@ -0,0 +1,33 @@
1using System;
2using System.Threading;
3using System.Collections.Generic;
4using System.Text;
5
6namespace OpenGridServices.Manager
7{
8 public class BlockingQueue<T>
9 {
10 private Queue<T> _queue = new Queue<T>();
11 private object _queueSync = new object();
12
13 public void Enqueue(T value)
14 {
15 lock (_queueSync)
16 {
17 _queue.Enqueue(value);
18 Monitor.Pulse(_queueSync);
19 }
20 }
21
22 public T Dequeue()
23 {
24 lock (_queueSync)
25 {
26 if (_queue.Count < 1)
27 Monitor.Wait(_queueSync);
28
29 return _queue.Dequeue();
30 }
31 }
32 }
33}
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/ConnectToGridServerDialog.cs b/OpenGridServices.Manager/OpenGridServices.Manager/ConnectToGridServerDialog.cs
index 30a0e3f..c912910 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager/ConnectToGridServerDialog.cs
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/ConnectToGridServerDialog.cs
@@ -1,6 +1,7 @@
1using Gtk; 1using Gtk;
2using System; 2using System;
3 3
4namespace OpenGridServices.Manager {
4 public partial class ConnectToGridServerDialog : Gtk.Dialog 5 public partial class ConnectToGridServerDialog : Gtk.Dialog
5 { 6 {
6 7
@@ -9,15 +10,20 @@ using System;
9 this.Build(); 10 this.Build();
10 } 11 }
11 12
12 protected virtual void ConnectBtn(object sender, System.EventArgs e) 13 protected virtual void OnResponse(object o, Gtk.ResponseArgs args)
13 {
14 this.Hide();
15 }
16
17 protected virtual void CancelBtn(object sender, System.EventArgs e)
18 { 14 {
15 switch(args.ResponseId) {
16 case Gtk.ResponseType.Ok:
17 MainClass.PendingOperations.Enqueue("connect_to_gridserver " + this.entry1.Text);
18 break;
19
20 case Gtk.ResponseType.Cancel:
21 break;
22 }
19 this.Hide(); 23 this.Hide();
24
20 } 25 }
21 26
22 } 27 }
23 28
29} \ No newline at end of file
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs b/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs
index 2921573..f6a41e1 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs
@@ -1,18 +1,56 @@
1// project created on 5/14/2007 at 2:04 PM 1// project created on 5/14/2007 at 2:04 PM
2using System; 2using System;
3using System.Threading;
3using Gtk; 4using Gtk;
4 5
5namespace OpenGridServices.Manager 6namespace OpenGridServices.Manager
6{ 7{
7 class MainClass 8 class MainClass
8 { 9 {
9 10
11 public static bool QuitReq=false;
12 public static BlockingQueue<string> PendingOperations = new BlockingQueue<string>();
13
14 private static Thread OperationsRunner;
15 private static MainWindow win;
16
17 public static void DoMainLoop()
18 {
19 while(!QuitReq)
20 {
21 Application.RunIteration();
22 }
23 }
24
25 public static void RunOperations()
26 {
27 string operation;
28 string cmd;
29 char[] sep = new char[1];
30 sep[0]=' ';
31 while(!QuitReq)
32 {
33 operation=PendingOperations.Dequeue();
34 Console.WriteLine(operation);
35 cmd = operation.Split(sep)[0];
36 switch(cmd) {
37 case "connect_to_gridserver":
38 win.SetStatus("Connecting to grid server...");
39
40 break;
41 }
42 }
43 }
44
10 public static void Main (string[] args) 45 public static void Main (string[] args)
11 { 46 {
12 Application.Init (); 47 Application.Init ();
13 MainWindow win = new MainWindow (); 48 win = new MainWindow ();
14 win.Show (); 49 win.Show ();
15 Application.Run (); 50 OperationsRunner = new Thread(new ThreadStart(RunOperations));
51 OperationsRunner.IsBackground=true;
52 OperationsRunner.Start();
53 DoMainLoop();
16 } 54 }
17 } 55 }
18} \ No newline at end of file 56} \ No newline at end of file
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/MainWindow.cs b/OpenGridServices.Manager/OpenGridServices.Manager/MainWindow.cs
index 0f4ef25..5a22221 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager/MainWindow.cs
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/MainWindow.cs
@@ -1,30 +1,41 @@
1using System; 1using System;
2using Gtk; 2using Gtk;
3 3
4public partial class MainWindow: Gtk.Window 4namespace OpenGridServices.Manager {
5{ 5 public partial class MainWindow: Gtk.Window
6 public MainWindow (): base (Gtk.WindowType.Toplevel) 6 {
7 { 7 public MainWindow (): base (Gtk.WindowType.Toplevel)
8 Build (); 8 {
9 } 9 Build ();
10 10 }
11 protected void OnDeleteEvent (object sender, DeleteEventArgs a) 11
12 { 12 public void SetStatus(string statustext)
13 Application.Quit (); 13 {
14 a.RetVal = true; 14 this.statusbar1.Pop(0);
15 } 15 this.statusbar1.Push(0,statustext);
16 16 }
17 protected virtual void QuitMenu(object sender, System.EventArgs e)
18 {
19 Application.Quit();
20 }
21 17
22 protected virtual void ConnectToGridServerMenu(object sender, System.EventArgs e) 18 protected void OnDeleteEvent (object sender, DeleteEventArgs a)
23 { 19 {
20 Application.Quit ();
21 MainClass.QuitReq=true;
22 a.RetVal = true;
23 }
24
25 protected virtual void QuitMenu(object sender, System.EventArgs e)
26 {
27 MainClass.QuitReq=true;
28 Application.Quit();
29 }
30
31 protected virtual void ConnectToGridServerMenu(object sender, System.EventArgs e)
32 {
24 ConnectToGridServerDialog griddialog = new ConnectToGridServerDialog (); 33 ConnectToGridServerDialog griddialog = new ConnectToGridServerDialog ();
25 griddialog.Show(); 34 griddialog.Show();
26 }
27 35
36 }
28 37
38 }
39}
29 40
30} \ No newline at end of file 41 \ No newline at end of file
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/OpenGridServices.Manager.mdp b/OpenGridServices.Manager/OpenGridServices.Manager/OpenGridServices.Manager.mdp
index c8baa00..62a443d 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager/OpenGridServices.Manager.mdp
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/OpenGridServices.Manager.mdp
@@ -1,15 +1,15 @@
1<Project name="OpenGridServices.Manager" fileversion="2.0" language="C#" clr-version="Net_1_1" ctype="DotNetProject"> 1<Project name="OpenGridServices.Manager" fileversion="2.0" language="C#" clr-version="Net_2_0" ctype="DotNetProject">
2 <Configurations active="Debug"> 2 <Configurations active="Debug">
3 <Configuration name="Debug" ctype="DotNetProjectConfiguration"> 3 <Configuration name="Debug" ctype="DotNetProjectConfiguration">
4 <Output directory="./bin/Debug" assembly="OpenGridServices.Manager" /> 4 <Output directory="./bin/Debug" assembly="OpenGridServices.Manager" />
5 <Build debugmode="True" target="Exe" /> 5 <Build debugmode="True" target="Exe" />
6 <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_1_1" /> 6 <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
7 <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> 7 <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
8 </Configuration> 8 </Configuration>
9 <Configuration name="Release" ctype="DotNetProjectConfiguration"> 9 <Configuration name="Release" ctype="DotNetProjectConfiguration">
10 <Output directory="./bin/Release" assembly="OpenGridServices.Manager" /> 10 <Output directory="./bin/Release" assembly="OpenGridServices.Manager" />
11 <Build debugmode="False" target="Exe" /> 11 <Build debugmode="False" target="Exe" />
12 <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_1_1" /> 12 <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
13 <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> 13 <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
14 </Configuration> 14 </Configuration>
15 </Configurations> 15 </Configurations>
@@ -17,21 +17,23 @@
17 <File name="./gtk-gui/gui.stetic" subtype="Code" buildaction="EmbedAsResource" /> 17 <File name="./gtk-gui/gui.stetic" subtype="Code" buildaction="EmbedAsResource" />
18 <File name="./gtk-gui/generated.cs" subtype="Code" buildaction="Compile" /> 18 <File name="./gtk-gui/generated.cs" subtype="Code" buildaction="Compile" />
19 <File name="./MainWindow.cs" subtype="Code" buildaction="Compile" /> 19 <File name="./MainWindow.cs" subtype="Code" buildaction="Compile" />
20 <File name="./gtk-gui/MainWindow.cs" subtype="Code" buildaction="Compile" />
21 <File name="./Main.cs" subtype="Code" buildaction="Compile" /> 20 <File name="./Main.cs" subtype="Code" buildaction="Compile" />
22 <File name="./AssemblyInfo.cs" subtype="Code" buildaction="Compile" /> 21 <File name="./AssemblyInfo.cs" subtype="Code" buildaction="Compile" />
23 <File name="./ConnectToGridServerDialog.cs" subtype="Code" buildaction="Compile" /> 22 <File name="./ConnectToGridServerDialog.cs" subtype="Code" buildaction="Compile" />
24 <File name="./gtk-gui/ConnectToGridServerDialog.cs" subtype="Code" buildaction="Compile" />
25 <File name="./Util.cs" subtype="Code" buildaction="Compile" /> 23 <File name="./Util.cs" subtype="Code" buildaction="Compile" />
24 <File name="./gtk-gui/OpenGridServices.Manager.MainWindow.cs" subtype="Code" buildaction="Compile" />
25 <File name="./BlockingQueue.cs" subtype="Code" buildaction="Compile" />
26 <File name="./gtk-gui/OpenGridServices.Manager.ConnectToGridServerDialog.cs" subtype="Code" buildaction="Compile" />
26 </Contents> 27 </Contents>
27 <References> 28 <References>
28 <ProjectReference type="Gac" localcopy="True" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
29 <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 29 <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
30 <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 30 <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
31 <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 31 <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
32 <ProjectReference type="Gac" localcopy="True" refto="glade-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 32 <ProjectReference type="Gac" localcopy="True" refto="glade-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
33 <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 33 <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
34 <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> 34 <ProjectReference type="Assembly" localcopy="False" refto="../../bin/libsecondlife.dll" />
35 <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
36 <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
35 </References> 37 </References>
36 <GtkDesignInfo partialTypes="True" /> 38 <GtkDesignInfo partialTypes="True" />
37</Project> \ No newline at end of file 39</Project> \ No newline at end of file
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/ConnectToGridServerDialog.cs b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/ConnectToGridServerDialog.cs
deleted file mode 100644
index e147f63..0000000
--- a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/ConnectToGridServerDialog.cs
+++ /dev/null
@@ -1,145 +0,0 @@
1// ------------------------------------------------------------------------------
2// <autogenerated>
3// This code was generated by a tool.
4// Mono Runtime Version: 2.0.50727.42
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </autogenerated>
9// ------------------------------------------------------------------------------
10
11
12
13public partial class ConnectToGridServerDialog {
14
15 private Gtk.VBox vbox2;
16
17 private Gtk.Label label1;
18
19 private Gtk.Entry entry1;
20
21 private Gtk.Button button2;
22
23 private Gtk.Button button8;
24
25 protected virtual void Build() {
26 Stetic.Gui.Initialize();
27 // Widget ConnectToGridServerDialog
28 this.Events = ((Gdk.EventMask)(256));
29 this.Name = "ConnectToGridServerDialog";
30 this.Title = Mono.Unix.Catalog.GetString("Connect to Grid server");
31 this.WindowPosition = ((Gtk.WindowPosition)(4));
32 this.HasSeparator = false;
33 // Internal child ConnectToGridServerDialog.VBox
34 Gtk.VBox w1 = this.VBox;
35 w1.Events = ((Gdk.EventMask)(256));
36 w1.Name = "dialog_VBox";
37 w1.BorderWidth = ((uint)(2));
38 // Container child dialog_VBox.Gtk.Box+BoxChild
39 this.vbox2 = new Gtk.VBox();
40 this.vbox2.Name = "vbox2";
41 // Container child vbox2.Gtk.Box+BoxChild
42 this.label1 = new Gtk.Label();
43 this.label1.Name = "label1";
44 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Please type in the grid server IP/hostname and management interface port:");
45 this.label1.Wrap = true;
46 this.label1.Justify = ((Gtk.Justification)(2));
47 this.vbox2.Add(this.label1);
48 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
49 w2.Position = 0;
50 w2.Expand = false;
51 w2.Fill = false;
52 // Container child vbox2.Gtk.Box+BoxChild
53 this.entry1 = new Gtk.Entry();
54 this.entry1.CanFocus = true;
55 this.entry1.Name = "entry1";
56 this.entry1.Text = Mono.Unix.Catalog.GetString("gridserver:8001");
57 this.entry1.IsEditable = true;
58 this.entry1.MaxLength = 255;
59 this.entry1.InvisibleChar = '•';
60 this.vbox2.Add(this.entry1);
61 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.entry1]));
62 w3.Position = 1;
63 w3.Expand = false;
64 w3.Fill = false;
65 w1.Add(this.vbox2);
66 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
67 w4.Position = 0;
68 // Internal child ConnectToGridServerDialog.ActionArea
69 Gtk.HButtonBox w5 = this.ActionArea;
70 w5.Events = ((Gdk.EventMask)(256));
71 w5.Name = "OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea";
72 w5.Spacing = 6;
73 w5.BorderWidth = ((uint)(5));
74 w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
75 // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
76 this.button2 = new Gtk.Button();
77 this.button2.CanDefault = true;
78 this.button2.CanFocus = true;
79 this.button2.Name = "button2";
80 this.button2.UseUnderline = true;
81 // Container child button2.Gtk.Container+ContainerChild
82 Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
83 w6.Name = "GtkAlignment";
84 // Container child GtkAlignment.Gtk.Container+ContainerChild
85 Gtk.HBox w7 = new Gtk.HBox();
86 w7.Name = "GtkHBox";
87 w7.Spacing = 2;
88 // Container child GtkHBox.Gtk.Container+ContainerChild
89 Gtk.Image w8 = new Gtk.Image();
90 w8.Name = "image1";
91 w8.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0);
92 w7.Add(w8);
93 // Container child GtkHBox.Gtk.Container+ContainerChild
94 Gtk.Label w10 = new Gtk.Label();
95 w10.Name = "GtkLabel";
96 w10.LabelProp = Mono.Unix.Catalog.GetString("Connect");
97 w10.UseUnderline = true;
98 w7.Add(w10);
99 w6.Add(w7);
100 this.button2.Add(w6);
101 this.AddActionWidget(this.button2, 0);
102 Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.button2]));
103 w14.Expand = false;
104 w14.Fill = false;
105 // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
106 this.button8 = new Gtk.Button();
107 this.button8.CanDefault = true;
108 this.button8.CanFocus = true;
109 this.button8.Name = "button8";
110 this.button8.UseUnderline = true;
111 // Container child button8.Gtk.Container+ContainerChild
112 Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
113 w15.Name = "GtkAlignment1";
114 // Container child GtkAlignment1.Gtk.Container+ContainerChild
115 Gtk.HBox w16 = new Gtk.HBox();
116 w16.Name = "GtkHBox1";
117 w16.Spacing = 2;
118 // Container child GtkHBox1.Gtk.Container+ContainerChild
119 Gtk.Image w17 = new Gtk.Image();
120 w17.Name = "image2";
121 w17.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
122 w16.Add(w17);
123 // Container child GtkHBox1.Gtk.Container+ContainerChild
124 Gtk.Label w19 = new Gtk.Label();
125 w19.Name = "GtkLabel1";
126 w19.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
127 w19.UseUnderline = true;
128 w16.Add(w19);
129 w15.Add(w16);
130 this.button8.Add(w15);
131 this.AddActionWidget(this.button8, 0);
132 Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.button8]));
133 w23.Position = 1;
134 w23.Expand = false;
135 w23.Fill = false;
136 if ((this.Child != null)) {
137 this.Child.ShowAll();
138 }
139 this.DefaultWidth = 476;
140 this.DefaultHeight = 107;
141 this.Show();
142 this.button2.Activated += new System.EventHandler(this.ConnectBtn);
143 this.button8.Activated += new System.EventHandler(this.CancelBtn);
144 }
145}
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/MainWindow.cs b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/MainWindow.cs
deleted file mode 100644
index 74e7185..0000000
--- a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/MainWindow.cs
+++ /dev/null
@@ -1,356 +0,0 @@
1// ------------------------------------------------------------------------------
2// <autogenerated>
3// This code was generated by a tool.
4// Mono Runtime Version: 2.0.50727.42
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </autogenerated>
9// ------------------------------------------------------------------------------
10
11
12
13public partial class MainWindow {
14
15 private Gtk.Action Grid;
16
17 private Gtk.Action User;
18
19 private Gtk.Action Asset;
20
21 private Gtk.Action Region;
22
23 private Gtk.Action Services;
24
25 private Gtk.Action ConnectToGridserver;
26
27 private Gtk.Action RestartWholeGrid;
28
29 private Gtk.Action ShutdownWholeGrid;
30
31 private Gtk.Action ExitGridManager;
32
33 private Gtk.Action ConnectToUserserver;
34
35 private Gtk.Action AccountManagment;
36
37 private Gtk.Action GlobalNotice;
38
39 private Gtk.Action DisableAllLogins;
40
41 private Gtk.Action DisableNonGodUsersOnly;
42
43 private Gtk.Action ShutdownUserServer;
44
45 private Gtk.Action ShutdownGridserverOnly;
46
47 private Gtk.Action RestartGridserverOnly;
48
49 private Gtk.Action DefaultLocalGridUserserver;
50
51 private Gtk.Action CustomUserserver;
52
53 private Gtk.Action RemoteGridDefaultUserserver;
54
55 private Gtk.Action DisconnectFromGridServer;
56
57 private Gtk.Action UploadAsset;
58
59 private Gtk.Action AssetManagement;
60
61 private Gtk.Action ConnectToAssetServer;
62
63 private Gtk.Action ConnectToDefaultAssetServerForGrid;
64
65 private Gtk.Action DefaultForLocalGrid;
66
67 private Gtk.Action DefaultForRemoteGrid;
68
69 private Gtk.Action CustomAssetServer;
70
71 private Gtk.VBox vbox1;
72
73 private Gtk.MenuBar menubar2;
74
75 private Gtk.HBox hbox1;
76
77 private Gtk.ScrolledWindow scrolledwindow1;
78
79 private Gtk.Table table1;
80
81 private Gtk.Image image1;
82
83 private Gtk.Image image2;
84
85 private Gtk.Image image3;
86
87 private Gtk.Image image4;
88
89 private Gtk.Image image5;
90
91 private Gtk.Image image6;
92
93 private Gtk.Image image7;
94
95 private Gtk.Image image8;
96
97 private Gtk.Image image9;
98
99 private Gtk.TreeView treeview1;
100
101 private Gtk.Statusbar statusbar1;
102
103 protected virtual void Build() {
104 Stetic.Gui.Initialize();
105 // Widget MainWindow
106 Gtk.UIManager w1 = new Gtk.UIManager();
107 Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
108 this.Grid = new Gtk.Action("Grid", Mono.Unix.Catalog.GetString("Grid"), null, null);
109 this.Grid.HideIfEmpty = false;
110 this.Grid.ShortLabel = Mono.Unix.Catalog.GetString("Grid");
111 w2.Add(this.Grid, "<Alt><Mod2>g");
112 this.User = new Gtk.Action("User", Mono.Unix.Catalog.GetString("User"), null, null);
113 this.User.HideIfEmpty = false;
114 this.User.ShortLabel = Mono.Unix.Catalog.GetString("User");
115 w2.Add(this.User, null);
116 this.Asset = new Gtk.Action("Asset", Mono.Unix.Catalog.GetString("Asset"), null, null);
117 this.Asset.HideIfEmpty = false;
118 this.Asset.ShortLabel = Mono.Unix.Catalog.GetString("Asset");
119 w2.Add(this.Asset, null);
120 this.Region = new Gtk.Action("Region", Mono.Unix.Catalog.GetString("Region"), null, null);
121 this.Region.ShortLabel = Mono.Unix.Catalog.GetString("Region");
122 w2.Add(this.Region, null);
123 this.Services = new Gtk.Action("Services", Mono.Unix.Catalog.GetString("Services"), null, null);
124 this.Services.ShortLabel = Mono.Unix.Catalog.GetString("Services");
125 w2.Add(this.Services, null);
126 this.ConnectToGridserver = new Gtk.Action("ConnectToGridserver", Mono.Unix.Catalog.GetString("Connect to gridserver..."), null, "gtk-connect");
127 this.ConnectToGridserver.HideIfEmpty = false;
128 this.ConnectToGridserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to gridserver");
129 w2.Add(this.ConnectToGridserver, null);
130 this.RestartWholeGrid = new Gtk.Action("RestartWholeGrid", Mono.Unix.Catalog.GetString("Restart whole grid"), null, "gtk-refresh");
131 this.RestartWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Restart whole grid");
132 w2.Add(this.RestartWholeGrid, null);
133 this.ShutdownWholeGrid = new Gtk.Action("ShutdownWholeGrid", Mono.Unix.Catalog.GetString("Shutdown whole grid"), null, "gtk-stop");
134 this.ShutdownWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown whole grid");
135 w2.Add(this.ShutdownWholeGrid, null);
136 this.ExitGridManager = new Gtk.Action("ExitGridManager", Mono.Unix.Catalog.GetString("Exit grid manager"), null, "gtk-close");
137 this.ExitGridManager.ShortLabel = Mono.Unix.Catalog.GetString("Exit grid manager");
138 w2.Add(this.ExitGridManager, null);
139 this.ConnectToUserserver = new Gtk.Action("ConnectToUserserver", Mono.Unix.Catalog.GetString("Connect to userserver"), null, "gtk-connect");
140 this.ConnectToUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to userserver");
141 w2.Add(this.ConnectToUserserver, null);
142 this.AccountManagment = new Gtk.Action("AccountManagment", Mono.Unix.Catalog.GetString("Account managment"), null, "gtk-properties");
143 this.AccountManagment.ShortLabel = Mono.Unix.Catalog.GetString("Account managment");
144 w2.Add(this.AccountManagment, null);
145 this.GlobalNotice = new Gtk.Action("GlobalNotice", Mono.Unix.Catalog.GetString("Global notice"), null, "gtk-network");
146 this.GlobalNotice.ShortLabel = Mono.Unix.Catalog.GetString("Global notice");
147 w2.Add(this.GlobalNotice, null);
148 this.DisableAllLogins = new Gtk.Action("DisableAllLogins", Mono.Unix.Catalog.GetString("Disable all logins"), null, "gtk-no");
149 this.DisableAllLogins.ShortLabel = Mono.Unix.Catalog.GetString("Disable all logins");
150 w2.Add(this.DisableAllLogins, null);
151 this.DisableNonGodUsersOnly = new Gtk.Action("DisableNonGodUsersOnly", Mono.Unix.Catalog.GetString("Disable non-god users only"), null, "gtk-no");
152 this.DisableNonGodUsersOnly.ShortLabel = Mono.Unix.Catalog.GetString("Disable non-god users only");
153 w2.Add(this.DisableNonGodUsersOnly, null);
154 this.ShutdownUserServer = new Gtk.Action("ShutdownUserServer", Mono.Unix.Catalog.GetString("Shutdown user server"), null, "gtk-stop");
155 this.ShutdownUserServer.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown user server");
156 w2.Add(this.ShutdownUserServer, null);
157 this.ShutdownGridserverOnly = new Gtk.Action("ShutdownGridserverOnly", Mono.Unix.Catalog.GetString("Shutdown gridserver only"), null, "gtk-stop");
158 this.ShutdownGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown gridserver only");
159 w2.Add(this.ShutdownGridserverOnly, null);
160 this.RestartGridserverOnly = new Gtk.Action("RestartGridserverOnly", Mono.Unix.Catalog.GetString("Restart gridserver only"), null, "gtk-refresh");
161 this.RestartGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Restart gridserver only");
162 w2.Add(this.RestartGridserverOnly, null);
163 this.DefaultLocalGridUserserver = new Gtk.Action("DefaultLocalGridUserserver", Mono.Unix.Catalog.GetString("Default local grid userserver"), null, null);
164 this.DefaultLocalGridUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Default local grid userserver");
165 w2.Add(this.DefaultLocalGridUserserver, null);
166 this.CustomUserserver = new Gtk.Action("CustomUserserver", Mono.Unix.Catalog.GetString("Custom userserver..."), null, null);
167 this.CustomUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Custom userserver");
168 w2.Add(this.CustomUserserver, null);
169 this.RemoteGridDefaultUserserver = new Gtk.Action("RemoteGridDefaultUserserver", Mono.Unix.Catalog.GetString("Remote grid default userserver..."), null, null);
170 this.RemoteGridDefaultUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Remote grid default userserver");
171 w2.Add(this.RemoteGridDefaultUserserver, null);
172 this.DisconnectFromGridServer = new Gtk.Action("DisconnectFromGridServer", Mono.Unix.Catalog.GetString("Disconnect from grid server"), null, "gtk-disconnect");
173 this.DisconnectFromGridServer.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect from grid server");
174 this.DisconnectFromGridServer.Visible = false;
175 w2.Add(this.DisconnectFromGridServer, null);
176 this.UploadAsset = new Gtk.Action("UploadAsset", Mono.Unix.Catalog.GetString("Upload asset"), null, null);
177 this.UploadAsset.ShortLabel = Mono.Unix.Catalog.GetString("Upload asset");
178 w2.Add(this.UploadAsset, null);
179 this.AssetManagement = new Gtk.Action("AssetManagement", Mono.Unix.Catalog.GetString("Asset management"), null, null);
180 this.AssetManagement.ShortLabel = Mono.Unix.Catalog.GetString("Asset management");
181 w2.Add(this.AssetManagement, null);
182 this.ConnectToAssetServer = new Gtk.Action("ConnectToAssetServer", Mono.Unix.Catalog.GetString("Connect to asset server"), null, null);
183 this.ConnectToAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Connect to asset server");
184 w2.Add(this.ConnectToAssetServer, null);
185 this.ConnectToDefaultAssetServerForGrid = new Gtk.Action("ConnectToDefaultAssetServerForGrid", Mono.Unix.Catalog.GetString("Connect to default asset server for grid"), null, null);
186 this.ConnectToDefaultAssetServerForGrid.ShortLabel = Mono.Unix.Catalog.GetString("Connect to default asset server for grid");
187 w2.Add(this.ConnectToDefaultAssetServerForGrid, null);
188 this.DefaultForLocalGrid = new Gtk.Action("DefaultForLocalGrid", Mono.Unix.Catalog.GetString("Default for local grid"), null, null);
189 this.DefaultForLocalGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for local grid");
190 w2.Add(this.DefaultForLocalGrid, null);
191 this.DefaultForRemoteGrid = new Gtk.Action("DefaultForRemoteGrid", Mono.Unix.Catalog.GetString("Default for remote grid..."), null, null);
192 this.DefaultForRemoteGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for remote grid...");
193 w2.Add(this.DefaultForRemoteGrid, null);
194 this.CustomAssetServer = new Gtk.Action("CustomAssetServer", Mono.Unix.Catalog.GetString("Custom asset server..."), null, null);
195 this.CustomAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Custom asset server...");
196 w2.Add(this.CustomAssetServer, null);
197 w1.InsertActionGroup(w2, 0);
198 this.AddAccelGroup(w1.AccelGroup);
199 this.WidthRequest = 800;
200 this.HeightRequest = 600;
201 this.Name = "MainWindow";
202 this.Title = Mono.Unix.Catalog.GetString("Open Grid Services Manager");
203 this.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-network", 48, 0);
204 // Container child MainWindow.Gtk.Container+ContainerChild
205 this.vbox1 = new Gtk.VBox();
206 this.vbox1.Name = "vbox1";
207 // Container child vbox1.Gtk.Box+BoxChild
208 w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Grid'><menuitem action='ConnectToGridserver'/><menuitem action='DisconnectFromGridServer'/><separator/><menuitem action='RestartWholeGrid'/><menuitem action='RestartGridserverOnly'/><separator/><menuitem action='ShutdownWholeGrid'/><menuitem action='ShutdownGridserverOnly'/><separator/><menuitem action='ExitGridManager'/></menu><menu action='User'><menu action='ConnectToUserserver'><menuitem action='DefaultLocalGridUserserver'/><menuitem action='CustomUserserver'/><menuitem action='RemoteGridDefaultUserserver'/></menu><separator/><menuitem action='AccountManagment'/><menuitem action='GlobalNotice'/><separator/><menuitem action='DisableAllLogins'/><menuitem action='DisableNonGodUsersOnly'/><separator/><menuitem action='ShutdownUserServer'/></menu><menu action='Asset'><menuitem action='UploadAsset'/><menuitem action='AssetManagement'/><menu action='ConnectToAssetServer'><menuitem action='DefaultForLocalGrid'/><menuitem action='DefaultForRemoteGrid'/><menuitem action='CustomAssetServer'/></menu></menu><menu action='Region'/><menu action='Services'/></menubar></ui>");
209 this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
210 this.menubar2.HeightRequest = 25;
211 this.menubar2.Name = "menubar2";
212 this.vbox1.Add(this.menubar2);
213 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
214 w3.Position = 0;
215 w3.Expand = false;
216 w3.Fill = false;
217 // Container child vbox1.Gtk.Box+BoxChild
218 this.hbox1 = new Gtk.HBox();
219 this.hbox1.Name = "hbox1";
220 // Container child hbox1.Gtk.Box+BoxChild
221 this.scrolledwindow1 = new Gtk.ScrolledWindow();
222 this.scrolledwindow1.CanFocus = true;
223 this.scrolledwindow1.Name = "scrolledwindow1";
224 this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
225 this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
226 // Container child scrolledwindow1.Gtk.Container+ContainerChild
227 Gtk.Viewport w4 = new Gtk.Viewport();
228 w4.Name = "GtkViewport";
229 w4.ShadowType = ((Gtk.ShadowType)(0));
230 // Container child GtkViewport.Gtk.Container+ContainerChild
231 this.table1 = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
232 this.table1.Name = "table1";
233 // Container child table1.Gtk.Table+TableChild
234 this.image1 = new Gtk.Image();
235 this.image1.Name = "image1";
236 this.table1.Add(this.image1);
237 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.image1]));
238 w5.XOptions = ((Gtk.AttachOptions)(4));
239 w5.YOptions = ((Gtk.AttachOptions)(4));
240 // Container child table1.Gtk.Table+TableChild
241 this.image2 = new Gtk.Image();
242 this.image2.Name = "image2";
243 this.table1.Add(this.image2);
244 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.image2]));
245 w6.LeftAttach = ((uint)(1));
246 w6.RightAttach = ((uint)(2));
247 w6.XOptions = ((Gtk.AttachOptions)(4));
248 w6.YOptions = ((Gtk.AttachOptions)(4));
249 // Container child table1.Gtk.Table+TableChild
250 this.image3 = new Gtk.Image();
251 this.image3.Name = "image3";
252 this.table1.Add(this.image3);
253 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.image3]));
254 w7.LeftAttach = ((uint)(2));
255 w7.RightAttach = ((uint)(3));
256 w7.XOptions = ((Gtk.AttachOptions)(4));
257 w7.YOptions = ((Gtk.AttachOptions)(4));
258 // Container child table1.Gtk.Table+TableChild
259 this.image4 = new Gtk.Image();
260 this.image4.Name = "image4";
261 this.table1.Add(this.image4);
262 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.image4]));
263 w8.TopAttach = ((uint)(1));
264 w8.BottomAttach = ((uint)(2));
265 w8.XOptions = ((Gtk.AttachOptions)(4));
266 w8.YOptions = ((Gtk.AttachOptions)(4));
267 // Container child table1.Gtk.Table+TableChild
268 this.image5 = new Gtk.Image();
269 this.image5.Name = "image5";
270 this.table1.Add(this.image5);
271 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.image5]));
272 w9.TopAttach = ((uint)(1));
273 w9.BottomAttach = ((uint)(2));
274 w9.LeftAttach = ((uint)(1));
275 w9.RightAttach = ((uint)(2));
276 w9.XOptions = ((Gtk.AttachOptions)(4));
277 w9.YOptions = ((Gtk.AttachOptions)(4));
278 // Container child table1.Gtk.Table+TableChild
279 this.image6 = new Gtk.Image();
280 this.image6.Name = "image6";
281 this.table1.Add(this.image6);
282 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.image6]));
283 w10.TopAttach = ((uint)(1));
284 w10.BottomAttach = ((uint)(2));
285 w10.LeftAttach = ((uint)(2));
286 w10.RightAttach = ((uint)(3));
287 w10.XOptions = ((Gtk.AttachOptions)(4));
288 w10.YOptions = ((Gtk.AttachOptions)(4));
289 // Container child table1.Gtk.Table+TableChild
290 this.image7 = new Gtk.Image();
291 this.image7.Name = "image7";
292 this.table1.Add(this.image7);
293 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.image7]));
294 w11.TopAttach = ((uint)(2));
295 w11.BottomAttach = ((uint)(3));
296 w11.XOptions = ((Gtk.AttachOptions)(4));
297 w11.YOptions = ((Gtk.AttachOptions)(4));
298 // Container child table1.Gtk.Table+TableChild
299 this.image8 = new Gtk.Image();
300 this.image8.Name = "image8";
301 this.table1.Add(this.image8);
302 Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.image8]));
303 w12.TopAttach = ((uint)(2));
304 w12.BottomAttach = ((uint)(3));
305 w12.LeftAttach = ((uint)(1));
306 w12.RightAttach = ((uint)(2));
307 w12.XOptions = ((Gtk.AttachOptions)(4));
308 w12.YOptions = ((Gtk.AttachOptions)(4));
309 // Container child table1.Gtk.Table+TableChild
310 this.image9 = new Gtk.Image();
311 this.image9.Name = "image9";
312 this.table1.Add(this.image9);
313 Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.image9]));
314 w13.TopAttach = ((uint)(2));
315 w13.BottomAttach = ((uint)(3));
316 w13.LeftAttach = ((uint)(2));
317 w13.RightAttach = ((uint)(3));
318 w13.XOptions = ((Gtk.AttachOptions)(4));
319 w13.YOptions = ((Gtk.AttachOptions)(4));
320 w4.Add(this.table1);
321 this.scrolledwindow1.Add(w4);
322 this.hbox1.Add(this.scrolledwindow1);
323 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
324 w16.Position = 1;
325 // Container child hbox1.Gtk.Box+BoxChild
326 this.treeview1 = new Gtk.TreeView();
327 this.treeview1.CanFocus = true;
328 this.treeview1.Name = "treeview1";
329 this.hbox1.Add(this.treeview1);
330 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.treeview1]));
331 w17.Position = 2;
332 this.vbox1.Add(this.hbox1);
333 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
334 w18.Position = 1;
335 // Container child vbox1.Gtk.Box+BoxChild
336 this.statusbar1 = new Gtk.Statusbar();
337 this.statusbar1.Name = "statusbar1";
338 this.statusbar1.Spacing = 5;
339 this.vbox1.Add(this.statusbar1);
340 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
341 w19.PackType = ((Gtk.PackType)(1));
342 w19.Position = 2;
343 w19.Expand = false;
344 w19.Fill = false;
345 this.Add(this.vbox1);
346 if ((this.Child != null)) {
347 this.Child.ShowAll();
348 }
349 this.DefaultWidth = 668;
350 this.DefaultHeight = 800;
351 this.Show();
352 this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
353 this.ConnectToGridserver.Activated += new System.EventHandler(this.ConnectToGridServerMenu);
354 this.ExitGridManager.Activated += new System.EventHandler(this.QuitMenu);
355 }
356}
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.ConnectToGridServerDialog.cs b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.ConnectToGridServerDialog.cs
new file mode 100644
index 0000000..8037683
--- /dev/null
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.ConnectToGridServerDialog.cs
@@ -0,0 +1,144 @@
1// ------------------------------------------------------------------------------
2// <autogenerated>
3// This code was generated by a tool.
4// Mono Runtime Version: 2.0.50727.42
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </autogenerated>
9// ------------------------------------------------------------------------------
10
11namespace OpenGridServices.Manager {
12
13
14 public partial class ConnectToGridServerDialog {
15
16 private Gtk.VBox vbox2;
17
18 private Gtk.Label label1;
19
20 private Gtk.Entry entry1;
21
22 private Gtk.Button button2;
23
24 private Gtk.Button button8;
25
26 protected virtual void Build() {
27 Stetic.Gui.Initialize();
28 // Widget OpenGridServices.Manager.ConnectToGridServerDialog
29 this.Events = ((Gdk.EventMask)(256));
30 this.Name = "OpenGridServices.Manager.ConnectToGridServerDialog";
31 this.Title = Mono.Unix.Catalog.GetString("Connect to Grid server");
32 // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.VBox
33 Gtk.VBox w1 = this.VBox;
34 w1.Events = ((Gdk.EventMask)(256));
35 w1.Name = "dialog_VBox";
36 w1.BorderWidth = ((uint)(2));
37 // Container child dialog_VBox.Gtk.Box+BoxChild
38 this.vbox2 = new Gtk.VBox();
39 this.vbox2.Name = "vbox2";
40 // Container child vbox2.Gtk.Box+BoxChild
41 this.label1 = new Gtk.Label();
42 this.label1.Name = "label1";
43 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Please type in the grid server management interface URL:");
44 this.label1.Wrap = true;
45 this.label1.Justify = ((Gtk.Justification)(2));
46 this.vbox2.Add(this.label1);
47 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
48 w2.Position = 0;
49 w2.Expand = false;
50 w2.Fill = false;
51 // Container child vbox2.Gtk.Box+BoxChild
52 this.entry1 = new Gtk.Entry();
53 this.entry1.CanFocus = true;
54 this.entry1.Name = "entry1";
55 this.entry1.Text = Mono.Unix.Catalog.GetString("http://gridserver:8001");
56 this.entry1.IsEditable = true;
57 this.entry1.MaxLength = 255;
58 this.entry1.InvisibleChar = '•';
59 this.vbox2.Add(this.entry1);
60 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.entry1]));
61 w3.Position = 1;
62 w3.Expand = false;
63 w3.Fill = false;
64 w1.Add(this.vbox2);
65 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
66 w4.Position = 0;
67 // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.ActionArea
68 Gtk.HButtonBox w5 = this.ActionArea;
69 w5.Events = ((Gdk.EventMask)(256));
70 w5.Name = "OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea";
71 w5.Spacing = 6;
72 w5.BorderWidth = ((uint)(5));
73 w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
74 // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
75 this.button2 = new Gtk.Button();
76 this.button2.CanDefault = true;
77 this.button2.CanFocus = true;
78 this.button2.Name = "button2";
79 this.button2.UseUnderline = true;
80 // Container child button2.Gtk.Container+ContainerChild
81 Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
82 w6.Name = "GtkAlignment";
83 // Container child GtkAlignment.Gtk.Container+ContainerChild
84 Gtk.HBox w7 = new Gtk.HBox();
85 w7.Name = "GtkHBox";
86 w7.Spacing = 2;
87 // Container child GtkHBox.Gtk.Container+ContainerChild
88 Gtk.Image w8 = new Gtk.Image();
89 w8.Name = "image37";
90 w8.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0);
91 w7.Add(w8);
92 // Container child GtkHBox.Gtk.Container+ContainerChild
93 Gtk.Label w10 = new Gtk.Label();
94 w10.Name = "GtkLabel";
95 w10.LabelProp = Mono.Unix.Catalog.GetString("Connect");
96 w10.UseUnderline = true;
97 w7.Add(w10);
98 w6.Add(w7);
99 this.button2.Add(w6);
100 this.AddActionWidget(this.button2, -5);
101 Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.button2]));
102 w14.Expand = false;
103 w14.Fill = false;
104 // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
105 this.button8 = new Gtk.Button();
106 this.button8.CanDefault = true;
107 this.button8.CanFocus = true;
108 this.button8.Name = "button8";
109 this.button8.UseUnderline = true;
110 // Container child button8.Gtk.Container+ContainerChild
111 Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
112 w15.Name = "GtkAlignment1";
113 // Container child GtkAlignment1.Gtk.Container+ContainerChild
114 Gtk.HBox w16 = new Gtk.HBox();
115 w16.Name = "GtkHBox1";
116 w16.Spacing = 2;
117 // Container child GtkHBox1.Gtk.Container+ContainerChild
118 Gtk.Image w17 = new Gtk.Image();
119 w17.Name = "image38";
120 w17.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
121 w16.Add(w17);
122 // Container child GtkHBox1.Gtk.Container+ContainerChild
123 Gtk.Label w19 = new Gtk.Label();
124 w19.Name = "GtkLabel1";
125 w19.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
126 w19.UseUnderline = true;
127 w16.Add(w19);
128 w15.Add(w16);
129 this.button8.Add(w15);
130 this.AddActionWidget(this.button8, -6);
131 Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.button8]));
132 w23.Position = 1;
133 w23.Expand = false;
134 w23.Fill = false;
135 if ((this.Child != null)) {
136 this.Child.ShowAll();
137 }
138 this.DefaultWidth = 476;
139 this.DefaultHeight = 107;
140 this.Show();
141 this.Response += new Gtk.ResponseHandler(this.OnResponse);
142 }
143 }
144}
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.MainWindow.cs b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.MainWindow.cs
new file mode 100644
index 0000000..4047dec
--- /dev/null
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/OpenGridServices.Manager.MainWindow.cs
@@ -0,0 +1,359 @@
1// ------------------------------------------------------------------------------
2// <autogenerated>
3// This code was generated by a tool.
4// Mono Runtime Version: 2.0.50727.42
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </autogenerated>
9// ------------------------------------------------------------------------------
10
11namespace OpenGridServices.Manager {
12
13
14 public partial class MainWindow {
15
16 private Gtk.Action Grid;
17
18 private Gtk.Action User;
19
20 private Gtk.Action Asset;
21
22 private Gtk.Action Region;
23
24 private Gtk.Action Services;
25
26 private Gtk.Action ConnectToGridserver;
27
28 private Gtk.Action RestartWholeGrid;
29
30 private Gtk.Action ShutdownWholeGrid;
31
32 private Gtk.Action ExitGridManager;
33
34 private Gtk.Action ConnectToUserserver;
35
36 private Gtk.Action AccountManagment;
37
38 private Gtk.Action GlobalNotice;
39
40 private Gtk.Action DisableAllLogins;
41
42 private Gtk.Action DisableNonGodUsersOnly;
43
44 private Gtk.Action ShutdownUserServer;
45
46 private Gtk.Action ShutdownGridserverOnly;
47
48 private Gtk.Action RestartGridserverOnly;
49
50 private Gtk.Action DefaultLocalGridUserserver;
51
52 private Gtk.Action CustomUserserver;
53
54 private Gtk.Action RemoteGridDefaultUserserver;
55
56 private Gtk.Action DisconnectFromGridServer;
57
58 private Gtk.Action UploadAsset;
59
60 private Gtk.Action AssetManagement;
61
62 private Gtk.Action ConnectToAssetServer;
63
64 private Gtk.Action ConnectToDefaultAssetServerForGrid;
65
66 private Gtk.Action DefaultForLocalGrid;
67
68 private Gtk.Action DefaultForRemoteGrid;
69
70 private Gtk.Action CustomAssetServer;
71
72 private Gtk.VBox vbox1;
73
74 private Gtk.MenuBar menubar2;
75
76 private Gtk.HBox hbox1;
77
78 private Gtk.ScrolledWindow scrolledwindow1;
79
80 private Gtk.Table table1;
81
82 private Gtk.Image image1;
83
84 private Gtk.Image image2;
85
86 private Gtk.Image image3;
87
88 private Gtk.Image image4;
89
90 private Gtk.Image image5;
91
92 private Gtk.Image image6;
93
94 private Gtk.Image image7;
95
96 private Gtk.Image image8;
97
98 private Gtk.Image image9;
99
100 private Gtk.TreeView treeview1;
101
102 private Gtk.Statusbar statusbar1;
103
104 protected virtual void Build() {
105 Stetic.Gui.Initialize();
106 // Widget OpenGridServices.Manager.MainWindow
107 Gtk.UIManager w1 = new Gtk.UIManager();
108 Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
109 this.Grid = new Gtk.Action("Grid", Mono.Unix.Catalog.GetString("Grid"), null, null);
110 this.Grid.HideIfEmpty = false;
111 this.Grid.ShortLabel = Mono.Unix.Catalog.GetString("Grid");
112 w2.Add(this.Grid, "<Alt><Mod2>g");
113 this.User = new Gtk.Action("User", Mono.Unix.Catalog.GetString("User"), null, null);
114 this.User.HideIfEmpty = false;
115 this.User.ShortLabel = Mono.Unix.Catalog.GetString("User");
116 w2.Add(this.User, null);
117 this.Asset = new Gtk.Action("Asset", Mono.Unix.Catalog.GetString("Asset"), null, null);
118 this.Asset.HideIfEmpty = false;
119 this.Asset.ShortLabel = Mono.Unix.Catalog.GetString("Asset");
120 w2.Add(this.Asset, null);
121 this.Region = new Gtk.Action("Region", Mono.Unix.Catalog.GetString("Region"), null, null);
122 this.Region.ShortLabel = Mono.Unix.Catalog.GetString("Region");
123 w2.Add(this.Region, null);
124 this.Services = new Gtk.Action("Services", Mono.Unix.Catalog.GetString("Services"), null, null);
125 this.Services.ShortLabel = Mono.Unix.Catalog.GetString("Services");
126 w2.Add(this.Services, null);
127 this.ConnectToGridserver = new Gtk.Action("ConnectToGridserver", Mono.Unix.Catalog.GetString("Connect to gridserver..."), null, "gtk-connect");
128 this.ConnectToGridserver.HideIfEmpty = false;
129 this.ConnectToGridserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to gridserver");
130 w2.Add(this.ConnectToGridserver, null);
131 this.RestartWholeGrid = new Gtk.Action("RestartWholeGrid", Mono.Unix.Catalog.GetString("Restart whole grid"), null, "gtk-refresh");
132 this.RestartWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Restart whole grid");
133 w2.Add(this.RestartWholeGrid, null);
134 this.ShutdownWholeGrid = new Gtk.Action("ShutdownWholeGrid", Mono.Unix.Catalog.GetString("Shutdown whole grid"), null, "gtk-stop");
135 this.ShutdownWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown whole grid");
136 w2.Add(this.ShutdownWholeGrid, null);
137 this.ExitGridManager = new Gtk.Action("ExitGridManager", Mono.Unix.Catalog.GetString("Exit grid manager"), null, "gtk-close");
138 this.ExitGridManager.ShortLabel = Mono.Unix.Catalog.GetString("Exit grid manager");
139 w2.Add(this.ExitGridManager, null);
140 this.ConnectToUserserver = new Gtk.Action("ConnectToUserserver", Mono.Unix.Catalog.GetString("Connect to userserver"), null, "gtk-connect");
141 this.ConnectToUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to userserver");
142 w2.Add(this.ConnectToUserserver, null);
143 this.AccountManagment = new Gtk.Action("AccountManagment", Mono.Unix.Catalog.GetString("Account managment"), null, "gtk-properties");
144 this.AccountManagment.ShortLabel = Mono.Unix.Catalog.GetString("Account managment");
145 w2.Add(this.AccountManagment, null);
146 this.GlobalNotice = new Gtk.Action("GlobalNotice", Mono.Unix.Catalog.GetString("Global notice"), null, "gtk-network");
147 this.GlobalNotice.ShortLabel = Mono.Unix.Catalog.GetString("Global notice");
148 w2.Add(this.GlobalNotice, null);
149 this.DisableAllLogins = new Gtk.Action("DisableAllLogins", Mono.Unix.Catalog.GetString("Disable all logins"), null, "gtk-no");
150 this.DisableAllLogins.ShortLabel = Mono.Unix.Catalog.GetString("Disable all logins");
151 w2.Add(this.DisableAllLogins, null);
152 this.DisableNonGodUsersOnly = new Gtk.Action("DisableNonGodUsersOnly", Mono.Unix.Catalog.GetString("Disable non-god users only"), null, "gtk-no");
153 this.DisableNonGodUsersOnly.ShortLabel = Mono.Unix.Catalog.GetString("Disable non-god users only");
154 w2.Add(this.DisableNonGodUsersOnly, null);
155 this.ShutdownUserServer = new Gtk.Action("ShutdownUserServer", Mono.Unix.Catalog.GetString("Shutdown user server"), null, "gtk-stop");
156 this.ShutdownUserServer.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown user server");
157 w2.Add(this.ShutdownUserServer, null);
158 this.ShutdownGridserverOnly = new Gtk.Action("ShutdownGridserverOnly", Mono.Unix.Catalog.GetString("Shutdown gridserver only"), null, "gtk-stop");
159 this.ShutdownGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown gridserver only");
160 w2.Add(this.ShutdownGridserverOnly, null);
161 this.RestartGridserverOnly = new Gtk.Action("RestartGridserverOnly", Mono.Unix.Catalog.GetString("Restart gridserver only"), null, "gtk-refresh");
162 this.RestartGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Restart gridserver only");
163 w2.Add(this.RestartGridserverOnly, null);
164 this.DefaultLocalGridUserserver = new Gtk.Action("DefaultLocalGridUserserver", Mono.Unix.Catalog.GetString("Default local grid userserver"), null, null);
165 this.DefaultLocalGridUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Default local grid userserver");
166 w2.Add(this.DefaultLocalGridUserserver, null);
167 this.CustomUserserver = new Gtk.Action("CustomUserserver", Mono.Unix.Catalog.GetString("Custom userserver..."), null, null);
168 this.CustomUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Custom userserver");
169 w2.Add(this.CustomUserserver, null);
170 this.RemoteGridDefaultUserserver = new Gtk.Action("RemoteGridDefaultUserserver", Mono.Unix.Catalog.GetString("Remote grid default userserver..."), null, null);
171 this.RemoteGridDefaultUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Remote grid default userserver");
172 w2.Add(this.RemoteGridDefaultUserserver, null);
173 this.DisconnectFromGridServer = new Gtk.Action("DisconnectFromGridServer", Mono.Unix.Catalog.GetString("Disconnect from grid server"), null, "gtk-disconnect");
174 this.DisconnectFromGridServer.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect from grid server");
175 this.DisconnectFromGridServer.Visible = false;
176 w2.Add(this.DisconnectFromGridServer, null);
177 this.UploadAsset = new Gtk.Action("UploadAsset", Mono.Unix.Catalog.GetString("Upload asset"), null, null);
178 this.UploadAsset.ShortLabel = Mono.Unix.Catalog.GetString("Upload asset");
179 w2.Add(this.UploadAsset, null);
180 this.AssetManagement = new Gtk.Action("AssetManagement", Mono.Unix.Catalog.GetString("Asset management"), null, null);
181 this.AssetManagement.ShortLabel = Mono.Unix.Catalog.GetString("Asset management");
182 w2.Add(this.AssetManagement, null);
183 this.ConnectToAssetServer = new Gtk.Action("ConnectToAssetServer", Mono.Unix.Catalog.GetString("Connect to asset server"), null, null);
184 this.ConnectToAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Connect to asset server");
185 w2.Add(this.ConnectToAssetServer, null);
186 this.ConnectToDefaultAssetServerForGrid = new Gtk.Action("ConnectToDefaultAssetServerForGrid", Mono.Unix.Catalog.GetString("Connect to default asset server for grid"), null, null);
187 this.ConnectToDefaultAssetServerForGrid.ShortLabel = Mono.Unix.Catalog.GetString("Connect to default asset server for grid");
188 w2.Add(this.ConnectToDefaultAssetServerForGrid, null);
189 this.DefaultForLocalGrid = new Gtk.Action("DefaultForLocalGrid", Mono.Unix.Catalog.GetString("Default for local grid"), null, null);
190 this.DefaultForLocalGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for local grid");
191 w2.Add(this.DefaultForLocalGrid, null);
192 this.DefaultForRemoteGrid = new Gtk.Action("DefaultForRemoteGrid", Mono.Unix.Catalog.GetString("Default for remote grid..."), null, null);
193 this.DefaultForRemoteGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for remote grid...");
194 w2.Add(this.DefaultForRemoteGrid, null);
195 this.CustomAssetServer = new Gtk.Action("CustomAssetServer", Mono.Unix.Catalog.GetString("Custom asset server..."), null, null);
196 this.CustomAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Custom asset server...");
197 w2.Add(this.CustomAssetServer, null);
198 w1.InsertActionGroup(w2, 0);
199 this.AddAccelGroup(w1.AccelGroup);
200 this.WidthRequest = 800;
201 this.HeightRequest = 600;
202 this.Name = "OpenGridServices.Manager.MainWindow";
203 this.Title = Mono.Unix.Catalog.GetString("Open Grid Services Manager");
204 this.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-network", 48, 0);
205 this.WindowPosition = ((Gtk.WindowPosition)(0));
206 // Container child OpenGridServices.Manager.MainWindow.Gtk.Container+ContainerChild
207 this.vbox1 = new Gtk.VBox();
208 this.vbox1.Name = "vbox1";
209 // Container child vbox1.Gtk.Box+BoxChild
210 w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Grid'><menuitem action='ConnectToGridserver'/><menuitem action='DisconnectFromGridServer'/><separator/><menuitem action='RestartWholeGrid'/><menuitem action='RestartGridserverOnly'/><separator/><menuitem action='ShutdownWholeGrid'/><menuitem action='ShutdownGridserverOnly'/><separator/><menuitem action='ExitGridManager'/></menu><menu action='User'><menu action='ConnectToUserserver'><menuitem action='DefaultLocalGridUserserver'/><menuitem action='CustomUserserver'/><menuitem action='RemoteGridDefaultUserserver'/></menu><separator/><menuitem action='AccountManagment'/><menuitem action='GlobalNotice'/><separator/><menuitem action='DisableAllLogins'/><menuitem action='DisableNonGodUsersOnly'/><separator/><menuitem action='ShutdownUserServer'/></menu><menu action='Asset'><menuitem action='UploadAsset'/><menuitem action='AssetManagement'/><menu action='ConnectToAssetServer'><menuitem action='DefaultForLocalGrid'/><menuitem action='DefaultForRemoteGrid'/><menuitem action='CustomAssetServer'/></menu></menu><menu action='Region'/><menu action='Services'/></menubar></ui>");
211 this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
212 this.menubar2.HeightRequest = 25;
213 this.menubar2.Name = "menubar2";
214 this.vbox1.Add(this.menubar2);
215 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
216 w3.Position = 0;
217 w3.Expand = false;
218 w3.Fill = false;
219 // Container child vbox1.Gtk.Box+BoxChild
220 this.hbox1 = new Gtk.HBox();
221 this.hbox1.Name = "hbox1";
222 // Container child hbox1.Gtk.Box+BoxChild
223 this.scrolledwindow1 = new Gtk.ScrolledWindow();
224 this.scrolledwindow1.CanFocus = true;
225 this.scrolledwindow1.Name = "scrolledwindow1";
226 this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
227 this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
228 // Container child scrolledwindow1.Gtk.Container+ContainerChild
229 Gtk.Viewport w4 = new Gtk.Viewport();
230 w4.Name = "GtkViewport";
231 w4.ShadowType = ((Gtk.ShadowType)(0));
232 // Container child GtkViewport.Gtk.Container+ContainerChild
233 this.table1 = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
234 this.table1.Name = "table1";
235 // Container child table1.Gtk.Table+TableChild
236 this.image1 = new Gtk.Image();
237 this.image1.Name = "image1";
238 this.table1.Add(this.image1);
239 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.image1]));
240 w5.XOptions = ((Gtk.AttachOptions)(4));
241 w5.YOptions = ((Gtk.AttachOptions)(4));
242 // Container child table1.Gtk.Table+TableChild
243 this.image2 = new Gtk.Image();
244 this.image2.Name = "image2";
245 this.table1.Add(this.image2);
246 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.image2]));
247 w6.LeftAttach = ((uint)(1));
248 w6.RightAttach = ((uint)(2));
249 w6.XOptions = ((Gtk.AttachOptions)(4));
250 w6.YOptions = ((Gtk.AttachOptions)(4));
251 // Container child table1.Gtk.Table+TableChild
252 this.image3 = new Gtk.Image();
253 this.image3.Name = "image3";
254 this.table1.Add(this.image3);
255 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.image3]));
256 w7.LeftAttach = ((uint)(2));
257 w7.RightAttach = ((uint)(3));
258 w7.XOptions = ((Gtk.AttachOptions)(4));
259 w7.YOptions = ((Gtk.AttachOptions)(4));
260 // Container child table1.Gtk.Table+TableChild
261 this.image4 = new Gtk.Image();
262 this.image4.Name = "image4";
263 this.table1.Add(this.image4);
264 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.image4]));
265 w8.TopAttach = ((uint)(1));
266 w8.BottomAttach = ((uint)(2));
267 w8.XOptions = ((Gtk.AttachOptions)(4));
268 w8.YOptions = ((Gtk.AttachOptions)(4));
269 // Container child table1.Gtk.Table+TableChild
270 this.image5 = new Gtk.Image();
271 this.image5.Name = "image5";
272 this.table1.Add(this.image5);
273 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.image5]));
274 w9.TopAttach = ((uint)(1));
275 w9.BottomAttach = ((uint)(2));
276 w9.LeftAttach = ((uint)(1));
277 w9.RightAttach = ((uint)(2));
278 w9.XOptions = ((Gtk.AttachOptions)(4));
279 w9.YOptions = ((Gtk.AttachOptions)(4));
280 // Container child table1.Gtk.Table+TableChild
281 this.image6 = new Gtk.Image();
282 this.image6.Name = "image6";
283 this.table1.Add(this.image6);
284 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.image6]));
285 w10.TopAttach = ((uint)(1));
286 w10.BottomAttach = ((uint)(2));
287 w10.LeftAttach = ((uint)(2));
288 w10.RightAttach = ((uint)(3));
289 w10.XOptions = ((Gtk.AttachOptions)(4));
290 w10.YOptions = ((Gtk.AttachOptions)(4));
291 // Container child table1.Gtk.Table+TableChild
292 this.image7 = new Gtk.Image();
293 this.image7.Name = "image7";
294 this.table1.Add(this.image7);
295 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.image7]));
296 w11.TopAttach = ((uint)(2));
297 w11.BottomAttach = ((uint)(3));
298 w11.XOptions = ((Gtk.AttachOptions)(4));
299 w11.YOptions = ((Gtk.AttachOptions)(4));
300 // Container child table1.Gtk.Table+TableChild
301 this.image8 = new Gtk.Image();
302 this.image8.Name = "image8";
303 this.table1.Add(this.image8);
304 Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.image8]));
305 w12.TopAttach = ((uint)(2));
306 w12.BottomAttach = ((uint)(3));
307 w12.LeftAttach = ((uint)(1));
308 w12.RightAttach = ((uint)(2));
309 w12.XOptions = ((Gtk.AttachOptions)(4));
310 w12.YOptions = ((Gtk.AttachOptions)(4));
311 // Container child table1.Gtk.Table+TableChild
312 this.image9 = new Gtk.Image();
313 this.image9.Name = "image9";
314 this.table1.Add(this.image9);
315 Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.image9]));
316 w13.TopAttach = ((uint)(2));
317 w13.BottomAttach = ((uint)(3));
318 w13.LeftAttach = ((uint)(2));
319 w13.RightAttach = ((uint)(3));
320 w13.XOptions = ((Gtk.AttachOptions)(4));
321 w13.YOptions = ((Gtk.AttachOptions)(4));
322 w4.Add(this.table1);
323 this.scrolledwindow1.Add(w4);
324 this.hbox1.Add(this.scrolledwindow1);
325 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
326 w16.Position = 1;
327 // Container child hbox1.Gtk.Box+BoxChild
328 this.treeview1 = new Gtk.TreeView();
329 this.treeview1.CanFocus = true;
330 this.treeview1.Name = "treeview1";
331 this.hbox1.Add(this.treeview1);
332 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.treeview1]));
333 w17.Position = 2;
334 this.vbox1.Add(this.hbox1);
335 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
336 w18.Position = 1;
337 // Container child vbox1.Gtk.Box+BoxChild
338 this.statusbar1 = new Gtk.Statusbar();
339 this.statusbar1.Name = "statusbar1";
340 this.statusbar1.Spacing = 5;
341 this.vbox1.Add(this.statusbar1);
342 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
343 w19.PackType = ((Gtk.PackType)(1));
344 w19.Position = 2;
345 w19.Expand = false;
346 w19.Fill = false;
347 this.Add(this.vbox1);
348 if ((this.Child != null)) {
349 this.Child.ShowAll();
350 }
351 this.DefaultWidth = 800;
352 this.DefaultHeight = 800;
353 this.Show();
354 this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
355 this.ConnectToGridserver.Activated += new System.EventHandler(this.ConnectToGridServerMenu);
356 this.ExitGridManager.Activated += new System.EventHandler(this.QuitMenu);
357 }
358 }
359}
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/gui.stetic b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/gui.stetic
index 72586a7..81ef762 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/gui.stetic
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/gtk-gui/gui.stetic
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<stetic-interface> 2<stetic-interface>
3 <widget class="Gtk.Window" id="MainWindow" design-size="668 800"> 3 <widget class="Gtk.Window" id="OpenGridServices.Manager.MainWindow" design-size="800 800">
4 <action-group name="Default"> 4 <action-group name="Default">
5 <action id="Grid"> 5 <action id="Grid">
6 <property name="Type">Action</property> 6 <property name="Type">Action</property>
@@ -169,6 +169,7 @@
169 <property name="HeightRequest">600</property> 169 <property name="HeightRequest">600</property>
170 <property name="Title" translatable="yes">Open Grid Services Manager</property> 170 <property name="Title" translatable="yes">Open Grid Services Manager</property>
171 <property name="Icon">stock:gtk-network Dialog</property> 171 <property name="Icon">stock:gtk-network Dialog</property>
172 <property name="WindowPosition">None</property>
172 <signal name="DeleteEvent" handler="OnDeleteEvent" /> 173 <signal name="DeleteEvent" handler="OnDeleteEvent" />
173 <child> 174 <child>
174 <widget class="Gtk.VBox" id="vbox1"> 175 <widget class="Gtk.VBox" id="vbox1">
@@ -462,14 +463,13 @@
462 </widget> 463 </widget>
463 </child> 464 </child>
464 </widget> 465 </widget>
465 <widget class="Gtk.Dialog" id="ConnectToGridServerDialog" design-size="476 107"> 466 <widget class="Gtk.Dialog" id="OpenGridServices.Manager.ConnectToGridServerDialog" design-size="476 107">
466 <property name="MemberName" /> 467 <property name="MemberName" />
467 <property name="Events">ButtonPressMask</property> 468 <property name="Events">ButtonPressMask</property>
468 <property name="Title" translatable="yes">Connect to Grid server</property> 469 <property name="Title" translatable="yes">Connect to Grid server</property>
469 <property name="WindowPosition">CenterOnParent</property>
470 <property name="Buttons">2</property> 470 <property name="Buttons">2</property>
471 <property name="HelpButton">False</property> 471 <property name="HelpButton">False</property>
472 <property name="HasSeparator">False</property> 472 <signal name="Response" handler="OnResponse" />
473 <child internal-child="VBox"> 473 <child internal-child="VBox">
474 <widget class="Gtk.VBox" id="dialog_VBox"> 474 <widget class="Gtk.VBox" id="dialog_VBox">
475 <property name="MemberName" /> 475 <property name="MemberName" />
@@ -481,7 +481,7 @@
481 <child> 481 <child>
482 <widget class="Gtk.Label" id="label1"> 482 <widget class="Gtk.Label" id="label1">
483 <property name="MemberName" /> 483 <property name="MemberName" />
484 <property name="LabelProp" translatable="yes">Please type in the grid server IP/hostname and management interface port:</property> 484 <property name="LabelProp" translatable="yes">Please type in the grid server management interface URL:</property>
485 <property name="Wrap">True</property> 485 <property name="Wrap">True</property>
486 <property name="Justify">Center</property> 486 <property name="Justify">Center</property>
487 </widget> 487 </widget>
@@ -496,7 +496,7 @@
496 <widget class="Gtk.Entry" id="entry1"> 496 <widget class="Gtk.Entry" id="entry1">
497 <property name="MemberName" /> 497 <property name="MemberName" />
498 <property name="CanFocus">True</property> 498 <property name="CanFocus">True</property>
499 <property name="Text" translatable="yes">gridserver:8001</property> 499 <property name="Text" translatable="yes">http://gridserver:8001</property>
500 <property name="IsEditable">True</property> 500 <property name="IsEditable">True</property>
501 <property name="MaxLength">255</property> 501 <property name="MaxLength">255</property>
502 <property name="InvisibleChar">•</property> 502 <property name="InvisibleChar">•</property>
@@ -537,8 +537,7 @@
537 <property name="Label" translatable="yes">Connect</property> 537 <property name="Label" translatable="yes">Connect</property>
538 <property name="UseUnderline">True</property> 538 <property name="UseUnderline">True</property>
539 <property name="IsDialogButton">True</property> 539 <property name="IsDialogButton">True</property>
540 <property name="ResponseId">0</property> 540 <property name="ResponseId">-5</property>
541 <signal name="Activated" handler="ConnectBtn" />
542 </widget> 541 </widget>
543 <packing> 542 <packing>
544 <property name="Expand">False</property> 543 <property name="Expand">False</property>
@@ -555,8 +554,7 @@
555 <property name="Label" translatable="yes">Cancel</property> 554 <property name="Label" translatable="yes">Cancel</property>
556 <property name="UseUnderline">True</property> 555 <property name="UseUnderline">True</property>
557 <property name="IsDialogButton">True</property> 556 <property name="IsDialogButton">True</property>
558 <property name="ResponseId">0</property> 557 <property name="ResponseId">-6</property>
559 <signal name="Activated" handler="CancelBtn" />
560 </widget> 558 </widget>
561 <packing> 559 <packing>
562 <property name="Position">1</property> 560 <property name="Position">1</property>