7 #ifndef DLG_EDIT_POINT_AXIS_H 8 #define DLG_EDIT_POINT_AXIS_H 10 #include "DocumentAxesPointsRequired.h" 13 #include <QPushButton> 36 DocumentAxesPointsRequired documentAxesPointsRequired,
38 const double *xInitialValue = 0,
39 const double *yInitialValue = 0);
43 QPointF
posGraph (
bool &isXOnly)
const;
46 void slotTextChanged (
const QString &);
49 void createCoords (QVBoxLayout *layoutOuter);
50 void createHints (QVBoxLayout *layoutOuter,
51 DocumentAxesPointsRequired documentAxesPointsRequired);
52 void createOkCancel (QVBoxLayout *layoutOuter);
53 void initializeGraphCoordinates (
const double *xInitialValue,
54 const double *yInitialValue,
58 bool isCartesian ()
const;
59 QChar nameXTheta ()
const;
60 QChar nameYRadius ()
const;
61 QString unitsType (
bool isXTheta)
const;
62 void updateControls ();
64 QLineEdit *m_editGraphX;
66 QLineEdit *m_editGraphY;
69 QPushButton *m_btnCancel;
71 DocumentAxesPointsRequired m_documentAxesPointsRequired;
78 #endif // DLG_EDIT_POINT_AXIS_H Dialog box for editing the information of one axis point, in a graph with two axes.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Abstract validator for all numeric formats.
DlgEditPointAxis(MainWindow &mainWindow, const DocumentModelCoords &modelCoords, const DocumentModelGeneral &modelGeneral, const MainWindowModel &modelMainWindow, 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...
QPointF posGraph(bool &isXOnly) const
Return the graph coordinates position specified by the user. Only applies if dialog was accepted.
Model for DlgSettingsMainWindow.
Model for DlgSettingsCoords and CmdSettingsCoords.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...