X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_PagedContainer.cpp;h=42d48907f6a4cead710bdbf9253e6de3be06e751;hb=423f6b0a08a86d5e47115b87603cddeae4468b49;hp=b4e8b5690604a1e99bf607ec79cbb0a8b704d06d;hpb=643eedadb4ba0c91fe67878be0bb94d1bcca922c;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PagedContainer.cpp b/src/ModuleBase/ModuleBase_PagedContainer.cpp index b4e8b5690..42d48907f 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.cpp +++ b/src/ModuleBase/ModuleBase_PagedContainer.cpp @@ -1,3 +1,4 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D /* * ModuleBase_PagedContainer.cpp * @@ -17,11 +18,14 @@ #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 +33,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 +74,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 +95,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)