CAM: Slot operation - Tooltip - single slot (#25087)

* CAM: Slot tooltip

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: sliptonic <shopinthewoods@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
tarman3
2025-11-15 01:25:14 +02:00
committed by GitHub
parent c422404020
commit 00a4de14e7
2 changed files with 22 additions and 11 deletions

View File

@@ -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<std::string, double>
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<std::string, double> 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

View File

@@ -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,
)