mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
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:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user