X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_PropertyPanel.cpp;h=c3d200d41ae5f130f517a4802598062eafcd772e;hb=be7d83df0061448606f62fcb370f59e2617557d1;hp=b94bb1903f708438fc9b5d236f214a084930b816;hpb=43038cf5895f661133b3a21176d80a97d67c357e;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index b94bb1903..c3d200d41 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + /* * XGUI_PropertyPanel.cpp * @@ -77,6 +79,7 @@ void XGUI_PropertyPanel::cleanContent() myWidgets.clear(); qDeleteAll(myCustomWidget->children()); myActiveWidget = NULL; + setWindowTitle(tr("Property Panel")); } void XGUI_PropertyPanel::setModelWidgets(const QList& theWidgets) @@ -218,3 +221,29 @@ void XGUI_PropertyPanel::activateWidget(ModuleBase_ModelWidget* theWidget) else if (!isEditingMode()) emit noMoreWidgets(); } + +void XGUI_PropertyPanel::setOkEnabled(bool theEnabled) +{ + QPushButton* anOkBtn = findChild(PROP_PANEL_OK); + anOkBtn->setEnabled(theEnabled); +} + +bool XGUI_PropertyPanel::isOkEnabled() const +{ + QPushButton* anOkBtn = findChild(PROP_PANEL_OK); + return anOkBtn->isEnabled(); +} + +void XGUI_PropertyPanel::setCancelEnabled(bool theEnabled) +{ + QPushButton* anCancelBtn = findChild(PROP_PANEL_CANCEL); + anCancelBtn->setEnabled(theEnabled); +} + +bool XGUI_PropertyPanel::isCancelEnabled() const +{ + QPushButton* anCancelBtn = findChild(PROP_PANEL_CANCEL); + return anCancelBtn->isEnabled(); +} + +