Engauge Digitizer
2
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Friends
Pages
Dlg
DlgEditPointGraph.h
1
/******************************************************************************************************
2
* (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef DLG_EDIT_POINT_GRAPH_H
8
#define DLG_EDIT_POINT_GRAPH_H
9
10
#include <QDialog>
11
#include <QPointF>
12
#include <QString>
13
14
class
DlgEditPointGraphLineEdit
;
15
class
DlgValidatorAbstract
;
16
class
DocumentModelCoords
;
17
class
MainWindow
;
18
class
MainWindowModel
;
19
class
QPushButton;
20
class
QVBoxLayout;
21
class
Transformation
;
22
24
class
DlgEditPointGraph
:
public
QDialog
25
{
26
Q_OBJECT;
27
28
public
:
31
DlgEditPointGraph
(
MainWindow
&mainWindow,
32
const
DocumentModelCoords
&modelCoords,
33
const
MainWindowModel
&modelMainWindow,
34
const
Transformation
&transformation,
35
const
double
*xInitialValue = 0,
36
const
double
*yInitialValue = 0);
37
~
DlgEditPointGraph
();
38
40
void
posGraph
(
bool
&isX,
double
&x,
bool
&isY,
double
&y)
const
;
41
42
private
slots:
43
void
slotTextChanged (
const
QString &);
44
45
private
:
46
DlgEditPointGraph
();
47
48
void
createCoords (QVBoxLayout *layoutOuter);
49
void
createHint (QVBoxLayout *layoutOuter);
50
void
createOkCancel (QVBoxLayout *layoutOuter);
51
void
initializeGraphCoordinates (
const
double
*xInitialValue,
52
const
double
*yInitialValue,
53
const
Transformation
&transformation);
54
bool
isCartesian ()
const
;
55
QChar nameXTheta ()
const
;
56
QChar nameYRadius ()
const
;
57
QString unitsType (
bool
isXTheta)
const
;
58
void
updateControls ();
59
60
DlgValidatorAbstract
*m_validatorGraphX;
61
DlgEditPointGraphLineEdit
*m_editGraphX;
62
DlgValidatorAbstract
*m_validatorGraphY;
63
DlgEditPointGraphLineEdit
*m_editGraphY;
64
QPushButton *m_btnOk;
65
QPushButton *m_btnCancel;
66
67
// Enable Ok button once text has changed. For simplicity, this is true even when original text is restored
68
bool
m_changed;
69
70
const
DocumentModelCoords
&m_modelCoords;
71
const
MainWindowModel
&m_modelMainWindow;
72
};
73
74
#endif // DLG_EDIT_POINT_GRAPH_H
DlgEditPointGraphLineEdit
Adds hover highlighting to QLineEdit.
Definition:
DlgEditPointGraphLineEdit.h:15
DlgValidatorAbstract
Abstract validator for all numeric formats.
Definition:
DlgValidatorAbstract.h:14
DlgEditPointGraph::posGraph
void posGraph(bool &isX, double &x, bool &isY, double &y) const
Return one or both coordinates. Only applies if dialog was accepted.
Definition:
DlgEditPointGraph.cpp:215
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points...
Definition:
Transformation.h:30
MainWindowModel
Model for DlgSettingsMainWindow.
Definition:
MainWindowModel.h:24
DocumentModelCoords
Model for DlgSettingsCoords and CmdSettingsCoords.
Definition:
DocumentModelCoords.h:20
DlgEditPointGraph
Dialog box for editing the information of one or more points.
Definition:
DlgEditPointGraph.h:24
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition:
MainWindow.h:83
Generated on Tue Mar 6 2018 15:35:52 for Engauge Digitizer by
1.8.5