Пример #1
0
 public NoteBook(CanvasArea canvasArea)
     : this()
 {
     _canvasArea = canvasArea;
 }
Пример #2
0
        // Builds the handlers for the dettachable widgets
        private void BuildProperties()
        {
            System.Console.WriteLine ("BuildProperties");
            _canvasArea = new Widgets.CanvasArea ();
            _mainVPaned.Add1 (_canvasArea);
            _propertiesNotebook = new Notebook ();
            _mainVPaned.Add2 (_propertiesNotebook);
            _tree = new Widgets.Tree();
            _scrolledwindowTree.Add(_tree);
            _umlPropertiesTab = new Widgets.UMLPropertiesTab();
            // Push tab into a scrolledwindow
            Viewport propertiesViewport = new Viewport ();
            propertiesViewport.ShadowType = ShadowType.None;
            propertiesViewport.BorderWidth = 3;
            propertiesViewport.Add (_umlPropertiesTab);
            _propertiesScroll = new ScrolledWindow ();
            _propertiesScroll.HscrollbarPolicy = PolicyType.Automatic;
            _propertiesScroll.VscrollbarPolicy = PolicyType.Automatic;
            _propertiesScroll.ShadowType = ShadowType.In;
            _propertiesScroll.BorderWidth = 3;
            _propertiesScroll.Add (propertiesViewport);

            _propertiesNotebook.AppendPage(
                _propertiesScroll,
                new Gtk.Label (GettextCatalog.GetString ("UML Properties"))
            );
            _hub = Widgets.Hub.Instance;
            _hub.AddView (_tree);
            _hub.AddView (_canvasArea.NoteBook);
            _hub.AddView (_umlPropertiesTab);
        }