Наследование: EditorObjects.Gui.ToolsWindow
Пример #1
0
        public static void Initialize()
        {
            mMenuStrip = new Menu();

            CreateInfoBar();

            mToolsWindow = new ToolsWindow();
            mToolsWindow.HasCloseButton = true;

            mGeometryWindow = new GeometryWindow();
            mGeometryWindow.HasCloseButton = true;

            CreatePropertyGrids();

            #region Scene PropertyGrid

            mScenePropertyGrid = new ScenePropertyGrid(GuiManager.Cursor);
            GuiManager.AddWindow(mScenePropertyGrid);
            mScenePropertyGrid.HasCloseButton = true;
            mScenePropertyGrid.Visible        = false;
            mScenePropertyGrid.ShowPropertyGridOnStrongSelect = true;
            mScenePropertyGrid.UndoInstructions = UndoManager.Instructions;
            #endregion

            #region ShapeCollection PropertyGrid

            CreateShapeCollectionPropertyGrid();

            #endregion

            #region Set type/IObjectDisplayer associations

            PropertyGrid.SetPropertyGridTypeAssociation(typeof(Polygon), typeof(PolygonEditor.Gui.PolygonPropertyGrid));


            #endregion

            EditorData.EditingLogic.NodeNetworkEditorManager.AddNodeNetworkMenus(mMenuStrip);

            GuiManager.ObjectDisplayManager.NewWindowLimitation = NewWindowLimitation.ByRequestingWindow;
        }
Пример #2
0
        public static void Initialize()
        {
            mMenuStrip = new Menu();

            CreateInfoBar();

            mToolsWindow = new ToolsWindow();
            mToolsWindow.HasCloseButton = true;

            mGeometryWindow = new GeometryWindow();
            mGeometryWindow.HasCloseButton = true;

            CreatePropertyGrids();

            #region Scene PropertyGrid

            mScenePropertyGrid = new ScenePropertyGrid(GuiManager.Cursor);
            GuiManager.AddWindow(mScenePropertyGrid);
            mScenePropertyGrid.HasCloseButton = true;
            mScenePropertyGrid.Visible = false;
            mScenePropertyGrid.ShowPropertyGridOnStrongSelect = true;
            mScenePropertyGrid.UndoInstructions = UndoManager.Instructions;
            #endregion

            #region ShapeCollection PropertyGrid

            CreateShapeCollectionPropertyGrid();

            #endregion

            #region Set type/IObjectDisplayer associations

            PropertyGrid.SetPropertyGridTypeAssociation(typeof(Polygon), typeof(PolygonEditor.Gui.PolygonPropertyGrid));


            #endregion

            EditorData.EditingLogic.NodeNetworkEditorManager.AddNodeNetworkMenus(mMenuStrip);

			GuiManager.ObjectDisplayManager.NewWindowLimitation = NewWindowLimitation.ByRequestingWindow;
        }