public void ReplaceView(int position, IShellDocumentViewItem shellView) { var newView = (GtkShellDocumentViewItem)shellView; newView.Show(); currentContainer.ReplaceView(position, newView); tabstrip.ReplaceTab(position, CreateTab(newView)); }
public void InsertView(int position, IShellDocumentViewItem shellView) { var widget = (GtkShellDocumentViewItem)shellView; widget.Show(); currentContainer.InsertView(position, widget); tabstrip.InsertTab(position, CreateTab((GtkShellDocumentViewItem)shellView)); UpdateTabstrip(); }
public void ReplaceView(int position, IShellDocumentViewItem shellView) { var oldView = currentContainer.GetChild(position); var newView = (GtkShellDocumentViewItem)shellView; newView.ParentContainer = this; newView.Show(); currentContainer.ReplaceView(position, newView); tabstrip.ReplaceTab(position, CreateTab(newView)); UpdateTabstrip(); oldView.ParentContainer = null; }
public void SetRootView(IShellDocumentViewItem view) { this.view = (GtkShellDocumentViewItem)view; if (Child != null) { Remove(Child); } if (view != null) { var widget = (Gtk.Widget)view; widget.Show(); Add(widget); } }
void IWorkbenchWindow.SetRootView(IShellDocumentViewItem view) { RootView = (MockShellDocumentView)view; }
void IWorkbenchWindow.SetRootView(IShellDocumentViewItem view) { RootView = (MockShellDocumentView)view; rootAssigned.TrySetResult(true); }