7 #ifndef DLG_EDIT_POINT_H
8 #define DLG_EDIT_POINT_H
10 #include "CoordUnitsDate.h"
11 #include "CoordUnitsNonPolarTheta.h"
12 #include "CoordUnitsPolarTheta.h"
13 #include "CoordUnitsTime.h"
14 #include "DocumentAxesPointsRequired.h"
18 #include <QPushButton>
25 class QDoubleValidator;
41 const QCursor &cursorShape,
43 DocumentAxesPointsRequired documentAxesPointsRequired,
45 const double *xInitialValue = 0,
46 const double *yInitialValue = 0);
50 QPointF
posGraph (
bool &isXOnly)
const;
57 void slotTextChanged (
const QString &);
60 void createCoords (QVBoxLayout *layoutOuter);
61 void createOkCancel (QVBoxLayout *layoutOuter);
62 void initializeGraphCoordinates (
const double *xInitialValue,
63 const double *yInitialValue,
67 bool isCartesian ()
const;
68 QChar nameXTheta ()
const;
69 QChar nameYRadius ()
const;
70 QString unitsType (
bool isXTheta)
const;
71 void updateControls ();
73 QCursor m_cursorShape;
74 QLineEdit *m_editGraphX;
76 QLineEdit *m_editGraphY;
79 QPushButton *m_btnCancel;
81 DocumentAxesPointsRequired m_documentAxesPointsRequired;
87 #endif // DLG_EDIT_POINT_H
QPointF posGraph(bool &isXOnly) const
Return the graph coordinates position specified by the user. Only applies if dialog was accepted...
Abstract validator for all numeric formats.
void signalSetOverrideCursor(QCursor)
Send a signal to trigger the setting of the override cursor.
DlgEditPoint(MainWindow &mainWindow, DigitizeStateAbstractBase &digitizeState, const DocumentModelCoords &modelCoords, const MainWindowModel &modelMainWindow, const QCursor &cursorShape, const Transformation &transformation, DocumentAxesPointsRequired documentAxesPointsRequired, bool isXOnly=false, const double *xInitialValue=0, const double *yInitialValue=0)
Constructor for existing point which already has graph coordinates (which may be changed using this d...
Model for DlgSettingsMainWindow.
Model for DlgSettingsCoords and CmdSettingsCoords.
Dialog box for editing the information of one axis point.
Base class for all digitizing states. This serves as an interface to DigitizeStateContext.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...