27 #include <QDomElement>
29 #include "../ifc/xml/vabstractpattern.h"
30 #include "../vmisc/logging.h"
31 #include "../vwidgets/vmaingraphicsview.h"
32 #include "../vmisc/vabstractapplication.h"
33 #include "../vtools/tools/vabstracttool.h"
40 , m_scene(
qApp->getCurrentScene())
42 setText(tr(
"toggle point visibility"));
47 if (domElement.isElement())
53 qCDebug(vUndo,
"Can't find point with id = %u.",
nodeId);
60 qCDebug(vUndo,
"Undo.");
68 qCDebug(vUndo,
"Redo.");
77 if (domElement.isElement())
83 tool->setPointNameVisiblity(
nodeId, visible);
88 qCDebug(vUndo,
"Can't find point with id = %u.",
nodeId);
void setVisibility(bool visible)
ShowPointName(VAbstractPattern *doc, quint32 id, bool visible, QUndoCommand *parent=nullptr)
virtual void redo() override
virtual void undo() override
static VDataTool * getTool(quint32 id)
getTool return tool from tool list.
static const QString TagPoint
QDomElement elementById(quint32 id, const QString &tagName=QString())
static bool getParameterBool(const QDomElement &domElement, const QString &name, const QString &defValue)
void SetAttribute(QDomElement &domElement, const QString &name, const T &value) const
SetAttribute set attribute in pattern file. Replace "," by ".".
const QString AttrShowPointName