2013-10-27 12:59:34 +01:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
|
|
|
** Copyright (C) 2013 Valentina project All Rights Reserved.
|
|
|
|
**
|
|
|
|
** This file is part of Valentina.
|
|
|
|
**
|
|
|
|
** Tox 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/>.
|
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
2013-10-18 12:03:01 +02:00
|
|
|
#ifndef DIALOGHEIGHT_H
|
|
|
|
#define DIALOGHEIGHT_H
|
|
|
|
|
|
|
|
#include "dialogtool.h"
|
|
|
|
|
2013-11-04 21:35:15 +01:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class DialogHeight;
|
2013-10-18 12:03:01 +02:00
|
|
|
}
|
|
|
|
|
2013-11-04 21:35:15 +01:00
|
|
|
class DialogHeight : public DialogTool
|
|
|
|
{
|
2013-10-18 12:03:01 +02:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2013-11-04 21:35:15 +01:00
|
|
|
DialogHeight(const VContainer *data, Draw::Draws mode = Draw::Calculation,
|
2013-10-18 12:03:01 +02:00
|
|
|
QWidget *parent = 0);
|
|
|
|
~DialogHeight();
|
2013-10-26 19:55:06 +02:00
|
|
|
inline QString getPointName() const {return pointName;}
|
2013-10-18 12:03:01 +02:00
|
|
|
void setPointName(const QString &value);
|
2013-10-26 19:55:06 +02:00
|
|
|
inline QString getTypeLine() const {return typeLine;}
|
2013-10-18 12:03:01 +02:00
|
|
|
void setTypeLine(const QString &value);
|
2013-10-26 19:55:06 +02:00
|
|
|
inline qint64 getBasePointId() const {return basePointId;}
|
2013-10-18 12:03:01 +02:00
|
|
|
void setBasePointId(const qint64 &value, const qint64 &id);
|
2013-10-26 19:55:06 +02:00
|
|
|
inline qint64 getP1LineId() const {return p1LineId;}
|
2013-10-18 12:03:01 +02:00
|
|
|
void setP1LineId(const qint64 &value, const qint64 &id);
|
2013-10-26 19:55:06 +02:00
|
|
|
inline qint64 getP2LineId() const{return p2LineId;}
|
2013-10-18 12:03:01 +02:00
|
|
|
void setP2LineId(const qint64 &value, const qint64 &id);
|
|
|
|
public slots:
|
|
|
|
virtual void ChoosedObject(qint64 id, Scene::Scenes type);
|
|
|
|
virtual void DialogAccepted();
|
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(DialogHeight)
|
|
|
|
Ui::DialogHeight *ui;
|
|
|
|
qint32 number;
|
|
|
|
QString pointName;
|
|
|
|
QString typeLine;
|
|
|
|
qint64 basePointId;
|
|
|
|
qint64 p1LineId;
|
|
|
|
qint64 p2LineId;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIALOGHEIGHT_H
|