当前位置: 首页>>代码示例>>C#>>正文


C# Gtk.UIManager类代码示例

本文整理汇总了C#中Gtk.UIManager的典型用法代码示例。如果您正苦于以下问题:C# Gtk.UIManager类的具体用法?C# Gtk.UIManager怎么用?C# Gtk.UIManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Gtk.UIManager类属于命名空间,在下文中一共展示了Gtk.UIManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.HTMLEditorWidget
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ocmgtk.HTMLEditorWidget";
     // Container child ocmgtk.HTMLEditorWidget.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.editorWindow = new Gtk.ScrolledWindow();
     this.editorWindow.CanFocus = true;
     this.editorWindow.Name = "editorWindow";
     this.editorWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child editorWindow.Gtk.Container+ContainerChild
     this.editor = new Gtk.TextView();
     this.editor.CanFocus = true;
     this.editor.Name = "editor";
     this.editor.WrapMode = ((Gtk.WrapMode)(2));
     this.editorWindow.Add(this.editor);
     this.vbox3.Add(this.editorWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.editorWindow]));
     w4.Position = 0;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
 }
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:34,代码来源:ocmgtk.HTMLEditorWidget.cs

示例2: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddClassFigureAction = new Gtk.Action("AddClassFigureAction", Mono.Unix.Catalog.GetString("Add Class Figure"), null, null);
     this.AddClassFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Class Figure");
     w1.Add(this.AddClassFigureAction, null);
     this.AddStackFigureAction = new Gtk.Action("AddStackFigureAction", Mono.Unix.Catalog.GetString("Add StackFigure"), null, null);
     this.AddStackFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add StackFigure");
     w1.Add(this.AddStackFigureAction, null);
     this.AddMemberGroupAction = new Gtk.Action("AddMemberGroupAction", Mono.Unix.Catalog.GetString("Add MemberGroup"), null, null);
     this.AddMemberGroupAction.ShortLabel = Mono.Unix.Catalog.GetString("Add MemberGroup");
     w1.Add(this.AddMemberGroupAction, null);
     this.AddSimpleTextFigureAction = new Gtk.Action("AddSimpleTextFigureAction", Mono.Unix.Catalog.GetString("Add SimpleTextFigure"), null, null);
     this.AddSimpleTextFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add SimpleTextFigure");
     w1.Add(this.AddSimpleTextFigureAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddClassFigureAction' action='AddClassFigureAction'/><menuitem name='AddStackFigureAction' action='AddStackFigureAction'/><menuitem name='AddMemberGroupAction' action='AddMemberGroupAction'/><menuitem name='AddSimpleTextFigureAction' action='AddSimpleTextFigureAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.mhdcanvas = new MonoHotDraw.SteticComponent();
     this.mhdcanvas.Events = ((Gdk.EventMask)(256));
     this.mhdcanvas.Name = "mhdcanvas";
     this.vbox1.Add(this.mhdcanvas);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mhdcanvas]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AddClassFigureAction.Activated += new System.EventHandler(this.OnAddClassFigureActionActivated);
     this.AddStackFigureAction.Activated += new System.EventHandler(this.OnAddStackFigureActionActivated);
     this.AddMemberGroupAction.Activated += new System.EventHandler(this.OnAddMemberGroupActionActivated);
     this.AddSimpleTextFigureAction.Activated += new System.EventHandler(this.OnAddSimpleTextFigureActionActivated);
 }
开发者ID:mono,项目名称:monohotdraw,代码行数:59,代码来源:MainWindow.cs

示例3: Build

 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 0;
     this.HeightRequest = 0;
     this.Name = "Mono.Upnp.GtkClient.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.list = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox = new Gtk.VBox();
     this.infoBox.Name = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller = new Gtk.Label();
     this.infoFiller.Name = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
开发者ID:rsweeney21,项目名称:Mono.Upnp,代码行数:59,代码来源:Mono.Upnp.GtkClient.MainWindow.cs

示例4: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.CronValueEditor
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.selectAllAction = new Gtk.Action("selectAllAction", null, null, "gtk-select-all");
     w2.Add(this.selectAllAction, null);
     this.clearAction = new Gtk.Action("clearAction", null, null, "gtk-clear");
     w2.Add(this.clearAction, null);
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ControlWrappers.CronValueEditor";
     // Container child ControlWrappers.CronValueEditor.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.tvList = new Gtk.TreeView();
     this.tvList.CanFocus = true;
     this.tvList.Name = "tvList";
     this.tvList.EnableSearch = false;
     this.tvList.HeadersVisible = false;
     this.scrolledwindow2.Add(this.tvList);
     this.vbox2.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2]));
     w4.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='selectAllAction' action='selectAllAction'/><toolitem name='clearAction' action='clearAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
     this.selectAllAction.Activated += new System.EventHandler(this.SelectAllActivated);
     this.clearAction.Activated += new System.EventHandler(this.ClearActivated);
     this.tvList.CursorChanged += new System.EventHandler(this.TreeListCursorChanged);
 }
开发者ID:Ripper555,项目名称:DynamicPropertyManagement,代码行数:54,代码来源:ControlWrappers.CronValueEditor.cs

示例5: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PersonalMoney.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.ExitAction = new Gtk.Action("ExitAction", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w1.Add(this.ExitAction, null);
     this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
     this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w1.Add(this.ViewAction, null);
     this.ExpensesAction = new Gtk.Action("ExpensesAction", Mono.Unix.Catalog.GetString("Expenses"), null, null);
     this.ExpensesAction.ShortLabel = Mono.Unix.Catalog.GetString("Expenses");
     w1.Add(this.ExpensesAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "PersonalMoney.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child PersonalMoney.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar2'><menu name='FileAction' action='FileAction'><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='ExpensesAction' action='ExpensesAction'/></menu></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = -1;
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ExpensesAction.Activated += new System.EventHandler(this.OnExpensesActionActivated);
 }
开发者ID:smartinz,项目名称:randomhacking,代码行数:53,代码来源:PersonalMoney.MainWindow.cs

示例6: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoHotDraw.Samples.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddAnalogClockAction = new Gtk.Action("AddAnalogClockAction", Mono.Unix.Catalog.GetString("Add Analog Clock"), null, null);
     this.AddAnalogClockAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Analog Clock");
     w1.Add(this.AddAnalogClockAction, null);
     this.AddDigitalClockAction = new Gtk.Action("AddDigitalClockAction", Mono.Unix.Catalog.GetString("Add Digital Clock"), null, null);
     this.AddDigitalClockAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Digital Clock");
     w1.Add(this.AddDigitalClockAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MonoHotDraw.Samples.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MonoHotDraw.Samples.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddAnalogClockAction' action='AddAnalogClockAction'/><menuitem name='AddDigitalClockAction' action='AddDigitalClockAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.AddAnalogClockAction.Activated += new System.EventHandler(this.OnAddAnalogClockActionActivated);
     this.AddDigitalClockAction.Activated += new System.EventHandler(this.OnAddDigitalClockActionActivated);
 }
开发者ID:mono,项目名称:monohotdraw,代码行数:51,代码来源:MonoHotDraw.Samples.MainWindow.cs

示例7: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Wakame.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.FileAction1 = new Gtk.Action("FileAction1", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileAction1.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w1.Add(this.FileAction1, "<Alt><Mod2>f");
     this.ImportAction = new Gtk.Action("ImportAction", Mono.Unix.Catalog.GetString("Import"), null, null);
     this.ImportAction.ShortLabel = Mono.Unix.Catalog.GetString("Import");
     w1.Add(this.ImportAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Wakame.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Wakame.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction1' action='FileAction1'><menuitem name='ImportAction' action='ImportAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 629;
     this.DefaultHeight = 485;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ImportAction.Activated += new System.EventHandler(this.OnOpen);
 }
开发者ID:sergi,项目名称:Wakame,代码行数:50,代码来源:Wakame.MainWindow.cs

示例8: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.LircConfigAction = new Gtk.Action("LircConfigAction", Mono.Unix.Catalog.GetString("Lirc Config"), null, null);
     this.LircConfigAction.ShortLabel = Mono.Unix.Catalog.GetString("Lirc Config");
     w1.Add(this.LircConfigAction, null);
     this.DialogAction = new Gtk.Action("DialogAction", Mono.Unix.Catalog.GetString("Dialog"), null, null);
     this.DialogAction.ShortLabel = Mono.Unix.Catalog.GetString("Dialog");
     w1.Add(this.DialogAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar2'><menu name='LircConfigAction' action='LircConfigAction'><menuitem name='DialogAction' action='DialogAction'/></menu></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox2.Add(this.menubar2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.DialogAction.Activated += new System.EventHandler(this.OnDialog);
 }
开发者ID:nailyk,项目名称:banshee-community-extensions,代码行数:40,代码来源:MainWindow.cs

示例9: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.jumpToAction = new Gtk.Action("jumpToAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-jump-to");
     this.jumpToAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart");
     w1.Add(this.jumpToAction, null);
     this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.quitAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, "none");
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("About...");
     w1.Add(this.HelpAction, null);
     this.saveAction = new Gtk.Action("saveAction", Mono.Unix.Catalog.GetString("Take snapshot"), null, "gtk-save");
     this.saveAction.ShortLabel = Mono.Unix.Catalog.GetString("Take snapshot");
     w1.Add(this.saveAction, null);
     this.helpAction = new Gtk.Action("helpAction", Mono.Unix.Catalog.GetString("About..."), null, "gtk-help");
     this.helpAction.ShortLabel = Mono.Unix.Catalog.GetString("About...");
     w1.Add(this.helpAction, null);
     this.OptionsAction = new Gtk.Action("OptionsAction", Mono.Unix.Catalog.GetString("Options"), null, null);
     this.OptionsAction.ShortLabel = Mono.Unix.Catalog.GetString("Options");
     w1.Add(this.OptionsAction, null);
     this.GraphicsAction = new Gtk.Action("GraphicsAction", Mono.Unix.Catalog.GetString("Graphics"), null, null);
     this.GraphicsAction.ShortLabel = Mono.Unix.Catalog.GetString("Graphics");
     w1.Add(this.GraphicsAction, null);
     this.AnimationDelayAction = new Gtk.Action("AnimationDelayAction", Mono.Unix.Catalog.GetString("Animation Delay"), null, null);
     this.AnimationDelayAction.ShortLabel = Mono.Unix.Catalog.GetString("Animation Delay");
     w1.Add(this.AnimationDelayAction, null);
     this.mediaPlayAction = new Gtk.Action("mediaPlayAction", Mono.Unix.Catalog.GetString("Frame Delay"), null, "gtk-media-play");
     this.mediaPlayAction.ShortLabel = Mono.Unix.Catalog.GetString("Frame Delay");
     w1.Add(this.mediaPlayAction, null);
     this.d500MsAction = new Gtk.RadioAction("d500MsAction", Mono.Unix.Catalog.GetString("500 ms"), null, null, 0);
     this.d500MsAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.d500MsAction.ShortLabel = Mono.Unix.Catalog.GetString("500 ms");
     w1.Add(this.d500MsAction, null);
     this.d1000MsAction = new Gtk.RadioAction("d1000MsAction", Mono.Unix.Catalog.GetString("1000 ms"), null, null, 0);
     this.d1000MsAction.Group = this.d500MsAction.Group;
     this.d1000MsAction.ShortLabel = Mono.Unix.Catalog.GetString("1000 ms");
     w1.Add(this.d1000MsAction, null);
     this.d250MsAction = new Gtk.RadioAction("d250MsAction", Mono.Unix.Catalog.GetString("250 ms"), null, null, 0);
     this.d250MsAction.Group = this.d500MsAction.Group;
     this.d250MsAction.ShortLabel = Mono.Unix.Catalog.GetString("250 ms");
     w1.Add(this.d250MsAction, null);
     this.d100MsAction = new Gtk.RadioAction("d100MsAction", Mono.Unix.Catalog.GetString("100 ms"), null, null, 0);
     this.d100MsAction.Group = this.d500MsAction.Group;
     this.d100MsAction.ShortLabel = Mono.Unix.Catalog.GetString("100 ms");
     w1.Add(this.d100MsAction, null);
     this.DrawGridAction = new Gtk.ToggleAction("DrawGridAction", Mono.Unix.Catalog.GetString("Draw Grid"), null, null);
     this.DrawGridAction.ShortLabel = Mono.Unix.Catalog.GetString("Draw Grid");
     w1.Add(this.DrawGridAction, null);
     this.ANSIOnlyAction = new Gtk.ToggleAction("ANSIOnlyAction", Mono.Unix.Catalog.GetString("ANSI Only"), null, null);
     this.ANSIOnlyAction.Active = true;
     this.ANSIOnlyAction.ShortLabel = Mono.Unix.Catalog.GetString("ANSI Only");
     w1.Add(this.ANSIOnlyAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("GVisHuff - Adaptive Huffman Animator");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.MainLayout = new Gtk.VBox();
     this.MainLayout.Name = "MainLayout";
     this.MainLayout.Spacing = 6;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='MainMenu'><menu name='FileAction' action='FileAction'><menuitem name='jumpToAction' action='jumpToAction'/><menuitem name='saveAction' action='saveAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='OptionsAction' action='OptionsAction'><menu name='mediaPlayAction' action='mediaPlayAction'><menuitem name='d100MsAction' action='d100MsAction'/><menuitem name='d250MsAction' action='d250MsAction'/><menuitem name='d500MsAction' action='d500MsAction'/><menuitem name='d1000MsAction' action='d1000MsAction'/></menu><menuitem name='DrawGridAction' action='DrawGridAction'/><menuitem name='ANSIOnlyAction' action='ANSIOnlyAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='helpAction' action='helpAction'/></menu></menubar></ui>");
     this.MainMenu = ((Gtk.MenuBar)(this.UIManager.GetWidget("/MainMenu")));
     this.MainMenu.Name = "MainMenu";
     this.MainLayout.Add(this.MainMenu);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.MainLayout[this.MainMenu]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.SenderHBox = new Gtk.HBox();
     this.SenderHBox.Name = "SenderHBox";
     this.SenderHBox.Homogeneous = true;
     this.SenderHBox.Spacing = 6;
     // Container child SenderHBox.Gtk.Box+BoxChild
     this.SenderVBox = new Gtk.VBox();
     this.SenderVBox.Name = "SenderVBox";
     this.SenderVBox.Spacing = 6;
     // Container child SenderVBox.Gtk.Box+BoxChild
     this.MsgEncHBox = new Gtk.HBox();
     this.MsgEncHBox.Name = "MsgEncHBox";
     this.MsgEncHBox.Spacing = 6;
     // Container child MsgEncHBox.Gtk.Box+BoxChild
     this.SenderEntry = new Gtk.Entry();
     this.SenderEntry.CanFocus = true;
     this.SenderEntry.Name = "SenderEntry";
     this.SenderEntry.IsEditable = false;
     this.SenderEntry.InvisibleChar = '●';
     this.MsgEncHBox.Add(this.SenderEntry);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.MsgEncHBox[this.SenderEntry]));
     w3.Position = 0;
     // Container child MsgEncHBox.Gtk.Box+BoxChild
//.........这里部分代码省略.........
开发者ID:astarasikov,项目名称:HuffmanArchiver,代码行数:101,代码来源:MainWindow.cs

示例10: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.NotesWidget
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.boldAction = new Gtk.ToggleAction("boldAction", null, null, "gtk-bold");
     w2.Add(this.boldAction, null);
     this.italicAction = new Gtk.Action("italicAction", null, null, "gtk-italic");
     w2.Add(this.italicAction, null);
     this.missingImageAction = new Gtk.Action("missingImageAction", null, null, "gtk-missing-image");
     w2.Add(this.missingImageAction, null);
     this.underlineAction = new Gtk.Action("underlineAction", null, null, "gtk-underline");
     w2.Add(this.underlineAction, null);
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ocmgtk.NotesWidget";
     // Container child ocmgtk.NotesWidget.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     this.vbox1.BorderWidth = ((uint)(6));
     // Container child vbox1.Gtk.Box+BoxChild
     this.editorWidget = new ocmgtk.HTMLEditorWidget();
     this.editorWidget.Events = ((Gdk.EventMask)(256));
     this.editorWidget.Name = "editorWidget";
     this.vbox1.Add(this.editorWidget);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.editorWidget]));
     w3.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbuttonbox1 = new Gtk.HButtonBox();
     this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.saveButton = new Gtk.Button();
     this.saveButton.Sensitive = false;
     this.saveButton.CanFocus = true;
     this.saveButton.Name = "saveButton";
     this.saveButton.UseUnderline = true;
     // Container child saveButton.Gtk.Container+ContainerChild
     Gtk.Alignment w4 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w5 = new Gtk.HBox();
     w5.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w6 = new Gtk.Image();
     w6.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
     w5.Add(w6);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w8 = new Gtk.Label();
     w8.LabelProp = Mono.Unix.Catalog.GetString("_Save");
     w8.UseUnderline = true;
     w5.Add(w8);
     w4.Add(w5);
     this.saveButton.Add(w4);
     this.hbuttonbox1.Add(this.saveButton);
     Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.saveButton]));
     w12.Expand = false;
     w12.Fill = false;
     this.vbox1.Add(this.hbuttonbox1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1]));
     w13.Position = 1;
     w13.Expand = false;
     w13.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
     this.saveButton.Clicked += new System.EventHandler(this.OnSaveNotes);
 }
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:71,代码来源:ocmgtk.NotesWidget.cs

示例11: Build


//.........这里部分代码省略.........
             w27.Position = 3;
             w27.Expand = false;
             w27.Fill = false;
             bindings["vbox1"] = w1;
             cobj.Add(w1);
             cobj.DefaultWidth = 370;
             cobj.DefaultHeight = 129;
             bindings["administrator.LoginWindow"] = cobj;
             w3.Show();
             w5.Show();
             w2.Show();
             w9.Show();
             w11.Show();
             w8.Show();
             w14.Show();
             w20.Show();
             w22.Show();
             w19.Show();
             w18.Show();
             w17.Show();
             w16.Show();
             w1.Show();
             cobj.Show();
             cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
             w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w17.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
         }
         else {
             if ((id == "administrator.MainWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget administrator.MainWindow
                 cobj.Title = "Boxerp Administrator";
                 Gtk.UIManager w1 = new Gtk.UIManager();
                 Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
                 Gtk.Action w3 = new Gtk.Action("File", "File", null, null);
                 w3.ShortLabel = "File";
                 bindings["File"] = w3;
                 w2.Add(w3, null);
                 Gtk.Action w4 = new Gtk.Action("Exit", "Exit", null, null);
                 w4.ShortLabel = "Exit";
                 bindings["Exit"] = w4;
                 w2.Add(w4, null);
                 Gtk.Action w5 = new Gtk.Action("Edit", "Edit", null, null);
                 w5.ShortLabel = "Edit";
                 bindings["Edit"] = w5;
                 w2.Add(w5, null);
                 Gtk.Action w6 = new Gtk.Action("Cut", "Cut", null, null);
                 w6.ShortLabel = "Cut";
                 bindings["Cut"] = w6;
                 w2.Add(w6, null);
                 Gtk.Action w7 = new Gtk.Action("Copy", "Copy", null, null);
                 w7.ShortLabel = "Copy";
                 bindings["Copy"] = w7;
                 w2.Add(w7, null);
                 Gtk.Action w8 = new Gtk.Action("Paste", "Paste", null, null);
                 w8.ShortLabel = "Paste";
                 bindings["Paste"] = w8;
                 w2.Add(w8, null);
                 Gtk.Action w9 = new Gtk.Action("Help", "Help", null, null);
                 w9.ShortLabel = "Help";
                 bindings["Help"] = w9;
                 w2.Add(w9, null);
                 Gtk.Action w10 = new Gtk.Action("About", "About", null, null);
                 w10.ShortLabel = "About";
                 bindings["About"] = w10;
开发者ID:BackupTheBerlios,项目名称:boxerp-svn,代码行数:67,代码来源:generated.cs

示例12: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.openAction = new Gtk.Action("openAction", Mono.Unix.Catalog.GetString("openDirectory"), Mono.Unix.Catalog.GetString("Opens a directory"), "gtk-open");
     this.openAction.ShortLabel = Mono.Unix.Catalog.GetString("openDirectory");
     w1.Add(this.openAction, null);
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.HistoryAction = new Gtk.Action("HistoryAction", Mono.Unix.Catalog.GetString("History"), null, null);
     this.HistoryAction.ShortLabel = Mono.Unix.Catalog.GetString("History");
     w1.Add(this.HistoryAction, null);
     this.InfoAction = new Gtk.Action("InfoAction", Mono.Unix.Catalog.GetString("Info"), null, null);
     this.InfoAction.ShortLabel = Mono.Unix.Catalog.GetString("Info");
     w1.Add(this.InfoAction, null);
     this.refreshAction = new Gtk.Action("refreshAction", Mono.Unix.Catalog.GetString("refresh"), Mono.Unix.Catalog.GetString("Refresh the current repository"), "gtk-refresh");
     this.refreshAction.ShortLabel = Mono.Unix.Catalog.GetString("refresh");
     w1.Add(this.refreshAction, "<Control>r");
     this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("quit"), Mono.Unix.Catalog.GetString("Quit the application"), "gtk-quit");
     this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("quit");
     w1.Add(this.quitAction, null);
     this.aboutAction = new Gtk.Action("aboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
     this.aboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
     w1.Add(this.aboutAction, null);
     this.addAction = new Gtk.Action("addAction", Mono.Unix.Catalog.GetString("_Add"), Mono.Unix.Catalog.GetString("Add the selected file to the version control"), "gtk-add");
     this.addAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add");
     w1.Add(this.addAction, null);
     this.applyAction = new Gtk.Action("applyAction", Mono.Unix.Catalog.GetString("_Apply"), Mono.Unix.Catalog.GetString("Save the changes to the history of this file"), "gtk-apply");
     this.applyAction.ShortLabel = Mono.Unix.Catalog.GetString("_Apply");
     w1.Add(this.applyAction, null);
     this.fileHistoryAction = new Gtk.Action("fileHistoryAction", Mono.Unix.Catalog.GetString("File_History"), Mono.Unix.Catalog.GetString("Shows the history of the selected file"), "gtk-dnd-multiple");
     this.fileHistoryAction.ShortLabel = Mono.Unix.Catalog.GetString("File_History");
     w1.Add(this.fileHistoryAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Directory History");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-find-and-replace", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 550;
     this.DefaultHeight = 640;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='openAction' action='openAction'/><menuitem name='quitAction' action='quitAction'/></menu><menu name='HistoryAction' action='HistoryAction'><menuitem name='refreshAction' action='refreshAction'/></menu><menu name='InfoAction' action='InfoAction'><menuitem name='aboutAction' action='aboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='openAction' action='openAction'/><toolitem name='refreshAction' action='refreshAction'/><toolitem name='addAction' action='addAction'/><toolitem name='applyAction' action='applyAction'/><toolitem name='fileHistoryAction' action='fileHistoryAction'/><toolitem name='quitAction' action='quitAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.folderlist = new DirectoryHistory.UI.FolderList();
     this.folderlist.Events = ((Gdk.EventMask)(256));
     this.folderlist.Name = "folderlist";
     this.vbox2.Add(this.folderlist);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.folderlist]));
     w4.Position = 1;
     this.vbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox2]));
     w5.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     // Container child statusbar1.Gtk.Box+BoxChild
     this.loadedDirectoryLabel = new Gtk.Label();
     this.loadedDirectoryLabel.Name = "loadedDirectoryLabel";
     this.loadedDirectoryLabel.LabelProp = Mono.Unix.Catalog.GetString("No directory loaded");
     this.statusbar1.Add(this.loadedDirectoryLabel);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.statusbar1[this.loadedDirectoryLabel]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
//.........这里部分代码省略.........
开发者ID:scheibenkaes,项目名称:DirectoryHistory,代码行数:101,代码来源:MainWindow.cs

示例13: Build

 protected virtual void Build() {
     Stetic.Gui.Initialize();
     // Widget Monoxide.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.refresh = new Gtk.Action("refresh", null, null, "gtk-refresh");
     w2.Add(this.refresh, null);
     this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w2.Add(this.File, null);
     this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w2.Add(this.Quit, null);
     this.Tools = new Gtk.Action("Tools", Mono.Unix.Catalog.GetString("_Tools"), null, null);
     this.Tools.ShortLabel = Mono.Unix.Catalog.GetString("_Tools");
     w2.Add(this.Tools, null);
     this.AddinManagerAction = new Gtk.Action("AddinManagerAction", Mono.Unix.Catalog.GetString("Addin Manager..."), null, "AddinManager");
     this.AddinManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("Addin Manager...");
     w2.Add(this.AddinManagerAction, null);
     this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("_View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("_View");
     w2.Add(this.View, null);
     this.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     w2.Add(this.Open, null);
     this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.Help.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w2.Add(this.Help, null);
     this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About..."), null, "gtk-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About...");
     w2.Add(this.About, null);
     this.Save = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save..."), null, "gtk-save");
     this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save...");
     w2.Add(this.Save, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "Monoxide.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("monoXide 0.2");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Monoxide.MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Open'/><menuitem action='Save'/><separator/><menuitem action='Quit'/></menu><menu action='View'><menuitem action='refresh'/></menu><menu action='Tools'><menuitem action='AddinManagerAction'/><separator/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox2.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar'><toolitem action='Open'/><separator/><toolitem action='refresh'/><separator/><toolitem action='AddinManagerAction'/></toolbar></ui>");
     this.toolbar = ((Gtk.Toolbar)(w1.GetWidget("/toolbar")));
     this.toolbar.Name = "toolbar";
     this.toolbar.ShowArrow = false;
     this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 199;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.treeview = new Gtk.TreeView();
     this.treeview.CanFocus = true;
     this.treeview.Name = "treeview";
     this.scrolledwindow1.Add(this.treeview);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w6.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.objectExpander = new Gtk.Expander(null);
     this.objectExpander.CanFocus = true;
     this.objectExpander.Name = "objectExpander";
     // Container child objectExpander.Gtk.Container+ContainerChild
     this.textview = new Gtk.TextView();
     this.textview.CanFocus = true;
     this.textview.Name = "textview";
     this.textview.Editable = false;
     this.objectExpander.Add(this.textview);
     this.objectLabel = new Gtk.Label();
     this.objectLabel.Name = "objectLabel";
//.........这里部分代码省略.........
开发者ID:transformersprimeabcxyz,项目名称:cecil-old,代码行数:101,代码来源:Monoxide.MainWindow.cs

示例14: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.StatusAction = new Gtk.Action("StatusAction", Mono.Unix.Catalog.GetString("Status"), null, null);
     this.StatusAction.ShortLabel = Mono.Unix.Catalog.GetString("Status");
     w1.Add(this.StatusAction, null);
     this.BusyAction = new Gtk.RadioAction("BusyAction", Mono.Unix.Catalog.GetString("Busy"), null, "gtk-dialog-error", 0);
     this.BusyAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.BusyAction.Sensitive = false;
     this.BusyAction.ShortLabel = Mono.Unix.Catalog.GetString("Busy");
     w1.Add(this.BusyAction, null);
     this.AwayAction = new Gtk.RadioAction("AwayAction", Mono.Unix.Catalog.GetString("Away"), null, "gtk-redo", 0);
     this.AwayAction.Group = this.BusyAction.Group;
     this.AwayAction.ShortLabel = Mono.Unix.Catalog.GetString("Away");
     w1.Add(this.AwayAction, null);
     this.GroundSitAction = new Gtk.RadioAction("GroundSitAction", Mono.Unix.Catalog.GetString("Ground Sit"), null, null, 0);
     this.GroundSitAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.GroundSitAction.ShortLabel = Mono.Unix.Catalog.GetString("Ground Sit");
     w1.Add(this.GroundSitAction, null);
     this.CrouchAction = new Gtk.RadioAction("CrouchAction", Mono.Unix.Catalog.GetString("Crouch"), null, null, 0);
     this.CrouchAction.Group = this.GroundSitAction.Group;
     this.CrouchAction.ShortLabel = Mono.Unix.Catalog.GetString("Crouch");
     w1.Add(this.CrouchAction, null);
     this.FlyAction = new Gtk.RadioAction("FlyAction", Mono.Unix.Catalog.GetString("Fly"), null, null, 0);
     this.FlyAction.Group = this.GroundSitAction.Group;
     this.FlyAction.ShortLabel = Mono.Unix.Catalog.GetString("Fly");
     w1.Add(this.FlyAction, null);
     this.AvaiableAction = new Gtk.RadioAction("AvaiableAction", Mono.Unix.Catalog.GetString("Avaiable"), null, "gtk-yes", 0);
     this.AvaiableAction.Group = this.BusyAction.Group;
     this.AvaiableAction.ShortLabel = Mono.Unix.Catalog.GetString("Avaiable");
     w1.Add(this.AvaiableAction, null);
     this.StandingAction = new Gtk.RadioAction("StandingAction", Mono.Unix.Catalog.GetString("Standing"), null, null, 0);
     this.StandingAction.Group = this.GroundSitAction.Group;
     this.StandingAction.ShortLabel = Mono.Unix.Catalog.GetString("Standing");
     w1.Add(this.StandingAction, null);
     this.SittingAction = new Gtk.RadioAction("SittingAction", Mono.Unix.Catalog.GetString("Sitting"), null, null, 0);
     this.SittingAction.Group = this.GroundSitAction.Group;
     this.SittingAction.Sensitive = false;
     this.SittingAction.ShortLabel = Mono.Unix.Catalog.GetString("Sitting");
     w1.Add(this.SittingAction, null);
     this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("Tools"), null, "gtk-execute");
     this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools");
     w1.Add(this.ToolsAction, null);
     this.ParcelAction = new Gtk.ToggleAction("ParcelAction", Mono.Unix.Catalog.GetString("Parcel"), null, null);
     this.ParcelAction.ShortLabel = Mono.Unix.Catalog.GetString("Parcel");
     w1.Add(this.ParcelAction, null);
     this.ObjectsAction = new Gtk.ToggleAction("ObjectsAction", Mono.Unix.Catalog.GetString("Objects"), null, null);
     this.ObjectsAction.ShortLabel = Mono.Unix.Catalog.GetString("Objects");
     w1.Add(this.ObjectsAction, null);
     this.InventoryAction = new Gtk.ToggleAction("InventoryAction", Mono.Unix.Catalog.GetString("Inventory"), null, null);
     this.InventoryAction.ShortLabel = Mono.Unix.Catalog.GetString("Inventory");
     w1.Add(this.InventoryAction, null);
     this.LocationAction = new Gtk.ToggleAction("LocationAction", Mono.Unix.Catalog.GetString("Location"), null, null);
     this.LocationAction.ShortLabel = Mono.Unix.Catalog.GetString("Location");
     w1.Add(this.LocationAction, null);
     this.GroupsAction = new Gtk.ToggleAction("GroupsAction", Mono.Unix.Catalog.GetString("Groups"), null, "Groups");
     this.GroupsAction.ShortLabel = Mono.Unix.Catalog.GetString("Groups");
     w1.Add(this.GroupsAction, null);
     this.SearchAction = new Gtk.ToggleAction("SearchAction", Mono.Unix.Catalog.GetString("Search"), null, null);
     this.SearchAction.ShortLabel = Mono.Unix.Catalog.GetString("Search");
     w1.Add(this.SearchAction, null);
     this.SettingsAction = new Gtk.Action("SettingsAction", Mono.Unix.Catalog.GetString("Settings"), null, null);
     this.SettingsAction.ShortLabel = Mono.Unix.Catalog.GetString("Settings");
     w1.Add(this.SettingsAction, null);
     this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-properties");
     this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("Preferences");
     w1.Add(this.PreferencesAction, null);
     this.VIewAction = new Gtk.Action("VIewAction", Mono.Unix.Catalog.GetString("VIew"), null, null);
     this.VIewAction.ShortLabel = Mono.Unix.Catalog.GetString("VIew");
     w1.Add(this.VIewAction, null);
     this.BrowserAction = new Gtk.Action("BrowserAction", Mono.Unix.Catalog.GetString("Browser"), null, null);
     this.BrowserAction.ShortLabel = Mono.Unix.Catalog.GetString("Browser");
     w1.Add(this.BrowserAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, "gtk-help");
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction, null);
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 800;
     this.HeightRequest = 600;
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.AllowShrink = true;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox6 = new Gtk.VBox();
     this.vbox6.Name = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='StatusAction' action='StatusAction'><menuitem name='AvaiableAction' action='AvaiableAction'/><menuitem name='BusyAction' action='BusyAction'/><menuitem name='AwayAction' action='AwayAction'/><separator/><menuitem name='StandingAction' action='StandingAction'/><menuitem name='GroundSitAction' action='GroundSitAction'/><menuitem name='CrouchAction' action='CrouchAction'/><menuitem name='FlyAction' action='FlyAction'/><menuitem name='SittingAction' action='SittingAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='ParcelAction' action='ParcelAction'/><menuitem name='ObjectsAction' action='ObjectsAction'/><menuitem name='InventoryAction' action='InventoryAction'/><menuitem name='LocationAction' action='LocationAction'/><menuitem name='GroupsAction' action='GroupsAction'/><menuitem name='SearchAction' action='SearchAction'/></menu><menu name='SettingsAction' action='SettingsAction'><menuitem name='PreferencesAction' action='PreferencesAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox6.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox6[this.menubar1]));
//.........这里部分代码省略.........
开发者ID:robincornelius,项目名称:omvviewer-light,代码行数:101,代码来源:MainWindow.cs

示例15: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PropertyManager.DynPropEntryDlg
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "PropertyManager.DynPropEntryDlg";
     this.Title = Mono.Unix.Catalog.GetString("Dynamic Property Details");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable = false;
     this.AllowGrow = false;
     this.HasSeparator = false;
     // Internal child PropertyManager.DynPropEntryDlg.VBox
     Gtk.VBox w2 = this.VBox;
     w2.Name = "dialog1_VBox";
     w2.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.table2 = new Gtk.Table(((uint)(4)), ((uint)(3)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.cbApplication = new ControlWrappers.BoundComboBox();
     this.cbApplication.Events = ((Gdk.EventMask)(256));
     this.cbApplication.Name = "cbApplication";
     this.cbApplication.CollectionName = "Applications";
     this.cbApplication.LabelAttributeName = "Name";
     this.cbApplication.ValueAttributeName = "Id";
     this.cbApplication.AttributeName = "ApplicationId";
     this.cbApplication.ContextName = "DialogContext";
     this.cbApplication.DomainName = "DynamicProperty";
     this.table2.Add(this.cbApplication);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2[this.cbApplication]));
     w3.LeftAttach = ((uint)(1));
     w3.RightAttach = ((uint)(2));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.cbForm = new ControlWrappers.BoundComboBox();
     this.cbForm.WidthRequest = 250;
     this.cbForm.Events = ((Gdk.EventMask)(256));
     this.cbForm.Name = "cbForm";
     this.cbForm.CollectionName = "Forms";
     this.cbForm.LabelAttributeName = "Description";
     this.cbForm.ValueAttributeName = "Id";
     this.cbForm.ContextName = "DialogContext";
     this.table2.Add(this.cbForm);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.cbForm]));
     w4.TopAttach = ((uint)(2));
     w4.BottomAttach = ((uint)(3));
     w4.LeftAttach = ((uint)(2));
     w4.RightAttach = ((uint)(3));
     w4.XOptions = ((Gtk.AttachOptions)(0));
     w4.YOptions = ((Gtk.AttachOptions)(0));
     // Container child table2.Gtk.Table+TableChild
     this.cbProperty = new ControlWrappers.BoundComboBox();
     this.cbProperty.Events = ((Gdk.EventMask)(256));
     this.cbProperty.Name = "cbProperty";
     this.cbProperty.CollectionName = "PropertyDefinitions";
     this.cbProperty.LabelAttributeName = "Name";
     this.cbProperty.ValueAttributeName = "Id";
     this.cbProperty.AttributeName = "PropertyId";
     this.cbProperty.ContextName = "DialogContext";
     this.cbProperty.DomainName = "DynamicProperty";
     this.table2.Add(this.cbProperty);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.cbProperty]));
     w5.TopAttach = ((uint)(1));
     w5.BottomAttach = ((uint)(2));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.lblApplication = new Gtk.Label();
     this.lblApplication.Name = "lblApplication";
     this.lblApplication.Xalign = 0F;
     this.lblApplication.LabelProp = Mono.Unix.Catalog.GetString("Application:");
     this.table2.Add(this.lblApplication);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.lblApplication]));
     w6.XOptions = ((Gtk.AttachOptions)(4));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.lblDefaultValue = new Gtk.Label();
     this.lblDefaultValue.Name = "lblDefaultValue";
     this.lblDefaultValue.Xalign = 0F;
     this.lblDefaultValue.LabelProp = Mono.Unix.Catalog.GetString("Default Value:");
     this.table2.Add(this.lblDefaultValue);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2[this.lblDefaultValue]));
     w7.TopAttach = ((uint)(3));
     w7.BottomAttach = ((uint)(4));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.lblProperty = new Gtk.Label();
//.........这里部分代码省略.........
开发者ID:Ripper555,项目名称:DynamicPropertyManagement,代码行数:101,代码来源:PropertyManager.DynPropEntryDlg.cs


注:本文中的Gtk.UIManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。