Sketcher: Fixes #13181
This commit is contained in:
@@ -111,6 +111,8 @@ CmdSketcherToggleConstruction::CmdSketcherToggleConstruction()
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CompCreateRegularPolygon");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CreateBSpline");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CreatePeriodicBSpline");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CreateBSplineByInterpolation");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CreatePeriodicBSplineByInterpolation");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CompCreateBSpline");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_CarbonCopy");
|
||||
rcCmdMgr.addCommandMode("ToggleConstruction", "Sketcher_ToggleConstruction");
|
||||
|
||||
@@ -1049,9 +1049,9 @@ CmdSketcherCreatePeriodicBSplineByInterpolation::CmdSketcherCreatePeriodicBSplin
|
||||
sMenuText = QT_TR_NOOP("Create periodic B-spline by knots");
|
||||
sToolTipText =
|
||||
QT_TR_NOOP("Create a periodic B-spline by knots, i.e. by interpolation, in the sketch.");
|
||||
sWhatsThis = "Sketcher_Create_Periodic_BSplineByInterpolation";
|
||||
sWhatsThis = "Sketcher_CreatePeriodicBSplineByInterpolation";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Sketcher_Create_Periodic_BSplineByInterpolation";
|
||||
sPixmap = "Sketcher_CreatePeriodicBSplineByInterpolation";
|
||||
sAccel = "G, B, O";
|
||||
eType = ForEdit;
|
||||
}
|
||||
@@ -1139,7 +1139,7 @@ Gui::Action* CmdSketcherCompCreateBSpline::createAction()
|
||||
|
||||
QAction* periodicbsplinebyknot = pcAction->addAction(QString());
|
||||
periodicbsplinebyknot->setIcon(
|
||||
Gui::BitmapFactory().iconFromTheme("Sketcher_Create_Periodic_BSplineByInterpolation"));
|
||||
Gui::BitmapFactory().iconFromTheme("Sketcher_CreatePeriodicBSplineByInterpolation"));
|
||||
|
||||
_pcAction = pcAction;
|
||||
languageChange();
|
||||
@@ -1168,7 +1168,7 @@ void CmdSketcherCompCreateBSpline::updateAction(int mode)
|
||||
a[2]->setIcon(
|
||||
Gui::BitmapFactory().iconFromTheme("Sketcher_CreateBSplineByInterpolation"));
|
||||
a[3]->setIcon(Gui::BitmapFactory().iconFromTheme(
|
||||
"Sketcher_Create_Periodic_BSplineByInterpolation"));
|
||||
"Sketcher_CreatePeriodicBSplineByInterpolation"));
|
||||
getAction()->setIcon(a[index]->icon());
|
||||
break;
|
||||
case GeometryCreationMode::Construction:
|
||||
@@ -1178,7 +1178,7 @@ void CmdSketcherCompCreateBSpline::updateAction(int mode)
|
||||
a[2]->setIcon(
|
||||
Gui::BitmapFactory().iconFromTheme("Sketcher_CreateBSplineByInterpolation_Constr"));
|
||||
a[3]->setIcon(Gui::BitmapFactory().iconFromTheme(
|
||||
"Sketcher_Create_Periodic_BSplineByInterpolation_Constr"));
|
||||
"Sketcher_CreatePeriodicBSplineByInterpolation_Constr"));
|
||||
getAction()->setIcon(a[index]->icon());
|
||||
break;
|
||||
}
|
||||
@@ -1219,13 +1219,13 @@ void CmdSketcherCompCreateBSpline::languageChange()
|
||||
"Create a B-spline by knots"));
|
||||
QAction* periodicbsplinebyknot = a[3];
|
||||
periodicbsplinebyknot->setText(
|
||||
QApplication::translate("Sketcher_Create_Periodic_BSplineByInterpolation",
|
||||
QApplication::translate("Sketcher_CreatePeriodicBSplineByInterpolation",
|
||||
"Periodic B-spline by knots"));
|
||||
periodicbsplinebyknot->setToolTip(
|
||||
QApplication::translate("Sketcher_Create_Periodic_BSplineByInterpolation",
|
||||
QApplication::translate("Sketcher_CreatePeriodicBSplineByInterpolation",
|
||||
"Create a periodic B-spline by knots"));
|
||||
periodicbsplinebyknot->setStatusTip(
|
||||
QApplication::translate("Sketcher_Create_Periodic_BSplineByInterpolation",
|
||||
QApplication::translate("Sketcher_CreatePeriodicBSplineByInterpolation",
|
||||
"Create a periodic B-spline by knots"));
|
||||
}
|
||||
|
||||
|
||||
@@ -138,8 +138,8 @@
|
||||
<file>icons/geometry/Sketcher_CreateBSpline_Constr.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreateBSplineByInterpolation.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreateBSplineByInterpolation_Constr.svg</file>
|
||||
<file>icons/geometry/Sketcher_Create_Periodic_BSplineByInterpolation.svg</file>
|
||||
<file>icons/geometry/Sketcher_Create_Periodic_BSplineByInterpolation_Constr.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreatePeriodicBSplineByInterpolation.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreatePeriodicBSplineByInterpolation_Constr.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreateChamfer.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreateCircle.svg</file>
|
||||
<file>icons/geometry/Sketcher_CreateCircle_Constr.svg</file>
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user