valentina/dialogs/dialogsinglepoint.h

38 lines
1.1 KiB
C
Raw Normal View History

2013-07-03 14:29:26 +02:00
#ifndef DIALOGSINGLEPOINT_H
#define DIALOGSINGLEPOINT_H
#include <QDialog>
namespace Ui {
class DialogSinglePoint;
}
class DialogSinglePoint : public QDialog
{
2013-07-13 12:51:31 +02:00
Q_OBJECT
2013-07-03 14:29:26 +02:00
public:
2013-07-13 12:51:31 +02:00
explicit DialogSinglePoint(QWidget *parent = 0);
void setData(const QString name, const QPointF point);
QString getName()const;
QPointF getPoint()const;
~DialogSinglePoint();
signals:
void ToolCanseled();
void SinglePointCreated(const QString name, const QPointF point);
2013-07-03 14:29:26 +02:00
public slots:
2013-07-13 12:51:31 +02:00
void mousePress(QPointF scenePos);
void NameChanged();
void CanselOperation();
void OkOperation();
protected:
void showEvent( QShowEvent *event );
void closeEvent ( QCloseEvent * event );
2013-07-03 14:29:26 +02:00
private:
Ui::DialogSinglePoint *ui;
2013-07-13 12:51:31 +02:00
bool isInitialized;
QString name;
QPointF point;
2013-07-03 14:29:26 +02:00
};
#endif // DIALOGSINGLEPOINT_H