valentina/dialogs/dialogsinglepoint.h

32 lines
908 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-08-20 12:26:02 +02:00
DialogSinglePoint(const DialogSinglePoint &dialog);
const DialogSinglePoint &operator=(const DialogSinglePoint& dialog);
2013-07-03 14:29:26 +02:00
};
#endif // DIALOGSINGLEPOINT_H