X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFeatureSelector.h;h=f4166d35b66277c75e66d779677c04a31482f160;hb=ae96acd2d1db0cb0ce8eead22a829bd63aa1105b;hp=4c109a7039fe087bb0a989aaf3917630a603bcb7;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h b/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h index 4c109a703..f4166d35b 100644 --- a/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h @@ -14,7 +14,8 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com // #ifndef ModuleBase_WidgetFeatureSelector_H @@ -67,6 +68,11 @@ Q_OBJECT virtual bool setSelection(QList>& theValues, const bool theToValidate); + /// Fills given container with selection modes if the widget has it + /// \param [out] theModuleSelectionModes module additional modes, -1 means all default modes + /// \param theModes [out] a container of modes + virtual void selectionModes(int& theModuleSelectionModes, QIntList& theModes); + /// Returns list of widget controls /// \return a control list virtual QList getControls() const; @@ -75,9 +81,6 @@ Q_OBJECT /// \param thePrs a selected owner virtual bool setSelectionCustom(const std::shared_ptr& thePrs); - /// The method called when widget is deactivated - virtual void deactivate(); - protected: /// The method called when widget is activated virtual void activateCustom(); @@ -103,9 +106,9 @@ protected: /// \param theDone a state whether the selection is set virtual void updateOnSelectionChanged(const bool theDone); -protected slots: - /// Called on selection changed event - virtual void onSelectionChanged(); +protected: + /// Returns true if envent is processed. + virtual bool processSelection(); //----------- Class members ------------- protected: