34 #include "../vabstracttool.h"
35 #include "../ifc/ifcdef.h"
36 #include "../ifc/xml/vdomdocument.h"
37 #include "../ifc/xml/vabstractpattern.h"
38 #include "../qmuparser/qmuparsererror.h"
39 #include "../vmisc/logging.h"
40 #include "../vpatterndb/vcontainer.h"
41 #include "../../undocommands/addtocalc.h"
42 #include "../../undocommands/savetooloptions.h"
46 #include <QMessageLogger>
47 #include <QScopedPointer>
48 #include <QSharedPointer>
64 , activeBlockName(doc->getActiveDraftBlockName())
66 , m_lineWeight(
"0.35")
112 qCDebug(vTool,
"Saving tool options after using dialog");
114 if (oldDomElement.isElement())
116 QDomElement newDomElement = oldDomElement.cloneNode().toElement();
121 qApp->getUndoStack()->push(saveOptions);
125 qCDebug(vTool,
"Can't find tool with id = %u",
m_id);
144 qCDebug(vTool,
"Saving tool options");
146 if (oldDomElement.isElement())
148 QDomElement newDomElement = oldDomElement.cloneNode().toElement();
154 qApp->getUndoStack()->push(saveOptions);
158 qCDebug(vTool,
"Can't find tool with id = %u",
m_id);
193 if (domElement.isElement())
199 qCDebug(vTool,
"Can't find tool with id = %u",
m_id);
233 qApp->getUndoStack()->push(addToCal);
242 list.append(originPoint->getIdTool());
virtual void LiteParseTree(const Document &parse)=0
void draftBlockNameChanged(const QString &oldName, const QString &newName)
draftBlockNameChanged save new name draft block.
void ShowTool(quint32 id, bool enable)
ShowTool highlight tool.
void activeDraftBlockChanged(const QString &newName)
activeDraftBlockChanged change active draft block.
The VContainer class container of all variables.
const QSharedPointer< VGObject > GetGObject(quint32 id) const
GetGObject returns a point by id.
QDomElement elementById(quint32 id, const QString &tagName=QString())
void SetAttribute(QDomElement &domElement, const QString &name, const T &value) const
SetAttribute set attribute in pattern file. Replace "," by ".".
static const QString AttrId
void NeedLiteParsing(const Document &parse)
const QString LineTypeSolidLine