committed by
Kacper Donat
parent
be0c0e7a74
commit
bbfbb6e059
@@ -82,7 +82,7 @@ PyMOD_INIT_FUNC(TechDraw)
|
||||
PyMOD_Return(nullptr);
|
||||
}
|
||||
PyObject* mod = TechDraw::initModule();
|
||||
Base::Console().log("Loading TechDraw module... done\n");
|
||||
Base::Console().log("Loading TechDraw module… done\n");
|
||||
|
||||
TechDraw::DrawPage ::init();
|
||||
TechDraw::DrawView ::init();
|
||||
|
||||
@@ -29,13 +29,13 @@ namespace TechDraw {
|
||||
|
||||
const int ArrowPropEnum::ArrowCount = 8;
|
||||
const char* ArrowPropEnum::ArrowTypeEnums[]= {
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled Arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open Arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Tick"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Dot"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open Circle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open circle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Fork"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled Triangle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled triangle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "None"),
|
||||
nullptr};
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ PyObject *CenterLinePy::PyMake(struct _typeobject *, PyObject *, PyObject *) //
|
||||
{
|
||||
// never create such objects with the constructor
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"You cannot create an instance of the abstract class 'CenterLine'.");
|
||||
"Cannot create an instance of the abstract class 'CenterLine'.");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -111,18 +111,18 @@ PROPERTY_SOURCE(TechDraw::DrawBrokenView, TechDraw::DrawViewPart)
|
||||
|
||||
DrawBrokenView::DrawBrokenView()
|
||||
{
|
||||
static const char* sgroup = "Broken View";
|
||||
static const char* sgroup = "Broken view";
|
||||
constexpr double DefaultGapSizeMm{10.0};
|
||||
|
||||
ADD_PROPERTY_TYPE(Breaks, (nullptr), sgroup, App::Prop_None,
|
||||
"Objects in the 3d view that define the start/end points and direction of breaks in this view.");
|
||||
"Objects in the 3D view that define the start/end points and direction of breaks in this view.");
|
||||
Breaks.setScope(App::LinkScope::Global);
|
||||
Breaks.setAllowExternal(true);
|
||||
ADD_PROPERTY_TYPE(Gap,
|
||||
(DefaultGapSizeMm),
|
||||
sgroup,
|
||||
App::Prop_None,
|
||||
"The separation distance for breaks in this view (unscaled 3d length).");
|
||||
"The separation distance for breaks in this view (unscaled 3D length).");
|
||||
}
|
||||
|
||||
|
||||
@@ -557,7 +557,7 @@ std::pair<Base::Vector3d, Base::Vector3d> DrawBrokenView::breakBoundsFromEdge(co
|
||||
}
|
||||
|
||||
if (!DU::fpCompare(fabs(direction.Dot(stdY)), 1.0, EWTOLERANCE) ) {
|
||||
Base::Console().message("DBV::breakBoundsFromEdge - direction is not X or Y\n");
|
||||
Base::Console().message("DBV::breakBoundsFromEdge - direction is neither X nor Y\n");
|
||||
// TODO: throw? return nonsense?
|
||||
}
|
||||
|
||||
|
||||
@@ -508,7 +508,7 @@ int DrawProjGroup::removeProjection(const char* viewProjType)
|
||||
// TODO: shouldn't be able to delete "Front" unless deleting whole group
|
||||
if (checkViewProjType(viewProjType)) {
|
||||
if (!hasProjection(viewProjType)) {
|
||||
throw Base::RuntimeError("The projection doesn't exist in the group");
|
||||
throw Base::RuntimeError("The projection does not exist in the group");
|
||||
}
|
||||
|
||||
// Iterate through the child views and find the projection type
|
||||
|
||||
@@ -206,7 +206,7 @@ bool DrawSVGTemplate::getTemplateDocument(std::string sourceFile, QDomDocument&
|
||||
}
|
||||
QFile templateFile(QString::fromStdString(sourceFile));
|
||||
if (!templateFile.open(QIODevice::ReadOnly)) {
|
||||
Base::Console().error("DrawSVGTemplate::processTemplate can't read embedded template %s!\n", PageResult.getValue());
|
||||
Base::Console().error("DrawSVGTemplate::processTemplate cannot read embedded template %s!\n", PageResult.getValue());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ DrawViewPart::DrawViewPart()
|
||||
ADD_PROPERTY_TYPE(XSource, (nullptr), group, App::Prop_None, "External 3D Shape to view");
|
||||
|
||||
ADD_PROPERTY_TYPE(Direction, (0.0, -1.0, 0.0), group, App::Prop_None,
|
||||
"Projection Plane normal. The direction you are looking from.");
|
||||
"Projection Plane normal. View direction for the projection plane");
|
||||
ADD_PROPERTY_TYPE(XDirection, (1.0, 0.0, 0.0), group, App::Prop_None,
|
||||
"Projection Plane X Axis in R3. Rotates/Mirrors View");
|
||||
ADD_PROPERTY_TYPE(Perspective, (false), group, App::Prop_None,
|
||||
@@ -562,7 +562,7 @@ void DrawViewPart::findFacesNew(const std::vector<BaseGeomPtr> &goEdges)
|
||||
|
||||
if (sortedWires.empty()) {
|
||||
Base::Console().warning(
|
||||
"DVP::findFacesNew - %s - Can't make faces from projected edges\n",
|
||||
"DVP::findFacesNew - %s - Cannot make faces from projected edges\n",
|
||||
getNameInDocument());
|
||||
}
|
||||
else {
|
||||
@@ -685,7 +685,7 @@ void DrawViewPart::findFacesOld(const std::vector<BaseGeomPtr> &goEdges)
|
||||
sortedWires = eWalker.execute(newEdges);
|
||||
if (sortedWires.empty()) {
|
||||
Base::Console().warning(
|
||||
"DVP::findFacesOld - %s -Can't make faces from projected edges\n",
|
||||
"DVP::findFacesOld - %s -Cannott make faces from projected edges\n",
|
||||
getNameInDocument());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -558,7 +558,7 @@ void DrawViewSection::makeSectionCut(const TopoDS_Shape& baseShape)
|
||||
testBox.SetGap(0.0);
|
||||
if (testBox.IsVoid()) {// prism & input don't intersect. rawShape is
|
||||
// garbage, don't bother.
|
||||
Base::Console().warning("DVS::makeSectionCut - prism & input don't intersect - %s\n",
|
||||
Base::Console().warning("DVS::makeSectionCut - prism & input don not intersect - %s\n",
|
||||
Label.getValue());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ PyObject* DrawViewSymbolPy::dumpSymbol(PyObject *args)
|
||||
if (outfile.good()) {
|
||||
outfile.close();
|
||||
} else {
|
||||
std::string error = std::string("Can't write ");
|
||||
std::string error = std::string("Cannot write");
|
||||
error += fileSpec;
|
||||
PyErr_SetString(PyExc_RuntimeError, error.c_str());
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user