virtual ~ModuleBase_WidgetAction();
+ /// Do not accept focus, returns false
+ virtual bool focusTo();
+
/// Returns list of widget controls
/// \return a control list
virtual QList<QWidget*> getControls() const;
+ /// \return Context for translation
+ virtual std::string context() const {
+ std::string aContext = myFeatureId;
+ if(!aContext.empty() && !myActionID.empty()) {
+ aContext += ":";
+ }
+ aContext += myActionID;
+
+ return aContext;
+ }
+
protected:
/// Do nothing
/// \return True in success