2014-02-21 13:25:27 +01:00
|
|
|
/************************************************************************
|
|
|
|
**
|
2015-08-16 17:56:06 +02:00
|
|
|
** @file dialogindividualmeasurements.h
|
2014-04-30 07:38:52 +02:00
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
2015-08-16 17:56:06 +02:00
|
|
|
** @date 22 2, 2014
|
2014-02-21 13:25:27 +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.
|
2015-02-27 11:27:48 +01:00
|
|
|
** Copyright (C) 2013-2015 Valentina project
|
2014-02-21 13:25:27 +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/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
2015-08-16 17:56:06 +02:00
|
|
|
#ifndef DIALOGINDIVIDUALMEASUREMENTS_H
|
|
|
|
#define DIALOGINDIVIDUALMEASUREMENTS_H
|
2014-02-21 13:25:27 +01:00
|
|
|
|
|
|
|
#include <QDialog>
|
2014-06-08 20:10:57 +02:00
|
|
|
|
2015-08-16 17:56:06 +02:00
|
|
|
#include "../vmisc/def.h"
|
|
|
|
|
2014-06-08 20:10:57 +02:00
|
|
|
class VContainer;
|
2014-02-21 13:25:27 +01:00
|
|
|
|
2014-02-26 10:51:37 +01:00
|
|
|
namespace Ui
|
|
|
|
{
|
2015-08-16 17:56:06 +02:00
|
|
|
class DialogNewPattern;
|
2014-02-21 13:25:27 +01:00
|
|
|
}
|
|
|
|
|
2015-08-16 17:56:06 +02:00
|
|
|
class DialogNewPattern : public QDialog
|
2014-02-21 13:25:27 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-08-16 17:56:06 +02:00
|
|
|
DialogNewPattern(VContainer *data, const QString &patternPieceName, QWidget *parent = nullptr);
|
|
|
|
~DialogNewPattern();
|
2014-02-21 15:55:48 +01:00
|
|
|
QString name() const;
|
2015-08-16 17:56:06 +02:00
|
|
|
Unit PatternUnit() const;
|
2014-03-28 14:11:46 +01:00
|
|
|
public slots:
|
|
|
|
void CheckState();
|
2015-11-05 14:01:33 +01:00
|
|
|
protected:
|
|
|
|
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
2014-02-21 13:25:27 +01:00
|
|
|
private:
|
2015-08-16 17:56:06 +02:00
|
|
|
Q_DISABLE_COPY(DialogNewPattern)
|
|
|
|
Ui::DialogNewPattern *ui;
|
2014-03-14 18:54:20 +01:00
|
|
|
VContainer *data;
|
2015-11-05 14:01:33 +01:00
|
|
|
bool isInitialized;
|
2015-08-16 17:56:06 +02:00
|
|
|
void InitUnits();
|
2014-02-21 13:25:27 +01:00
|
|
|
};
|
|
|
|
|
2015-08-16 17:56:06 +02:00
|
|
|
#endif // DIALOGINDIVIDUALMEASUREMENTS_H
|