-void XGUI_MainWindow::showPropertyPanel()
-{
- QAction* aViewAct = myPropertyPanelDock->toggleViewAction();
- //<! Restore ability to close panel from the window's menu
- aViewAct->setEnabled(true);
- myPropertyPanelDock->show();
- myPropertyPanelDock->raise();
-}
-
-void XGUI_MainWindow::hidePropertyPanel()
-{
- QAction* aViewAct = myPropertyPanelDock->toggleViewAction();
- //<! Do not allow to show empty property panel
- aViewAct->setEnabled(false);
- myPropertyPanelDock->hide();
-}
-
-/*
- * Creates dock widgets, places them in corresponding area
- * and tabifies if necessary.
- */
-void XGUI_MainWindow::createDockWidgets()
-{
- QDockWidget* aObjDock = createObjectBrowser();
- addDockWidget(Qt::LeftDockWidgetArea, aObjDock);
- myPropertyPanelDock = createPropertyPanel();
- addDockWidget(Qt::LeftDockWidgetArea, myPropertyPanelDock);
- hidePropertyPanel(); //<! Invisible by default
- hideObjectBrowser();
- tabifyDockWidget(aObjDock, myPropertyPanelDock);
-}
-
-
-QDockWidget* XGUI_MainWindow::createPropertyPanel()
-{
- QDockWidget* aPropPanel = new QDockWidget(this);
- aPropPanel->setWindowTitle(tr("Property Panel"));
- aPropPanel->setObjectName(XGUI::PROP_PANEL);
-
- QWidget* aContent = new QWidget(aPropPanel);
- QVBoxLayout* aMainLay = new QVBoxLayout(aContent);
- aMainLay->setContentsMargins(3, 3, 3, 3);
- aPropPanel->setWidget(aContent);