QElectroTech 0.100.0-dev
|
#include <numerotationcontext.h>
Public Member Functions | |
NumerotationContext () | |
NumerotationContext (QDomElement &) | |
void | clear () |
NumerotationContext::clear, clear the content. | |
bool | addValue (const QString &, const QVariant &=QVariant(1), const int=1, const int=0) |
NumerotationContext::addValue add a new value on the contexte. | |
QString | operator[] (const int &) const |
NumerotationContext::operator []. | |
void | operator<< (const NumerotationContext &) |
NumerotationContext::operator << , append other. | |
int | size () const |
NumerotationContext::size. | |
bool | isEmpty () const |
NumerotationContext::isEmpty. | |
QStringList | itemAt (const int) const |
NumerotationContext::itemAt. | |
QString | validRegExpNum () const |
validRegExpNum | |
QString | validRegExpNumber () const |
NumerotationContext::validRegExpNumber. | |
bool | keyIsAcceptable (const QString &) const |
NumerotationContext::keyIsAcceptable. | |
bool | keyIsNumber (const QString &) const |
NumerotationContext::keyIsNumber. | |
QDomElement | toXml (QDomDocument &, const QString &) |
NumerotationContext::toXml Save the numerotation context in a QDomElement under the element name str. | |
void | fromXml (QDomElement &) |
NumerotationContext::fromXml load numerotation context from e. | |
void | replaceValue (int, QString) |
NumerotationContext::replaceValue This class replaces the current NC field value with content. | |
Private Attributes | |
QStringList | content_ |
This class represents a numerotation context, i.e. the data (type, value, increase) of a numerotation at a given time. It is notably used by conductor to store the informations they need to do their autonumerotation.
NumerotationContext::NumerotationContext | ( | ) |
Constructor
NumerotationContext::NumerotationContext | ( | QDomElement & | e | ) |
Constructor from xml
bool NumerotationContext::addValue | ( | const QString & | type, |
const QVariant & | value = QVariant(1) , |
||
const int | increase = 1 , |
||
const int | initialvalue = 0 |
||
) |
NumerotationContext::addValue add a new value on the contexte.
type | the type of value |
value | the value itself |
increase | the increase number of value |
initialvalue |
void NumerotationContext::clear | ( | ) |
void NumerotationContext::fromXml | ( | QDomElement & | e | ) |
NumerotationContext::fromXml load numerotation context from e.
bool NumerotationContext::isEmpty | ( | ) | const |
QStringList NumerotationContext::itemAt | ( | const int | i | ) | const |
i |
bool NumerotationContext::keyIsAcceptable | ( | const QString & | type | ) | const |
NumerotationContext::keyIsAcceptable.
bool NumerotationContext::keyIsNumber | ( | const QString & | type | ) | const |
NumerotationContext::keyIsNumber.
void NumerotationContext::operator<< | ( | const NumerotationContext & | other | ) |
QString NumerotationContext::operator[] | ( | const int & | i | ) | const |
void NumerotationContext::replaceValue | ( | int | index, |
QString | content | ||
) |
NumerotationContext::replaceValue This class replaces the current NC field value with content.
index | of NC Item |
content | to replace current value |
int NumerotationContext::size | ( | ) | const |
QDomElement NumerotationContext::toXml | ( | QDomDocument & | d, |
const QString & | str | ||
) |
NumerotationContext::toXml Save the numerotation context in a QDomElement under the element name str.
QString NumerotationContext::validRegExpNum | ( | ) | const |
validRegExpNum
QString NumerotationContext::validRegExpNumber | ( | ) | const |
NumerotationContext::validRegExpNumber.
|
private |