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"
25class 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;
Base class for all digitizing states. This serves as an interface to DigitizeStateContext.
Dialog box for editing the information of one axis point.
QPointF posGraph(bool &isXOnly) const
Return the graph coordinates position specified by the user. Only applies if dialog was accepted.
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...
Abstract validator for all numeric formats.
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsMainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...