valentina_old/dialogs/dialogsinglepoint.h

30 lines
782 B
C
Raw Normal View History

2013-07-03 14:29:26 +02:00
#ifndef DIALOGSINGLEPOINT_H
#define DIALOGSINGLEPOINT_H
2013-07-28 00:18:06 +02:00
#include "dialogtool.h"
#include "../container/vcontainer.h"
2013-07-03 14:29:26 +02:00
namespace Ui {
class DialogSinglePoint;
}
2013-07-28 00:18:06 +02:00
class DialogSinglePoint : public DialogTool
2013-07-03 14:29:26 +02:00
{
2013-07-13 12:51:31 +02:00
Q_OBJECT
2013-07-03 14:29:26 +02:00
public:
2013-07-28 00:18:06 +02:00
explicit DialogSinglePoint(const VContainer *data, QWidget *parent = 0);
2013-07-13 12:51:31 +02:00
void setData(const QString name, const QPointF point);
QString getName()const;
QPointF getPoint()const;
~DialogSinglePoint();
2013-07-03 14:29:26 +02:00
public slots:
2013-07-13 12:51:31 +02:00
void mousePress(QPointF scenePos);
2013-07-28 00:18:06 +02:00
virtual void DialogAccepted();
2013-07-03 14:29:26 +02:00
private:
Ui::DialogSinglePoint *ui;
2013-07-13 12:51:31 +02:00
QString name;
QPointF point;
2013-07-03 14:29:26 +02:00
};
#endif // DIALOGSINGLEPOINT_H