1
0

OpenGridServices.Manager.MainWindow.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSim Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. *
  27. */
  28. // ------------------------------------------------------------------------------
  29. // <autogenerated>
  30. // This code was generated by a tool.
  31. // Mono Runtime Version: 2.0.50727.42
  32. //
  33. // Changes to this file may cause incorrect behavior and will be lost if
  34. // the code is regenerated.
  35. // </autogenerated>
  36. // ------------------------------------------------------------------------------
  37. namespace OpenGridServices.Manager {
  38. public partial class MainWindow {
  39. private Gtk.Action Grid;
  40. private Gtk.Action User;
  41. private Gtk.Action Asset;
  42. private Gtk.Action Region;
  43. private Gtk.Action Services;
  44. private Gtk.Action ConnectToGridserver;
  45. private Gtk.Action RestartWholeGrid;
  46. private Gtk.Action ShutdownWholeGrid;
  47. private Gtk.Action ExitGridManager;
  48. private Gtk.Action ConnectToUserserver;
  49. private Gtk.Action AccountManagment;
  50. private Gtk.Action GlobalNotice;
  51. private Gtk.Action DisableAllLogins;
  52. private Gtk.Action DisableNonGodUsersOnly;
  53. private Gtk.Action ShutdownUserServer;
  54. private Gtk.Action ShutdownGridserverOnly;
  55. private Gtk.Action RestartGridserverOnly;
  56. private Gtk.Action DefaultLocalGridUserserver;
  57. private Gtk.Action CustomUserserver;
  58. private Gtk.Action RemoteGridDefaultUserserver;
  59. private Gtk.Action DisconnectFromGridServer;
  60. private Gtk.Action UploadAsset;
  61. private Gtk.Action AssetManagement;
  62. private Gtk.Action ConnectToAssetServer;
  63. private Gtk.Action ConnectToDefaultAssetServerForGrid;
  64. private Gtk.Action DefaultForLocalGrid;
  65. private Gtk.Action DefaultForRemoteGrid;
  66. private Gtk.Action CustomAssetServer;
  67. private Gtk.VBox vbox1;
  68. private Gtk.MenuBar menubar2;
  69. private Gtk.HBox hbox1;
  70. private Gtk.ScrolledWindow scrolledwindow1;
  71. private Gtk.DrawingArea drawingarea1;
  72. private Gtk.TreeView treeview1;
  73. private Gtk.Statusbar statusbar1;
  74. protected virtual void Build() {
  75. Stetic.Gui.Initialize();
  76. // Widget OpenGridServices.Manager.MainWindow
  77. Gtk.UIManager w1 = new Gtk.UIManager();
  78. Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
  79. this.Grid = new Gtk.Action("Grid", Mono.Unix.Catalog.GetString("Grid"), null, null);
  80. this.Grid.HideIfEmpty = false;
  81. this.Grid.ShortLabel = Mono.Unix.Catalog.GetString("Grid");
  82. w2.Add(this.Grid, "<Alt><Mod2>g");
  83. this.User = new Gtk.Action("User", Mono.Unix.Catalog.GetString("User"), null, null);
  84. this.User.HideIfEmpty = false;
  85. this.User.ShortLabel = Mono.Unix.Catalog.GetString("User");
  86. w2.Add(this.User, null);
  87. this.Asset = new Gtk.Action("Asset", Mono.Unix.Catalog.GetString("Asset"), null, null);
  88. this.Asset.HideIfEmpty = false;
  89. this.Asset.ShortLabel = Mono.Unix.Catalog.GetString("Asset");
  90. w2.Add(this.Asset, null);
  91. this.Region = new Gtk.Action("Region", Mono.Unix.Catalog.GetString("Region"), null, null);
  92. this.Region.ShortLabel = Mono.Unix.Catalog.GetString("Region");
  93. w2.Add(this.Region, null);
  94. this.Services = new Gtk.Action("Services", Mono.Unix.Catalog.GetString("Services"), null, null);
  95. this.Services.ShortLabel = Mono.Unix.Catalog.GetString("Services");
  96. w2.Add(this.Services, null);
  97. this.ConnectToGridserver = new Gtk.Action("ConnectToGridserver", Mono.Unix.Catalog.GetString("Connect to gridserver..."), null, "gtk-connect");
  98. this.ConnectToGridserver.HideIfEmpty = false;
  99. this.ConnectToGridserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to gridserver");
  100. w2.Add(this.ConnectToGridserver, null);
  101. this.RestartWholeGrid = new Gtk.Action("RestartWholeGrid", Mono.Unix.Catalog.GetString("Restart whole grid"), null, "gtk-refresh");
  102. this.RestartWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Restart whole grid");
  103. w2.Add(this.RestartWholeGrid, null);
  104. this.ShutdownWholeGrid = new Gtk.Action("ShutdownWholeGrid", Mono.Unix.Catalog.GetString("Shutdown whole grid"), null, "gtk-stop");
  105. this.ShutdownWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown whole grid");
  106. w2.Add(this.ShutdownWholeGrid, null);
  107. this.ExitGridManager = new Gtk.Action("ExitGridManager", Mono.Unix.Catalog.GetString("Exit grid manager"), null, "gtk-close");
  108. this.ExitGridManager.ShortLabel = Mono.Unix.Catalog.GetString("Exit grid manager");
  109. w2.Add(this.ExitGridManager, null);
  110. this.ConnectToUserserver = new Gtk.Action("ConnectToUserserver", Mono.Unix.Catalog.GetString("Connect to userserver"), null, "gtk-connect");
  111. this.ConnectToUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to userserver");
  112. w2.Add(this.ConnectToUserserver, null);
  113. this.AccountManagment = new Gtk.Action("AccountManagment", Mono.Unix.Catalog.GetString("Account managment"), null, "gtk-properties");
  114. this.AccountManagment.ShortLabel = Mono.Unix.Catalog.GetString("Account managment");
  115. w2.Add(this.AccountManagment, null);
  116. this.GlobalNotice = new Gtk.Action("GlobalNotice", Mono.Unix.Catalog.GetString("Global notice"), null, "gtk-network");
  117. this.GlobalNotice.ShortLabel = Mono.Unix.Catalog.GetString("Global notice");
  118. w2.Add(this.GlobalNotice, null);
  119. this.DisableAllLogins = new Gtk.Action("DisableAllLogins", Mono.Unix.Catalog.GetString("Disable all logins"), null, "gtk-no");
  120. this.DisableAllLogins.ShortLabel = Mono.Unix.Catalog.GetString("Disable all logins");
  121. w2.Add(this.DisableAllLogins, null);
  122. this.DisableNonGodUsersOnly = new Gtk.Action("DisableNonGodUsersOnly", Mono.Unix.Catalog.GetString("Disable non-god users only"), null, "gtk-no");
  123. this.DisableNonGodUsersOnly.ShortLabel = Mono.Unix.Catalog.GetString("Disable non-god users only");
  124. w2.Add(this.DisableNonGodUsersOnly, null);
  125. this.ShutdownUserServer = new Gtk.Action("ShutdownUserServer", Mono.Unix.Catalog.GetString("Shutdown user server"), null, "gtk-stop");
  126. this.ShutdownUserServer.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown user server");
  127. w2.Add(this.ShutdownUserServer, null);
  128. this.ShutdownGridserverOnly = new Gtk.Action("ShutdownGridserverOnly", Mono.Unix.Catalog.GetString("Shutdown gridserver only"), null, "gtk-stop");
  129. this.ShutdownGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown gridserver only");
  130. w2.Add(this.ShutdownGridserverOnly, null);
  131. this.RestartGridserverOnly = new Gtk.Action("RestartGridserverOnly", Mono.Unix.Catalog.GetString("Restart gridserver only"), null, "gtk-refresh");
  132. this.RestartGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Restart gridserver only");
  133. w2.Add(this.RestartGridserverOnly, null);
  134. this.DefaultLocalGridUserserver = new Gtk.Action("DefaultLocalGridUserserver", Mono.Unix.Catalog.GetString("Default local grid userserver"), null, null);
  135. this.DefaultLocalGridUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Default local grid userserver");
  136. w2.Add(this.DefaultLocalGridUserserver, null);
  137. this.CustomUserserver = new Gtk.Action("CustomUserserver", Mono.Unix.Catalog.GetString("Custom userserver..."), null, null);
  138. this.CustomUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Custom userserver");
  139. w2.Add(this.CustomUserserver, null);
  140. this.RemoteGridDefaultUserserver = new Gtk.Action("RemoteGridDefaultUserserver", Mono.Unix.Catalog.GetString("Remote grid default userserver..."), null, null);
  141. this.RemoteGridDefaultUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Remote grid default userserver");
  142. w2.Add(this.RemoteGridDefaultUserserver, null);
  143. this.DisconnectFromGridServer = new Gtk.Action("DisconnectFromGridServer", Mono.Unix.Catalog.GetString("Disconnect from grid server"), null, "gtk-disconnect");
  144. this.DisconnectFromGridServer.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect from grid server");
  145. this.DisconnectFromGridServer.Visible = false;
  146. w2.Add(this.DisconnectFromGridServer, null);
  147. this.UploadAsset = new Gtk.Action("UploadAsset", Mono.Unix.Catalog.GetString("Upload asset"), null, null);
  148. this.UploadAsset.ShortLabel = Mono.Unix.Catalog.GetString("Upload asset");
  149. w2.Add(this.UploadAsset, null);
  150. this.AssetManagement = new Gtk.Action("AssetManagement", Mono.Unix.Catalog.GetString("Asset management"), null, null);
  151. this.AssetManagement.ShortLabel = Mono.Unix.Catalog.GetString("Asset management");
  152. w2.Add(this.AssetManagement, null);
  153. this.ConnectToAssetServer = new Gtk.Action("ConnectToAssetServer", Mono.Unix.Catalog.GetString("Connect to asset server"), null, null);
  154. this.ConnectToAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Connect to asset server");
  155. w2.Add(this.ConnectToAssetServer, null);
  156. this.ConnectToDefaultAssetServerForGrid = new Gtk.Action("ConnectToDefaultAssetServerForGrid", Mono.Unix.Catalog.GetString("Connect to default asset server for grid"), null, null);
  157. this.ConnectToDefaultAssetServerForGrid.ShortLabel = Mono.Unix.Catalog.GetString("Connect to default asset server for grid");
  158. w2.Add(this.ConnectToDefaultAssetServerForGrid, null);
  159. this.DefaultForLocalGrid = new Gtk.Action("DefaultForLocalGrid", Mono.Unix.Catalog.GetString("Default for local grid"), null, null);
  160. this.DefaultForLocalGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for local grid");
  161. w2.Add(this.DefaultForLocalGrid, null);
  162. this.DefaultForRemoteGrid = new Gtk.Action("DefaultForRemoteGrid", Mono.Unix.Catalog.GetString("Default for remote grid..."), null, null);
  163. this.DefaultForRemoteGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for remote grid...");
  164. w2.Add(this.DefaultForRemoteGrid, null);
  165. this.CustomAssetServer = new Gtk.Action("CustomAssetServer", Mono.Unix.Catalog.GetString("Custom asset server..."), null, null);
  166. this.CustomAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Custom asset server...");
  167. w2.Add(this.CustomAssetServer, null);
  168. w1.InsertActionGroup(w2, 0);
  169. this.AddAccelGroup(w1.AccelGroup);
  170. this.WidthRequest = 800;
  171. this.HeightRequest = 600;
  172. this.Name = "OpenGridServices.Manager.MainWindow";
  173. this.Title = Mono.Unix.Catalog.GetString("Open Grid Services Manager");
  174. this.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-network", 48, 0);
  175. // Container child OpenGridServices.Manager.MainWindow.Gtk.Container+ContainerChild
  176. this.vbox1 = new Gtk.VBox();
  177. this.vbox1.Name = "vbox1";
  178. // Container child vbox1.Gtk.Box+BoxChild
  179. 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>");
  180. this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
  181. this.menubar2.HeightRequest = 25;
  182. this.menubar2.Name = "menubar2";
  183. this.vbox1.Add(this.menubar2);
  184. Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
  185. w3.Position = 0;
  186. w3.Expand = false;
  187. w3.Fill = false;
  188. // Container child vbox1.Gtk.Box+BoxChild
  189. this.hbox1 = new Gtk.HBox();
  190. this.hbox1.Name = "hbox1";
  191. // Container child hbox1.Gtk.Box+BoxChild
  192. this.scrolledwindow1 = new Gtk.ScrolledWindow();
  193. this.scrolledwindow1.CanFocus = true;
  194. this.scrolledwindow1.Name = "scrolledwindow1";
  195. this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
  196. this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
  197. // Container child scrolledwindow1.Gtk.Container+ContainerChild
  198. Gtk.Viewport w4 = new Gtk.Viewport();
  199. w4.Name = "GtkViewport";
  200. w4.ShadowType = ((Gtk.ShadowType)(0));
  201. // Container child GtkViewport.Gtk.Container+ContainerChild
  202. this.drawingarea1 = new Gtk.DrawingArea();
  203. this.drawingarea1.Name = "drawingarea1";
  204. w4.Add(this.drawingarea1);
  205. this.scrolledwindow1.Add(w4);
  206. this.hbox1.Add(this.scrolledwindow1);
  207. Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
  208. w7.Position = 1;
  209. // Container child hbox1.Gtk.Box+BoxChild
  210. this.treeview1 = new Gtk.TreeView();
  211. this.treeview1.CanFocus = true;
  212. this.treeview1.Name = "treeview1";
  213. this.hbox1.Add(this.treeview1);
  214. Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.treeview1]));
  215. w8.Position = 2;
  216. this.vbox1.Add(this.hbox1);
  217. Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
  218. w9.Position = 1;
  219. // Container child vbox1.Gtk.Box+BoxChild
  220. this.statusbar1 = new Gtk.Statusbar();
  221. this.statusbar1.Name = "statusbar1";
  222. this.statusbar1.Spacing = 5;
  223. this.vbox1.Add(this.statusbar1);
  224. Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
  225. w10.PackType = ((Gtk.PackType)(1));
  226. w10.Position = 2;
  227. w10.Expand = false;
  228. w10.Fill = false;
  229. this.Add(this.vbox1);
  230. if ((this.Child != null)) {
  231. this.Child.ShowAll();
  232. }
  233. this.DefaultWidth = 800;
  234. this.DefaultHeight = 800;
  235. this.Show();
  236. this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
  237. this.ConnectToGridserver.Activated += new System.EventHandler(this.ConnectToGridServerMenu);
  238. this.ExitGridManager.Activated += new System.EventHandler(this.QuitMenu);
  239. this.ShutdownGridserverOnly.Activated += new System.EventHandler(this.ShutdownGridserverMenu);
  240. this.RestartGridserverOnly.Activated += new System.EventHandler(this.RestartGridserverMenu);
  241. this.DisconnectFromGridServer.Activated += new System.EventHandler(this.DisconnectGridServerMenu);
  242. }
  243. }
  244. }