diff options
author | Jeff Ames | 2008-01-10 06:49:29 +0000 |
---|---|---|
committer | Jeff Ames | 2008-01-10 06:49:29 +0000 |
commit | 5a6fd21a2c31a41c617f1d2a7e390956b5aafb0a (patch) | |
tree | 8828dc80f2b50aca4b6726cfe20be5fe5431b12c /OpenSim/Grid/Manager/OpenGridServices.Manager/MainWindow.cs | |
parent | * After fighting with it a bit more, Opensim is now compatible with the most ... (diff) | |
download | opensim-SC-5a6fd21a2c31a41c617f1d2a7e390956b5aafb0a.zip opensim-SC-5a6fd21a2c31a41c617f1d2a7e390956b5aafb0a.tar.gz opensim-SC-5a6fd21a2c31a41c617f1d2a7e390956b5aafb0a.tar.bz2 opensim-SC-5a6fd21a2c31a41c617f1d2a7e390956b5aafb0a.tar.xz |
Whitespace cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/Manager/OpenGridServices.Manager/MainWindow.cs | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/OpenSim/Grid/Manager/OpenGridServices.Manager/MainWindow.cs b/OpenSim/Grid/Manager/OpenGridServices.Manager/MainWindow.cs index b9efe1d..312c347 100644 --- a/OpenSim/Grid/Manager/OpenGridServices.Manager/MainWindow.cs +++ b/OpenSim/Grid/Manager/OpenGridServices.Manager/MainWindow.cs | |||
@@ -29,76 +29,76 @@ | |||
29 | using System; | 29 | using System; |
30 | using Gtk; | 30 | using Gtk; |
31 | 31 | ||
32 | namespace OpenGridServices.Manager { | 32 | namespace OpenGridServices.Manager |
33 | public partial class MainWindow: Gtk.Window | 33 | { |
34 | { | 34 | public partial class MainWindow: Gtk.Window |
35 | public MainWindow (): base (Gtk.WindowType.Toplevel) | 35 | { |
36 | { | 36 | public MainWindow (): base (Gtk.WindowType.Toplevel) |
37 | Build (); | 37 | { |
38 | } | 38 | Build(); |
39 | 39 | } | |
40 | public void SetStatus(string statustext) | ||
41 | { | ||
42 | this.statusbar1.Pop(0); | ||
43 | this.statusbar1.Push(0,statustext); | ||
44 | } | ||
45 | 40 | ||
46 | public void DrawGrid(RegionBlock[][] regions) | 41 | public void SetStatus(string statustext) |
47 | { | 42 | { |
48 | for(int x=0; x<=regions.GetUpperBound(0); x++) { | 43 | this.statusbar1.Pop(0); |
49 | for(int y=0; y<=regions.GetUpperBound(1); y++) { | 44 | this.statusbar1.Push(0, statustext); |
50 | Gdk.Image themap = new Gdk.Image(Gdk.ImageType.Fastest,Gdk.Visual.System,256,256); | 45 | } |
51 | this.drawingarea1.GdkWindow.DrawImage(new Gdk.GC(this.drawingarea1.GdkWindow),themap,0,0,x*256,y*256,256,256); | ||
52 | } | ||
53 | } | ||
54 | } | ||
55 | |||
56 | public void SetGridServerConnected(bool connected) | ||
57 | { | ||
58 | if(connected) { | ||
59 | this.ConnectToGridserver.Visible=false; | ||
60 | this.DisconnectFromGridServer.Visible=true; | ||
61 | } else { | ||
62 | this.ConnectToGridserver.Visible=true; | ||
63 | this.DisconnectFromGridServer.Visible=false; | ||
64 | } | ||
65 | } | ||
66 | |||
67 | protected void OnDeleteEvent (object sender, DeleteEventArgs a) | ||
68 | { | ||
69 | Application.Quit (); | ||
70 | MainClass.QuitReq=true; | ||
71 | a.RetVal = true; | ||
72 | } | ||
73 | |||
74 | protected virtual void QuitMenu(object sender, System.EventArgs e) | ||
75 | { | ||
76 | MainClass.QuitReq=true; | ||
77 | Application.Quit(); | ||
78 | } | ||
79 | |||
80 | protected virtual void ConnectToGridServerMenu(object sender, System.EventArgs e) | ||
81 | { | ||
82 | ConnectToGridServerDialog griddialog = new ConnectToGridServerDialog (); | ||
83 | griddialog.Show(); | ||
84 | } | ||
85 | 46 | ||
86 | protected virtual void RestartGridserverMenu(object sender, System.EventArgs e) | 47 | public void DrawGrid(RegionBlock[][] regions) |
87 | { | 48 | { |
88 | MainClass.PendingOperations.Enqueue("restart_gridserver"); | 49 | for (int x=0; x<=regions.GetUpperBound(0); x++) |
89 | } | 50 | { |
51 | for (int y=0; y<=regions.GetUpperBound(1); y++) | ||
52 | { | ||
53 | Gdk.Image themap = new Gdk.Image(Gdk.ImageType.Fastest,Gdk.Visual.System,256,256); | ||
54 | this.drawingarea1.GdkWindow.DrawImage(new Gdk.GC(this.drawingarea1.GdkWindow),themap,0,0,x*256,y*256,256,256); | ||
55 | } | ||
56 | } | ||
57 | } | ||
90 | 58 | ||
91 | protected virtual void ShutdownGridserverMenu(object sender, System.EventArgs e) | 59 | public void SetGridServerConnected(bool connected) |
92 | { | 60 | { |
93 | MainClass.PendingOperations.Enqueue("shutdown_gridserver"); | 61 | if (connected) { |
94 | } | 62 | this.ConnectToGridserver.Visible=false; |
63 | this.DisconnectFromGridServer.Visible=true; | ||
64 | } else { | ||
65 | this.ConnectToGridserver.Visible=true; | ||
66 | this.DisconnectFromGridServer.Visible=false; | ||
67 | } | ||
68 | } | ||
95 | 69 | ||
96 | protected virtual void DisconnectGridServerMenu(object sender, System.EventArgs e) | 70 | protected void OnDeleteEvent (object sender, DeleteEventArgs a) |
97 | { | 71 | { |
98 | MainClass.PendingOperations.Enqueue("disconnect_gridserver"); | 72 | Application.Quit (); |
99 | } | 73 | MainClass.QuitReq=true; |
74 | a.RetVal = true; | ||
75 | } | ||
100 | 76 | ||
101 | } | 77 | protected virtual void QuitMenu(object sender, System.EventArgs e) |
102 | } | 78 | { |
79 | MainClass.QuitReq=true; | ||
80 | Application.Quit(); | ||
81 | } | ||
82 | |||
83 | protected virtual void ConnectToGridServerMenu(object sender, System.EventArgs e) | ||
84 | { | ||
85 | ConnectToGridServerDialog griddialog = new ConnectToGridServerDialog (); | ||
86 | griddialog.Show(); | ||
87 | } | ||
88 | |||
89 | protected virtual void RestartGridserverMenu(object sender, System.EventArgs e) | ||
90 | { | ||
91 | MainClass.PendingOperations.Enqueue("restart_gridserver"); | ||
92 | } | ||
103 | 93 | ||
104 | 94 | protected virtual void ShutdownGridserverMenu(object sender, System.EventArgs e) | |
95 | { | ||
96 | MainClass.PendingOperations.Enqueue("shutdown_gridserver"); | ||
97 | } | ||
98 | |||
99 | protected virtual void DisconnectGridServerMenu(object sender, System.EventArgs e) | ||
100 | { | ||
101 | MainClass.PendingOperations.Enqueue("disconnect_gridserver"); | ||
102 | } | ||
103 | } | ||
104 | } | ||