OpenGridServices.Manager.MainWindow.cs 17 KB

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