Engauge Digitizer  2
Public Member Functions | List of all members
DocumentModelGridRemoval Class Reference

Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user approves. More...

#include <DocumentModelGridRemoval.h>

Inheritance diagram for DocumentModelGridRemoval:
DocumentModelAbstractBase

Public Member Functions

 DocumentModelGridRemoval ()
 Default constructor.
 
 DocumentModelGridRemoval (double startX, double startY, double stepX, double stepY, int countX, int countY)
 Constructor fed by GridClassifier.
 
 DocumentModelGridRemoval (const Document &document)
 Initial constructor from Document.
 
 DocumentModelGridRemoval (const DocumentModelGridRemoval &other)
 Copy constructor.
 
DocumentModelGridRemovaloperator= (const DocumentModelGridRemoval &other)
 Assignment constructor.
 
double closeDistance () const
 Get method for close distance.
 
int countX () const
 Get method for x count.
 
int countY () const
 Get method for y count.
 
GridCoordDisable gridCoordDisableX () const
 Get method for x coord parameter to disable.
 
GridCoordDisable gridCoordDisableY () const
 Get method for y coord parameter to disable.
 
virtual void loadXml (QXmlStreamReader &reader)
 Load model from serialized xml.
 
void printStream (QString indentation, QTextStream &str) const
 Debugging method that supports print method of this class and printStream method of some other class(es)
 
bool removeDefinedGridLines () const
 Get method for removing defined grid lines.
 
virtual void saveXml (QXmlStreamWriter &writer) const
 Save entire model as xml into stream.
 
void setCloseDistance (double closeDistance)
 Set method for close distance.
 
void setCountX (int countX)
 Set method for x count.
 
void setCountY (int countY)
 Set method for y count.
 
void setGridCoordDisableX (GridCoordDisable gridCoordDisable)
 Set method for x coord parameter to disable.
 
void setGridCoordDisableY (GridCoordDisable gridCoordDisable)
 Set method for y coord parameter to disable.
 
void setRemoveDefinedGridLines (bool removeDefinedGridLines)
 Set method for removing defined grid lines.
 
void setStable ()
 Set the stable flag to true. This public version has no argument since it cannot be undone.
 
void setStartX (double startX)
 Set method for x start.
 
void setStartY (double startY)
 Set method for y start.
 
void setStepX (double stepX)
 Set method for x step.
 
void setStepY (double stepY)
 Set method for y step.
 
void setStopX (double stopX)
 Set method for x stop.
 
void setStopY (double stopY)
 Set method for y stop.
 
bool stable () const
 Get method for stable flag. More...
 
double startX () const
 Get method for x start.
 
double startY () const
 Get method for y start.
 
double stepX () const
 Get method for x step.
 
double stepY () const
 Get method for y step.
 
double stopX () const
 Get method for x stop.
 
double stopY () const
 Get method for y stop.
 
- Public Member Functions inherited from DocumentModelAbstractBase
 DocumentModelAbstractBase ()
 Single constructor.
 
virtual ~DocumentModelAbstractBase ()
 Single destructor.
 

Additional Inherited Members

Detailed Description

Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user approves.

Definition at line 17 of file DocumentModelGridRemoval.h.

Member Function Documentation

◆ stable()

bool DocumentModelGridRemoval::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 320 of file DocumentModelGridRemoval.cpp.


The documentation for this class was generated from the following files: