X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_PagedContainer.cpp;h=d069b57f604a783df4b4960bf4a91e1dff638657;hb=69ab96aa2914d1a7d0032b682b968c5f7a791927;hp=43fb4de2233308b7a25717dea526759092753668;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index 43fb4de22..d069b57f6 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -13,15 +13,17 @@ #include #include -#include +#include #include -ModuleBase_PagedContainer::ModuleBase_PagedContainer(QWidget* theParent, const Config_WidgetAPI* theData, - const std::string& theParentId) -: ModuleBase_ModelWidget(theParent, theData, theParentId), +ModuleBase_PagedContainer::ModuleBase_PagedContainer(QWidget* theParent, const Config_WidgetAPI* theData) +: ModuleBase_ModelWidget(theParent, theData), myIsFocusOnCurrentPage(false) { + // it is not obligatory to be ignored when property panel tries to activate next active widget + // but if focus is moved to this control, it can accept it. + myIsObligatory = false; } ModuleBase_PagedContainer::~ModuleBase_PagedContainer() @@ -29,7 +31,8 @@ ModuleBase_PagedContainer::~ModuleBase_PagedContainer() } int ModuleBase_PagedContainer::addPage(ModuleBase_PageBase* thePage, - const QString& theName, const QString& theCaseId) + const QString& theName, const QString& theCaseId, + const QPixmap& theIcon ) { if (!myPages.count()) { setDefaultValue(theCaseId.toStdString()); @@ -69,7 +72,7 @@ void ModuleBase_PagedContainer::enableFocusProcessing() myIsFocusOnCurrentPage = true; } -bool ModuleBase_PagedContainer::restoreValue() +bool ModuleBase_PagedContainer::restoreValueCustom() { // A rare case when plugin was not loaded. if(!myFeature) @@ -90,7 +93,7 @@ void ModuleBase_PagedContainer::activateCustom() focusTo(); } -bool ModuleBase_PagedContainer::storeValueCustom() const +bool ModuleBase_PagedContainer::storeValueCustom() { // A rare case when plugin was not loaded. if(!myFeature)