95 else if (str ==
"unitfolio") {
99 else if (str ==
"ten") {
103 else if (str ==
"tenfolio") {
107 else if (str ==
"hundred") {
111 else if (str ==
"hundredfolio") {
115 else if (str ==
"string") {
119 else if (str ==
"idfolio") {
123 else if (str==
"folio"){
127 else if (str==
"plant"){
131 else if (str==
"locmach"){
135 else if (str==
"elementline"){
139 else if (str==
"elementcolumn"){
143 else if (str==
"elementprefix"){
165 QStringList strl = nc.
itemAt(i);
167 newnc.
addValue(strl.at(0), strl.at(1), strl.at(2).toInt());
176 QStringList strl = nc.
itemAt(i);
178 QString value = QString::number( (strl.at(1).toInt()) + (strl.at(2).toInt()) );
179 newnc.
addValue(strl.at(0), value, strl.at(2).toInt(), strl.at(3).toInt());
188 QStringList strl = nc.
itemAt(i);
190 QString value = QString::number( (strl.at(1).toInt()) - (strl.at(2).toInt()) );
191 newnc.
addValue(strl.at(0), value, strl.at(2).toInt(), strl.at(3).toInt());
269 int numint = num.toInt();
270 QString numstr = num;
271 if (numint<10) numstr.prepend(
"0");
303 int numint = num.toInt();
304 QString numstr = num;
305 if (numint<10) numstr.prepend(
"0");
338 int numint = num.toInt();
339 QString numstr = num;
342 numstr.prepend(
"00");
344 else numstr.prepend(
"0");
377 int numint = num.toInt();
378 QString numstr = num;
381 numstr.prepend(
"00");
383 else numstr.prepend(
"0");
NumerotationContext next(const NumerotationContext &, const int) const override
ElementColumnNum::next.
QString toRepresentedString(const QString) const override
UnitNum::toRepresentedString.
QString toRepresentedString(const QString) const override
UnitFNum::toRepresentedString.
NumerotationContext previous(const NumerotationContext &, const int) const override
UnitFNum::previous.
NumerotationContext previousNumber(const NumerotationContext &, const int) const
NumStrategy::previousNumber.
NumerotationContext context_
NumerotationContext nextString(const NumerotationContext &, const int) const
NumStrategy::nextString.
QStringList itemAt(const int) const
NumerotationContext::itemAt.
NumerotationContext previous(const NumerotationContext &, const int) const override
UnitNum::previous.
NumerotationContext previous(const NumerotationContext &, const int) const override
PlantNum::previous.
NumerotationContext previous(const NumerotationContext &, const int) const override
TenNum::previous.
NumerotationContext next()
NumerotationContextCommands::next.
NumerotationContext previous(const NumerotationContext &, const int) const override
HundredNum::previous.
QString toRepresentedString(const QString) const override
FolioNum::toRepresentedString.
QString toRepresentedString(const QString) const override
ElementLineNum::toRepresentedString.
ElementColumnNum(Diagram *)
NumerotationContext previous(const NumerotationContext &, const int) const override
TenFNum::previous.
NumerotationContext next(const NumerotationContext &, const int) const override
TenFNum::next.
~NumerotationContextCommands()
Destructor.
QString toRepresentedString(const QString) const override
PlantNum::toRepresentedString.
NumerotationContext next(const NumerotationContext &, const int) const override
ElementPrefixNum::next.
NumerotationContext next(const NumerotationContext &, const int) const override
UnitNum::next.
QString toRepresentedString(const QString) const override
LocmachNum::toRepresentedString.
QString toRepresentedString(const QString) const override
ElementColumnNum::toRepresentedString.
QString toRepresentedString(const QString) const override
StringNum::toRepresentedString.
QString toRepresentedString(const QString) const override
IdFolioNum::toRepresentedString.
NumerotationContext previous()
NumerotationContextCommands::previous.
NumStrategy(Diagram *=nullptr)
NumerotationContextCommands(const NumerotationContext &, Diagram *=nullptr)
Constructor.
NumerotationContext next(const NumerotationContext &, const int) const override
IdFolioNum::next.
NumerotationContext next(const NumerotationContext &, const int) const override
HundredFNum::next.
ElementLineNum(Diagram *)
int size() const
NumerotationContext::size.
NumerotationContext next(const NumerotationContext &, const int) const override
TenNum::next.
NumerotationContext previous(const NumerotationContext &, const int) const override
HundredFNum::previous.
QString toRepresentedString(const QString) const override
HundredFNum::toRepresentedString.
NumerotationContext previous(const NumerotationContext &, const int) const override
FolioNum::previous.
NumerotationContext previous(const NumerotationContext &, const int) const override
ElementPrefixNum::previous.
NumerotationContext next(const NumerotationContext &, const int) const override
UnitFNum::next.
NumerotationContext previous(const NumerotationContext &, const int) const override
IdFolioNum::previous.
NumerotationContext next(const NumerotationContext &, const int) const override
FolioNum::next.
NumerotationContext nextNumber(const NumerotationContext &, const int) const
NumStrategy::nextNumber.
NumerotationContext previous(const NumerotationContext &, const int) const override
ElementLineNum::previous.
NumerotationContext next(const NumerotationContext &, const int) const override
LocmachNum::next.
QString toRepresentedString(const QString) const override
TenFNum::toRepresentedString.
NumerotationContext previous(const NumerotationContext &, const int) const override
StringNum::previous.
QString toRepresentedString(const QString) const override
HundredNum::toRepresentedString.
NumerotationContext previous(const NumerotationContext &, const int) const override
ElementColumnNum::previous.
bool addValue(const QString &, const QVariant &=QVariant(1), const int=1, const int=0)
NumerotationContext::addValue, add a new value on the contexte.
NumerotationContext next(const NumerotationContext &, const int) const override
HundredNum::next.
NumerotationContext next(const NumerotationContext &, const int) const override
ElementLineNum::next.
void setNumStrategy(const QString &)
NumerotationContextCommands::setNumStrategy apply the good strategy relative to . ...
NumerotationContext next(const NumerotationContext &, const int) const override
PlantNum::next.
NumerotationContext previous(const NumerotationContext &, const int) const override
LocmachNum::previous.
QString toRepresentedString(const QString) const override
ElementPrefixNum::toRepresentedString.
ElementPrefixNum(Diagram *)
NumerotationContext next(const NumerotationContext &, const int) const override
StringNum::next.
QString toRepresentedString(const QString) const override
TenNum::toRepresentedString.
QString toRepresentedString()
NumerotationContextCommands::toFinalString.