Exemplo n.º 1
0
        public DockWindow() : base(Gtk.WindowType.Toplevel)
        {
            allWindows.Add(this);

            notebook = new DockNotebook();
            notebook.NavigationButtonsVisible = false;
            Child = new DockNotebookContainer(notebook);
            notebook.InitSize();
        }
Exemplo n.º 2
0
		public DockWindow () : base (Gtk.WindowType.Toplevel)
		{
			allWindows.Add (this);

			notebook = new DockNotebook ();
			notebook.NavigationButtonsVisible = false;
			Child = new DockNotebookContainer (notebook);
			notebook.InitSize ();
		}
Exemplo n.º 3
0
		public void Initialize (DockFrame workspace, Menu padMenu)
		{
            var tab = new DockNotebook () {
                NavigationButtonsVisible = false
            };

            NotebookContainer = new DockNotebookContainer (tab, true);

            tab.InitSize ();

            var canvas_dock = workspace.AddItem ("Canvas");
            canvas_dock.Behavior = DockItemBehavior.Locked;
            canvas_dock.Expand = true;

            canvas_dock.DrawFrame = false;
            canvas_dock.Label = Catalog.GetString ("Canvas");
            canvas_dock.Content = NotebookContainer;
        }
Exemplo n.º 4
0
        DockNotebook Insert(SdiWorkspaceWindow window, Action <DockNotebookContainer> callback)
        {
            var newNotebook = new DockNotebook();

            newNotebook.NavigationButtonsVisible = false;
            newNotebook.InitSize();
            var newContainer = new DockNotebookContainer(newNotebook);

            newNotebook.PageRemoved += HandlePageRemoved;

            if (window != null)
            {
                var newTab = newNotebook.AddTab(window);
                window.SetDockNotebook(newNotebook, newTab);
            }
            Remove(Child);

            callback(newContainer);

            tabControl.InitSize();
            ShowAll();
            return(newNotebook);
        }
Exemplo n.º 5
0
		DockNotebook Insert (SdiWorkspaceWindow window, Action<DockNotebookContainer> callback)
		{
			var newNotebook = new DockNotebook ();

			newNotebook.NavigationButtonsVisible = false;
			newNotebook.InitSize ();
			var newContainer = new DockNotebookContainer (newNotebook);
			newNotebook.PageRemoved += HandlePageRemoved;

			if (window != null) {
				var newTab = newNotebook.AddTab (window);
				window.SetDockNotebook (newNotebook, newTab);
			}
			Remove (Child);

			callback (newContainer);

			tabControl.InitSize ();
			ShowAll ();
			return newNotebook;
		}