X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_MainWindow.cpp;h=fdaaf16f0e00e6524f6c4c581b35cda2f2d6666e;hb=ff8ca280553ca5b69794492d5c1c4b60b180959e;hp=25516792e88563d54928306cbc6864767f5c9de3;hpb=309c6241144204b2a2c1cf23cb68f037833fb983;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_MainWindow.cpp b/src/XGUI/XGUI_MainWindow.cpp index 25516792e..fdaaf16f0 100644 --- a/src/XGUI/XGUI_MainWindow.cpp +++ b/src/XGUI/XGUI_MainWindow.cpp @@ -121,11 +121,17 @@ void XGUI_MainWindow::createDockWidgets() tabifyDockWidget(aObjDock, myPropertyPanelDock); } +void XGUI_MainWindow::setPropertyPannelTitle(const QString& theTitle) +{ + myPropertyPanelDock->setWindowTitle(theTitle); +} + QDockWidget* XGUI_MainWindow::createPropertyPanel() { QDockWidget* aPropPanel = new QDockWidget(this); aPropPanel->setWindowTitle(tr("Property Panel")); + QAction* aViewAct = aPropPanel->toggleViewAction(); aPropPanel->setObjectName(XGUI::PROP_PANEL); QWidget* aContent = new QWidget(aPropPanel); @@ -147,15 +153,18 @@ QDockWidget* XGUI_MainWindow::createPropertyPanel() QPushButton* aBtn = new QPushButton(QIcon(":pictures/button_help.png"), "", aFrm); aBtn->setFlat(true); + //connect(aBtn, SIGNAL(clicked()), this, SIGNAL(propertyHelpPressed())); aBtnLay->addWidget(aBtn); aBtnLay->addStretch(1); aBtn = new QPushButton(QIcon(":pictures/button_ok.png"), "", aFrm); aBtn->setObjectName(XGUI::PROP_PANEL_OK); aBtn->setFlat(true); + //connect(aBtn, SIGNAL(clicked()), this, SIGNAL(propertyOkPressed())); aBtnLay->addWidget(aBtn); aBtn = new QPushButton(QIcon(":pictures/button_cancel.png"), "", aFrm); aBtn->setObjectName(XGUI::PROP_PANEL_CANCEL); aBtn->setFlat(true); + //connect(aBtn, SIGNAL(clicked()), this, SIGNAL(propertyClosePressed())); aBtnLay->addWidget(aBtn); return aPropPanel;