diff --git a/src/Mod/CAM/App/Command.h b/src/Mod/CAM/App/Command.h index 0bd176d6a6..6c7cc3c52f 100644 --- a/src/Mod/CAM/App/Command.h +++ b/src/Mod/CAM/App/Command.h @@ -73,20 +73,24 @@ public: void scaleBy(double factor); // scales the receiver - use for imperial/metric conversions // annotation methods - void setAnnotation(const std::string& key, - const std::string& value); // sets a string annotation + void setAnnotation( + const std::string& key, + const std::string& value + ); // sets a string annotation void setAnnotation(const std::string& key, double value); // sets a numeric annotation std::string getAnnotation(const std::string& key) const; // gets an annotation value as string std::string getAnnotationString(const std::string& key) const; // gets string annotation - double getAnnotationDouble(const std::string& key, - double fallback = 0.0) const; // gets numeric annotation - std::variant - getAnnotationValue(const std::string& key) const; // gets raw annotation value - bool hasAnnotation(const std::string& key) const; // checks if annotation exists - Command& - setAnnotations(const std::string& annotationString); // sets annotations from string and - // returns reference for chaining + double getAnnotationDouble( + const std::string& key, + double fallback = 0.0 + ) const; // gets numeric annotation + std::variant getAnnotationValue( + const std::string& key + ) const; // gets raw annotation value + bool hasAnnotation(const std::string& key) const; // checks if annotation exists + Command& setAnnotations(const std::string& annotationString); // sets annotations from string and + // returns reference for chaining // this assumes the name is upper case inline double getParam(const std::string& name, double fallback = 0.0) const diff --git a/src/Mod/CAM/Path/Op/Gui/Slot.py b/src/Mod/CAM/Path/Op/Gui/Slot.py index 346874f0db..a8faecf5fb 100644 --- a/src/Mod/CAM/Path/Op/Gui/Slot.py +++ b/src/Mod/CAM/Path/Op/Gui/Slot.py @@ -280,7 +280,14 @@ Command = PathOpGui.SetupOperation( "CAM_Slot", QtCore.QT_TRANSLATE_NOOP("CAM_Slot", "Slot"), QtCore.QT_TRANSLATE_NOOP( - "CAM_Slot", "Create a Slot operation from selected geometry or custom points." + "CAM_Slot", + "Create a single horizontal slot between two points." + "\n\nPoints can be specified through selected geometry or custom points." + "\nAllowed selection only from one model:" + "\n - two vertexes," + "\n - one or two edges," + "\n - one horizontal or vertical face," + "\n - one or two vertical faces.", ), PathSlot.SetupProperties, )