X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFeatureSelector.h;h=4534c9bc9c8c169ebd6d18163d59d2171f00dfc4;hb=11e506a02bbd919d5977b3a25cd4cd84ba54fda4;hp=39014f247fb8b33510fe6cffaed3eeab44ff2e3e;hpb=f475d232b555ee699df9c314eff2a870b0ab8404;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h b/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h index 39014f247..4534c9bc9 100644 --- a/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFeatureSelector.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// 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 @@ -68,6 +67,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; @@ -76,13 +80,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(); - - /// Processes Selection action. - virtual bool processAction(ModuleBase_ActionType theActionType, - const ActionParamPtr& theParam = ActionParamPtr()); - protected: /// The method called when widget is activated virtual void activateCustom(); @@ -109,8 +106,8 @@ protected: virtual void updateOnSelectionChanged(const bool theDone); protected: - /// Called on selection changed event - virtual void onSelectionChanged(); + /// Returns true if envent is processed. + virtual bool processSelection(); //----------- Class members ------------- protected: