diff options
Diffstat (limited to 'doc/html/chart-element-cpp.html')
-rw-r--r-- | doc/html/chart-element-cpp.html | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/html/chart-element-cpp.html b/doc/html/chart-element-cpp.html index cc517fbc5..cb58e259c 100644 --- a/doc/html/chart-element-cpp.html +++ b/doc/html/chart-element-cpp.html @@ -34,8 +34,8 @@ body { background: #ffffff; color: black; } <pre>#include "element.h" -#include <<a href="qstringlist-h.html">qstringlist.h</a>> -#include <<a href="qtextstream-h.html">qtextstream.h</a>> +#include <<a href="qstringlist-h.html">ntqstringlist.h</a>> +#include <<a href="qtextstream-h.html">ntqtextstream.h</a>> const char FIELD_SEP = ':'; const char PROPOINT_SEP = ';'; @@ -43,7 +43,7 @@ const char XY_SEP = ','; void Element::init( double value, TQColor valueColor, int valuePattern, - const <a href="qstring.html">TQString</a>& label, TQColor labelColor ) + const <a href="ntqstring.html">TQString</a>& label, TQColor labelColor ) { m_value = value; m_valueColor = valueColor; @@ -65,33 +65,33 @@ void Element::setValuePattern( int valuePattern ) double Element::proX( int index ) const { - <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); + <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); return m_propoints[2 * index]; } double Element::proY( int index ) const { - <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); + <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); return m_propoints[(2 * index) + 1]; } void Element::setProX( int index, double value ) { - <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); + <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); m_propoints[2 * index] = value; } void Element::setProY( int index, double value ) { - <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); + <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index >= 0 && index < MAX_PROPOINTS); m_propoints[(2 * index) + 1] = value; } -TQTextStream &operator<<( <a href="qtextstream.html">TQTextStream</a> &s, const Element &element ) +TQTextStream &operator<<( <a href="ntqtextstream.html">TQTextStream</a> &s, const Element &element ) { s << element.value() << FIELD_SEP << element.valueColor().name() << FIELD_SEP @@ -109,39 +109,39 @@ TQTextStream &operator<<( <a href="qtextstream.html">TQTextStream</a> } -TQTextStream &operator>>( <a href="qtextstream.html">TQTextStream</a> &s, Element &element ) +TQTextStream &operator>>( <a href="ntqtextstream.html">TQTextStream</a> &s, Element &element ) { - <a href="qstring.html">TQString</a> data = s.<a href="qtextstream.html#readLine">readLine</a>(); + <a href="ntqstring.html">TQString</a> data = s.<a href="ntqtextstream.html#readLine">readLine</a>(); element.setValue( Element::INVALID ); int errors = 0; bool ok; - <a href="qstringlist.html">TQStringList</a> fields = TQStringList::<a href="qstringlist.html#split">split</a>( FIELD_SEP, data ); - if ( fields.<a href="qvaluelist.html#count">count</a>() >= 4 ) { + <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList::<a href="ntqstringlist.html#split">split</a>( FIELD_SEP, data ); + if ( fields.<a href="ntqvaluelist.html#count">count</a>() >= 4 ) { double value = fields[0].toDouble( &ok ); if ( !ok ) errors++; - <a href="qcolor.html">TQColor</a> valueColor = TQColor( fields[1] ); - if ( !valueColor.<a href="qcolor.html#isValid">isValid</a>() ) + <a href="ntqcolor.html">TQColor</a> valueColor = TQColor( fields[1] ); + if ( !valueColor.<a href="ntqcolor.html#isValid">isValid</a>() ) errors++; int valuePattern = fields[2].toInt( &ok ); if ( !ok ) errors++; - <a href="qcolor.html">TQColor</a> labelColor = TQColor( fields[3] ); - if ( !labelColor.<a href="qcolor.html#isValid">isValid</a>() ) + <a href="ntqcolor.html">TQColor</a> labelColor = TQColor( fields[3] ); + if ( !labelColor.<a href="ntqcolor.html#isValid">isValid</a>() ) errors++; - <a href="qstringlist.html">TQStringList</a> propoints = TQStringList::<a href="qstringlist.html#split">split</a>( PROPOINT_SEP, fields[4] ); - <a href="qstring.html">TQString</a> label = data.<a href="qstring.html#section">section</a>( FIELD_SEP, 5 ); + <a href="ntqstringlist.html">TQStringList</a> propoints = TQStringList::<a href="ntqstringlist.html#split">split</a>( PROPOINT_SEP, fields[4] ); + <a href="ntqstring.html">TQString</a> label = data.<a href="ntqstring.html#section">section</a>( FIELD_SEP, 5 ); if ( !errors ) { element.set( value, valueColor, valuePattern, label, labelColor ); int i = 0; - for ( TQStringList::iterator point = propoints.<a href="qvaluelist.html#begin">begin</a>(); - i < Element::MAX_PROPOINTS && point != propoints.<a href="qvaluelist.html#end">end</a>(); + for ( TQStringList::iterator point = propoints.<a href="ntqvaluelist.html#begin">begin</a>(); + i < Element::MAX_PROPOINTS && point != propoints.<a href="ntqvaluelist.html#end">end</a>(); ++i, ++point ) { errors = 0; - <a href="qstringlist.html">TQStringList</a> xy = TQStringList::<a href="qstringlist.html#split">split</a>( XY_SEP, *point ); + <a href="ntqstringlist.html">TQStringList</a> xy = TQStringList::<a href="ntqstringlist.html#split">split</a>( XY_SEP, *point ); double x = xy[0].toDouble( &ok ); if ( !ok || x <= 0.0 || x >= 1.0 ) errors++; |