|
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. | |
| unsigned int | lineWidth () const |
| Get method for line width. | |
| 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 | setLineWidth (unsigned int lineWidth) |
| Set method for line width. | |
| 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). | |
| Public Member Functions inherited from DocumentModelAbstractBase | |
| DocumentModelAbstractBase () | |
| Single constructor. | |
| virtual | ~DocumentModelAbstractBase () |
| Single destructor. | |
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
External code is responsible for calculating the value of the disabled parameter using the values of the other non-disabled parameters, instead of using the current value of the disabled parameter
Definition at line 21 of file DocumentModelGridDisplay.h.
| DocumentModelGridDisplay::DocumentModelGridDisplay | ( | ) |
Default constructor.
Definition at line 21 of file DocumentModelGridDisplay.cpp.
| DocumentModelGridDisplay::DocumentModelGridDisplay | ( | const Document & | document | ) |
Initial constructor from Document.
Definition at line 38 of file DocumentModelGridDisplay.cpp.
| DocumentModelGridDisplay::DocumentModelGridDisplay | ( | const DocumentModelGridDisplay & | other | ) |
Copy constructor.
Definition at line 55 of file DocumentModelGridDisplay.cpp.
| unsigned int DocumentModelGridDisplay::countX | ( | ) | const |
Get method for x grid line count.
Definition at line 91 of file DocumentModelGridDisplay.cpp.
| unsigned int DocumentModelGridDisplay::countY | ( | ) | const |
Get method for y grid line count.
Definition at line 96 of file DocumentModelGridDisplay.cpp.
| GridCoordDisable DocumentModelGridDisplay::disableX | ( | ) | const |
Get method for x grid line disabled variable.
Definition at line 101 of file DocumentModelGridDisplay.cpp.
| GridCoordDisable DocumentModelGridDisplay::disableY | ( | ) | const |
Get method for y grid line disabled variable.
Definition at line 106 of file DocumentModelGridDisplay.cpp.
| unsigned int DocumentModelGridDisplay::lineWidth | ( | ) | const |
Get method for line width.
Definition at line 111 of file DocumentModelGridDisplay.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 116 of file DocumentModelGridDisplay.cpp.
| DocumentModelGridDisplay & DocumentModelGridDisplay::operator= | ( | const DocumentModelGridDisplay & | other | ) |
Assignment constructor.
Definition at line 72 of file DocumentModelGridDisplay.cpp.
| ColorPalette DocumentModelGridDisplay::paletteColor | ( | ) | const |
Get method for color.
Definition at line 177 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 182 of file DocumentModelGridDisplay.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 204 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setCountX | ( | unsigned int | countX | ) |
Set method for x grid line count.
Definition at line 228 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setCountY | ( | unsigned int | countY | ) |
Set method for y grid line count.
Definition at line 233 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setDisableX | ( | GridCoordDisable | disableX | ) |
Set method for x grid line disabled variable.
Definition at line 238 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setDisableY | ( | GridCoordDisable | disableY | ) |
Set method for y grid line disabled variable.
Definition at line 243 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setLineWidth | ( | unsigned int | lineWidth | ) |
Set method for line width.
Definition at line 248 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setPaletteColor | ( | ColorPalette | paletteColor | ) |
Set method for color.
Definition at line 253 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStable | ( | bool | stable | ) |
Set method for stable flag.
Definition at line 258 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStartX | ( | double | startX | ) |
Set method for x grid line lower bound (inclusive).
Definition at line 263 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStartY | ( | double | yStart | ) |
Set method for y grid line lower bound (inclusive).
Definition at line 268 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStepX | ( | double | stepX | ) |
Set method for x grid line increment.
Definition at line 273 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStepY | ( | double | yStep | ) |
Set method for y grid line increment.
Definition at line 278 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStopX | ( | double | stopX | ) |
Set method for x grid line upper bound (inclusive).
Definition at line 283 of file DocumentModelGridDisplay.cpp.
| void DocumentModelGridDisplay::setStopY | ( | double | yStop | ) |
Set method for y grid line upper bound (inclusive).
Definition at line 288 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 293 of file DocumentModelGridDisplay.cpp.
| double DocumentModelGridDisplay::startX | ( | ) | const |
Get method for x grid line lower bound (inclusive).
Definition at line 298 of file DocumentModelGridDisplay.cpp.
| double DocumentModelGridDisplay::startY | ( | ) | const |
Get method for y grid line lower bound (inclusive).
Definition at line 303 of file DocumentModelGridDisplay.cpp.
| double DocumentModelGridDisplay::stepX | ( | ) | const |
Get method for x grid line increment.
Definition at line 308 of file DocumentModelGridDisplay.cpp.
| double DocumentModelGridDisplay::stepY | ( | ) | const |
Get method for y grid line increment.
Definition at line 313 of file DocumentModelGridDisplay.cpp.
| double DocumentModelGridDisplay::stopX | ( | ) | const |
Get method for x grid line upper bound (inclusive).
Definition at line 318 of file DocumentModelGridDisplay.cpp.
| double DocumentModelGridDisplay::stopY | ( | ) | const |
Get method for y grid line upper bound (inclusive).
Definition at line 323 of file DocumentModelGridDisplay.cpp.