2013-08-20 12:11:43 +06:00
|
|
|
#ifndef CURVECREATOR_NEWPOINTDLG_H
|
|
|
|
#define CURVECREATOR_NEWPOINTDLG_H
|
|
|
|
|
|
|
|
#include "CurveCreator.hxx"
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QDoubleSpinBox;
|
|
|
|
class QDialogButtonBox;
|
|
|
|
class QAbstractButton;
|
|
|
|
class QPushButton;
|
2013-08-21 12:46:20 +06:00
|
|
|
class QLabel;
|
2013-08-20 12:11:43 +06:00
|
|
|
|
|
|
|
class CurveCreator_NewPointDlg : public QDialog
|
|
|
|
{
|
2013-08-21 12:46:20 +06:00
|
|
|
Q_OBJECT
|
2013-08-20 12:11:43 +06:00
|
|
|
public:
|
2013-08-21 12:46:20 +06:00
|
|
|
explicit CurveCreator_NewPointDlg(CurveCreator::Dimension theDim, QWidget *parent = 0);
|
|
|
|
CurveCreator::Coordinates getCoordinates() const;
|
|
|
|
void clear();
|
|
|
|
void setSectionName( const QString& theName );
|
|
|
|
void setEditMode( bool isEdit );
|
|
|
|
void setCoordinates( const CurveCreator::Coordinates& theCoords );
|
|
|
|
void setDimension(CurveCreator::Dimension theDim);
|
2013-08-20 12:11:43 +06:00
|
|
|
signals:
|
2013-08-21 12:46:20 +06:00
|
|
|
void addPoint();
|
2013-08-20 12:11:43 +06:00
|
|
|
public slots:
|
|
|
|
protected slots:
|
2013-08-21 12:46:20 +06:00
|
|
|
void onBtnClicked(QAbstractButton* theBtn );
|
2013-08-20 12:11:43 +06:00
|
|
|
protected:
|
2013-08-21 12:46:20 +06:00
|
|
|
void updateTitle();
|
|
|
|
void initSpinBox(QDoubleSpinBox *theSpinBox);
|
2013-08-20 12:11:43 +06:00
|
|
|
private:
|
2013-08-21 12:46:20 +06:00
|
|
|
QDialogButtonBox* myBtnBox;
|
|
|
|
CurveCreator::Dimension myDim;
|
|
|
|
QDoubleSpinBox* myX;
|
|
|
|
QDoubleSpinBox* myY;
|
|
|
|
QDoubleSpinBox* myZ;
|
|
|
|
QLabel* myZLabel;
|
|
|
|
QPushButton* myContBtn;
|
|
|
|
QPushButton* myAddBtn;
|
|
|
|
bool myIsEdit;
|
|
|
|
QString mySectionName;
|
2013-08-20 12:11:43 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CURVECREATOR_NEWPOINTDLG_H
|