Names must begin with a lowercase letter.
--HG-- branch : develop
This commit is contained in:
parent
fab3c53a26
commit
07e7cbf908
|
@ -32,7 +32,7 @@
|
|||
AddDet::AddDet(const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent)
|
||||
: VUndoCommand(xml, doc, parent)
|
||||
{
|
||||
setText(tr("Add detail"));
|
||||
setText(tr("add detail"));
|
||||
nodeId = doc->GetParametrId(xml);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
AddDetNode::AddDetNode(const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent)
|
||||
: VUndoCommand(xml, doc, parent)
|
||||
{
|
||||
setText(QObject::tr("Add node"));
|
||||
setText(QObject::tr("add node"));
|
||||
nodeId = doc->GetParametrId(xml);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ AddPatternPiece::AddPatternPiece(const QDomElement &xml, VAbstractPattern *doc,
|
|||
{
|
||||
SCASSERT(namePP.isEmpty() == false);
|
||||
SCASSERT(mPath.isEmpty() == false);
|
||||
setText(tr("Add pattern piece %1").arg(namePP));
|
||||
setText(tr("add pattern piece %1").arg(namePP));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
AddToCalc::AddToCalc(const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent)
|
||||
: VUndoCommand(xml, doc, parent), nameActivDraw(doc->GetNameActivPP()), cursor(doc->getCursor())
|
||||
{
|
||||
setText(tr("Add object"));
|
||||
setText(tr("add object"));
|
||||
nodeId = doc->GetParametrId(xml);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
AddUnionDetails::AddUnionDetails(const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent)
|
||||
: VUndoCommand(xml, doc, parent)
|
||||
{
|
||||
setText(tr("Add union details"));
|
||||
setText(tr("add union details"));
|
||||
nodeId = doc->GetParametrId(xml);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
DeleteDetail::DeleteDetail(VAbstractPattern *doc, quint32 id, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), parentNode(QDomNode()), siblingId(NULL_ID)
|
||||
{
|
||||
setText(tr("Delete tool"));
|
||||
setText(tr("delete tool"));
|
||||
nodeId = id;
|
||||
QDomElement domElement = doc->elementById(id);
|
||||
if (domElement.isElement())
|
||||
|
|
|
@ -34,7 +34,7 @@ DeletePatternPiece::DeletePatternPiece(VAbstractPattern *doc, const QString &nam
|
|||
: VUndoCommand(QDomElement(), doc, parent), namePP(namePP), patternPiece(QDomElement()), mPath(QString()),
|
||||
previousPPName(QString())
|
||||
{
|
||||
setText(tr("Delete pattern piece %1").arg(namePP));
|
||||
setText(tr("delete pattern piece %1").arg(namePP));
|
||||
|
||||
QDomElement patternP = doc->GetPPElement(namePP);
|
||||
patternPiece = patternP.cloneNode().toElement();
|
||||
|
|
|
@ -35,7 +35,7 @@ DelTool::DelTool(VAbstractPattern *doc, quint32 id, QUndoCommand *parent)
|
|||
: VUndoCommand(QDomElement(), doc, parent), parentNode(QDomNode()), siblingId(NULL_ID),
|
||||
nameActivDraw(doc->GetNameActivPP())
|
||||
{
|
||||
setText(tr("Delete tool"));
|
||||
setText(tr("delete tool"));
|
||||
nodeId = id;
|
||||
siblingId = doc->SiblingNodeId(nodeId);
|
||||
parentNode = doc->ParentNodeById(nodeId);
|
||||
|
|
|
@ -38,7 +38,7 @@ MoveDetail::MoveDetail(VAbstractPattern *doc, const double &x, const double &y,
|
|||
QGraphicsScene *scene, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldX(0.0), oldY(0.0), newX(x), newY(y), scene(scene)
|
||||
{
|
||||
setText(QObject::tr("Move detail"));
|
||||
setText(QObject::tr("move detail"));
|
||||
nodeId = id;
|
||||
|
||||
SCASSERT(scene != nullptr);
|
||||
|
|
|
@ -38,7 +38,7 @@ MoveLabel::MoveLabel(VAbstractPattern *doc, const double &x, const double &y, co
|
|||
QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldMx(0.0), oldMy(0.0), newMx(x), newMy(y), scene(scene)
|
||||
{
|
||||
setText(tr("Move point label"));
|
||||
setText(tr("move point label"));
|
||||
nodeId = id;
|
||||
qCDebug(vUndo, "Point id %u", nodeId);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ MoveSpline::MoveSpline(VAbstractPattern *doc, const VSpline *oldSpl, const VSpli
|
|||
QGraphicsScene *scene, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldSpline(*oldSpl), newSpline(newSpl), scene(scene)
|
||||
{
|
||||
setText(tr("Move spline"));
|
||||
setText(tr("move spline"));
|
||||
nodeId = id;
|
||||
|
||||
SCASSERT(scene != nullptr);
|
||||
|
|
|
@ -35,7 +35,7 @@ MoveSplinePath::MoveSplinePath(VAbstractPattern *doc, const VSplinePath &oldSplP
|
|||
const quint32 &id, QGraphicsScene *scene, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldSplinePath(oldSplPath), newSplinePath(newSplPath), scene(scene)
|
||||
{
|
||||
setText(tr("Move spline path"));
|
||||
setText(tr("move spline path"));
|
||||
nodeId = id;
|
||||
|
||||
SCASSERT(scene != nullptr);
|
||||
|
|
|
@ -38,7 +38,7 @@ MoveSPoint::MoveSPoint(VAbstractPattern *doc, const double &x, const double &y,
|
|||
QGraphicsScene *scene, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldX(0.0), oldY(0.0), newX(x), newY(y), scene(scene)
|
||||
{
|
||||
setText(tr("Move single point"));
|
||||
setText(tr("move single point"));
|
||||
nodeId = id;
|
||||
qCDebug(vUndo, "SPoint id %u", nodeId);
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
RenamePP::RenamePP(VAbstractPattern *doc, const QString &newPPname, QComboBox *combo, QUndoCommand *parent)
|
||||
:VUndoCommand(QDomElement(), doc, parent), combo(combo), newPPname(newPPname), oldPPname(QString())
|
||||
{
|
||||
setText(tr("Rename pattern piece"));
|
||||
setText(tr("rename pattern piece"));
|
||||
SCASSERT(combo != nullptr);
|
||||
oldPPname = doc->GetNameActivPP();
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ SaveDetailOptions::SaveDetailOptions(const VDetail &oldDet, const VDetail &newDe
|
|||
const quint32 &id, QGraphicsScene *scene, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldDet(oldDet), newDet(newDet), scene(scene)
|
||||
{
|
||||
setText(tr("Save detail option"));
|
||||
setText(tr("save detail option"));
|
||||
nodeId = id;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ SaveToolOptions::SaveToolOptions(const QDomElement &oldXml, const QDomElement &n
|
|||
const quint32 &id, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent), oldXml(oldXml), newXml(newXml)
|
||||
{
|
||||
setText(tr("Save tool option"));
|
||||
setText(tr("save tool option"));
|
||||
nodeId = id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user