Engauge Digitizer 2
|
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay. More...
#include <DocumentModelGridDisplay.h>
Public Member Functions | |
DocumentModelGridDisplay () | |
Default constructor. | |
DocumentModelGridDisplay (const Document &document) | |
Initial constructor from Document. | |
DocumentModelGridDisplay (const DocumentModelGridDisplay &other) | |
Copy constructor. | |
DocumentModelGridDisplay & | operator= (const DocumentModelGridDisplay &other) |
Assignment constructor. | |
unsigned int | countX () const |
Get method for x grid line count. | |
unsigned int | countY () const |
Get method for y grid line count. | |
GridCoordDisable | disableX () const |
Get method for x grid line disabled variable. | |
GridCoordDisable | disableY () const |
Get method for y grid line disabled variable. | |
virtual void | loadXml (QXmlStreamReader &reader) |
Load model from serialized xml. | |
ColorPalette | paletteColor () const |
Get method for color. | |
void | printStream (QString indentation, QTextStream &str) const |
Debugging method that supports print method of this class and printStream method of some other class(es) | |
virtual void | saveXml (QXmlStreamWriter &writer) const |
Save entire model as xml into stream. | |
void | setCountX (unsigned int countX) |
Set method for x grid line count. | |
void | setCountY (unsigned int countY) |
Set method for y grid line count. | |
void | setDisableX (GridCoordDisable disableX) |
Set method for x grid line disabled variable. | |
void | setDisableY (GridCoordDisable disableY) |
Set method for y grid line disabled variable. | |
void | setPaletteColor (ColorPalette paletteColor) |
Set method for color. | |
void | setStable (bool stable) |
Set method for stable flag. | |
void | setStartX (double startX) |
Set method for x grid line lower bound (inclusive). | |
void | setStartY (double yStart) |
Set method for y grid line lower bound (inclusive). | |
void | setStepX (double stepX) |
Set method for x grid line increment. | |
void | setStepY (double yStep) |
Set method for y grid line increment. | |
void | setStopX (double stopX) |
Set method for x grid line upper bound (inclusive). | |
void | setStopY (double yStop) |
Set method for y grid line upper bound (inclusive). | |
bool | stable () const |
Get method for stable flag. | |
double | startX () const |
Get method for x grid line lower bound (inclusive). | |
double | startY () const |
Get method for y grid line lower bound (inclusive). | |
double | stepX () const |
Get method for x grid line increment. | |
double | stepY () const |
Get method for y grid line increment. | |
double | stopX () const |
Get method for x grid line upper bound (inclusive). | |
double | stopY () const |
Get method for y grid line upper bound (inclusive). | |
![]() | |
DocumentModelAbstractBase () | |
Single constructor. | |
virtual | ~DocumentModelAbstractBase () |
Single destructor. | |
Additional Inherited Members |
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
Definition at line 18 of file DocumentModelGridDisplay.h.
DocumentModelGridDisplay::DocumentModelGridDisplay | ( | ) |
Default constructor.
Definition at line 20 of file DocumentModelGridDisplay.cpp.
Initial constructor from Document.
Definition at line 36 of file DocumentModelGridDisplay.cpp.
DocumentModelGridDisplay::DocumentModelGridDisplay | ( | const DocumentModelGridDisplay & | other | ) |
Copy constructor.
Definition at line 52 of file DocumentModelGridDisplay.cpp.
Get method for x grid line count.
Definition at line 86 of file DocumentModelGridDisplay.cpp.
Get method for y grid line count.
Definition at line 91 of file DocumentModelGridDisplay.cpp.
GridCoordDisable DocumentModelGridDisplay::disableX | ( | ) | const |
Get method for x grid line disabled variable.
Definition at line 96 of file DocumentModelGridDisplay.cpp.
GridCoordDisable DocumentModelGridDisplay::disableY | ( | ) | const |
Get method for y grid line disabled variable.
Definition at line 101 of file DocumentModelGridDisplay.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 106 of file DocumentModelGridDisplay.cpp.
DocumentModelGridDisplay & DocumentModelGridDisplay::operator= | ( | const DocumentModelGridDisplay & | other | ) |
Assignment constructor.
Definition at line 68 of file DocumentModelGridDisplay.cpp.
ColorPalette DocumentModelGridDisplay::paletteColor | ( | ) | const |
Get method for color.
Definition at line 159 of file DocumentModelGridDisplay.cpp.
void DocumentModelGridDisplay::printStream | ( | QString | indentation, |
QTextStream & | str ) const |
Debugging method that supports print method of this class and printStream method of some other class(es)
Definition at line 164 of file DocumentModelGridDisplay.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 185 of file DocumentModelGridDisplay.cpp.
Set method for x grid line count.
Definition at line 208 of file DocumentModelGridDisplay.cpp.
Set method for y grid line count.
Definition at line 213 of file DocumentModelGridDisplay.cpp.
void DocumentModelGridDisplay::setDisableX | ( | GridCoordDisable | disableX | ) |
Set method for x grid line disabled variable.
Definition at line 218 of file DocumentModelGridDisplay.cpp.
void DocumentModelGridDisplay::setDisableY | ( | GridCoordDisable | disableY | ) |
Set method for y grid line disabled variable.
Definition at line 223 of file DocumentModelGridDisplay.cpp.
void DocumentModelGridDisplay::setPaletteColor | ( | ColorPalette | paletteColor | ) |
Set method for color.
Definition at line 228 of file DocumentModelGridDisplay.cpp.
Set method for stable flag.
Definition at line 233 of file DocumentModelGridDisplay.cpp.
Set method for x grid line lower bound (inclusive).
Definition at line 238 of file DocumentModelGridDisplay.cpp.
Set method for y grid line lower bound (inclusive).
Definition at line 243 of file DocumentModelGridDisplay.cpp.
Set method for x grid line increment.
Definition at line 248 of file DocumentModelGridDisplay.cpp.
Set method for y grid line increment.
Definition at line 253 of file DocumentModelGridDisplay.cpp.
Set method for x grid line upper bound (inclusive).
Definition at line 258 of file DocumentModelGridDisplay.cpp.
Set method for y grid line upper bound (inclusive).
Definition at line 263 of file DocumentModelGridDisplay.cpp.
bool DocumentModelGridDisplay::stable | ( | ) | const |
Get method for stable flag.
The flag is false to let the settings get automatically updated, until the user selects settings - at which point the stable flag is set to true
Definition at line 268 of file DocumentModelGridDisplay.cpp.
double DocumentModelGridDisplay::startX | ( | ) | const |
Get method for x grid line lower bound (inclusive).
Definition at line 273 of file DocumentModelGridDisplay.cpp.
double DocumentModelGridDisplay::startY | ( | ) | const |
Get method for y grid line lower bound (inclusive).
Definition at line 278 of file DocumentModelGridDisplay.cpp.
double DocumentModelGridDisplay::stepX | ( | ) | const |
Get method for x grid line increment.
Definition at line 283 of file DocumentModelGridDisplay.cpp.
double DocumentModelGridDisplay::stepY | ( | ) | const |
Get method for y grid line increment.
Definition at line 288 of file DocumentModelGridDisplay.cpp.
double DocumentModelGridDisplay::stopX | ( | ) | const |
Get method for x grid line upper bound (inclusive).
Definition at line 293 of file DocumentModelGridDisplay.cpp.
double DocumentModelGridDisplay::stopY | ( | ) | const |
Get method for y grid line upper bound (inclusive).
Definition at line 298 of file DocumentModelGridDisplay.cpp.