Salome HOME
Debugging Translation feature.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetAction.h
index 1e801b7e23c8994474ea39eb1e5b6bbadadef13d..f65e1d83ada64656252b66cd8a9107c50bd7faa2 100755 (executable)
@@ -29,10 +29,24 @@ Q_OBJECT
 
   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