kig
cabri-utils.cc
Go to the documentation of this file.
253 QRegExp secondlinere( "^([^,]+), ([^,]+), ([^,]+), DS:([^ ]+) ([^,]+), GT:([^,]+), ([^,]+), (.*)$" );
254 QRegExp secondlinere2( "^([^,]+), ([^,]+), NbD:([^,]+), ([^,]+), ([^,]+), GT:([^,]+), ([^,]+), (.*)$" );
401 // for ( std::vector<int>::iterator i = myobj->parents.begin(); i != myobj->parents.end(); ++i )
533 QRegExp firstlinere( "^([^:]+): ([^,]+), (Const: [,0-9\\s]+)?(int ind:([^,]+),\\s)?(cart, )?(side:(\\d+), )?(inc\\.elmts: ([,0-9\\s]+))?(axis:(x|y), )?(on mark, )?(Val: ([^,]+))?(.*)$" );
697 bool CabriReader_v12::readStyles( const QString& file, const QString& line, CabriObject_v12* myobj )
virtual void decodeStyle(CabriObject *obj, Qt::PenStyle &ps, int &pointType)
Definition: cabri-utils.cc:410
QString cap(int nth) const
void truncate(int position)
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString fileName() const
virtual bool readWindowMetrics(QFile &f)
Definition: cabri-utils.cc:194
virtual bool readWindowMetrics(QFile &f)
Definition: cabri-utils.cc:504
QString & remove(int position, int n)
double toDouble(bool *ok) const
virtual void decodeStyle(CabriObject *obj, Qt::PenStyle &ps, int &pointType)
Definition: cabri-utils.cc:641
int matchedLength() const
CabriReader_v10(const KigFilterCabri *filter)
Definition: cabri-utils.cc:185
int indexIn(const QString &str, int offset, CaretMode caretMode) const
QString readLine(QFile &file)
Read a line from a Cabri file, stripping the \n and \r characters.
Definition: cabri-utils.cc:89
Definition: cabri-utils.h:106
int toInt(bool *ok, int base) const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static QColor translateColor(const QString &s)
Translate a color from a 1 to 3 character sequence.
Definition: cabri-utils.cc:174
CabriReader_v12(const KigFilterCabri *filter)
Definition: cabri-utils.cc:453
Definition: cabri-utils.h:49
iterator end()
static QColor defaultColorForObject(const QByteArray &type)
Gives the default color for an object, in case of an object come with no color specified; it's exactl...
Definition: cabri-utils.cc:47
This is an import filter for the output of the commercial program Cabri ("CAhier de BRouillon Interac...
Definition: cabri-filter.h:36
QString readText(QFile &f, const QString &s, const QString &sep)
Definition: cabri-utils.cc:99
long toLong(bool *ok, int base) const
QByteArray toLatin1() const
QString mid(int position, int n) const
int count() const
virtual bool atEnd() const
const QChar at(int position) const
int length() const
static QColor translateColor(const QString &s)
Definition: cabri-utils.cc:687
static bool extractValuesFromString(const QString &str, std::vector< int > &vec)
Definition: cabri-utils.cc:67
bool exactMatch(const QString &str) const
iterator begin()
bool isValid() const
qint64 readLine(char *data, qint64 maxSize)
uint toUInt(bool *ok, int base) const
Definition: cabri-utils.h:96
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.