2014-12-11 16:12:16 +01:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vpatternconverter.h
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 11 12, 2014
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
2015-02-27 11:27:48 +01:00
|
|
|
** Copyright (C) 2013-2015 Valentina project
|
2014-12-11 16:12:16 +01:00
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
|
|
|
**
|
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
|
|
|
** 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.
|
|
|
|
**
|
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
|
|
|
** 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/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef VPATTERNCONVERTER_H
|
|
|
|
#define VPATTERNCONVERTER_H
|
|
|
|
|
|
|
|
#include "vabstractconverter.h"
|
|
|
|
|
|
|
|
class VPatternConverter : public VAbstractConverter
|
|
|
|
{
|
2014-12-31 13:28:08 +01:00
|
|
|
Q_DECLARE_TR_FUNCTIONS(VPatternConverter)
|
2014-12-11 16:12:16 +01:00
|
|
|
public:
|
2014-12-11 16:51:24 +01:00
|
|
|
VPatternConverter(const QString &fileName);
|
2015-07-03 15:36:54 +02:00
|
|
|
virtual ~VPatternConverter() Q_DECL_OVERRIDE;
|
2014-12-11 16:12:16 +01:00
|
|
|
|
2014-12-11 20:44:48 +01:00
|
|
|
static const QString PatternMaxVerStr;
|
2014-12-11 21:16:03 +01:00
|
|
|
static const QString CurrentSchema;
|
2014-12-11 20:44:48 +01:00
|
|
|
|
|
|
|
protected:
|
2015-07-03 15:36:54 +02:00
|
|
|
virtual int MinVer() const Q_DECL_OVERRIDE;
|
|
|
|
virtual int MaxVer() const Q_DECL_OVERRIDE;
|
2014-12-11 20:44:48 +01:00
|
|
|
|
2015-07-03 15:36:54 +02:00
|
|
|
virtual QString MinVerStr() const Q_DECL_OVERRIDE;
|
|
|
|
virtual QString MaxVerStr() const Q_DECL_OVERRIDE;
|
2014-12-11 21:16:03 +01:00
|
|
|
|
2014-12-11 21:54:33 +01:00
|
|
|
QString XSDSchema(int ver) const;
|
2015-07-03 15:36:54 +02:00
|
|
|
virtual void ApplyPatches() Q_DECL_OVERRIDE;
|
2014-12-11 21:16:03 +01:00
|
|
|
|
2014-12-11 20:44:48 +01:00
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(VPatternConverter)
|
|
|
|
static const QString PatternMinVerStr;
|
2014-12-16 08:42:24 +01:00
|
|
|
|
2014-12-27 12:15:34 +01:00
|
|
|
void ToV0_1_1();
|
2014-12-17 13:56:14 +01:00
|
|
|
void ToV0_1_2();
|
2015-02-03 12:15:52 +01:00
|
|
|
void ToV0_1_3();
|
2015-05-28 11:07:52 +02:00
|
|
|
void ToV0_1_4();
|
2014-12-11 16:12:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VPATTERNCONVERTER_H
|