X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFeature.h;h=ec74136542e54c80890f2274e86c4d5d3f7a8f30;hb=6538b6539abf93cf24183c7cfe8a5800a464178f;hp=9320fb6965e2f3fb8adc6ec2f8174bbae352c271;hpb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;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