Esempio n. 1
0
        public void ReplaceView(int position, IShellDocumentViewItem shellView)
        {
            var newView = (GtkShellDocumentViewItem)shellView;

            newView.Show();
            currentContainer.ReplaceView(position, newView);
            tabstrip.ReplaceTab(position, CreateTab(newView));
        }
Esempio n. 2
0
        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;
        }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
 void IWorkbenchWindow.SetRootView(IShellDocumentViewItem view)
 {
     RootView = (MockShellDocumentView)view;
 }
Esempio n. 6
0
 void IWorkbenchWindow.SetRootView(IShellDocumentViewItem view)
 {
     RootView = (MockShellDocumentView)view;
     rootAssigned.TrySetResult(true);
 }