2013-11-15 13:41:26 +01:00
|
|
|
/************************************************************************
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:50:05 +01:00
|
|
|
** @file vdomdocument.h
|
2013-11-15 13:41:26 +01:00
|
|
|
** @author Roman Telezhinsky <dismine@gmail.com>
|
2013-11-15 13:50:05 +01:00
|
|
|
** @date November 15, 2013
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2013 Valentina project
|
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
2013-09-18 21:16:19 +02:00
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
2013-09-18 21:16:19 +02:00
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
2013-10-27 13:36:29 +01:00
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
2013-09-18 21:16:19 +02:00
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
2013-11-15 13:41:26 +01:00
|
|
|
*************************************************************************/
|
2013-09-18 21:16:19 +02:00
|
|
|
|
2013-07-13 12:51:31 +02:00
|
|
|
#ifndef VDOMDOCUMENT_H
|
|
|
|
#define VDOMDOCUMENT_H
|
|
|
|
|
2013-11-06 16:49:07 +01:00
|
|
|
#include "../container/vcontainer.h"
|
|
|
|
#include "../widgets/vmaingraphicsscene.h"
|
|
|
|
#include "../tools/vdatatool.h"
|
2013-08-15 22:39:00 +02:00
|
|
|
#include "vtoolrecord.h"
|
2013-07-13 12:51:31 +02:00
|
|
|
|
2013-11-21 13:05:26 +01:00
|
|
|
#include <QComboBox>
|
|
|
|
#include <QDomDocument>
|
|
|
|
#include <QDebug>
|
|
|
|
|
2013-11-04 21:35:15 +01:00
|
|
|
namespace Document
|
|
|
|
{
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief The Document enum
|
|
|
|
*/
|
2013-09-27 11:17:00 +02:00
|
|
|
enum Document { LiteParse, FullParse};
|
|
|
|
Q_DECLARE_FLAGS(Documents, Document)
|
2013-07-13 12:51:31 +02:00
|
|
|
}
|
2013-09-27 11:17:00 +02:00
|
|
|
Q_DECLARE_OPERATORS_FOR_FLAGS(Document::Documents)
|
2013-07-13 12:51:31 +02:00
|
|
|
|
2013-11-06 18:59:20 +01:00
|
|
|
#ifdef Q_CC_GNU
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Weffc++"
|
|
|
|
#endif
|
2013-11-19 21:56:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The VDomDocument class
|
|
|
|
*/
|
2013-11-04 21:35:15 +01:00
|
|
|
class VDomDocument : public QObject, public QDomDocument
|
|
|
|
{
|
2013-07-13 12:51:31 +02:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief VDomDocument
|
2014-01-24 13:54:29 +01:00
|
|
|
* @param data container with variables
|
2013-11-19 21:56:49 +01:00
|
|
|
* @param comboBoxDraws
|
|
|
|
* @param mode
|
|
|
|
*/
|
2014-01-02 16:50:01 +01:00
|
|
|
VDomDocument(VContainer *data, QComboBox *comboBoxDraws, Draw::Draws *mode, QObject *parent = 0);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief VDomDocument
|
|
|
|
* @param name
|
2014-01-24 13:54:29 +01:00
|
|
|
* @param data container with variables
|
2013-11-19 21:56:49 +01:00
|
|
|
* @param comboBoxDraws
|
|
|
|
* @param mode
|
|
|
|
*/
|
2014-01-02 16:50:01 +01:00
|
|
|
VDomDocument(const QString& name, VContainer *data, QComboBox *comboBoxDraws, Draw::Draws *mode,
|
|
|
|
QObject *parent = 0);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief VDomDocument
|
|
|
|
* @param doc dom document containertype
|
2014-01-24 13:54:29 +01:00
|
|
|
* @param data container with variables
|
2013-11-19 21:56:49 +01:00
|
|
|
* @param comboBoxDraws
|
|
|
|
* @param mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
VDomDocument(const QDomDocumentType& doctype, VContainer *data, QComboBox *comboBoxDraws,
|
2014-01-02 16:50:01 +01:00
|
|
|
Draw::Draws *mode, QObject *parent = 0);
|
2013-10-27 08:47:01 +01:00
|
|
|
~VDomDocument(){}
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief elementById
|
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
QDomElement elementById(const QString& id);
|
2014-01-02 16:50:01 +01:00
|
|
|
void removeAllChilds(QDomElement &element);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief CreateEmptyFile
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void CreateEmptyFile();
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ChangeActivDraw
|
|
|
|
* @param name
|
|
|
|
* @param parse
|
|
|
|
*/
|
2013-11-06 22:11:12 +01:00
|
|
|
void ChangeActivDraw(const QString& name, const Document::Documents &parse = Document::FullParse);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetNameActivDraw
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
inline QString GetNameActivDraw() const {return nameActivDraw;}
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetActivDrawElement
|
|
|
|
* @param element
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool GetActivDrawElement(QDomElement &element);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetActivCalculationElement
|
|
|
|
* @param element
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool GetActivCalculationElement(QDomElement &element);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetActivModelingElement
|
|
|
|
* @param element
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool GetActivModelingElement(QDomElement &element);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetActivDetailsElement
|
|
|
|
* @param element
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool GetActivDetailsElement(QDomElement &element);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief appendDraw
|
|
|
|
* @param name
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool appendDraw(const QString& name);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief SetNameDraw
|
|
|
|
* @param name
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool SetNameDraw(const QString& name);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief Parse
|
|
|
|
* @param parse
|
|
|
|
* @param sceneDraw
|
|
|
|
* @param sceneDetail
|
|
|
|
*/
|
2013-11-06 22:11:12 +01:00
|
|
|
void Parse(const Document::Documents &parse, VMainGraphicsScene *sceneDraw,
|
|
|
|
VMainGraphicsScene *sceneDetail);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief getTools
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
inline QHash<qint64, VDataTool*>* getTools() {return &tools;}
|
2013-12-29 17:48:57 +01:00
|
|
|
VDataTool* getTool(const qint64 &id);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief getHistory
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
inline QVector<VToolRecord> *getHistory() {return &history;}
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief getCursor
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
inline qint64 getCursor() const {return cursor;}
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief setCursor
|
|
|
|
* @param value
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void setCursor(const qint64 &value);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief setCurrentData
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void setCurrentData();
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief AddTool
|
|
|
|
* @param id
|
|
|
|
* @param tool
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void AddTool(const qint64 &id, VDataTool *tool);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief UpdateToolData
|
|
|
|
* @param id
|
2014-01-24 13:54:29 +01:00
|
|
|
* @param data container with variables
|
2013-11-19 21:56:49 +01:00
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void UpdateToolData(const qint64 &id, VContainer *data);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief IncrementReferens
|
|
|
|
* @param id
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void IncrementReferens(qint64 id) const;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief DecrementReferens
|
|
|
|
* @param id
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void DecrementReferens(qint64 id) const;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief TestUniqueId
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void TestUniqueId() const;
|
2013-12-23 21:14:45 +01:00
|
|
|
/**
|
|
|
|
* @brief GetParametrLongLong
|
|
|
|
* @param domElement
|
|
|
|
* @param name
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
qint64 GetParametrLongLong(const QDomElement& domElement, const QString &name,
|
|
|
|
const QString &defValue) const;
|
|
|
|
/**
|
|
|
|
* @brief GetParametrString
|
|
|
|
* @param domElement
|
|
|
|
* @param name
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
QString GetParametrString(const QDomElement& domElement, const QString &name, const QString &defValue) const;
|
|
|
|
/**
|
|
|
|
* @brief GetParametrDouble
|
|
|
|
* @param domElement
|
|
|
|
* @param name
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
qreal GetParametrDouble(const QDomElement& domElement, const QString &name, const QString &defValue) const;
|
2014-01-09 15:56:53 +01:00
|
|
|
qint64 SPointActiveDraw();
|
2013-07-13 12:51:31 +02:00
|
|
|
signals:
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ChangedActivDraw
|
|
|
|
* @param newName
|
|
|
|
*/
|
2013-11-06 22:11:12 +01:00
|
|
|
void ChangedActivDraw(const QString &newName);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ChangedNameDraw
|
|
|
|
* @param oldName
|
|
|
|
* @param newName
|
|
|
|
*/
|
2013-12-31 09:28:53 +01:00
|
|
|
void ChangedNameDraw(const QString &oldName, const QString &newName);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
2014-01-24 13:54:29 +01:00
|
|
|
* @brief FullUpdateFromFile update tool data form file.
|
2013-11-19 21:56:49 +01:00
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void FullUpdateFromFile();
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief haveChange
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void haveChange();
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ShowTool
|
|
|
|
* @param id
|
|
|
|
* @param color
|
|
|
|
* @param enable
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ShowTool(qint64 id, Qt::GlobalColor color, bool enable);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ChangedCursor
|
|
|
|
* @param id
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ChangedCursor(qint64 id);
|
2013-07-13 12:51:31 +02:00
|
|
|
public slots:
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief FullUpdateTree
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void FullUpdateTree();
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief haveLiteChange
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void haveLiteChange();
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ShowHistoryTool
|
|
|
|
* @param id
|
|
|
|
* @param color
|
|
|
|
* @param enable
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ShowHistoryTool(qint64 id, Qt::GlobalColor color, bool enable);
|
2013-07-13 12:51:31 +02:00
|
|
|
private:
|
2013-09-26 20:50:52 +02:00
|
|
|
Q_DISABLE_COPY(VDomDocument)
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief map
|
|
|
|
*/
|
2013-10-04 13:32:42 +02:00
|
|
|
QHash<QString, QDomElement> map;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief nameActivDraw
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
QString nameActivDraw;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief data container with data
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
VContainer *data;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief tools
|
|
|
|
*/
|
2013-10-04 13:32:42 +02:00
|
|
|
QHash<qint64, VDataTool*> tools;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief history
|
|
|
|
*/
|
2013-08-15 22:39:00 +02:00
|
|
|
QVector<VToolRecord> history;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief cursor
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
qint64 cursor;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief comboBoxDraws
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
QComboBox *comboBoxDraws;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
Draw::Draws *mode;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief find
|
|
|
|
* @param node
|
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
2013-11-06 22:11:12 +01:00
|
|
|
bool find(const QDomElement &node, const QString& id);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief CheckNameDraw
|
|
|
|
* @param name
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool CheckNameDraw(const QString& name) const;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief SetActivDraw
|
|
|
|
* @param name
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void SetActivDraw(const QString& name);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetActivNodeElement
|
|
|
|
* @param name
|
|
|
|
* @param element
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
bool GetActivNodeElement(const QString& name, QDomElement& element);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseDrawElement
|
|
|
|
* @param sceneDraw
|
|
|
|
* @param sceneDetail
|
|
|
|
* @param node
|
|
|
|
* @param parse
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseDrawElement(VMainGraphicsScene *sceneDraw, VMainGraphicsScene *sceneDetail,
|
|
|
|
const QDomNode& node, const Document::Documents &parse);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseDrawMode
|
|
|
|
* @param sceneDraw
|
|
|
|
* @param sceneDetail
|
|
|
|
* @param node
|
|
|
|
* @param parse
|
|
|
|
* @param mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseDrawMode(VMainGraphicsScene *sceneDraw, VMainGraphicsScene *sceneDetail,
|
2013-11-06 22:11:12 +01:00
|
|
|
const QDomNode& node, const Document::Documents &parse, const Draw::Draws &mode);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseDetailElement
|
|
|
|
* @param sceneDetail
|
|
|
|
* @param domElement
|
|
|
|
* @param parse
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseDetailElement(VMainGraphicsScene *sceneDetail, const QDomElement &domElement,
|
|
|
|
const Document::Documents &parse);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseDetails
|
|
|
|
* @param sceneDetail
|
|
|
|
* @param domElement
|
|
|
|
* @param parse
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseDetails(VMainGraphicsScene *sceneDetail, const QDomElement &domElement,
|
|
|
|
const Document::Documents &parse);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParsePointElement
|
|
|
|
* @param scene
|
|
|
|
* @param domElement
|
|
|
|
* @param parse
|
|
|
|
* @param type
|
|
|
|
* @param mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParsePointElement(VMainGraphicsScene *scene, const QDomElement& domElement,
|
2013-12-21 12:36:51 +01:00
|
|
|
const Document::Documents &parse, const QString &type);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseLineElement
|
|
|
|
* @param scene
|
|
|
|
* @param domElement
|
|
|
|
* @param parse
|
|
|
|
* @param mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseLineElement(VMainGraphicsScene *scene, const QDomElement& domElement,
|
2013-12-21 12:36:51 +01:00
|
|
|
const Document::Documents &parse);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseSplineElement
|
|
|
|
* @param scene
|
|
|
|
* @param domElement
|
|
|
|
* @param parse
|
|
|
|
* @param type
|
|
|
|
* @param mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseSplineElement(VMainGraphicsScene *scene, const QDomElement& domElement,
|
2013-12-21 12:36:51 +01:00
|
|
|
const Document::Documents &parse, const QString& type);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseArcElement
|
|
|
|
* @param scene
|
|
|
|
* @param domElement
|
|
|
|
* @param parse
|
|
|
|
* @param type
|
|
|
|
* @param mode
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseArcElement(VMainGraphicsScene *scene, const QDomElement& domElement,
|
2013-12-21 12:36:51 +01:00
|
|
|
const Document::Documents &parse, const QString& type);
|
2013-12-29 17:48:57 +01:00
|
|
|
void ParseToolsElement(VMainGraphicsScene *scene, const QDomElement& domElement,
|
|
|
|
const Document::Documents &parse, const QString& type);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief ParseIncrementsElement
|
|
|
|
* @param node
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
void ParseIncrementsElement(const QDomNode& node);
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief GetParametrId
|
|
|
|
* @param domElement
|
|
|
|
* @return
|
|
|
|
*/
|
2013-10-27 08:47:01 +01:00
|
|
|
qint64 GetParametrId(const QDomElement& domElement) const;
|
2013-11-19 21:56:49 +01:00
|
|
|
/**
|
|
|
|
* @brief CollectId
|
|
|
|
* @param node
|
|
|
|
* @param vector
|
|
|
|
*/
|
2013-11-06 22:11:12 +01:00
|
|
|
void CollectId(const QDomElement &node, QVector<qint64> &vector)const;
|
2013-07-13 12:51:31 +02:00
|
|
|
};
|
|
|
|
|
2013-11-06 18:59:20 +01:00
|
|
|
#ifdef Q_CC_GNU
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif
|
2013-08-20 12:26:02 +02:00
|
|
|
|
2013-07-13 12:51:31 +02:00
|
|
|
#endif // VDOMDOCUMENT_H
|