+ /// 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
+ /// \param thePoint the point
+ /// \return the boolean result of the feature set
+ bool setObject(const ObjectPtr& theObject, bool theSendEvent = true);
+
+ /// Returns current widget feature
+ /// \return the feature
+ const ObjectPtr object() const
+ {
+ return myObject;
+ }
+
+ /// Returns the widget editor
+ /// \return the editor
+ QLineEdit* editor() const
+ {
+ return myEditor;
+ }
+
+ /// Returns the possible feature kinds
+ /// \return the list of kinds
+ const QStringList& featureKinds() const
+ {
+ return myObjectKinds;
+ }
+
+ protected:
+ ObjectPtr myObject; ///< the current widget feature
+ QStringList myObjectKinds; ///< the kinds of possible features