X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFeature.h;h=ec74136542e54c80890f2274e86c4d5d3f7a8f30;hb=8f56432d03ce0cbce36d2190c0afc83f3f781f72;hp=9320fb6965e2f3fb8adc6ec2f8174bbae352c271;hpb=8dc74f82810d5f597b78633b457efb0ef4f89f9f;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFeature.h b/src/ModuleBase/ModuleBase_WidgetFeature.h index 9320fb696..ec7413654 100644 --- a/src/ModuleBase/ModuleBase_WidgetFeature.h +++ b/src/ModuleBase/ModuleBase_WidgetFeature.h @@ -16,6 +16,7 @@ class ModelAPI_Feature; class QWidget; class QLabel; class QLineEdit; +class QToolButton; /**\class ModuleBase_WidgetFeature * \ingroup GUI @@ -52,6 +53,8 @@ Q_OBJECT /// Returns list of widget controls /// \return a control list virtual QList getControls() const; + /// Defines if it is supposed that the widget should interact with the viewer. + virtual bool isViewerSelector() { return true; } protected: /// Fill the widget values by given point @@ -80,9 +83,11 @@ Q_OBJECT return myObjectKinds; } + protected: ObjectPtr myObject; ///< the current widget feature QStringList myObjectKinds; ///< the kinds of possible features + private: QWidget* myContainer; /// the parent top control QLabel* myLabel; /// the editor information label QLineEdit* myEditor; ///< the feature editor to visualize the feature name