private void CreateExprBar() { // UrlEntry expr_entry = new Gtk.Entry(); expr_entry.Activated += new EventHandler(on_expr_activate); Gtk.ToolItem expr_item = new Gtk.ToolItem(); expr_item.Expand = true; expr_item.Add(expr_entry); // Toolbar exprbar = new Toolbar(); exprbar.ToolbarStyle = ToolbarStyle.Icons; exprbar.Orientation = Orientation.Horizontal; exprbar.ShowArrow = true; // Toolbar Itens exprbar.Add(expr_item); exprbar.Add(action_expr.CreateToolItem()); }
private void CreateFindbar() { // FindEntry find_entry = new Gtk.Entry(); //find_entry.Activated += new EventHandler(on_uri_activate); Gtk.ToolItem find_item = new Gtk.ToolItem(); //find_item.Expand = true; find_item.Add(find_entry); // Toolbar findbar = new Toolbar(); findbar.ToolbarStyle = ToolbarStyle.Icons; findbar.Orientation = Orientation.Horizontal; findbar.ShowArrow = true; // Toolbar Itens findbar.Add(action_stop.CreateToolItem()); findbar.Add(find_item); findbar.Add(action_back.CreateToolItem()); findbar.Add(action_forward.CreateToolItem()); }
/// <summary> /// reads the given config file and creates toolbars and buttons /// </summary> /// <param name='frame'> /// Frame. /// </param> public static void addToolbars(Toolbar toolbar, String configfile, bool hookdelegates, Type type = null, object callingObject=null) { String xpath = "//toolbar"; if (type != null) { xpath += "[@class='" + type.ToString() + "']"; } else { xpath += "[not(@class)]"; } Console.WriteLine ("addToolbars:" + configfile + xpath); XmlNodeList lst = Sharpend.Configuration.ConfigurationManager.getValues(configfile, xpath); foreach (XmlNode nd in lst) { XmlNodeList btns = nd.SelectNodes(".//button"); foreach (XmlNode bn in btns) { String classname = XmlHelper.getAttributeValue(bn,"class"); String assembly = XmlHelper.getAttributeValue(bn,"assembly"); String icon = XmlHelper.getAttributeValue(bn,"icon"); String btn_title = XmlHelper.getAttributeValue(bn,"title"); String stock_id = XmlHelper.getAttributeValue(bn,"stock_id"); String eventargs = XmlHelper.getAttributeValue(bn,"eventargs"); String buttonname = XmlHelper.getAttributeValue(bn,"name"); Widget btn = createButton(classname,assembly,icon,btn_title,stock_id, eventargs); if (btn != null) { btn.Visible = true; toolbar.Add(btn); if (hookdelegates) { hookDelegates(bn,btn, callingObject); } if (!String.IsNullOrEmpty(buttonname)) { btn.Name = buttonname; } } } } }
private void CreateToolbar() { // UrlEntry uri_entry = new Gtk.Entry(); uri_entry.Activated += new EventHandler(on_uri_activate); Gtk.ToolItem uri_item = new Gtk.ToolItem(); uri_item.Expand = true; uri_item.Add(uri_entry); // Toolbar toolbar = new Toolbar(); toolbar.ToolbarStyle = ToolbarStyle.Icons; toolbar.Orientation = Orientation.Horizontal; toolbar.ShowArrow = true; // Toolbar Itens toolbar.Add(action_back.CreateToolItem()); toolbar.Add(action_forward.CreateToolItem()); toolbar.Add(action_reload.CreateToolItem()); toolbar.Add(action_stop.CreateToolItem()); toolbar.Add(uri_item); toolbar.Add(action_jump.CreateToolItem()); }
public MessageView(String messagebox) { this.messagebox = messagebox; messagesWindow = new ScrolledWindow(); messagesWindow.ShadowType = ShadowType.EtchedIn; messagesWindow.SetPolicy(PolicyType.Automatic, PolicyType.Automatic); treeviewMessages = new TreeView(); treeviewMessages.BorderWidth = 0; treeviewMessages.AppendColumn ("Site", new CellRendererText(), "text", 2).Resizable = true;; treeviewMessages.AppendColumn ("User", new CellRendererText(), "text", 3).Resizable = true;; treeviewMessages.AppendColumn ("Subject", new CellRendererText(), "text", 4).Resizable = true;; treeviewMessages.AppendColumn ("Date", new CellRendererText(), "text", 5).Resizable = true;; treeviewMessages.RowActivated += treeviewMessages_RowActivated; messagesWindow.Add(treeviewMessages); this.Add1 (messagesWindow); contentBox = new VBox(false, 0); Toolbar toolbar = new Toolbar(); toolbar.HeightRequest = 38; toolbar.ToolbarStyle = ToolbarStyle.Icons; toolbar.BorderWidth = 0; Image tmpimage = new Image(); tmpimage.Pixbuf = new Gdk.Pixbuf(".images/icon_up.png"); upbtn = new ToolButton(tmpimage, ""); upbtn.TooltipText = "Expand view to top"; upbtn.Clicked += upbtn_Clicked; Image tmpimage2 = new Image(); tmpimage2.Pixbuf = new Gdk.Pixbuf(".images/icon_down.png"); downbtn = new ToolButton(tmpimage2, ""); downbtn.TooltipText = "Split view"; downbtn.Clicked += downbtn_Clicked; Image tmpimage3 = new Image(); tmpimage3.Pixbuf = new Gdk.Pixbuf(".images/reply.png"); replybtn = new ToolButton(tmpimage3, ""); replybtn.TooltipText = "Reply to sender"; SeparatorToolItem sepSpacer = new SeparatorToolItem(); sepSpacer.Expand = true; sepSpacer.Draw = false; messageWindow = new ScrolledWindow(); messagebrowser = new WebView(); messagebrowser.Editable = false; messageWindow.Add(messagebrowser); contentBox.PackStart(toolbar, false, false, 0); contentBox.PackStart(messageWindow); toolbar.Add(replybtn); toolbar.Add(sepSpacer); toolbar.Add(upbtn); toolbar.Add(downbtn); this.Add2(contentBox); this.ShowAll(); downbtn.Hide (); replybtn.Sensitive = false; treestoreMessages = new TreeStore (typeof(string),typeof(string), typeof(string), typeof(string), typeof(string), typeof(string)); forums = new List<Forum> (); getBoxMessages(messagebox); treestoreMessages.AppendValues("000", "000", "SharpTalk", "Admin", "Welcome to SharpTalk", ""); treestoreMessages.SetSortColumnId(5, SortType.Descending); treeviewMessages.Model = treestoreMessages; }
public AppToolbar(DebugManager mgr, DebugPane dpane) { debugManager = mgr; debugPane = dpane; toolBar = new Toolbar(); // Debugger control buttons debuggerStart = new ToolButton(Stock.MediaPlay); debuggerStart.Clicked += OnDebuggerStart; debuggerStart.Label = "Start"; debuggerStart.TooltipText = "Start debugger"; toolBar.Add(debuggerStart); debuggerStop = new ToolButton(Stock.MediaStop); debuggerStop.Clicked += OnDebuggerStop; debuggerStop.Label = "Stop"; debuggerStop.TooltipText = "Stop debugger"; toolBar.Add(debuggerStop); debuggerInterrupt = new ToolButton(Stock.Cancel); debuggerInterrupt.Clicked += OnDebuggerInterrupt; debuggerInterrupt.Label = "Interrupt"; debuggerInterrupt.TooltipText = "Interrupt debugger"; toolBar.Add(debuggerInterrupt); debuggerStart.Sensitive = true; debuggerStop.Sensitive = false; debuggerInterrupt.Sensitive = false; toolBar.Add(new SeparatorToolItem()); // Command macros var cmdProg = new ToolButton(Stock.Open); cmdProg.Clicked += OnCommandProgram; cmdProg.Label = "Program"; cmdProg.TooltipText = "Program..."; toolBar.Add(cmdProg); commandMacros.Add(cmdProg); var cmdReset = new ToolButton(Stock.Clear); cmdReset.Clicked += (obj, evt) => debugPane.DebugView.RunCommand("reset"); cmdReset.Label = "Reset"; cmdReset.TooltipText = "Reset"; toolBar.Add(cmdReset); commandMacros.Add(cmdReset); var cmdRun = new ToolButton(Stock.GoForward); cmdRun.Clicked += (obj, evt) => debugPane.DebugView.RunCommand("run"); cmdRun.Label = "Run"; cmdRun.TooltipText = "Run"; toolBar.Add(cmdRun); commandMacros.Add(cmdRun); var cmdStep = new ToolButton(Stock.MediaNext); cmdStep.Clicked += (obj, evt) => debugPane.DebugView.RunCommand("step"); cmdStep.Label = "Step"; cmdStep.TooltipText = "Step"; toolBar.Add(cmdStep); commandMacros.Add(cmdStep); foreach (ToolButton m in commandMacros) m.Sensitive = false; toolBar.Add(new SeparatorToolItem()); // Zoom controls var zoomIn = new ToolButton(Stock.ZoomIn); zoomIn.Clicked += (obj, evt) => debugPane.PowerView.ZoomIn(); zoomIn.Label = "Zoom in"; zoomIn.TooltipText = "Zoom in"; toolBar.Add(zoomIn); var zoomOut = new ToolButton(Stock.ZoomOut); zoomOut.Clicked += (obj, evt) => debugPane.PowerView.ZoomOut(); zoomOut.Label = "Zoom out"; zoomOut.TooltipText = "Zoom out"; toolBar.Add(zoomOut); var zoomFit = new ToolButton(Stock.ZoomFit); zoomFit.Clicked += (obj, evt) => debugPane.PowerView.ZoomFit(); zoomFit.Label = "Zoom fit"; zoomFit.TooltipText = "Zoom to fit"; toolBar.Add(zoomFit); var zoomFull = new ToolButton(Stock.Zoom100); zoomFull.Clicked += (obj, evt) => debugPane.PowerView.ZoomFull(); zoomFull.Label = "Zoom full"; zoomFull.TooltipText = "Zoom full"; toolBar.Add(zoomFull); // Debug manager listeners debugManager.DebuggerBusy += OnDebuggerBusy; debugManager.DebuggerReady += OnDebuggerReady; debugManager.DebuggerStarted += OnDebuggerStarted; debugManager.DebuggerExited += OnDebuggerExited; }
void FillToolbar() { Toolbar toolbar = new Toolbar (); toolbar.Orientation = Orientation.Vertical; toolbar.ToolbarStyle = ToolbarStyle.Icons; editimage = new Gtk.Image (Helpers.Misc.LoadIcon ("longomatch-dash-edit_active", 22)); editbutton = new ToggleToolButton (); editbutton.IconWidget = editimage; editbutton.Toggled += HandleEditToggled; editbutton.TooltipText = Catalog.GetString ("Edit dashboard"); toolbar.Add (editbutton); toolbar.Add (new SeparatorToolItem ()); linksimage = new Gtk.Image (Helpers.Misc.LoadIcon ("longomatch-link-disabled", 22)); linksbutton = new ToggleToolButton (); linksbutton.IconWidget = linksimage; linksbutton.Toggled += HandleLinksToggled; linksbutton.TooltipText = Catalog.GetString ("Edit action links"); toolbar.Add (linksbutton); toolbar.Add (new SeparatorToolItem ()); popupbutton = new ToggleToolButton (); popupbutton.IconWidget = new Gtk.Image (Helpers.Misc.LoadIcon ("longomatch-popup", 22)); popupbutton.Active = true; popupbutton.Toggled += HandlePopupToggled; popupbutton.TooltipText = Catalog.GetString ("Disable popup window"); toolbar.Add (popupbutton); toolbar.Add (new SeparatorToolItem ()); fitbutton = new RadioToolButton ((GLib.SList)null); fitbutton.IconWidget = new Gtk.Image (Helpers.Misc.LoadIcon ("longomatch-dash-fit", 22)); fitbutton.Toggled += HandleFitModeToggled; fitbutton.TooltipText = Catalog.GetString ("Fit dashboard"); toolbar.Add (fitbutton); fillbutton = new RadioToolButton (fitbutton); fillbutton.IconWidget = new Gtk.Image (Helpers.Misc.LoadIcon ("longomatch-dash-fill", 22)); fillbutton.Toggled += HandleFitModeToggled; fillbutton.TooltipText = Catalog.GetString ("Fill dashboard"); toolbar.Add (fillbutton); d11button = new RadioToolButton (fitbutton); d11button.IconWidget = new Gtk.Image (Helpers.Misc.LoadIcon ("longomatch-dash-11", 22)); d11button.Toggled += HandleFitModeToggled; d11button.TooltipText = Catalog.GetString ("1:1 dashboard"); toolbar.Add (d11button); toolbar.ShowAll (); hbox2.PackEnd (toolbar, false, false, 0); editbutton.Active = true; linksbutton.Active = false; }
private void CreateToolbar() { // UrlEntry uri_entry = new Gtk.Entry (); uri_entry.Activated += new EventHandler(on_uri_activate); Gtk.ToolItem uri_item = new Gtk.ToolItem (); uri_item.Expand = true; uri_item.Add (uri_entry); // Toolbar toolbar = new Toolbar (); toolbar.ToolbarStyle = ToolbarStyle.Icons; toolbar.Orientation = Orientation.Horizontal; toolbar.ShowArrow = true; // Toolbar Itens toolbar.Add (action_back.CreateToolItem()); toolbar.Add (action_forward.CreateToolItem()); toolbar.Add (action_reload.CreateToolItem()); toolbar.Add (action_stop.CreateToolItem()); toolbar.Add (uri_item); toolbar.Add (action_jump.CreateToolItem()); }
public hashgen() { self = Assembly.GetExecutingAssembly (); Stream ico = self.GetManifestResourceStream ("HashGenerator.icon.png"); icon = new Pixbuf (ico); // Window Gtk.Window window = new Gtk.Window ((self.GetCustomAttributes (typeof(AssemblyTitleAttribute), false) [0] as AssemblyTitleAttribute).Title); window.SetDefaultSize (600, 500); window.DeleteEvent += OnDelete; window.Icon = icon; #region [Widgets] Box topBox = new VBox (); topBox.Homogeneous = false; // Toolbar Toolbar tb = new Toolbar (); // Toolbar New Button ToolButton tb_New = new ToolButton (Stock.New); tb_New.Clicked += OnToolbarNew_Clicked; tb.Add (tb_New); // Toolbar Open Button ToolButton tb_Open = new ToolButton (Stock.Open); tb_Open.Clicked += OnToolbarOpen_Clicked; tb.Add (tb_Open); // Toolbar Save Button ToolButton tb_Save = new ToolButton (Stock.Save); tb_Save.Clicked += OnToolbarSave_Clicked; tb.Add (tb_Save); tb.Add (new SeparatorToolItem ()); // Toolbar About Button ToolButton tb_About = new ToolButton (Stock.About); tb_About.Clicked += new EventHandler (OnToolbarAbout_Clicked); tb.Add (tb_About); tb.ShowAll (); topBox.PackStart (tb, false, true, 0); Box mbox = new VBox (); topBox.PackStart (mbox, false, true, 0); Box mhbx = new HBox (); mbox.PackStart (mhbx, false, true, 0); entry = new Entry (); mhbx.PackStart (entry, true, true, 0); Button btnFile = new Button (); btnFile.Image = Gtk.Image.NewFromIconName (Stock.File, IconSize.Button); btnFile.Clicked += OnBtnFile_Clicked; mhbx.PackStart (btnFile, false, true, 0); string[] htype = { "MD5", "SHA128", "SHA256", "SHA512", "CRC32" }; cboType = new ComboBox (htype); cboType.Active = 0; mhbx.PackStart (cboType, false, false, 0); Button btnHash = new Button ("Generate"); btnHash.Clicked += OnBtnHash_Clicked; mhbx.PackStart (btnHash, false, false, 0); // Tree ScrolledWindow sw = new ScrolledWindow (); topBox.PackStart (sw, true, true, 0); TreeView tree = new TreeView (); sw.Add (tree); TreeViewColumn inColu = new TreeViewColumn (); inColu.Title = "Input"; CellRendererText inCell = new CellRendererText (); inColu.PackStart (inCell, true); TreeViewColumn typeColu = new TreeViewColumn (); typeColu.Title = "Type"; CellRendererText typeCell = new CellRendererText (); typeColu.PackStart (typeCell, true); TreeViewColumn hashColu = new TreeViewColumn (); hashColu.Title = "Hash"; CellRendererText hashCell = new CellRendererText (); hashCell.Editable = true; hashColu.PackStart (hashCell, true); tree.AppendColumn (inColu); tree.AppendColumn (typeColu); tree.AppendColumn (hashColu); inColu.AddAttribute (inCell, "text", 0); typeColu.AddAttribute (typeCell, "text", 1); hashColu.AddAttribute (hashCell, "text", 2); hashStore = new ListStore (typeof(string), typeof(string), typeof(string)); // Search Filter filter = new TreeModelFilter (hashStore, null); filter.VisibleFunc = SearchTree; tree.Model = filter; // StatusBar Statusbar sb = new Statusbar (); topBox.PackStart (sb, false, true, 0); sb.Add (new Label ("Search:")); search = new Entry (); search.Changed += OnSearch; sb.Add (search); #endregion window.Add (topBox); window.ShowAll (); }
public SqlQueryView () { stoppedQueries = new List<object> (); MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init (); this.UntitledName = string.Concat (AddinCatalog.GetString ("Untitled Sql Script"), ".sql"); vbox = new VBox (false, 6); vbox.BorderWidth = 6; Toolbar toolbar = new Toolbar (); toolbar.ToolbarStyle = ToolbarStyle.BothHoriz; buttonExecute = new ToolButton (ImageService.GetImage ("md-db-execute", IconSize.SmallToolbar), AddinCatalog.GetString ("_Execute")); buttonExecute.Label = AddinCatalog.GetString ("Execute"); buttonExecute.Sensitive = false; buttonExecute.TooltipMarkup = AddinCatalog.GetString ("Execute Query"); buttonExecute.IsImportant = true; buttonExecute.Clicked += new EventHandler (ExecuteClicked); buttonStop = new ToolButton ("gtk-stop"); buttonStop.TooltipText = AddinCatalog.GetString ("Stop Query Execution"); buttonStop.Sensitive = false; buttonStop.Clicked += new EventHandler (StopClicked); buttonClear = new ToolButton (ImageService.GetImage ("gtk-clear", IconSize.Button), AddinCatalog.GetString ("Clear Results")); buttonClear.TooltipText = AddinCatalog.GetString ("Clear Results"); buttonClear.Clicked += new EventHandler (ClearClicked); comboConnections = new DatabaseConnectionContextComboBox (); selectedConnection = comboConnections.DatabaseConnection; comboConnections.Changed += new EventHandler (ConnectionChanged); ToolItem comboItem = new ToolItem (); comboItem.Child = comboConnections; toolbar.Add (buttonExecute); toolbar.Add (buttonStop); toolbar.Add (buttonClear); toolbar.Add (new SeparatorToolItem ()); toolbar.Add (comboItem); pane = new VPaned (); // Sql History Window ScrolledWindow windowHistory = new ScrolledWindow (); history = new SqlEditorWidget (); history.Editable = false; windowHistory.AddWithViewport (history); // Status of the Last Query ScrolledWindow windowStatus = new ScrolledWindow (); status = new TextView (); windowStatus.Add (status); notebook = new Notebook (); notebook.AppendPage (windowStatus, new Label (AddinCatalog.GetString ("Status"))); notebook.AppendPage (windowHistory, new Label (AddinCatalog.GetString ("Query History"))); pane.Pack2 (notebook, true, true); vbox.PackStart (toolbar, false, true, 0); vbox.PackStart (pane, true, true, 0); this.Document.TextReplaced += SqlChanged; vbox.ShowAll (); Document.DocumentUpdated += delegate (object sender, EventArgs args) { // Default mime type or a provider defined. if (selectedConnection == null) Document.MimeType = "text/x-sql"; else Document.MimeType = GetMimeType (); }; notebook.Hide (); }
private void CreateFindbar() { // FindEntry find_entry = new Gtk.Entry (); //find_entry.Activated += new EventHandler(on_uri_activate); Gtk.ToolItem find_item = new Gtk.ToolItem (); //find_item.Expand = true; find_item.Add (find_entry); // Toolbar findbar = new Toolbar (); findbar.ToolbarStyle = ToolbarStyle.Icons; findbar.Orientation = Orientation.Horizontal; findbar.ShowArrow = true; // Toolbar Itens findbar.Add (action_stop.CreateToolItem()); findbar.Add (find_item); findbar.Add (action_back.CreateToolItem()); findbar.Add (action_forward.CreateToolItem()); }
public ForumView(Forum site, String forum) { this.site = site; this.forum = forum; this.Destroyed += delegate(object sender, EventArgs e) { if (iconThread != null) if (iconThread.IsAlive) iconThread.Abort (); }; topicWindow = new ScrolledWindow (); topicWindow.ShadowType = ShadowType.EtchedIn; topicWindow.SetPolicy (PolicyType.Automatic, PolicyType.Automatic); treeviewTopics = new TreeView (); treeviewTopics.BorderWidth = 0; treeviewTopics.AppendColumn ("", new CellRendererPixbuf (), "pixbuf", 5); CellRendererText cellTopic = new CellRendererText (); TreeViewColumn topicCol = treeviewTopics.AppendColumn ("Topic", cellTopic, "text", 1); topicCol.SetCellDataFunc (cellTopic, new Gtk.TreeCellDataFunc (renderTopic)); topicCol.Resizable = true; treeviewTopics.AppendColumn ("Author", new CellRendererText (), "text", 2).Resizable = true; ; treeviewTopics.AppendColumn ("Replies", new CellRendererText (), "text", 3).Resizable = true; ; treeviewTopics.AppendColumn ("Last Reply", new CellRendererText (), "text", 4).Resizable = true; ; // Use treeView.Selection.Changed? treeviewTopics.RowActivated += treeviewTopics_RowActivated; treeviewTopics.ButtonPressEvent += treeviewTopics_ButtonPress; topicWindow.Add (treeviewTopics); this.Add1 (topicWindow); contentBox = new VBox (false, 0); Toolbar toolbar = new Toolbar (); toolbar.HeightRequest = 38; toolbar.ToolbarStyle = ToolbarStyle.Icons; toolbar.BorderWidth = 0; firstbtn = new ToolButton (Stock.GotoFirst); firstbtn.TooltipText = "First page"; firstbtn.Sensitive = false; firstbtn.Clicked += firstbtn_Clicked; prevbtn = new ToolButton (Stock.GoBack); prevbtn.TooltipText = "Previous page"; prevbtn.Sensitive = false; prevbtn.Clicked += prevbtn_Clicked; nextbtn = new ToolButton (Stock.GoForward); nextbtn.TooltipText = "Next page"; nextbtn.Sensitive = false; nextbtn.Clicked += nextbtn_Clicked; lastbtn = new ToolButton (Stock.GotoLast); lastbtn.TooltipText = "Last page"; lastbtn.Sensitive = false; lastbtn.Clicked += lastbtn_Clicked; Image tmpimage = new Image (); tmpimage.Pixbuf = new Gdk.Pixbuf (".images/icon_up.png"); upbtn = new ToolButton (tmpimage, ""); upbtn.TooltipText = "Expand view to top"; upbtn.Clicked += upbtn_Clicked; Image tmpimage2 = new Image (); tmpimage2.Pixbuf = new Gdk.Pixbuf (".images/icon_down.png"); downbtn = new ToolButton (tmpimage2, ""); downbtn.TooltipText = "Split view"; downbtn.Clicked += downbtn_Clicked; closebtn = new ToolButton (Stock.Close); closebtn.TooltipText = "Close image view"; closebtn.Clicked += closebtn_Clicked; Image tmpimage3 = new Image (); tmpimage3.Pixbuf = new Gdk.Pixbuf (".images/rotate_16.png"); rotatebtn = new ToolButton (tmpimage3, ""); rotatebtn.TooltipText = "Rotate image clockwise"; rotatebtn.Clicked += rotatebtn_Clicked; Image tmpimage4 = new Image (); tmpimage4.Pixbuf = new Gdk.Pixbuf (".images/icon_save.png"); savebtn = new ToolButton (tmpimage4, ""); savebtn.TooltipText = "Download image"; savebtn.Clicked += savebtn_Clicked; pageLabel = new Label (""); ToolItem textItem = new ToolItem (); textItem.Expand = false; textItem.Add (pageLabel); imageviewbtn = new ToggleToolButton (Stock.ZoomFit); imageviewbtn.TooltipText = "Image view"; imageviewbtn.Toggled += imageviewbtn_Toggled; textviewbtn = new ToggleToolButton (Stock.Properties); textviewbtn.TooltipText = "Thread view"; textviewbtn.Active = true; textviewbtn.Toggled += textviewbtn_Toggled; SeparatorToolItem sepSpacer = new SeparatorToolItem (); sepSpacer.Expand = true; sepSpacer.Draw = false; sepFullsize = new SeparatorToolItem (); imageSortAscending = new ToggleToolButton (Stock.SortAscending); imageSortAscending.TooltipText = "Show earliest images first"; imageSortAscending.Active = true; imageSortAscending.Toggled += imageSortAscending_Toggled; imageSortDescending = new ToggleToolButton (Stock.SortDescending); imageSortDescending.TooltipText = "Show latest images first"; imageSortDescending.Toggled += imageSortDescending_Toggled; imageLoadingProgress = new ProgressBar (); ToolItem progressItem = new ToolItem (); progressItem.Expand = false; progressItem.Add (imageLoadingProgress); imageLoadingProgress.Fraction = 0; toolbar.Add (imageSortAscending); toolbar.Add (imageSortDescending); toolbar.Add (progressItem); toolbar.Add (firstbtn); toolbar.Add (prevbtn); toolbar.Add (textItem); toolbar.Add (nextbtn); toolbar.Add (lastbtn); toolbar.Add (sepFullsize); toolbar.Add (savebtn); toolbar.Add (rotatebtn); toolbar.Add (sepSpacer); toolbar.Add (imageviewbtn); toolbar.Add (textviewbtn); toolbar.Add (closebtn); toolbar.Add (upbtn); toolbar.Add (downbtn); threadwindow = new ScrolledWindow (); threadbrowser = new WebView (); threadbrowser.Editable = false; threadbrowser.NavigationRequested += threadbrowser_NavigationRequested; threadwindow.Add (threadbrowser); iconStore = new ListStore (typeof(string), typeof(Gdk.Pixbuf), typeof(string), typeof(string), typeof(int), typeof(int)); iconview = new IconView (iconStore); iconview.Margin = 1; iconview.Spacing = 1; iconview.BorderWidth = 0; iconview.ColumnSpacing = 1; iconview.RowSpacing = 1; iconview.PixbufColumn = 1; iconview.TooltipColumn = 2; iconview.SelectionMode = SelectionMode.Multiple; iconview.ItemActivated += iconview_ItemActivated; iconview.ButtonPressEvent += iconView_ButtonPress; iconview.Model = iconStore; iconview.ModifyBase (StateType.Normal, new Gdk.Color (0x66, 0x66, 0x66)); iconwindow = new ScrolledWindow (); iconwindow.ShadowType = ShadowType.EtchedIn; iconwindow.SetPolicy (PolicyType.Automatic, PolicyType.Automatic); iconwindow.Add (iconview); imagewindow = new EventBox (); fullSizeImage = new Image (); // JICE TEST fullsizeLayout = new Layout (null, null); fullsizeLayout.Add (fullSizeImage); fullsizeLayout.SizeRequested += fullsizeLayout_SizeRequested; imagewindow.ModifyBase (StateType.Normal, new Gdk.Color (0x66, 0x66, 0x66)); imagewindow.Add (fullsizeLayout); imagewindow.CanFocus = true; imagewindow.KeyPressEvent += imagewindow_keyPressEvent; imagewindow.SizeRequested += imagewindow_sizeAllocated; // imagewindow.Add(fullSizeImage); contentBox.PackStart (toolbar, false, false, 0); contentBox.PackStart (iconwindow); contentBox.PackStart (imagewindow); contentBox.PackStart (threadwindow); this.Add2 (contentBox); this.ShowAll (); imageSortAscending.Hide (); imageSortDescending.Hide (); iconwindow.Hide (); imagewindow.Hide (); closebtn.Hide (); rotatebtn.Hide (); savebtn.Hide (); sepFullsize.Hide (); downbtn.Hide (); imageLoadingProgress.Hide (); String favouriteThreads = UserSettings.getValue ("Site" + site.forumName + ".Forum" + forum + ".Favourites"); favThreads = favouriteThreads.Split (';'); treestoreTopics = new TreeStore (typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(Gdk.Pixbuf)); topicsLoaded = 0; loadTopics (); treeviewTopics.Model = treestoreTopics; }
static void GetFeed(string ticket) { nv = new NameValueCollection (); nv.Add ("ticket", ticket); XmlNodeList nl = Request ( "http://live.nicovideo.jp/api/getalertstatus", @"//communities|//addr|//port|//thread", nv); if (nl.Count == 0) { Console.WriteLine ("チケットの値が不正です"); LoginRequest (); return; } Server sv = new Server (); Notebook nb = new Notebook (); nb.AppendPage(sv.Page_all (), new MultiTab("最新の放送",nb)); nb.AppendPage(sv.Page_mylist (), new MultiTab("お気に入り",nb)); nb.AppendPage(Page_tab ("common"), new MultiTab("タブ(一般)",nb)); nb.AppendPage(Page_tab ("live"), new MultiTab("タブ(ゲーム)",nb)); nb.AppendPage(Page_tab ("face"), new MultiTab("タブ(顔出し)",nb)); nb.AppendPage(Page_tab ("totu"), new MultiTab("タブ(凸待ち)",nb)); nb.AppendPage(Page_tab ("req"), new MultiTab("タブ(動画紹介)",nb)); nb.AppendPage(Page_tab ("try"), new MultiTab("タブ(やってみた)",nb)); nb.AppendPage(Page_tab ("r18"), new MultiTab("タブ(R―18)",nb)); //nb.SwitchPage += (sender, e) => PageChangedEvent(sender, e); Gtk.Window window = new Gtk.Window ("ニコ生フィーダー v1.0"); window.DeleteEvent += new DeleteEventHandler (OnQuit); window.SetSizeRequest (300, 550); window.KeepAbove = true; Toolbar bar = new Toolbar (); ToggleToolButton sendBackBtn = new ToggleToolButton (); sendBackBtn.Toggled += (sender, e) => SendBack(sender, e, ref window); sendBackBtn.TooltipText = "最前面での固定を解除"; ToggleToolButton logoutBtn = new ToggleToolButton (); logoutBtn.TooltipText = "ログアウト"; logoutBtn.Clicked += (sender, e) => Logout(sender, e, ref window); bar.HeightRequest = 25; Gtk.Image img = new Gtk.Image(); img.Pixbuf = new Gdk.Pixbuf("go_back.png",12,12); sendBackBtn.IconWidget = img; Gtk.Image img2 = new Gtk.Image(); img2.Pixbuf = new Gdk.Pixbuf("logout.png",16,16); logoutBtn.IconWidget = img2; logoutBtn.HeightRequest = 25; sendBackBtn.HeightRequest = 25; bar.Add (logoutBtn); bar.Add (sendBackBtn); bar.ShowAll (); VBox vbox = new VBox(false, 0); vbox.PackStart (bar, false, true, 0); vbox.PackStart (nb, true, true, 0); window.Add (vbox); window.ShowAll (); window.Focus = nb; MainClass.communities = nl [0].InnerText; sv.receiveFromServer (nl [1].InnerText, nl [2].InnerText, nl [3].InnerText); }
protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoGame.Tools.Pipeline.MainWindow this.UIManager = new global::Gtk.UIManager (); global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); this.FileAction = new global::Gtk.Action ("FileAction", global::Mono.Unix.Catalog.GetString ("File"), null, null); this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("File"); w1.Add (this.FileAction, null); this.NewAction = new global::Gtk.Action ("NewAction", global::Mono.Unix.Catalog.GetString ("New..."), null, "gtk-new"); this.NewAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("New..."); w1.Add (this.NewAction, "<Control>n"); this.OpenAction = new global::Gtk.Action ("OpenAction", global::Mono.Unix.Catalog.GetString ("Open..."), null, "gtk-open"); this.OpenAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Open..."); w1.Add (this.OpenAction, "<Control>o"); this.OpenRecentAction = new global::Gtk.Action ("OpenRecentAction", global::Mono.Unix.Catalog.GetString ("Open Recent"), null, null); this.OpenRecentAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Open Recent"); w1.Add (this.OpenRecentAction, null); this.CloseAction = new global::Gtk.Action ("CloseAction", global::Mono.Unix.Catalog.GetString ("Close"), null, "gtk-close"); this.CloseAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Close"); w1.Add (this.CloseAction, null); this.ImportAction = new global::Gtk.Action ("ImportAction", global::Mono.Unix.Catalog.GetString ("Import..."), null, null); this.ImportAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Import..."); w1.Add (this.ImportAction, null); this.SaveAction = new global::Gtk.Action ("SaveAction", global::Mono.Unix.Catalog.GetString ("Save"), null, "gtk-save"); this.SaveAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save"); w1.Add (this.SaveAction, "<Control>s"); this.SaveAsAction = new global::Gtk.Action ("SaveAsAction", global::Mono.Unix.Catalog.GetString ("Save As..."), null, "gtk-save-as"); this.SaveAsAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save As..."); w1.Add (this.SaveAsAction, null); this.ExitAction = new global::Gtk.Action ("ExitAction", global::Mono.Unix.Catalog.GetString ("Exit"), null, "gtk-quit"); this.ExitAction.HideIfEmpty = false; this.ExitAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Exit"); w1.Add (this.ExitAction, null); this.EditAction = new global::Gtk.Action ("EditAction", global::Mono.Unix.Catalog.GetString ("Edit"), null, null); this.EditAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Edit"); w1.Add (this.EditAction, null); this.UndoAction = new global::Gtk.Action ("UndoAction", global::Mono.Unix.Catalog.GetString ("Undo"), null, "gtk-undo"); this.UndoAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Undo"); w1.Add (this.UndoAction, "<Control>z"); this.RedoAction = new global::Gtk.Action ("RedoAction", global::Mono.Unix.Catalog.GetString ("Redo"), null, "gtk-redo"); this.RedoAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Redo"); w1.Add (this.RedoAction, "<Control>y"); RenameAction = new Action ("RenameAction", global::Mono.Unix.Catalog.GetString ("Rename"), null, null); RenameAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Rename"); w1.Add (RenameAction, null); this.DeleteAction = new global::Gtk.Action ("DeleteAction", global::Mono.Unix.Catalog.GetString ("Delete"), null, "gtk-delete"); this.DeleteAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Delete"); w1.Add (this.DeleteAction, null); this.BuildAction = new global::Gtk.Action ("BuildAction", global::Mono.Unix.Catalog.GetString ("Build"), null, null); this.BuildAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Build"); w1.Add (this.BuildAction, null); this.BuildAction1 = new global::Gtk.Action ("BuildAction1", global::Mono.Unix.Catalog.GetString ("Build"), null, "gtk-execute"); this.BuildAction1.ShortLabel = global::Mono.Unix.Catalog.GetString ("Build"); w1.Add (this.BuildAction1, "<Mod2>F6"); this.RebuildAction = new global::Gtk.Action ("RebuildAction", global::Mono.Unix.Catalog.GetString ("Rebuild"), null, "gtk-execute"); this.RebuildAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Rebuild"); w1.Add (this.RebuildAction, null); this.CleanAction = new global::Gtk.Action ("CleanAction", global::Mono.Unix.Catalog.GetString ("Clean"), null, null); this.CleanAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Clean"); w1.Add (this.CleanAction, null); this.DebugModeAction = new global::Gtk.ToggleAction ("DebugModeAction", global::Mono.Unix.Catalog.GetString ("Debug Mode"), null, null); this.DebugModeAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Debug Mode"); w1.Add (this.DebugModeAction, null); this.FilterOutputAction = new global::Gtk.ToggleAction ("FilterOutputAction", global::Mono.Unix.Catalog.GetString ("Filter Output"), null, null); this.FilterOutputAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Filter Output"); this.FilterOutputAction.Active = true; w1.Add (this.FilterOutputAction, null); this.HelpAction = new global::Gtk.Action ("HelpAction", global::Mono.Unix.Catalog.GetString ("Help"), null, null); this.HelpAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Help"); w1.Add (this.HelpAction, null); this.ViewHelpAction = new global::Gtk.Action ("ViewHelpAction", global::Mono.Unix.Catalog.GetString ("View Help"), null, "gtk-help"); this.ViewHelpAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("View Help"); w1.Add (this.ViewHelpAction, "<Mod2>F1"); this.AboutAction = new global::Gtk.Action ("AboutAction", global::Mono.Unix.Catalog.GetString ("About"), null, "gtk-about"); this.AboutAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("About"); w1.Add (this.AboutAction, null); this.CancelBuildAction = new global::Gtk.Action ("CancelBuildAction", global::Mono.Unix.Catalog.GetString ("Cancel Build"), null, "gtk-stop"); this.CancelBuildAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Cancel Build"); w1.Add (this.CancelBuildAction, null); this.AddAction = new global::Gtk.Action ("AddAction", global::Mono.Unix.Catalog.GetString ("Add"), null, null); this.AddAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Add"); w1.Add (this.AddAction, null); this.NewItemAction = new global::Gtk.Action ("NewItemAction", global::Mono.Unix.Catalog.GetString ("New Item..."), null, "gtk-file"); this.NewItemAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("New Item..."); w1.Add (this.NewItemAction, null); this.NewFolderAction = new global::Gtk.Action ("NewFolderAction", global::Mono.Unix.Catalog.GetString ("New Folder..."), null, "gtk-directory"); this.NewFolderAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("New Folder..."); w1.Add (this.NewFolderAction, null); this.ExistingItemAction = new global::Gtk.Action ("ExistingItemAction", global::Mono.Unix.Catalog.GetString ("Existing Item..."), null, null); this.ExistingItemAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Add Existing Item..."); w1.Add (this.ExistingItemAction, null); this.ExistingFolderAction = new global::Gtk.Action ("ExistingFolderAction", global::Mono.Unix.Catalog.GetString ("Existing Folder..."), null, null); this.ExistingFolderAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Add Existing Folder..."); w1.Add (this.ExistingFolderAction, null); this.UIManager.InsertActionGroup (w1, 0); this.AddAccelGroup (this.UIManager.AccelGroup); this.Name = "MonoGame.Tools.Pipeline.MainWindow"; this.Icon = global::Gdk.Pixbuf.LoadFromResource ("MonoGame.Tools.Pipeline.App.ico"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MonoGame.Tools.Pipeline.MainWindow.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox (); this.vbox2.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString ("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><menuitem name='OpenRecentAction' action='OpenRecentAction'/><menuitem name='CloseAction' action='CloseAction'/><separator/><menuitem name='ImportAction' action='ImportAction'/><separator/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><separator/><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/><separator/><menu name='AddAction' action='AddAction'><menuitem name='NewItemAction' action='NewItemAction'/><menuitem name='NewFolderAction' action='NewFolderAction'/><separator/><menuitem name='ExistingItemAction' action='ExistingItemAction'/><menuitem name='ExistingFolderAction' action='ExistingFolderAction'/></menu><separator/><menuitem name='RenameAction' action='RenameAction'/><menuitem name='DeleteAction' action='DeleteAction'/></menu><menu name='BuildAction' action='BuildAction'><menuitem name='BuildAction1' action='BuildAction1'/><menuitem name='RebuildAction' action='RebuildAction'/><menuitem name='CleanAction' action='CleanAction'/><menuitem name='CancelBuildAction' action='CancelBuildAction'/><separator name='sep1'/><menuitem name='DebugModeAction' action='DebugModeAction'/><menuitem name='FilterOutputAction' action='FilterOutputAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='ViewHelpAction' action='ViewHelpAction'/><separator/><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox2.Add (this.menubar1); toolBar1 = new Toolbar(); toolNew = new ToolButton(new Image(null, "Toolbar.New.png"), "New"); toolNew.TooltipText = toolNew.Label; toolBar1.Add(toolNew); toolOpen = new ToolButton(new Image(null, "Toolbar.Open.png"), "Open"); toolOpen.TooltipText = toolOpen.Label; toolBar1.Add(toolOpen); toolSave = new ToolButton(new Image(null, "Toolbar.Save.png"), "Save"); toolSave.TooltipText = toolSave.Label; toolBar1.Add(toolSave); toolBar1.Add(new SeparatorToolItem()); toolNewItem = new ToolButton(new Image(null, "Toolbar.NewItem.png"), "Add New Item"); toolNewItem.TooltipText = toolNewItem.Label; toolBar1.Add(toolNewItem); toolAddItem = new ToolButton(new Image(null, "Toolbar.ExistingItem.png"), "Add Existing Item"); toolAddItem.TooltipText = toolAddItem.Label; toolBar1.Add(toolAddItem); toolNewFolder = new ToolButton(new Image(null, "Toolbar.NewFolder.png"), "Add New Folder"); toolNewFolder.TooltipText = toolNewFolder.Label; toolBar1.Add(toolNewFolder); toolAddFolder = new ToolButton(new Image(null, "Toolbar.ExistingFolder.png"), "Add Existing Folder"); toolAddFolder.TooltipText = toolAddFolder.Label; toolBar1.Add(toolAddFolder); toolBar1.Add(new SeparatorToolItem()); toolBuild = new ToolButton(new Image(null, "Toolbar.Build.png"), "Build"); toolBuild.TooltipText = toolBuild.Label; toolBar1.Add(toolBuild); toolRebuild = new ToolButton(new Image(null, "Toolbar.Rebuild.png"), "Rebuild"); toolRebuild.TooltipText = toolRebuild.Label; toolBar1.Add(toolRebuild); toolClean = new ToolButton(new Image(null, "Toolbar.Clean.png"), "Clean"); toolClean.TooltipText = toolClean.Label; toolBar1.Add(toolClean); toolBar1.Add(new SeparatorToolItem()); toolFilterOutput = new ToggleToolButton(); toolFilterOutput.Label = toolFilterOutput.TooltipText = "Filter Output"; toolFilterOutput.IconWidget = new Image(null, "Toolbar.FilterOutput.png"); toolBar1.Add(toolFilterOutput); if (!Global.UseHeaderBar) this.vbox2.PackStart(toolBar1, false, true, 0); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hpaned1 = new global::Gtk.HPaned (); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 179; // Container child hpaned1.Gtk.Paned+PanedChild this.vpaned2 = new global::Gtk.VPaned (); this.vpaned2.CanFocus = true; this.vpaned2.Name = "vpaned2"; this.vpaned2.Position = 247; // Container child vpaned2.Gtk.Paned+PanedChild this.projectview1 = new global::MonoGame.Tools.Pipeline.ProjectView (); this.projectview1.Events = ((global::Gdk.EventMask)(256)); this.projectview1.Name = "projectview1"; this.vpaned2.Add (this.projectview1); global::Gtk.Paned.PanedChild w3 = ((global::Gtk.Paned.PanedChild)(this.vpaned2 [this.projectview1])); w3.Resize = false; // Container child vpaned2.Gtk.Paned+PanedChild this.propertiesview1 = new global::MonoGame.Tools.Pipeline.PropertiesView (); this.propertiesview1.Events = ((global::Gdk.EventMask)(256)); this.propertiesview1.Name = "propertiesview1"; this.vpaned2.Add (this.propertiesview1); global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.vpaned2 [this.propertiesview1])); w4.Resize = false; this.hpaned1.Add (this.vpaned2); global::Gtk.Paned.PanedChild w5 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.vpaned2])); w5.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild buildOutput1 = new BuildOutput(); this.hpaned1.Add (this.buildOutput1); this.vbox2.Add (this.hpaned1); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hpaned1])); w8.Position = 2; this.Add (this.vbox2); treeview1 = new TreeView(); #if GTK3 if(Global.UseHeaderBar) { Builder builder = new Builder(null, "MonoGame.Tools.Pipeline.Gtk.MainWindow.HeaderBar.glade", null); hbar = new HeaderBar(builder.GetObject("headerbar").Handle); builder.Autoconnect(this); hbar.AttachToWindow(this); hbar.ShowCloseButton = true; hbar.Show(); foreach(var o in menubar1.Children) { menubar1.Remove(o); menu2.Insert(o, 4); } new_button.Clicked += OnNewActionActivated; save_button.Clicked += OnSaveActionActivated; build_button.Clicked += OnBuildAction1Activated; rebuild_button.Clicked += OnRebuildActionActivated; cancel_button.Clicked += OnCancelBuildActionActivated; filteroutput_button.ButtonReleaseEvent += ToggleFilterOutput; filteroutput_button.Sensitive = true; vbox2.Remove (menubar1); open_menubutton = new MenuButton(open_button.Handle); var popover = new Popover(open_menubutton); var vbox = new VBox(); vbox.WidthRequest = 350; vbox.HeightRequest = 300; Gtk3Wrapper.gtk_tree_view_set_activate_on_single_click(treeview1.Handle, true); treeview1.HeadersVisible = false; treeview1.EnableGridLines = TreeViewGridLines.Horizontal; treeview1.HoverSelection = true; treeview1.RowActivated += delegate(object o, RowActivatedArgs args) { popover.Hide(); TreeIter iter; if(!recentListStore.GetIter(out iter, args.Path)) return; OpenProject(recentListStore.GetValue(iter, 1).ToString()); }; ScrolledWindow scroll1 = new ScrolledWindow(); scroll1.WidthRequest = 350; scroll1.HeightRequest = 300; scroll1.Add(treeview1); vbox.PackStart(scroll1, true, true, 0); var openButton = new Button("Open Other..."); openButton.Clicked += delegate(object sender, System.EventArgs e) { popover.Hide(); OnOpenActionActivated(sender, e); }; vbox.PackStart(openButton, false, true, 0); vbox.ShowAll(); popover.Add(vbox); open_menubutton.Popup = popover; } #endif this.Title = basetitle; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 751; this.DefaultHeight = 557; #if GTK3 Gdk.Geometry geom = new Gdk.Geometry(); geom.MinWidth = 400; geom.MinHeight = 300; this.SetGeometryHints(this, geom, Gdk.WindowHints.MinSize); #endif this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); this.NewAction.Activated += new global::System.EventHandler (this.OnNewActionActivated); this.toolNew.Clicked += OnNewActionActivated; this.OpenAction.Activated += new global::System.EventHandler (this.OnOpenActionActivated); this.toolOpen.Clicked += OnOpenActionActivated; this.CloseAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); this.ImportAction.Activated += new global::System.EventHandler (this.OnImportActionActivated); this.SaveAction.Activated += new global::System.EventHandler (this.OnSaveActionActivated); this.toolSave.Clicked += OnSaveActionActivated; this.SaveAsAction.Activated += new global::System.EventHandler (this.OnSaveAsActionActivated); this.ExitAction.Activated += new global::System.EventHandler (this.OnExitActionActivated); this.UndoAction.Activated += new global::System.EventHandler (this.OnUndoActionActivated); this.RedoAction.Activated += new global::System.EventHandler (this.OnRedoActionActivated); RenameAction.Activated += this.OnRenameActionActivated; this.DeleteAction.Activated += new global::System.EventHandler (this.OnDeleteActionActivated); this.BuildAction1.Activated += new global::System.EventHandler (this.OnBuildAction1Activated); toolBuild.Clicked += OnBuildAction1Activated; this.RebuildAction.Activated += new global::System.EventHandler (this.OnRebuildActionActivated); toolRebuild.Clicked += OnRebuildActionActivated; this.CleanAction.Activated += new global::System.EventHandler (this.OnCleanActionActivated); toolClean.Clicked += OnCleanActionActivated; this.ViewHelpAction.Activated += new global::System.EventHandler (this.OnViewHelpActionActivated); this.AboutAction.Activated += new global::System.EventHandler (this.OnAboutActionActivated); this.NewItemAction.Activated += new global::System.EventHandler (this.OnNewItemActionActivated); this.toolNewItem.Clicked += OnNewItemActionActivated; this.NewFolderAction.Activated += new global::System.EventHandler (this.OnNewFolderActionActivated); this.toolNewFolder.Clicked += OnNewFolderActionActivated; this.ExistingItemAction.Activated += new global::System.EventHandler (this.OnAddItemActionActivated); this.toolAddItem.Clicked += OnAddItemActionActivated; this.ExistingFolderAction.Activated += new global::System.EventHandler (this.OnAddFolderActionActivated); this.toolAddFolder.Clicked += OnAddFolderActionActivated; this.DebugModeAction.Activated += new global::System.EventHandler (this.OnDebugModeActionActivated); this.FilterOutputAction.Activated += OnFilterOutputActionActivated; this.toolFilterOutput.ButtonReleaseEvent += ToggleFilterOutput; this.CancelBuildAction.Activated += new global::System.EventHandler (this.OnCancelBuildActionActivated); this.SizeAllocated += MainWindow_SizeAllocated; }
public SqlQueryView() : base() { control = new Frame (); control.Show (); VBox vbox = new VBox (); vbox.Show (); Tooltips tips = new Tooltips (); Toolbar toolbar = new Toolbar (); vbox.PackStart (toolbar, false, true, 0); toolbar.Show (); Image image = new Image (); image.Pixbuf = Gdk.Pixbuf.LoadFromResource ("MonoQuery.Execute"); image.Show (); Button execute = new Button (image); execute.Clicked += new EventHandler (OnExecute); execute.Relief = ReliefStyle.None; tips.SetTip (execute, "Execute", ""); toolbar.Add (execute); execute.Show (); image = new Image (); image.Pixbuf = Gdk.Pixbuf.LoadFromResource ("MonoQuery.RunFromCursor"); image.Show (); Button run = new Button (image); run.Clicked += new EventHandler (OnRunFromCursor); run.Relief = ReliefStyle.None; tips.SetTip (run, "Run from cursor", ""); toolbar.Add (run); run.Show (); image = new Image (); image.Pixbuf = Gdk.Pixbuf.LoadFromResource ("MonoQuery.Explain"); image.Show (); Button explain = new Button (image); explain.Clicked += new EventHandler (OnExplain); explain.Relief = ReliefStyle.None; tips.SetTip (explain, "Explain query", ""); toolbar.Add (explain); explain.Show (); image = new Image (); image.Pixbuf = Gdk.Pixbuf.LoadFromResource ("MonoQuery.Stop"); image.Show (); Button stop = new Button (image); stop.Clicked += new EventHandler (OnStop); stop.Relief = ReliefStyle.None; stop.Sensitive = false; tips.SetTip (stop, "Stop", ""); toolbar.Add (stop); stop.Show (); VSeparator sep = new VSeparator (); toolbar.Add (sep); sep.Show (); model = new ListStore (typeof (string), typeof (DbProviderBase)); providers = new ComboBox (); providers.Model = model; CellRendererText ctext = new CellRendererText (); providers.PackStart (ctext, true); providers.AddAttribute (ctext, "text", 0); toolbar.Add (providers); providers.Show (); SourceLanguagesManager lm = new SourceLanguagesManager (); SourceLanguage lang = lm.GetLanguageFromMimeType ("text/x-sql"); SourceBuffer buf = new SourceBuffer (lang); buf.Highlight = true; sourceView = new SourceView (buf); sourceView.ShowLineNumbers = true; sourceView.Show (); ScrolledWindow scroller = new ScrolledWindow (); scroller.Add (sourceView); scroller.Show (); vbox.PackStart (scroller, true, true, 0); control.Add (vbox); service = (MonoQueryService) ServiceManager.GetService (typeof (MonoQueryService)); changedHandler = (EventHandler) Runtime.DispatchService.GuiDispatch ( new EventHandler (OnProvidersChanged)); service.Providers.Changed += changedHandler; foreach (DbProviderBase p in service.Providers) { model.AppendValues (p.Name, p); } }
public ModelerCanvasWidget(ModelerCanvas owner, modelController controller) { this.Build (); _owner = owner; _controller = controller; VBox mainVbox = new VBox (false, 6); mainVbox.BorderWidth = 6; this.Add(mainVbox); //Create Toolbar Toolbar toolbar = new Toolbar (); toolbar.Name = "toolbar"; toolbar.ShowArrow = true; toolbar.IconSize = Gtk.IconSize.LargeToolbar; toolbar.ToolbarStyle = ToolbarStyle.BothHoriz; toolbar.Sensitive=true; toolbar.Activate(); mainVbox.Add(toolbar); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(mainVbox[toolbar])); w1.Position = 0; w1.Expand = false; w1.Fill = true; //Create SCrollWindow mainScrolledWindow = new ScrolledWindow(); mainScrolledWindow.Activate(); mainScrolledWindow.SetPolicy( Gtk.PolicyType.Always,Gtk.PolicyType.Always); mainScrolledWindow.CanFocus = true; mainScrolledWindow.Name = "mainScrolledWindow"; mainScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); mainVbox.Add(mainScrolledWindow); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(mainVbox[mainScrolledWindow])); w2.Position = 1; w2.Fill=true; w2.Expand=true; //Create Toolbar Buttons //Add New Table buttonNew = new ToolButton(new Gtk.Image (Gtk.Stock.New, IconSize.Button),"Add Table"); buttonNew.Sensitive = true; buttonNew.TooltipMarkup = "Add a new empty table"; buttonNew.IsImportant = true; buttonNew.Clicked += new EventHandler (OnbuttonNewActionActivated); buttonNew.Activate(); buttonNew.Show(); toolbar.Add (buttonNew); //Create a Relationship between two tables buttonRelationship = new ToolButton(new Gtk.Image (Gtk.Stock.New, IconSize.Button),"Relationship"); buttonRelationship.Sensitive = true; buttonRelationship.TooltipMarkup = "Add a new relationship between tables"; buttonRelationship.IsImportant = true; buttonRelationship.Clicked += new EventHandler (OnbuttonRelationshipActivated); buttonRelationship.Activate(); buttonRelationship.Show(); toolbar.Add (buttonRelationship); //Delete Selected Figure(s) buttonDelete = new ToolButton(new Gtk.Image (Gtk.Stock.New, IconSize.Button),"Remove"); buttonDelete.Sensitive = true; buttonDelete.TooltipMarkup = "Remove selected figure(s) from diagram (table or relationship)"; buttonDelete.IsImportant = true; buttonDelete.Clicked += new EventHandler (buttonDeleteRelationshipActivated); buttonDelete.Activate(); buttonDelete.Show(); toolbar.Add (buttonDelete); //Select Active Database comboConnections = new DatabaseConnectionContextComboBox (); selectedConnection = comboConnections.DatabaseConnection; comboConnections.Changed += new EventHandler (ConnectionChanged); ToolItem comboItem = new ToolItem (); comboItem.Child = comboConnections; comboItem.Show(); toolbar.Add (new SeparatorToolItem ()); toolbar.Add (comboItem); //Show all items mainVbox.ShowAll (); }
private Widget CreateCatList() { var scroll = new ScrolledWindow(); var box = new VBox(); scroll.Add(box); var tb = new Toolbar(); tb.Orientation = Orientation.Vertical; tb.ToolbarStyle = ToolbarStyle.BothHoriz; tb.ShowArrow = false; box.Add(tb); allButton = createCatButton(TLauncherIndex.Current.catHash["All"]); tb.Add(allButton); tb.Add(new SeparatorToolItem()); foreach (var entry in TLauncherIndex.Current.Categories) if (!entry.meta) tb.Add(createCatButton(entry)); var noneButton = createCatButton(TLauncherIndex.Current.catHash["None"]); tb.Add(noneButton); var frame = new Frame(); frame.Add(scroll); return frame; }
static void Main() { #if TRACE System.Diagnostics.TextWriterTraceListener listener = new System.Diagnostics.TextWriterTraceListener (System.Console.Out); System.Diagnostics.Trace.Listeners.Add (listener); #endif Application.Init (); #region Packing and layout Window window = new Window ("AspNetEdit Host Sample"); window.SetDefaultSize (1000, 700); window.DeleteEvent += new DeleteEventHandler (window_DeleteEvent); VBox outerBox = new VBox (); window.Add (outerBox); HPaned leftBox = new HPaned (); outerBox.PackEnd (leftBox, true, true, 0); HPaned rightBox = new HPaned (); leftBox.Add2 (rightBox); geckoFrame = new Frame (); geckoFrame.Shadow = ShadowType.In; rightBox.Pack1 (geckoFrame, true, false); #endregion #region Toolbar // * Save/Open Toolbar buttons = new Toolbar (); outerBox.PackStart (buttons, false, false, 0); ToolButton saveButton = new ToolButton (Stock.Save); buttons.Add (saveButton); saveButton.Clicked += new EventHandler (saveButton_Clicked); ToolButton openButton = new ToolButton(Stock.Open); buttons.Add(openButton); openButton.Clicked += new EventHandler(openButton_Clicked); buttons.Add (new SeparatorToolItem()); // * Clipboard ToolButton undoButton = new ToolButton (Stock.Undo); buttons.Add (undoButton); undoButton.Clicked +=new EventHandler (undoButton_Clicked); ToolButton redoButton = new ToolButton (Stock.Redo); buttons.Add (redoButton); redoButton.Clicked += new EventHandler (redoButton_Clicked); ToolButton cutButton = new ToolButton (Stock.Cut); buttons.Add (cutButton); cutButton.Clicked += new EventHandler (cutButton_Clicked); ToolButton copyButton = new ToolButton (Stock.Copy); buttons.Add (copyButton); copyButton.Clicked += new EventHandler (copyButton_Clicked); ToolButton pasteButton = new ToolButton (Stock.Paste); buttons.Add (pasteButton); pasteButton.Clicked += new EventHandler (pasteButton_Clicked); buttons.Add (new SeparatorToolItem()); // * Text style ToolButton boldButton = new ToolButton (Stock.Bold); buttons.Add (boldButton); boldButton.Clicked += new EventHandler (boldButton_Clicked); ToolButton italicButton = new ToolButton (Stock.Italic); buttons.Add (italicButton); italicButton.Clicked += new EventHandler (italicButton_Clicked); ToolButton underlineButton = new ToolButton (Stock.Underline); buttons.Add (underlineButton); underlineButton.Clicked += new EventHandler (underlineButton_Clicked); ToolButton indentButton = new ToolButton (Stock.Indent); buttons.Add (indentButton); indentButton.Clicked += new EventHandler (indentButton_Clicked); ToolButton unindentButton = new ToolButton (Stock.Unindent); buttons.Add (unindentButton); unindentButton.Clicked += new EventHandler (unindentButton_Clicked); buttons.Add (new SeparatorToolItem()); // * Toolbox ToolButton toolboxAddButton = new ToolButton (Stock.Add); buttons.Add (toolboxAddButton); toolboxAddButton.Clicked += new EventHandler (toolboxAddButton_Clicked); #endregion #region Designer services and host //set up the services ServiceContainer services = new ServiceContainer (); services.AddService (typeof (INameCreationService), new NameCreationService ()); services.AddService (typeof (ISelectionService), new SelectionService ()); services.AddService (typeof (IEventBindingService), new EventBindingService (window)); services.AddService (typeof (ITypeResolutionService), new TypeResolutionService ()); ExtenderListService extListServ = new AspNetEdit.Editor.ComponentModel.ExtenderListService (); services.AddService (typeof (IExtenderListService), extListServ); services.AddService (typeof (IExtenderProviderService), extListServ); services.AddService (typeof (ITypeDescriptorFilterService), new TypeDescriptorFilterService ()); toolboxService = new ToolboxService (); services.AddService (typeof (IToolboxService), toolboxService); //create our host host = new DesignerHost(services); host.NewFile(); host.Activate(); #endregion #region Designer UI and panels IRootDesigner rootDesigner = (IRootDesigner) host.GetDesigner (host.RootComponent); RootDesignerView designerView = (RootDesignerView) rootDesigner.GetView (ViewTechnology.Passthrough); geckoFrame.Add (designerView); PropertyGrid p = new PropertyGrid (services); p.WidthRequest = 200; rightBox.Pack2 (p, false, false); Toolbox toolbox = new Toolbox (services); leftBox.Pack1 (toolbox, false, false); toolboxService.PopulateFromAssembly (System.Reflection.Assembly.GetAssembly (typeof (System.Web.UI.Control))); toolboxService.AddToolboxItem (new TextToolboxItem ("<table><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>", "Table"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<div style=\"width: 100px; height: 100px;\"></div>", "Div"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<hr />", "Horizontal Rule"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<select><option></option></select>", "Select"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<img src=\"\" />", "Image"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<textarea cols=\"20\" rows=\"2\"></textarea>", "Textarea"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"hidden\" />", "Input [Hidden]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"radio\" />", "Input [Radio]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"checkbox\" />", "Input [Checkbox]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"password\" />", "Input [Password]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"file\" />", "Input [File]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"text\" />", "Input [Text]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"submit\" value=\"submit\" />", "Input [Submit]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"reset\" value=\"reset\" />", "Input [Reset]"), "Html"); toolboxService.AddToolboxItem (new TextToolboxItem ("<input type=\"button\" value=\"button\" />", "Input [Button]"), "Html"); toolbox.Refresh (); #endregion window.ShowAll (); Application.Run (); }
private void CreateExprBar() { // UrlEntry expr_entry = new Gtk.Entry (); expr_entry.Activated += new EventHandler(on_expr_activate); Gtk.ToolItem expr_item = new Gtk.ToolItem (); expr_item.Expand = true; expr_item.Add (expr_entry); // Toolbar exprbar = new Toolbar (); exprbar.ToolbarStyle = ToolbarStyle.Icons; exprbar.Orientation = Orientation.Horizontal; exprbar.ShowArrow = true; // Toolbar Itens exprbar.Add (expr_item); exprbar.Add (action_expr.CreateToolItem()); }
Toolbar BuildToolbar () { Toolbar buttons = new Toolbar (); // * Clipboard ToolButton undoButton = new ToolButton (Stock.Undo); buttons.Add (undoButton); undoButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Undo); }; ToolButton redoButton = new ToolButton (Stock.Redo); buttons.Add (redoButton); redoButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Redo); }; ToolButton cutButton = new ToolButton (Stock.Cut); buttons.Add (cutButton); cutButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Cut); }; ToolButton copyButton = new ToolButton (Stock.Copy); buttons.Add (copyButton); copyButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Copy); }; ToolButton pasteButton = new ToolButton (Stock.Paste); buttons.Add (pasteButton); pasteButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Paste); }; // * Text style buttons.Add (new SeparatorToolItem()); ToolButton boldButton = new ToolButton (Stock.Bold); buttons.Add (boldButton); boldButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Bold); }; ToolButton italicButton = new ToolButton (Stock.Italic); buttons.Add (italicButton); italicButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Italic); }; ToolButton underlineButton = new ToolButton (Stock.Underline); buttons.Add (underlineButton); underlineButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Underline); }; ToolButton indentButton = new ToolButton (Stock.Indent); buttons.Add (indentButton); indentButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Indent); }; ToolButton unindentButton = new ToolButton (Stock.Unindent); buttons.Add (unindentButton); unindentButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Outdent); }; return buttons; }
public DisplayWindow() : base(WindowType.Toplevel) { MenuBar mb = new MenuBar(); MenuItem mi_file = new MenuItem("File"); Menu m_file = new Menu(); MenuItem mi_file_opendll = new MenuItem("Connect with algorithm library..."); mi_file_opendll.Activated += openLibFile; MenuItem mi_file_openxml = new MenuItem("Open configuration file..."); mi_file_openxml.Activated += openConfigFile; MenuItem mi_file_quit = new MenuItem("Quit"); mi_file_quit.Activated += delegate { Application.Quit(); }; MenuItem mi_edit = new MenuItem("Edit"); Menu m_edit = new Menu(); RadioMenuItem mi_edit_move = new RadioMenuItem("Move nodes"); RadioMenuItem mi_edit_insp = new RadioMenuItem(mi_edit_move, "Inspect node"); MenuItem mi_edit_play = new ImageMenuItem(Stock.MediaPlay, null); MenuItem mi_edit_pause = new ImageMenuItem(Stock.MediaPause, null); mb.Add(mi_file); mi_file.Submenu = m_file; m_file.Add(mi_file_opendll); m_file.Add(mi_file_openxml); m_file.Add(new SeparatorMenuItem()); m_file.Add(mi_file_quit); mi_edit.Submenu = m_edit; m_edit.Add(mi_edit_move); m_edit.Add(mi_edit_insp); m_edit.Add(new SeparatorMenuItem()); m_edit.Add(mi_edit_play); m_edit.Add(mi_edit_pause); mb.Add(mi_edit); Toolbar tb = new Toolbar(); StockItem si; StockManager.Lookup(Stock.MediaPlay, ref si); ToolButton tb_opendll = new ToolButton(Stock.Connect); tb_opendll.Clicked += openLibFile; ToolButton tb_openxml = new ToolButton(Stock.Open); tb_openxml.Clicked += openConfigFile; ToolButton tb_move = new ToggleToolButton(Stock.Preferences); ToolButton tb_insp = new ToggleToolButton(Stock.ZoomIn); ToolButton tb_play = new ToolButton(Stock.MediaPlay); ToolButton tb_pause = new ToolButton(Stock.MediaPause); tb.Add(tb_opendll); tb.Add(tb_openxml); tb.Add(new SeparatorToolItem()); tb.Add(tb_move); tb.Add(tb_insp); tb.Add(new SeparatorToolItem()); tb.Add(tb_play); tb.Add(tb_pause); this.bpsp = new BlueprintParallelStatePainter(); this.bm = new BlueprintMediabar(); this.bm.CurrentChanged += HandleBmhandleCurrentChanged; this.bm.CurrentChanged += this.bpsp.RepaintEdges; this.bs = new BlueprintTabControl(1, 1, 1); this.bs.CurrentChanged += HandleBshandleCurrentChanged; ; vb.PackStart(mb, false, false, 0x00); vb.PackStart(tb, false, false, 0x00); vb.PackStart(this.bpsp, true, true, 0x00); vb.PackStart(this.bm, false, false, 0x00); vb.PackStart(this.bs, false, false, 0x00); this.Title = "Parallel Visualizer"; this.Resize(640, 480); this.Add(vb); this.ShowAll(); }
public SqlQueryView () { stoppedQueries = new List<object> (); vbox = new VBox (false, 6); vbox.BorderWidth = 6; sqlEditor = new SqlEditorWidget (); sqlEditor.TextChanged += new EventHandler (SqlChanged); Toolbar toolbar = new Toolbar (); toolbar.ToolbarStyle = ToolbarStyle.BothHoriz; buttonExecute = new ToolButton ( Services.Resources.GetImage ("md-db-execute", IconSize.SmallToolbar), GettextCatalog.GetString ("Execute") ); buttonStop = new ToolButton ("gtk-stop"); buttonClear = new ToolButton (Services.Resources.GetImage ("gtk-clear", IconSize.Button), GettextCatalog.GetString ("Clear Results")); buttonStop.Sensitive = false; buttonExecute.Sensitive = false; buttonExecute.Clicked += new EventHandler (ExecuteClicked); buttonStop.Clicked += new EventHandler (StopClicked); buttonClear.Clicked += new EventHandler (ClearClicked); comboConnections = new DatabaseConnectionContextComboBox (); selectedConnection = comboConnections.DatabaseConnection; comboConnections.Changed += new EventHandler (ConnectionChanged); buttonExecute.IsImportant = true; ToolItem comboItem = new ToolItem (); comboItem.Child = comboConnections; toolbar.Add (buttonExecute); toolbar.Add (buttonStop); toolbar.Add (buttonClear); toolbar.Add (new SeparatorToolItem ()); toolbar.Add (comboItem); pane = new VPaned (); ScrolledWindow windowStatus = new ScrolledWindow (); status = new TextView (); windowStatus.Add (status); notebook = new Notebook (); notebook.AppendPage (windowStatus, new Label (GettextCatalog.GetString ("Status"))); pane.Pack1 (sqlEditor, true, true); pane.Pack2 (notebook, true, true); vbox.PackStart (toolbar, false, true, 0); vbox.PackStart (pane, true, true, 0); vbox.ShowAll (); notebook.Hide (); }