add methods to save/load autonumerotation of conductor to .qet file

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2171 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-05-20 19:29:10 +00:00
parent 44a853a204
commit 4363fb8481
3 changed files with 72 additions and 0 deletions

View File

@@ -20,6 +20,8 @@
#include <QStringList>
#include <QVariant>
#include <QDomElement>
/**
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
@@ -28,16 +30,21 @@
class NumerotationContext
{
public:
NumerotationContext ();
NumerotationContext (QDomElement &);
void clear();
bool addValue(const QString &, const QVariant & = QVariant(1), const int = 1);
QString operator[] (const int &) const;
void operator << (const NumerotationContext &);
int size() const;
bool isEmpty() const;
QStringList itemAt(const int) const;
QString validRegExpNum () const;
QString validRegExpNumber() const;
bool keyIsAcceptable (const QString &) const;
bool keyIsNumber(const QString &) const;
QDomElement toXML(QDomDocument &, QString);
void fromXML(QDomElement &);
private:
QStringList content_;