OpenGridServices.Manager.MainWindow.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. // <autogenerated>
  29. // This code was generated by a tool.
  30. // Mono Runtime Version: 2.0.50727.42
  31. //
  32. // Changes to this file may cause incorrect behavior and will be lost if
  33. // the code is regenerated.
  34. // </autogenerated>
  35. // ------------------------------------------------------------------------------
  36. namespace OpenGridServices.Manager
  37. {
  38. public partial class MainWindow
  39. {
  40. private Gtk.Action Grid;
  41. private Gtk.Action User;
  42. private Gtk.Action Asset;
  43. private Gtk.Action Region;
  44. private Gtk.Action Services;
  45. private Gtk.Action ConnectToGridserver;
  46. private Gtk.Action RestartWholeGrid;
  47. private Gtk.Action ShutdownWholeGrid;
  48. private Gtk.Action ExitGridManager;
  49. private Gtk.Action ConnectToUserserver;
  50. private Gtk.Action AccountManagment;
  51. private Gtk.Action GlobalNotice;
  52. private Gtk.Action DisableAllLogins;
  53. private Gtk.Action DisableNonGodUsersOnly;
  54. private Gtk.Action ShutdownUserServer;
  55. private Gtk.Action ShutdownGridserverOnly;
  56. private Gtk.Action RestartGridserverOnly;
  57. private Gtk.Action DefaultLocalGridUserserver;
  58. private Gtk.Action CustomUserserver;
  59. private Gtk.Action RemoteGridDefaultUserserver;
  60. private Gtk.Action DisconnectFromGridServer;
  61. private Gtk.Action UploadAsset;
  62. private Gtk.Action AssetManagement;
  63. private Gtk.Action ConnectToAssetServer;
  64. private Gtk.Action ConnectToDefaultAssetServerForGrid;
  65. private Gtk.Action DefaultForLocalGrid;
  66. private Gtk.Action DefaultForRemoteGrid;
  67. private Gtk.Action CustomAssetServer;
  68. private Gtk.VBox vbox1;
  69. private Gtk.MenuBar menubar2;
  70. private Gtk.HBox hbox1;
  71. private Gtk.ScrolledWindow scrolledwindow1;
  72. private Gtk.DrawingArea drawingarea1;
  73. private Gtk.TreeView treeview1;
  74. private Gtk.Statusbar statusbar1;
  75. protected virtual void Build()
  76. {
  77. Stetic.Gui.Initialize();
  78. // Widget OpenGridServices.Manager.MainWindow
  79. Gtk.UIManager w1 = new Gtk.UIManager();
  80. Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
  81. this.Grid = new Gtk.Action("Grid", Mono.Unix.Catalog.GetString("Grid"), null, null);
  82. this.Grid.HideIfEmpty = false;
  83. this.Grid.ShortLabel = Mono.Unix.Catalog.GetString("Grid");
  84. w2.Add(this.Grid, "<Alt><Mod2>g");
  85. this.User = new Gtk.Action("User", Mono.Unix.Catalog.GetString("User"), null, null);
  86. this.User.HideIfEmpty = false;
  87. this.User.ShortLabel = Mono.Unix.Catalog.GetString("User");
  88. w2.Add(this.User, null);
  89. this.Asset = new Gtk.Action("Asset", Mono.Unix.Catalog.GetString("Asset"), null, null);
  90. this.Asset.HideIfEmpty = false;
  91. this.Asset.ShortLabel = Mono.Unix.Catalog.GetString("Asset");
  92. w2.Add(this.Asset, null);
  93. this.Region = new Gtk.Action("Region", Mono.Unix.Catalog.GetString("Region"), null, null);
  94. this.Region.ShortLabel = Mono.Unix.Catalog.GetString("Region");
  95. w2.Add(this.Region, null);
  96. this.Services = new Gtk.Action("Services", Mono.Unix.Catalog.GetString("Services"), null, null);
  97. this.Services.ShortLabel = Mono.Unix.Catalog.GetString("Services");
  98. w2.Add(this.Services, null);
  99. this.ConnectToGridserver = new Gtk.Action("ConnectToGridserver", Mono.Unix.Catalog.GetString("Connect to gridserver..."), null, "gtk-connect");
  100. this.ConnectToGridserver.HideIfEmpty = false;
  101. this.ConnectToGridserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to gridserver");
  102. w2.Add(this.ConnectToGridserver, null);
  103. this.RestartWholeGrid = new Gtk.Action("RestartWholeGrid", Mono.Unix.Catalog.GetString("Restart whole grid"), null, "gtk-refresh");
  104. this.RestartWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Restart whole grid");
  105. w2.Add(this.RestartWholeGrid, null);
  106. this.ShutdownWholeGrid = new Gtk.Action("ShutdownWholeGrid", Mono.Unix.Catalog.GetString("Shutdown whole grid"), null, "gtk-stop");
  107. this.ShutdownWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown whole grid");
  108. w2.Add(this.ShutdownWholeGrid, null);
  109. this.ExitGridManager = new Gtk.Action("ExitGridManager", Mono.Unix.Catalog.GetString("Exit grid manager"), null, "gtk-close");
  110. this.ExitGridManager.ShortLabel = Mono.Unix.Catalog.GetString("Exit grid manager");
  111. w2.Add(this.ExitGridManager, null);
  112. this.ConnectToUserserver = new Gtk.Action("ConnectToUserserver", Mono.Unix.Catalog.GetString("Connect to userserver"), null, "gtk-connect");
  113. this.ConnectToUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to userserver");
  114. w2.Add(this.ConnectToUserserver, null);
  115. this.AccountManagment = new Gtk.Action("AccountManagment", Mono.Unix.Catalog.GetString("Account managment"), null, "gtk-properties");
  116. this.AccountManagment.ShortLabel = Mono.Unix.Catalog.GetString("Account managment");
  117. w2.Add(this.AccountManagment, null);
  118. this.GlobalNotice = new Gtk.Action("GlobalNotice", Mono.Unix.Catalog.GetString("Global notice"), null, "gtk-network");
  119. this.GlobalNotice.ShortLabel = Mono.Unix.Catalog.GetString("Global notice");
  120. w2.Add(this.GlobalNotice, null);
  121. this.DisableAllLogins = new Gtk.Action("DisableAllLogins", Mono.Unix.Catalog.GetString("Disable all logins"), null, "gtk-no");
  122. this.DisableAllLogins.ShortLabel = Mono.Unix.Catalog.GetString("Disable all logins");
  123. w2.Add(this.DisableAllLogins, null);
  124. this.DisableNonGodUsersOnly = new Gtk.Action("DisableNonGodUsersOnly", Mono.Unix.Catalog.GetString("Disable non-god users only"), null, "gtk-no");
  125. this.DisableNonGodUsersOnly.ShortLabel = Mono.Unix.Catalog.GetString("Disable non-god users only");
  126. w2.Add(this.DisableNonGodUsersOnly, null);
  127. this.ShutdownUserServer = new Gtk.Action("ShutdownUserServer", Mono.Unix.Catalog.GetString("Shutdown user server"), null, "gtk-stop");
  128. this.ShutdownUserServer.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown user server");
  129. w2.Add(this.ShutdownUserServer, null);
  130. this.ShutdownGridserverOnly = new Gtk.Action("ShutdownGridserverOnly", Mono.Unix.Catalog.GetString("Shutdown gridserver only"), null, "gtk-stop");
  131. this.ShutdownGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown gridserver only");
  132. w2.Add(this.ShutdownGridserverOnly, null);
  133. this.RestartGridserverOnly = new Gtk.Action("RestartGridserverOnly", Mono.Unix.Catalog.GetString("Restart gridserver only"), null, "gtk-refresh");
  134. this.RestartGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Restart gridserver only");
  135. w2.Add(this.RestartGridserverOnly, null);
  136. this.DefaultLocalGridUserserver = new Gtk.Action("DefaultLocalGridUserserver", Mono.Unix.Catalog.GetString("Default local grid userserver"), null, null);
  137. this.DefaultLocalGridUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Default local grid userserver");
  138. w2.Add(this.DefaultLocalGridUserserver, null);
  139. this.CustomUserserver = new Gtk.Action("CustomUserserver", Mono.Unix.Catalog.GetString("Custom userserver..."), null, null);
  140. this.CustomUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Custom userserver");
  141. w2.Add(this.CustomUserserver, null);
  142. this.RemoteGridDefaultUserserver = new Gtk.Action("RemoteGridDefaultUserserver", Mono.Unix.Catalog.GetString("Remote grid default userserver..."), null, null);
  143. this.RemoteGridDefaultUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Remote grid default userserver");
  144. w2.Add(this.RemoteGridDefaultUserserver, null);
  145. this.DisconnectFromGridServer = new Gtk.Action("DisconnectFromGridServer", Mono.Unix.Catalog.GetString("Disconnect from grid server"), null, "gtk-disconnect");
  146. this.DisconnectFromGridServer.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect from grid server");
  147. this.DisconnectFromGridServer.Visible = false;
  148. w2.Add(this.DisconnectFromGridServer, null);
  149. this.UploadAsset = new Gtk.Action("UploadAsset", Mono.Unix.Catalog.GetString("Upload asset"), null, null);
  150. this.UploadAsset.ShortLabel = Mono.Unix.Catalog.GetString("Upload asset");
  151. w2.Add(this.UploadAsset, null);
  152. this.AssetManagement = new Gtk.Action("AssetManagement", Mono.Unix.Catalog.GetString("Asset management"), null, null);
  153. this.AssetManagement.ShortLabel = Mono.Unix.Catalog.GetString("Asset management");
  154. w2.Add(this.AssetManagement, null);
  155. this.ConnectToAssetServer = new Gtk.Action("ConnectToAssetServer", Mono.Unix.Catalog.GetString("Connect to asset server"), null, null);
  156. this.ConnectToAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Connect to asset server");
  157. w2.Add(this.ConnectToAssetServer, null);
  158. this.ConnectToDefaultAssetServerForGrid = new Gtk.Action("ConnectToDefaultAssetServerForGrid", Mono.Unix.Catalog.GetString("Connect to default asset server for grid"), null, null);
  159. this.ConnectToDefaultAssetServerForGrid.ShortLabel = Mono.Unix.Catalog.GetString("Connect to default asset server for grid");
  160. w2.Add(this.ConnectToDefaultAssetServerForGrid, null);
  161. this.DefaultForLocalGrid = new Gtk.Action("DefaultForLocalGrid", Mono.Unix.Catalog.GetString("Default for local grid"), null, null);
  162. this.DefaultForLocalGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for local grid");
  163. w2.Add(this.DefaultForLocalGrid, null);
  164. this.DefaultForRemoteGrid = new Gtk.Action("DefaultForRemoteGrid", Mono.Unix.Catalog.GetString("Default for remote grid..."), null, null);
  165. this.DefaultForRemoteGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for remote grid...");
  166. w2.Add(this.DefaultForRemoteGrid, null);
  167. this.CustomAssetServer = new Gtk.Action("CustomAssetServer", Mono.Unix.Catalog.GetString("Custom asset server..."), null, null);
  168. this.CustomAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Custom asset server...");
  169. w2.Add(this.CustomAssetServer, null);
  170. w1.InsertActionGroup(w2, 0);
  171. this.AddAccelGroup(w1.AccelGroup);
  172. this.WidthRequest = 800;
  173. this.HeightRequest = 600;
  174. this.Name = "OpenGridServices.Manager.MainWindow";
  175. this.Title = Mono.Unix.Catalog.GetString("Open Grid Services Manager");
  176. this.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-network", 48, 0);
  177. // Container child OpenGridServices.Manager.MainWindow.Gtk.Container+ContainerChild
  178. this.vbox1 = new Gtk.VBox();
  179. this.vbox1.Name = "vbox1";
  180. // Container child vbox1.Gtk.Box+BoxChild
  181. 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>");
  182. this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
  183. this.menubar2.HeightRequest = 25;
  184. this.menubar2.Name = "menubar2";
  185. this.vbox1.Add(this.menubar2);
  186. Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
  187. w3.Position = 0;
  188. w3.Expand = false;
  189. w3.Fill = false;
  190. // Container child vbox1.Gtk.Box+BoxChild
  191. this.hbox1 = new Gtk.HBox();
  192. this.hbox1.Name = "hbox1";
  193. // Container child hbox1.Gtk.Box+BoxChild
  194. this.scrolledwindow1 = new Gtk.ScrolledWindow();
  195. this.scrolledwindow1.CanFocus = true;
  196. this.scrolledwindow1.Name = "scrolledwindow1";
  197. this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
  198. this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
  199. // Container child scrolledwindow1.Gtk.Container+ContainerChild
  200. Gtk.Viewport w4 = new Gtk.Viewport();
  201. w4.Name = "GtkViewport";
  202. w4.ShadowType = ((Gtk.ShadowType)(0));
  203. // Container child GtkViewport.Gtk.Container+ContainerChild
  204. this.drawingarea1 = new Gtk.DrawingArea();
  205. this.drawingarea1.Name = "drawingarea1";
  206. w4.Add(this.drawingarea1);
  207. this.scrolledwindow1.Add(w4);
  208. this.hbox1.Add(this.scrolledwindow1);
  209. Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
  210. w7.Position = 1;
  211. // Container child hbox1.Gtk.Box+BoxChild
  212. this.treeview1 = new Gtk.TreeView();
  213. this.treeview1.CanFocus = true;
  214. this.treeview1.Name = "treeview1";
  215. this.hbox1.Add(this.treeview1);
  216. Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.treeview1]));
  217. w8.Position = 2;
  218. this.vbox1.Add(this.hbox1);
  219. Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
  220. w9.Position = 1;
  221. // Container child vbox1.Gtk.Box+BoxChild
  222. this.statusbar1 = new Gtk.Statusbar();
  223. this.statusbar1.Name = "statusbar1";
  224. this.statusbar1.Spacing = 5;
  225. this.vbox1.Add(this.statusbar1);
  226. Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
  227. w10.PackType = ((Gtk.PackType)(1));
  228. w10.Position = 2;
  229. w10.Expand = false;
  230. w10.Fill = false;
  231. this.Add(this.vbox1);
  232. if (this.Child != null)
  233. {
  234. this.Child.ShowAll();
  235. }
  236. this.DefaultWidth = 800;
  237. this.DefaultHeight = 800;
  238. this.Show();
  239. this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
  240. this.ConnectToGridserver.Activated += new System.EventHandler(this.ConnectToGridServerMenu);
  241. this.ExitGridManager.Activated += new System.EventHandler(this.QuitMenu);
  242. this.ShutdownGridserverOnly.Activated += new System.EventHandler(this.ShutdownGridserverMenu);
  243. this.RestartGridserverOnly.Activated += new System.EventHandler(this.RestartGridserverMenu);
  244. this.DisconnectFromGridServer.Activated += new System.EventHandler(this.DisconnectGridServerMenu);
  245. }
  246. }
  247. }