TechDraw: Fix capitalization of 2D and 3D

This commit is contained in:
hasecilu
2024-08-18 19:11:06 -06:00
parent 33cd969280
commit 66e81e866b
6 changed files with 15 additions and 15 deletions

View File

@@ -305,7 +305,7 @@ def p_part(p):
def p_2d_point(p):
'2d_point : OSQUARE NUMBER COMMA NUMBER ESQUARE'
global points_list
if printverbose: print("2d Point")
if printverbose: print("2D Point")
p[0] = [float(p[2]), float(p[4])]

View File

@@ -2106,7 +2106,7 @@ void execExtent(Gui::Command* cmd, const std::string& dimType)
if (!ref.getSubName().empty()) {
QMessageBox::warning(Gui::getMainWindow(),
QObject::tr("Incorrect selection"),
QObject::tr("Selection contains both 2d and 3d geometry"));
QObject::tr("Selection contains both 2D and 3D geometry"));
return;
}
}
@@ -2131,7 +2131,7 @@ void execExtent(Gui::Command* cmd, const std::string& dimType)
if (geometryRefs2d == TechDraw::isInvalid) {
QMessageBox::warning(Gui::getMainWindow(),
QObject::tr("Incorrect Selection"),
QObject::tr("Can not make 2d extent dimension from selection"));
QObject::tr("Can not make 2D extent dimension from selection"));
return;
}
@@ -2146,7 +2146,7 @@ void execExtent(Gui::Command* cmd, const std::string& dimType)
if (geometryRefs3d == isInvalid) {
QMessageBox::warning(Gui::getMainWindow(),
QObject::tr("Incorrect Selection"),
QObject::tr("Can not make 3d extent dimension from selection"));
QObject::tr("Can not make 3D extent dimension from selection"));
return;
}
}

View File

@@ -847,10 +847,10 @@ for ProjectionGroups</string>
</font>
</property>
<property name="toolTip">
<string>If checked, the 3d camera direction (or normal of a selected face) will be used as the view direction. If not checked, Views will be created as Front Views.</string>
<string>If checked, the 3D camera direction (or normal of a selected face) will be used as the view direction. If not checked, Views will be created as Front Views.</string>
</property>
<property name="text">
<string>Use 3d Camera Direction</string>
<string>Use 3D Camera Direction</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>UseCameraDirection</cstring>

View File

@@ -96,7 +96,7 @@
<item row="5" column="0">
<widget class="QCheckBox" name="cbUse3d">
<property name="text">
<string>Use 3d Background</string>
<string>Use 3D Background</string>
</property>
<property name="autoExclusive">
<bool>true</bool>

View File

@@ -58,10 +58,10 @@
<item row="1" column="0">
<widget class="QRadioButton" name="rb2d1">
<property name="toolTip">
<string>Treat the center point as a 2d point within the parent View. Z coordinate is ignored.</string>
<string>Treat the center point as a 2D point within the parent View. Z coordinate is ignored.</string>
</property>
<property name="text">
<string>2d Point</string>
<string>2D Point</string>
</property>
<property name="checked">
<bool>true</bool>
@@ -74,10 +74,10 @@
<item row="1" column="1">
<widget class="QRadioButton" name="rb3d1">
<property name="toolTip">
<string>Treat the center point as a 3d point and project it onto the parent View.</string>
<string>Treat the center point as a 3D point and project it onto the parent View.</string>
</property>
<property name="text">
<string>3d Point</string>
<string>3D Point</string>
</property>
<property name="autoExclusive">
<bool>true</bool>

View File

@@ -58,7 +58,7 @@
<item row="0" column="0">
<widget class="QRadioButton" name="rb2d1">
<property name="text">
<string>2d Point</string>
<string>2D Point</string>
</property>
<property name="checked">
<bool>true</bool>
@@ -74,7 +74,7 @@
<item row="0" column="1">
<widget class="QRadioButton" name="rb3d1">
<property name="text">
<string>3d Point</string>
<string>3D Point</string>
</property>
<property name="autoExclusive">
<bool>true</bool>
@@ -137,7 +137,7 @@
<item row="0" column="0">
<widget class="QRadioButton" name="rb2d2">
<property name="text">
<string>2d Point</string>
<string>2D Point</string>
</property>
<property name="checked">
<bool>true</bool>
@@ -153,7 +153,7 @@
<item row="0" column="1">
<widget class="QRadioButton" name="rb3d2">
<property name="text">
<string>3d Point</string>
<string>3D Point</string>
</property>
<property name="autoExclusive">
<bool>true</bool>