diff options
Diffstat (limited to 'libkdchart/KDChartParams_io.cpp')
-rw-r--r-- | libkdchart/KDChartParams_io.cpp | 594 |
1 files changed, 297 insertions, 297 deletions
diff --git a/libkdchart/KDChartParams_io.cpp b/libkdchart/KDChartParams_io.cpp index 092229e..0006451 100644 --- a/libkdchart/KDChartParams_io.cpp +++ b/libkdchart/KDChartParams_io.cpp @@ -29,10 +29,10 @@ #include "KDChartParams.h" #include <KDXMLTools.h> -#include <qintdict.h> +#include <tqintdict.h> /** - \fn QTextStream& operator<<( QTextStream& s, const KDChartParams& p ); + \fn TQTextStream& operator<<( TQTextStream& s, const KDChartParams& p ); Writes the KDChartParams object p as an XML document to the text stream s. @@ -40,9 +40,9 @@ \param p the KDChartParams object to write \return the text stream after the write operation */ -QTextStream& operator<<( QTextStream& s, const KDChartParams& p ) +TQTextStream& operator<<( TQTextStream& s, const KDChartParams& p ) { - QDomDocument document = p.saveXML(); + TQDomDocument document = p.saveXML(); s << document.toString(); return s; @@ -52,11 +52,11 @@ QTextStream& operator<<( QTextStream& s, const KDChartParams& p ) Helper method saving the axis parameters to an XML file, this is called by saveXML() only. */ -void KDChartParams::saveAxesToXML(QDomDocument& doc, QDomElement& docRoot) const +void KDChartParams::saveAxesToXML(TQDomDocument& doc, TQDomElement& docRoot) const { // the AxisSettings elements for( int axis = 0; axis < 13; axis++ ) { - QDomElement axisSettingsElement = + TQDomElement axisSettingsElement = doc.createElement( "AxisSettings" ); docRoot.appendChild( axisSettingsElement ); axisSettingsElement.setAttribute( "Dataset", @@ -243,7 +243,7 @@ void KDChartParams::saveAxesToXML(QDomDocument& doc, QDomElement& docRoot) const _axisSettings[axis].params._trueDelta ); // the ZeroLineStart element - QDomElement zeroLineStartElement = doc.createElement( "ZeroLineStart" ); + TQDomElement zeroLineStartElement = doc.createElement( "ZeroLineStart" ); axisSettingsElement.appendChild( zeroLineStartElement ); zeroLineStartElement.setAttribute( "X", _axisSettings[axis].params._axisZeroLineStartX ); zeroLineStartElement.setAttribute( "Y", _axisSettings[axis].params._axisZeroLineStartY ); @@ -340,23 +340,23 @@ void KDChartParams::saveAxesToXML(QDomDocument& doc, QDomElement& docRoot) const \return the XML document that represents the parameters \sa loadXML */ -QDomDocument KDChartParams::saveXML( bool withPI ) const +TQDomDocument KDChartParams::saveXML( bool withPI ) const { // Create an inital DOM document - QString docstart = "<ChartParams/>"; + TQString docstart = "<ChartParams/>"; - QDomDocument doc( "ChartParams" ); + TQDomDocument doc( "ChartParams" ); doc.setContent( docstart ); if( withPI ) doc.appendChild( doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ) ); - QDomElement docRoot = doc.documentElement(); + TQDomElement docRoot = doc.documentElement(); docRoot.setAttribute( "xmlns", "http://www.klaralvdalens-datakonsult.se/kdchart" ); docRoot.setAttribute( "xmlns:xsi", "http://www.w3.org/2000/10/XMLSchema-instance" ); docRoot.setAttribute( "xsi:schemaLocation", "http://www.klaralvdalens-datakonsult.se/kdchart" ); // the ChartType element - QDomElement chartTypeElement = doc.createElement( "ChartType" ); + TQDomElement chartTypeElement = doc.createElement( "ChartType" ); docRoot.appendChild( chartTypeElement ); chartTypeElement.setAttribute( "primary", chartTypeToString( _chartType ) ); @@ -368,29 +368,29 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const KDXML::createIntNode( doc, docRoot, "NumValues", _numValues ); // the ModeAndChartMap element - QDomElement modeAndChartMapElement = + TQDomElement modeAndChartMapElement = doc.createElement( "ModeAndChartMap" ); docRoot.appendChild( modeAndChartMapElement ); - for( QMap<uint,KDChartParams::ModeAndChart>::ConstIterator it = _dataSourceModeAndChart.begin(); + for( TQMap<uint,KDChartParams::ModeAndChart>::ConstIterator it = _dataSourceModeAndChart.begin(); it != _dataSourceModeAndChart.end(); ++it ) { // Dataset element - QDomElement datasetElement = doc.createElement( "Dataset" ); - QDomText datasetContent = - doc.createTextNode( QString::number( it.key() ) ); + TQDomElement datasetElement = doc.createElement( "Dataset" ); + TQDomText datasetContent = + doc.createTextNode( TQString::number( it.key() ) ); datasetElement.appendChild( datasetContent ); modeAndChartMapElement.appendChild( datasetElement ); // ModeAndChart element - QDomElement modeAndChartElement = doc.createElement( "ModeAndChart" ); + TQDomElement modeAndChartElement = doc.createElement( "ModeAndChart" ); modeAndChartElement.setAttribute( "Mode", chartSourceModeToString( it.data().mode() ) ); modeAndChartElement.setAttribute( "Chart", it.data().chart() ); modeAndChartMapElement.appendChild( modeAndChartElement ); } // the PropertySetMap element - QDomElement propertySetMapElement = + TQDomElement propertySetMapElement = doc.createElement( "PropertySetMap" ); docRoot.appendChild( propertySetMapElement ); - QIntDictIterator<KDChartPropertySet> it2( _propertySetList ); + TQIntDictIterator<KDChartPropertySet> it2( _propertySetList ); for( ; it2.current(); ++it2 ) propertySetMapElement.appendChild( it2.current()->saveXML( doc ) ); @@ -402,7 +402,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const _maxDatasetSourceMode ); // the ColorSettings element - QDomElement colorSettingsElement = + TQDomElement colorSettingsElement = doc.createElement( "ColorSettings" ); docRoot.appendChild( colorSettingsElement ); @@ -451,7 +451,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const _outlineDataLineWidth ); // the OutlineDataLineStyle element - QDomElement outlineDataLineStyleElement = + TQDomElement outlineDataLineStyleElement = doc.createElement( "OutlineDataLineStyle" ); colorSettingsElement.appendChild( outlineDataLineStyleElement ); outlineDataLineStyleElement.setAttribute( "Style", @@ -460,7 +460,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the BarSettings elemenet - QDomElement barSettingsElement = + TQDomElement barSettingsElement = doc.createElement( "BarSettings" ); docRoot.appendChild( barSettingsElement ); @@ -497,7 +497,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the LineSettings element - QDomElement lineSettingsElement = + TQDomElement lineSettingsElement = doc.createElement( "LineSettings" ); docRoot.appendChild( lineSettingsElement ); @@ -511,9 +511,9 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const "Marker", _lineMarker ); // the MarkerStyles elements - {for( QMap<uint,KDChartParams::LineMarkerStyle>::ConstIterator it = _lineMarkerStyles.begin(); + {for( TQMap<uint,KDChartParams::LineMarkerStyle>::ConstIterator it = _lineMarkerStyles.begin(); it != _lineMarkerStyles.end(); ++it ) { - QDomElement markerStyleElement = doc.createElement( "MarkerStyle" ); + TQDomElement markerStyleElement = doc.createElement( "MarkerStyle" ); lineSettingsElement.appendChild( markerStyleElement ); markerStyleElement.setAttribute( "Dataset", it.key() ); markerStyleElement.setAttribute( "Style", KDChartParams::lineMarkerStyleToString( it.data() ) ); @@ -533,16 +533,16 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const _lineColor ); // the LineStyle element - QDomElement lineStyleElement = + TQDomElement lineStyleElement = doc.createElement( "LineStyle" ); lineSettingsElement.appendChild( lineStyleElement ); lineStyleElement.setAttribute( "Style", KDXML::penStyleToString( _lineStyle ) ); // the DatasetLineStyles elements - {for( QMap<uint, PenStyle>::ConstIterator it = _datasetLineStyles.begin(); + {for( TQMap<uint, Qt::PenStyle>::ConstIterator it = _datasetLineStyles.begin(); it != _datasetLineStyles.end(); ++it ) { - QDomElement lineStyleElement = doc.createElement( "DatasetLineStyle" ); + TQDomElement lineStyleElement = doc.createElement( "DatasetLineStyle" ); lineSettingsElement.appendChild( lineStyleElement ); lineStyleElement.setAttribute( "Dataset", it.key() ); lineStyleElement.setAttribute( "Style", KDXML::penStyleToString( it.data() ) ); @@ -567,7 +567,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the AreaSettings element - QDomElement areaSettingsElement = + TQDomElement areaSettingsElement = doc.createElement( "AreaSettings" ); docRoot.appendChild( areaSettingsElement ); @@ -583,7 +583,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the PieRingSettings element - QDomElement pieRingSettingsElement = + TQDomElement pieRingSettingsElement = doc.createElement( "PieRingSettings" ); docRoot.appendChild( pieRingSettingsElement ); @@ -601,7 +601,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const _explodeFactors ); // the ExplodeSegment element - for( QValueList<int>::ConstIterator it = _explodeList.begin(); + for( TQValueList<int>::ConstIterator it = _explodeList.begin(); it != _explodeList.end(); ++it ) KDXML::createIntNode( doc, pieRingSettingsElement, "ExplodeSegment", *it ); @@ -628,7 +628,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const } // the HiLoSettings element - QDomElement hiLoSettingsElement = + TQDomElement hiLoSettingsElement = doc.createElement( "HiLoSettings" ); docRoot.appendChild( hiLoSettingsElement ); { @@ -696,7 +696,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the BoxAndWhiskerSettings element - QDomElement bWSettingsElement = + TQDomElement bWSettingsElement = doc.createElement( "BoxAndWhiskerSettings" ); docRoot.appendChild( bWSettingsElement ); { @@ -724,7 +724,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the PrintStatistics elements for( int i = BWStatValSTART; i <= BWStatValEND; ++i ){ - QDomElement printStatElement = + TQDomElement printStatElement = doc.createElement( "PrintStatistics"+bWChartStatValToString( (BWStatVal)i ) ); KDXML::createBoolNode( doc, printStatElement, "Active", _BWChartStatistics[ i ].active ); @@ -742,7 +742,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the PolarSettings element - QDomElement polarSettingsElement = + TQDomElement polarSettingsElement = doc.createElement( "PolarSettings" ); docRoot.appendChild( polarSettingsElement ); @@ -756,9 +756,9 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const "Marker", _polarMarker ); // the MarkerStyles elements - for( QMap<uint,KDChartParams::PolarMarkerStyle>::ConstIterator it = _polarMarkerStyles.begin(); + for( TQMap<uint,KDChartParams::PolarMarkerStyle>::ConstIterator it = _polarMarkerStyles.begin(); it != _polarMarkerStyles.end(); ++it ) { - QDomElement markerStyleElement = doc.createElement( "MarkerStyle" ); + TQDomElement markerStyleElement = doc.createElement( "MarkerStyle" ); polarSettingsElement.appendChild( markerStyleElement ); markerStyleElement.setAttribute( "Dataset", it.key() ); markerStyleElement.setAttribute( "Style", KDChartParams::polarMarkerStyleToString( it.data() ) ); @@ -776,7 +776,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the LegendSettings element - QDomElement legendSettingsElement = + TQDomElement legendSettingsElement = doc.createElement( "LegendSettings" ); docRoot.appendChild( legendSettingsElement ); { @@ -784,9 +784,9 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const KDXML::createStringNode( doc, legendSettingsElement, "Position", KDChartParams::legendPositionToString( _legendPosition ) ); - // the Orientation element + // the Qt::Orientation element KDXML::createOrientationNode( doc, legendSettingsElement, - "Orientation", _legendOrientation ); + "Qt::Orientation", _legendOrientation ); // the ShowLines element KDXML::createBoolNode( doc, legendSettingsElement, @@ -797,9 +797,9 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const KDChartParams::legendSourceToString( _legendSource ) ); // the Text elements - for( QMap<int,QString>::ConstIterator it = _legendText.begin(); + for( TQMap<int,TQString>::ConstIterator it = _legendText.begin(); it != _legendText.end(); ++it ) { - QDomElement legendTextElement = doc.createElement( "LegendText" ); + TQDomElement legendTextElement = doc.createElement( "LegendText" ); legendSettingsElement.appendChild( legendTextElement ); legendTextElement.setAttribute( "Dataset", it.key() ); legendTextElement.setAttribute( "Text", it.data() ); @@ -838,7 +838,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the HeaderFooterSettings elements for( int hf = 0; hf < 18; hf++ ) { - QDomElement hfSettingsElement = + TQDomElement hfSettingsElement = doc.createElement( "HeaderFooterSettings" ); docRoot.appendChild( hfSettingsElement ); { @@ -855,7 +855,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const // the GlobalLeading element - QDomElement globalLeadingElement = + TQDomElement globalLeadingElement = doc.createElement( "GlobalLeading" ); docRoot.appendChild( legendSettingsElement ); { @@ -870,7 +870,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const } // the DataValuesSettings1 element - QDomElement dataValuesSettings1Element = + TQDomElement dataValuesSettings1Element = doc.createElement( "DataValuesSettings1" ); docRoot.appendChild( dataValuesSettings1Element ); { @@ -923,14 +923,14 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const KDXML::createStringNode( doc, dataValuesSettings1Element, "LayoutPolicy", - KDChartEnums::layoutPolicyToString( _printDataValuesSettings._dataValuesLayoutPolicy ) ); + KDChartEnums::tqlayoutPolicyToString( _printDataValuesSettings._dataValuesLayoutPolicy ) ); KDXML::createBoolNode( doc, dataValuesSettings1Element, "ShowInfinite", _printDataValuesSettings._dataValuesShowInfinite ); } // the DataValuesSettings2 element - QDomElement dataValuesSettings2Element = + TQDomElement dataValuesSettings2Element = doc.createElement( "DataValuesSettings2" ); docRoot.appendChild( dataValuesSettings2Element ); { @@ -983,14 +983,14 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const KDXML::createStringNode( doc, dataValuesSettings2Element, "LayoutPolicy", - KDChartEnums::layoutPolicyToString( _printDataValuesSettings2._dataValuesLayoutPolicy ) ); + KDChartEnums::tqlayoutPolicyToString( _printDataValuesSettings2._dataValuesLayoutPolicy ) ); KDXML::createBoolNode( doc, dataValuesSettings2Element, "ShowInfinite", _printDataValuesSettings2._dataValuesShowInfinite ); } // global settings for data value settings of _all_ charts - QDomElement dataValuesGlobalSettingsElement = + TQDomElement dataValuesGlobalSettingsElement = doc.createElement( "DataValuesGlobalSettings" ); docRoot.appendChild( dataValuesGlobalSettingsElement ); { @@ -1000,11 +1000,11 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const } // the AreaMap element - QDomElement areaMapElement = + TQDomElement areaMapElement = doc.createElement( "AreaMap" ); docRoot.appendChild( areaMapElement ); { - QDictIterator<KDChartFrameSettings> it( _areaDict ); + TQDictIterator<KDChartFrameSettings> it( _areaDict ); for( ; it.current(); ++it ){ KDChartFrameSettings::createFrameSettingsNode( doc, areaMapElement, "FrameSettings", @@ -1014,11 +1014,11 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const } // the CustomBoxMap element - QDomElement customBoxMapElement = + TQDomElement customBoxMapElement = doc.createElement( "CustomBoxMap" ); docRoot.appendChild( customBoxMapElement ); { - QIntDictIterator<KDChartCustomBox> it( _customBoxDict ); + TQIntDictIterator<KDChartCustomBox> it( _customBoxDict ); for( ; it.current(); ++it ){ KDXML::createIntNode( doc, customBoxMapElement, "Number", it.currentKey() ); KDChartCustomBox::createCustomBoxNode( doc, customBoxMapElement, @@ -1032,7 +1032,7 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const /** - \fn QTextStream& operator>>( QTextStream& s, KDChartParams& p ); + \fn TQTextStream& operator>>( TQTextStream& s, KDChartParams& p ); Reads the an XML document from the text stream s into the KDChartParams object p @@ -1041,11 +1041,11 @@ QDomDocument KDChartParams::saveXML( bool withPI ) const \param p the KDChartParams object to read into \return the text stream after the read operation */ -QTextStream& operator>>( QTextStream& s, KDChartParams& p ) +TQTextStream& operator>>( TQTextStream& s, KDChartParams& p ) { - QDomDocument doc( "ChartParams" ); - // would be nicer if QDomDocument could read from a QTextStream... - QString docString = s.read(); + TQDomDocument doc( "ChartParams" ); + // would be nicer if TQDomDocument could read from a TQTextStream... + TQString docString = s.read(); doc.setContent( docString ); p.loadXML( doc ); @@ -1057,17 +1057,17 @@ QTextStream& operator>>( QTextStream& s, KDChartParams& p ) /** Helper method called by loadXML() only. */ -void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) +void KDChartParams::loadAxesFormXML(int& curAxisSettings, TQDomElement& element) { KDChartAxisParams* axisSettings = &( _axisSettings[ curAxisSettings ].params ); - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Type" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisType = KDChartAxisParams::stringToAxisType( string ); } else if( tagName == "Visible" ) { @@ -1079,7 +1079,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readBoolNode( element, labelsTouchEdges ) ) axisSettings->_axisLabelsTouchEdges = labelsTouchEdges; } else if( tagName == "AreaMode" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisAreaMode = KDChartAxisParams::stringToAxisAreaMode( string ); } else if( tagName == "UseAvailableSpaceFrom" ) { @@ -1103,7 +1103,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, areaMax ) ) axisSettings->_axisAreaMax = areaMax; } else if( tagName == "CalcMode" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisCalcMode = KDChartAxisParams::stringToAxisCalcMode( string ); } else if( tagName == "TrueAreaSize" ) { @@ -1111,7 +1111,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, trueAreaSize ) ) axisSettings->_axisTrueAreaSize = trueAreaSize; } else if( tagName == "TrueAreaRect" ) { - QRect trueAreaRect; + TQRect trueAreaRect; if( KDXML::readRectNode( element, trueAreaRect ) ) axisSettings->_axisTrueAreaRect = trueAreaRect; } else if( tagName == "ShowSubDelimiters" ) { @@ -1131,7 +1131,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, trueLineWidth ) ) axisSettings->_axisTrueLineWidth = trueLineWidth; } else if( tagName == "LineColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) axisSettings->_axisLineColor = color; } else if( tagName == "ShowGrid" ) { @@ -1139,7 +1139,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readBoolNode( element, showGrid ) ) axisSettings->_axisShowGrid = showGrid; } else if( tagName == "GridColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) axisSettings->_axisGridColor = color; } else if( tagName == "GridLineWidth" ) { @@ -1150,7 +1150,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( element.hasAttribute( "Style" ) ) axisSettings->_axisGridStyle = KDXML::stringToPenStyle( element.attribute( "Style" ) ); } else if( tagName == "GridSubColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) axisSettings->_axisGridSubColor = color; } else if( tagName == "GridSubLineWidth" ) { @@ -1161,7 +1161,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( element.hasAttribute( "Style" ) ) axisSettings->_axisGridSubStyle = KDXML::stringToPenStyle( element.attribute( "Style" ) ); } else if( tagName == "ZeroLineColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) axisSettings->_axisZeroLineColor = color; } else if( tagName == "LabelsVisible" ) { @@ -1191,7 +1191,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, leaveOut ) ) axisSettings->_axisValueLeaveOut = leaveOut; } else if( tagName == "LabelsColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) axisSettings->_axisLabelsColor = color; } else if( tagName == "SteadyValueCalc" ) { @@ -1199,20 +1199,20 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readBoolNode( element, steadyValueCalc ) ) axisSettings->_axisSteadyValueCalc = steadyValueCalc; } else if( tagName == "ValueStart" ) { - QVariant valX, valY; + TQVariant valX, valY; int propID; if( readChartValueNode( element, valY, valX, propID ) && - QVariant::Double == valY.type() ) + TQVariant::Double == valY.type() ) axisSettings->_axisValueStart = valY.toDouble(); } else if( tagName == "ValueStartIsExact" ) { bool isExactValue; if( KDXML::readBoolNode( element, isExactValue ) ) axisSettings->_axisValueStartIsExact = isExactValue; } else if( tagName == "ValueEnd" ) { - QVariant valX, valY; + TQVariant valX, valY; int propID; if( readChartValueNode( element, valY, valX, propID ) && - QVariant::Double == valY.type() ) + TQVariant::Double == valY.type() ) axisSettings->_axisValueEnd = valY.toDouble(); } else if( tagName == "ValueDelta" ) { double valueDelta; @@ -1259,7 +1259,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, digitsBehindComma ) ) axisSettings->_axisDigitsBehindComma = digitsBehindComma; } else if( tagName == "LabelsDateTimeFormat" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisLabelsDateTimeFormat = string; } else if( tagName == "MaxEmptyInnerSpan" ) { @@ -1267,7 +1267,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, maxEmptyInnerSpan ) ) axisSettings->_axisMaxEmptyInnerSpan = maxEmptyInnerSpan; } else if( tagName == "LabelsFromDataRow" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_labelTextsDataRow = KDChartAxisParams::stringToLabelsFromDataRow( string ); } else if( tagName == "TextsDataRow" ) { @@ -1275,15 +1275,15 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, textsDataRow ) ) axisSettings->_labelTextsDataRow = textsDataRow; } else if( tagName == "LabelString" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisLabelStringList << string; } else if( tagName == "ShortLabelString" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisShortLabelsStringList << string; } else if( tagName == "LabelText" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisLabelTexts = string; } else if( tagName == "LabelTextsDirty" ) { @@ -1291,11 +1291,11 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readBoolNode( element, labelTextsDirty ) ) axisSettings->_axisLabelTextsDirty = labelTextsDirty; } else if( tagName == "FirstLabelReplacementText" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) axisSettings->_axisFirstLabelText = value; } else if( tagName == "LastLabelReplacementText" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) axisSettings->_axisLastLabelText = value; } else if( tagName == "LabelsDivPow10" ) { @@ -1303,23 +1303,23 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, divPow10 ) ) axisSettings->_axisLabelsDivPow10 = divPow10; } else if( tagName == "LabelsDecimalPoint" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) axisSettings->_axisLabelsDecimalPoint = value; } else if( tagName == "LabelsThousandsPoint" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) axisSettings->_axisLabelsThousandsPoint = value; } else if( tagName == "LabelsNotation" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) axisSettings->_axisLabelsNotation = KDChartEnums::stringToNumberNotation( string ); } else if( tagName == "LabelsPrefix" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) axisSettings->_axisLabelsPrefix = value; } else if( tagName == "LabelsPostfix" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) axisSettings->_axisLabelsPostfix = value; } else if( tagName == "LabelsTotalLen" ) { @@ -1327,7 +1327,7 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) if( KDXML::readIntNode( element, totalLen ) ) axisSettings->_axisLabelsTotalLen = totalLen; } else if( tagName == "LabelsPadFill" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ){ if( value.isEmpty() ) axisSettings->_axisLabelsPadFill = ' '; @@ -1355,17 +1355,17 @@ void KDChartParams::loadAxesFormXML(int& curAxisSettings, QDomElement& element) format error occurred \sa saveXML */ -bool KDChartParams::loadXML( const QDomDocument& doc ) +bool KDChartParams::loadXML( const TQDomDocument& doc ) { int curAxisSettings = 0; int curHFSettings = 0; - QDomElement docRoot = doc.documentElement(); // ChartParams element - QDomNode node = docRoot.firstChild(); + TQDomElement docRoot = doc.documentElement(); // ChartParams element + TQDomNode node = docRoot.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "ChartType" ) { if( element.hasAttribute( "primary" ) ) _chartType = KDChartParams::stringToChartType( element.attribute( "primary" ) ); @@ -1377,11 +1377,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _numValues = numValues; } else if( tagName == "ModeAndChartMap" ) { int dataset = -1; - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Dataset" ) { KDXML::readIntNode( element, dataset ); } else if( tagName == "ModeAndChart" ) { @@ -1402,10 +1402,10 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) } } else if( tagName == "PropertySetMap" ) { // the PropertySetMap element - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); KDChartPropertySet set; while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() // was really an element && KDChartPropertySet::loadXML( element, set ) ) // parsed OK setProperties( set.id(), set ); @@ -1420,13 +1420,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readIntNode( element, maxDatasetSourceMode ) ) _maxDatasetSourceMode = maxDatasetSourceMode; } else if( tagName == "ColorSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "DataColors" ) { - QMap<uint,QColor>* map = &_dataColors; + TQMap<uint,TQColor>* map = &_dataColors; readColorMapNode( element, map ); } else if( tagName == "MaxDatasetColor" ) { int maxDatasetColor; @@ -1437,7 +1437,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readDoubleNode( element, shadowBrightnessFactor ) ) _shadowBrightnessFactor = shadowBrightnessFactor; } else if( tagName == "ShadowPattern" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _shadowPattern = KDXML::stringToBrushStyle( value ); } else if( tagName == "ThreeDShadowColors" ) { @@ -1445,13 +1445,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readBoolNode( element, threeDShadowColors ) ) _threeDShadowColors = threeDShadowColors; } else if( tagName == "DataColorsShadow1" ) { - QMap<uint,QColor>* map = &_dataColorsShadow1; + TQMap<uint,TQColor>* map = &_dataColorsShadow1; readColorMapNode( element, map ); } else if( tagName == "DataColorsShadow2" ) { - QMap<uint,QColor>* map = &_dataColorsShadow2; + TQMap<uint,TQColor>* map = &_dataColorsShadow2; readColorMapNode( element, map ); } else if( tagName == "OutlineDataColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _outlineDataColor = color; } else if( tagName == "OutlineDataLineWidth" ) { @@ -1468,13 +1468,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "BarSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "SubType" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _barChartSubType = KDChartParams::stringToBarChartSubType( value ); } else if( tagName == "ThreeDBars" ) { @@ -1516,13 +1516,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "LineSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "SubType" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _lineChartSubType = KDChartParams::stringToLineChartSubType( value ); } else if( tagName == "Marker" ) { @@ -1563,7 +1563,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readIntNode( element, lineWidth ) ) _lineWidth = lineWidth; } else if( tagName == "LineColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _lineColor = color; } else if( tagName == "LineStyle" ) { @@ -1572,7 +1572,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) } else if( tagName == "DatasetLineStyle" ) { bool ok = true; uint dataset; - PenStyle style = Qt::SolidLine; + Qt::PenStyle style = Qt::SolidLine; if( element.hasAttribute( "Dataset" ) && element.hasAttribute( "Style" ) ) { dataset = element.attribute( "Dataset" ).toUInt( &ok ); @@ -1605,17 +1605,17 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "AreaSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "SubType" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _areaChartSubType = KDChartParams::stringToAreaChartSubType( value ); } else if( tagName == "Location" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) _areaLocation = KDChartParams::stringToAreaLocation( string ); } else { @@ -1625,11 +1625,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "PieRingSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Explode" ) { bool explode; if( KDXML::readBoolNode( element, explode ) ) @@ -1639,7 +1639,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readDoubleNode( element, defaultExplodeFactor ) ) _explodeFactor = defaultExplodeFactor; } else if( tagName == "ExplodeFactors" ) { - QMap<int,double>* map = &_explodeFactors; + TQMap<int,double>* map = &_explodeFactors; readDoubleMapNode( element, map ); } else if( tagName == "ExplodeSegment" ) { int explodeSegment; @@ -1672,13 +1672,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "HiLoSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "SubType" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _hiLoChartSubType = KDChartParams::stringToHiLoChartSubType( value ); } else if( tagName == "PrintLowValues" ) { @@ -1691,7 +1691,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _hiLoChartLowValuesUseFontRelSize, _hiLoChartLowValuesFontRelSize ); } else if( tagName == "LowValuesColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _hiLoChartLowValuesColor = color; } else if( tagName == "PrintHighValues" ) { @@ -1704,7 +1704,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _hiLoChartHighValuesUseFontRelSize, _hiLoChartHighValuesFontRelSize ); } else if( tagName == "HighValuesColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _hiLoChartHighValuesColor = color; } else if( tagName == "PrintOpenValues" ) { @@ -1717,7 +1717,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _hiLoChartOpenValuesUseFontRelSize, _hiLoChartOpenValuesFontRelSize ); } else if( tagName == "OpenValuesColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _hiLoChartOpenValuesColor = color; } else if( tagName == "PrintCloseValues" ) { @@ -1730,7 +1730,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _hiLoChartCloseValuesUseFontRelSize, _hiLoChartCloseValuesFontRelSize ); } else if( tagName == "CloseValuesColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _hiLoChartCloseValuesColor = color; } else { @@ -1742,13 +1742,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) } else if( tagName == "BoxAndWhiskerSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "SubType" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _BWChartSubType = KDChartParams::stringToBWChartSubType( value ); } else if( tagName == "FenceUpperInner" ) { @@ -1768,7 +1768,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readDoubleNode( element, fence ) ) _BWChartFenceUpperOuter = fence; } else if( tagName == "Brush" ) { - QBrush brush; + TQBrush brush; if( KDXML::readBrushNode( element, brush ) ) _BWChartBrush = brush; } else if( tagName == "OutlierSize" ) { @@ -1777,14 +1777,14 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _BWChartOutValMarkerSize = size; } else if( tagName.startsWith("PrintStatistics") ) { // 012345678901234 - QString statName(tagName.mid( 15 )); + TQString statName(tagName.mid( 15 )); BWStatVal i( stringToBWChartStatVal( statName ) ); if( BWStatValSTART <= i && i <= BWStatValEND ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Active" ) { bool active; if( KDXML::readBoolNode( element, active ) ) @@ -1795,11 +1795,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _BWChartStatistics[ i ].useRelSize, _BWChartStatistics[ i ].relSize ); } else if( tagName == "Color" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _BWChartStatistics[ i ].color = color; } else if( tagName == "Brush" ) { - QBrush brush; + TQBrush brush; if( KDXML::readBrushNode( element, brush ) ) _BWChartStatistics[ i ].brush = brush; } else { @@ -1817,13 +1817,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "PolarSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "SubType" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _polarChartSubType = KDChartParams::stringToPolarChartSubType( value ); } else if( tagName == "Marker" ) { @@ -1870,16 +1870,16 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "LegendSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Position" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) _legendPosition = KDChartParams::stringToLegendPosition( string ); - } else if( tagName == "Orientation" ) { + } else if( tagName == "Qt::Orientation" ) { Qt::Orientation value=Qt::Vertical; if( KDXML::readOrientationNode( element, value ) ) _legendOrientation = value; @@ -1888,13 +1888,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readBoolNode( element, showLines ) ) _legendShowLines = showLines; } else if( tagName == "Source" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) _legendSource = KDChartParams::stringToLegendSource( string ); } else if( tagName == "LegendText" ) { bool ok = true; uint dataset = 0; - QString text; + TQString text; if( element.hasAttribute( "Dataset" ) && element.hasAttribute( "Text" ) ) { dataset = element.attribute( "Dataset" ).toUInt( &ok ); @@ -1905,7 +1905,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( ok ) _legendText[dataset] = text; } else if( tagName == "TextColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _legendTextColor = color; } else if( tagName == "TextFont" ) { @@ -1914,11 +1914,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) _legendFontUseRelSize, _legendFontRelSize ); } else if( tagName == "TitleText" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) _legendTitleText = string; } else if( tagName == "TitleColor" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) _legendTitleTextColor = color; } else if( tagName == "TitleFont" ) { @@ -1943,13 +1943,13 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) } else if( tagName == "HeaderFooterSettings" ) { KDChartParams::HdFtParams* hfSettings = &( _hdFtParams[ curHFSettings ] ); - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Text" ) { - QString string; + TQString string; if( KDXML::readStringNode( element, string ) ) hfSettings->_text = string; } else if( tagName == "Font" ) { @@ -1958,7 +1958,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) hfSettings->_fontUseRelSize, hfSettings->_fontRelSize ); } else if( tagName == "Color" ) { - QColor color; + TQColor color; if( KDXML::readColorNode( element, color ) ) hfSettings->_color = color; } else { @@ -1969,11 +1969,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) } curHFSettings++; // one header/footer setting finished } else if( tagName == "GlobalLeading" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an elemente - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Left" ) { int value; if( KDXML::readIntNode( element, value ) ) @@ -2000,11 +2000,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "DataValuesSettings1" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "PrintDataValues" ) { bool value; if( KDXML::readBoolNode( element, value ) ) @@ -2030,7 +2030,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) KDXML::readBoolNode( element, _printDataValuesSettings._dataValuesAutoColor ); } else if( tagName == "AnchorNegativePosition" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _printDataValuesSettings._dataValuesAnchorNegativePosition = KDChartEnums::stringToPositionFlag( value ); } else if( tagName == "AnchorNegativeAlign" ) { @@ -2050,7 +2050,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readIntNode( element, value ) ) _printDataValuesSettings._dataValuesNegativeRotation = value; } else if( tagName == "AnchorPositivePosition" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _printDataValuesSettings._dataValuesAnchorPositivePosition = KDChartEnums::stringToPositionFlag( value ); } else if( tagName == "AnchorPositiveAlign" ) { @@ -2070,7 +2070,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readIntNode( element, value ) ) _printDataValuesSettings._dataValuesPositiveRotation = value; } else if( tagName == "LayoutPolicy" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _printDataValuesSettings._dataValuesLayoutPolicy = KDChartEnums::stringToLayoutPolicy( value ); } else if( tagName == "ShowInfinite" ) { @@ -2082,11 +2082,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "DataValuesSettings2" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "PrintDataValues" ) { bool value; if( KDXML::readBoolNode( element, value ) ) @@ -2112,7 +2112,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) KDXML::readBoolNode( element, _printDataValuesSettings2._dataValuesAutoColor ); } else if( tagName == "AnchorNegativePosition" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _printDataValuesSettings2._dataValuesAnchorNegativePosition = KDChartEnums::stringToPositionFlag( value ); } else if( tagName == "AnchorNegativeAlign" ) { @@ -2132,7 +2132,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readIntNode( element, value ) ) _printDataValuesSettings2._dataValuesNegativeRotation = value; } else if( tagName == "AnchorPositivePosition" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _printDataValuesSettings2._dataValuesAnchorPositivePosition = KDChartEnums::stringToPositionFlag( value ); } else if( tagName == "AnchorPositiveAlign" ) { @@ -2152,7 +2152,7 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) if( KDXML::readIntNode( element, value ) ) _printDataValuesSettings2._dataValuesPositiveRotation = value; } else if( tagName == "LayoutPolicy" ) { - QString value; + TQString value; if( KDXML::readStringNode( element, value ) ) _printDataValuesSettings2._dataValuesLayoutPolicy = KDChartEnums::stringToLayoutPolicy( value ); } else if( tagName == "ShowInfinite" ) { @@ -2164,11 +2164,11 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "DataValuesGlobalSettings" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "allowOverlappingTexts" ) { bool value; if( KDXML::readBoolNode( element, value ) ) @@ -2181,26 +2181,26 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "AreaMap" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "FrameSettings" ) { KDChartFrameSettings* frameSettings = new KDChartFrameSettings; uint areaId = KDChartEnums::AreaUNKNOWN; if( KDChartFrameSettings::readFrameSettingsNode( element, *frameSettings, areaId ) ) { - QString str; + TQString str; if(areaId == KDChartEnums::AreaChartDataRegion) - str = QString( "%1/%2/%3/%4" ) - .arg( areaId, 5 ) - .arg( frameSettings->dataRow(), 5 ) - .arg( frameSettings->dataCol(), 5 ) - .arg( 0, 5 );//frameSettings->data3rd(), 5 ); + str = TQString( "%1/%2/%3/%4" ) + .tqarg( areaId, 5 ) + .tqarg( frameSettings->dataRow(), 5 ) + .tqarg( frameSettings->dataCol(), 5 ) + .tqarg( 0, 5 );//frameSettings->data3rd(), 5 ); else - str = QString( "%1/-----/-----/-----" ).arg( areaId, 5 ); - _areaDict.replace( str, frameSettings ); + str = TQString( "%1/-----/-----/-----" ).tqarg( areaId, 5 ); + _areaDict.tqreplace( str, frameSettings ); } } else @@ -2210,12 +2210,12 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) node = node.nextSibling(); } } else if( tagName == "CustomBoxMap" ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); int curNumber = -1; while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Number" ) { KDXML::readIntNode( element, curNumber ); } else if( tagName == "CustomBox" ) { @@ -2243,28 +2243,28 @@ bool KDChartParams::loadXML( const QDomDocument& doc ) /** - Creates a DOM element node that represents a map of QColor objects + Creates a DOM element node that represents a map of TQColor objects for use in a DOM document. \param doc the DOM document to which the node will belong - \param parent the parent node to which the new node will be appended + \param tqparent the tqparent node to which the new node will be appended \param elementName the name of the new node \param map the map of colors to be represented */ -void KDChartParams::createColorMapNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QMap< uint, QColor >& map ) +void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQMap< uint, TQColor >& map ) { - QDomElement mapElement = + TQDomElement mapElement = doc.createElement( elementName ); - parent.appendChild( mapElement ); - for( QMap<uint,QColor>::ConstIterator it = map.begin(); + tqparent.appendChild( mapElement ); + for( TQMap<uint,TQColor>::ConstIterator it = map.begin(); it != map.end(); ++it ) { // Dataset element - QDomElement datasetElement = doc.createElement( "Dataset" ); + TQDomElement datasetElement = doc.createElement( "Dataset" ); mapElement.appendChild( datasetElement ); - QDomText datasetContent = - doc.createTextNode( QString::number( it.key() ) ); + TQDomText datasetContent = + doc.createTextNode( TQString::number( it.key() ) ); datasetElement.appendChild( datasetContent ); // Color element KDXML::createColorNode( doc, mapElement, "Color", it.data() ); @@ -2277,24 +2277,24 @@ void KDChartParams::createColorMapNode( QDomDocument& doc, QDomNode& parent, for use in a DOM document. \param doc the DOM document to which the node will belong - \param parent the parent node to which the new node will be appended + \param tqparent the tqparent node to which the new node will be appended \param elementName the name of the new node \param map the map of doubles to be represented */ -void KDChartParams::createDoubleMapNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QMap< int, double >& map ) +void KDChartParams::createDoubleMapNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQMap< int, double >& map ) { - QDomElement mapElement = + TQDomElement mapElement = doc.createElement( elementName ); - parent.appendChild( mapElement ); - for( QMap<int,double>::ConstIterator it = map.begin(); + tqparent.appendChild( mapElement ); + for( TQMap<int,double>::ConstIterator it = map.begin(); it != map.end(); ++it ) { // Dataset element - QDomElement valueElement = doc.createElement( "Value" ); + TQDomElement valueElement = doc.createElement( "Value" ); mapElement.appendChild( valueElement ); - QDomText valueContent = - doc.createTextNode( QString::number( it.key() ) ); + TQDomText valueContent = + doc.createTextNode( TQString::number( it.key() ) ); valueElement.appendChild( valueContent ); // Color element KDXML::createDoubleNode( doc, mapElement, "Factor", it.data() ); @@ -2302,14 +2302,14 @@ void KDChartParams::createDoubleMapNode( QDomDocument& doc, QDomNode& parent, } -void dataCoordToElementAttr(const QVariant& val, QDomElement& element, const QString& postfix) +void dataCoordToElementAttr(const TQVariant& val, TQDomElement& element, const TQString& postfix) { - if( QVariant::Double == val.type() ) + if( TQVariant::Double == val.type() ) element.setAttribute( "DoubleValue"+postfix, - QString::number( val.toDouble() ) ); - else if( QVariant::String == val.type() ) + TQString::number( val.toDouble() ) ); + else if( TQVariant::String == val.type() ) element.setAttribute( "StringValue"+postfix, val.toString() ); - else if( QVariant::DateTime == val.type() ) + else if( TQVariant::DateTime == val.type() ) element.setAttribute( "DateTimeValue"+postfix, val.toDateTime().toString( Qt::ISODate ) ); else @@ -2321,22 +2321,22 @@ void dataCoordToElementAttr(const QVariant& val, QDomElement& element, const QSt chart value for use in a DOM document. \param doc the DOM document to which the node will belong - \param parent the parent node to which the new node will be appended + \param tqparent the tqparent node to which the new node will be appended \param elementName the name of the new node \param data the chart value to be represented */ -void KDChartParams::createChartValueNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QVariant& valY, - const QVariant& valX, +void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQVariant& valY, + const TQVariant& valX, const int& propID ) { - QDomElement element = doc.createElement( elementName ); - parent.appendChild( element ); + TQDomElement element = doc.createElement( elementName ); + tqparent.appendChild( element ); dataCoordToElementAttr( valY, element, "" ); // no postfix for Y value: backwards compat. dataCoordToElementAttr( valX, element, "X" ); element.setAttribute( "PropertySetID", - QString::number( propID ) ); + TQString::number( propID ) ); } @@ -2346,7 +2346,7 @@ void KDChartParams::createChartValueNode( QDomDocument& doc, QDomNode& parent, chart for use in a DOM document. \param doc the DOM document to which the node will belong - \param parent the parent node to which the new node will be appended + \param tqparent the tqparent node to which the new node will be appended \param elementName the name of the new node \param font the font to be resented \param useRelFont the specification whether the font size @@ -2354,14 +2354,14 @@ void KDChartParams::createChartValueNode( QDomDocument& doc, QDomNode& parent, \param relFont the relative font size \param minFont the minimal font size in points, leave this parameter out if not needed */ -void KDChartParams::createChartFontNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QFont& font, bool useRelFont, +void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQFont& font, bool useRelFont, int relFont, int minFont ) { - QDomElement chartFontElement = doc.createElement( elementName ); - parent.appendChild( chartFontElement ); + TQDomElement chartFontElement = doc.createElement( elementName ); + tqparent.appendChild( chartFontElement ); KDXML::createFontNode( doc, chartFontElement, "Font", font ); KDXML::createBoolNode( doc, chartFontElement, "UseRelFontSize", useRelFont ); @@ -2379,24 +2379,24 @@ void KDChartParams::createChartFontNode( QDomDocument& doc, QDomNode& parent, for use in a DOM document. \param doc the DOM document to which the node will belong - \param parent the parent node to which the new node will be appended + \param tqparent the tqparent node to which the new node will be appended \param elementName the name of the new node \param map the color map to be represented */ -bool KDChartParams::readColorMapNode( const QDomElement& element, - QMap<uint,QColor>* value ) +bool KDChartParams::readColorMapNode( const TQDomElement& element, + TQMap<uint,TQColor>* value ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); int curDataset = -1; while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Dataset" ) { KDXML::readIntNode( element, curDataset ); } else if( tagName == "Color" ) { Q_ASSERT( curDataset != -1 ); // there was a Dataset tag before - QColor color; + TQColor color; KDXML::readColorNode( element, color ); value->insert( curDataset, color ); } else { @@ -2417,15 +2417,15 @@ bool KDChartParams::readColorMapNode( const QDomElement& element, \param element the DOM element to read from \param map the frame settings object to read the data into */ -bool KDChartParams::readDoubleMapNode( const QDomElement& element, - QMap<int,double>* value ) +bool KDChartParams::readDoubleMapNode( const TQDomElement& element, + TQMap<int,double>* value ) { - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); int curValue = -1; while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Value" ) { KDXML::readIntNode( element, curValue ); } else if( tagName == "Factor" ) { @@ -2455,22 +2455,22 @@ bool KDChartParams::readDoubleMapNode( const QDomElement& element, \param useRelFont whether the font size is relative \param relFontSize the relative font size */ -bool KDChartParams::readChartFontNode( const QDomElement& element, - QFont& font, +bool KDChartParams::readChartFontNode( const TQDomElement& element, + TQFont& font, bool& useRelFont, int& relFontSize, int* minFontSize ) { bool ok = true; - QFont tempFont; + TQFont tempFont; bool tempRelFont; int tempRelFontSize; int tempMinFontSize=-1; - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while( !node.isNull() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if( !element.isNull() ) { // was really an element - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if( tagName == "Font" ) { ok = ok & KDXML::readFontNode( element, tempFont ); } else if( tagName == "UseRelFontSize" ) { @@ -2498,11 +2498,11 @@ bool KDChartParams::readChartFontNode( const QDomElement& element, } -bool foundCoordAttribute( const QDomElement& element, const QString& postfix, - QVariant& val ) +bool foundCoordAttribute( const TQDomElement& element, const TQString& postfix, + TQVariant& val ) { if( element.hasAttribute( "NoValue"+postfix ) ) - val = QVariant(); + val = TQVariant(); else if( element.hasAttribute( "DoubleValue"+postfix ) ) val = element.attribute( "DoubleValue"+postfix ); else if( element.hasAttribute( "DateTimeValue"+postfix ) ) @@ -2523,15 +2523,15 @@ bool foundCoordAttribute( const QDomElement& element, const QString& postfix, \param element the DOM element to read from \param value the chart data object to read the data into */ -bool KDChartParams::readChartValueNode( const QDomElement& element, - QVariant& valY, - QVariant& valX, +bool KDChartParams::readChartValueNode( const TQDomElement& element, + TQVariant& valY, + TQVariant& valX, int& propID ) { if( foundCoordAttribute( element, "", valY ) || foundCoordAttribute( element, "Y", valY ) ){ // valY must be there if( !foundCoordAttribute( element, "X", valX ) ){ - valX = QVariant(); + valX = TQVariant(); } propID = 0; if( element.hasAttribute( "PropertySetID" ) ) { @@ -2553,7 +2553,7 @@ bool KDChartParams::readChartValueNode( const QDomElement& element, \param type the type enum to convert \return the string representation of the type enum */ -QString KDChartParams::chartTypeToString( ChartType type ) +TQString KDChartParams::chartTypeToString( ChartType type ) { switch( type ) { case NoType: @@ -2586,7 +2586,7 @@ QString KDChartParams::chartTypeToString( ChartType type ) \param string the string to convert \return the chart type enum value */ -KDChartParams::ChartType KDChartParams::stringToChartType( const QString& string ) +KDChartParams::ChartType KDChartParams::stringToChartType( const TQString& string ) { if( string == "NoType" ) return NoType; @@ -2612,7 +2612,7 @@ KDChartParams::ChartType KDChartParams::stringToChartType( const QString& string -QString KDChartParams::markerStyleToString( int style ) +TQString KDChartParams::markerStyleToString( int style ) { switch( style ) { case LineMarkerSquare: @@ -2636,7 +2636,7 @@ QString KDChartParams::markerStyleToString( int style ) return "Circle"; } } -QString KDChartParams::markerStyleToStringTr( int style ) +TQString KDChartParams::markerStyleToStringTr( int style ) { switch( style ) { case LineMarkerSquare: @@ -2660,7 +2660,7 @@ QString KDChartParams::markerStyleToStringTr( int style ) return tr( "Circle" ); } } -int KDChartParams::stringToMarkerStyle( const QString& string ) +int KDChartParams::stringToMarkerStyle( const TQString& string ) { if( string == "Square" ) return LineMarkerSquare; @@ -2681,7 +2681,7 @@ int KDChartParams::stringToMarkerStyle( const QString& string ) else // default, should not happen return LineMarkerCircle; } -int KDChartParams::stringToMarkerStyleTr( const QString& string ) +int KDChartParams::stringToMarkerStyleTr( const TQString& string ) { if( string == tr( "Square" ) ) return LineMarkerSquare; @@ -2711,7 +2711,7 @@ int KDChartParams::stringToMarkerStyleTr( const QString& string ) \param type the type enum to convert \return the string representation of the type enum */ -QString KDChartParams::barChartSubTypeToString( BarChartSubType type ) { +TQString KDChartParams::barChartSubTypeToString( BarChartSubType type ) { switch( type ) { case BarNormal: return "BarNormal"; @@ -2734,7 +2734,7 @@ QString KDChartParams::barChartSubTypeToString( BarChartSubType type ) { \param string the string to convert \return the bar chart subtype enum value */ -KDChartParams::BarChartSubType KDChartParams::stringToBarChartSubType( const QString& string ) { +KDChartParams::BarChartSubType KDChartParams::stringToBarChartSubType( const TQString& string ) { if( string == "BarNormal" ) return BarNormal; else if( string == "BarStacked" ) @@ -2755,7 +2755,7 @@ KDChartParams::BarChartSubType KDChartParams::stringToBarChartSubType( const QSt \param string the string to convert \return the line chart subtype enum value */ -KDChartParams::LineChartSubType KDChartParams::stringToLineChartSubType( const QString& string ) { +KDChartParams::LineChartSubType KDChartParams::stringToLineChartSubType( const TQString& string ) { if( string == "LineNormal" ) return LineNormal; else if( string == "LineStacked" ) @@ -2774,7 +2774,7 @@ KDChartParams::LineChartSubType KDChartParams::stringToLineChartSubType( const Q \param type the type enum to convert \return the string representation of the type enum */ -QString KDChartParams::lineChartSubTypeToString( LineChartSubType type ) { +TQString KDChartParams::lineChartSubTypeToString( LineChartSubType type ) { switch( type ) { case LineNormal: return "LineNormal"; @@ -2796,7 +2796,7 @@ QString KDChartParams::lineChartSubTypeToString( LineChartSubType type ) { \param type the type enum to convert \return the string representation of the type enum */ -QString KDChartParams::lineMarkerStyleToString( LineMarkerStyle style ) +TQString KDChartParams::lineMarkerStyleToString( LineMarkerStyle style ) { return markerStyleToString( style ); } @@ -2809,7 +2809,7 @@ QString KDChartParams::lineMarkerStyleToString( LineMarkerStyle style ) \param type the type enum to convert \return the localized string representation of the type enum */ -QString KDChartParams::lineMarkerStyleToStringTr( LineMarkerStyle style ) +TQString KDChartParams::lineMarkerStyleToStringTr( LineMarkerStyle style ) { return markerStyleToStringTr( style ); } @@ -2821,7 +2821,7 @@ QString KDChartParams::lineMarkerStyleToStringTr( LineMarkerStyle style ) \param string the string to convert \return the line marker style enum value */ -KDChartParams::LineMarkerStyle KDChartParams::stringToLineMarkerStyle( const QString& string ) +KDChartParams::LineMarkerStyle KDChartParams::stringToLineMarkerStyle( const TQString& string ) { return static_cast<KDChartParams::LineMarkerStyle>(stringToMarkerStyle( string )); } @@ -2833,7 +2833,7 @@ KDChartParams::LineMarkerStyle KDChartParams::stringToLineMarkerStyle( const QSt \param string the string to convert \return the line marker style enum value */ -KDChartParams::LineMarkerStyle KDChartParams::stringToLineMarkerStyleTr( const QString& string ) +KDChartParams::LineMarkerStyle KDChartParams::stringToLineMarkerStyleTr( const TQString& string ) { return static_cast<KDChartParams::LineMarkerStyle>(stringToMarkerStyleTr( string )); } @@ -2845,7 +2845,7 @@ KDChartParams::LineMarkerStyle KDChartParams::stringToLineMarkerStyleTr( const Q \param type the subtype enum to convert \return the string representation of the type enum */ -QString KDChartParams::areaChartSubTypeToString( AreaChartSubType type ) { +TQString KDChartParams::areaChartSubTypeToString( AreaChartSubType type ) { switch( type ) { case AreaNormal: return "AreaNormal"; @@ -2866,7 +2866,7 @@ QString KDChartParams::areaChartSubTypeToString( AreaChartSubType type ) { \param string the string to convert \return the area chart subtype enum value */ -KDChartParams::AreaChartSubType KDChartParams::stringToAreaChartSubType( const QString& string ) { +KDChartParams::AreaChartSubType KDChartParams::stringToAreaChartSubType( const TQString& string ) { if( string == "AreaNormal" ) return AreaNormal; else if( string == "AreaStacked" ) @@ -2884,7 +2884,7 @@ KDChartParams::AreaChartSubType KDChartParams::stringToAreaChartSubType( const Q \param type the location enum to convert \return the string representation of the type enum */ -QString KDChartParams::areaLocationToString( AreaLocation type ) { +TQString KDChartParams::areaLocationToString( AreaLocation type ) { switch( type ) { case AreaAbove: return "Above"; @@ -2903,7 +2903,7 @@ QString KDChartParams::areaLocationToString( AreaLocation type ) { \param string the string to convert \return the aration location enum value */ -KDChartParams::AreaLocation KDChartParams::stringToAreaLocation( const QString& string ) { +KDChartParams::AreaLocation KDChartParams::stringToAreaLocation( const TQString& string ) { if( string == "Above" ) return AreaAbove; else if( string == "Below" ) @@ -2919,7 +2919,7 @@ KDChartParams::AreaLocation KDChartParams::stringToAreaLocation( const QString& \param string the string to convert \return the polar chart subtype enum value */ -KDChartParams::PolarChartSubType KDChartParams::stringToPolarChartSubType( const QString& string ) { +KDChartParams::PolarChartSubType KDChartParams::stringToPolarChartSubType( const TQString& string ) { if( string == "PolarNormal" ) return PolarNormal; else if( string == "PolarStacked" ) @@ -2937,7 +2937,7 @@ KDChartParams::PolarChartSubType KDChartParams::stringToPolarChartSubType( const \param type the type enum to convert \return the string representation of the type enum */ -QString KDChartParams::polarChartSubTypeToString( PolarChartSubType type ) { +TQString KDChartParams::polarChartSubTypeToString( PolarChartSubType type ) { switch( type ) { case PolarNormal: return "PolarNormal"; @@ -2959,7 +2959,7 @@ QString KDChartParams::polarChartSubTypeToString( PolarChartSubType type ) { \param type the type enum to convert \return the string representation of the type enum */ -QString KDChartParams::polarMarkerStyleToString( PolarMarkerStyle style ) +TQString KDChartParams::polarMarkerStyleToString( PolarMarkerStyle style ) { return markerStyleToString( style ); } @@ -2972,7 +2972,7 @@ QString KDChartParams::polarMarkerStyleToString( PolarMarkerStyle style ) \param type the type enum to convert \return the localized string representation of the type enum */ -QString KDChartParams::polarMarkerStyleToStringTr( PolarMarkerStyle style ) +TQString KDChartParams::polarMarkerStyleToStringTr( PolarMarkerStyle style ) { return markerStyleToStringTr( style ); } @@ -2984,7 +2984,7 @@ QString KDChartParams::polarMarkerStyleToStringTr( PolarMarkerStyle style ) \param string the string to convert \return the polar marker style enum value */ -KDChartParams::PolarMarkerStyle KDChartParams::stringToPolarMarkerStyle( const QString& string ) +KDChartParams::PolarMarkerStyle KDChartParams::stringToPolarMarkerStyle( const TQString& string ) { return static_cast<KDChartParams::PolarMarkerStyle>(stringToMarkerStyle( string )); } @@ -2997,7 +2997,7 @@ KDChartParams::PolarMarkerStyle KDChartParams::stringToPolarMarkerStyle( const Q \param string the string to convert \return the polar marker style enum value */ -KDChartParams::PolarMarkerStyle KDChartParams::stringToPolarMarkerStyleTr( const QString& string ) +KDChartParams::PolarMarkerStyle KDChartParams::stringToPolarMarkerStyleTr( const TQString& string ) { return static_cast<KDChartParams::PolarMarkerStyle>(stringToMarkerStyle( string )); } @@ -3009,7 +3009,7 @@ KDChartParams::PolarMarkerStyle KDChartParams::stringToPolarMarkerStyleTr( const \param type the subtype enum to convert \return the string representation of the type enum */ -QString KDChartParams::hiLoChartSubTypeToString( HiLoChartSubType type ) { +TQString KDChartParams::hiLoChartSubTypeToString( HiLoChartSubType type ) { switch( type ) { case HiLoSimple: return "HiLoSimple"; @@ -3030,7 +3030,7 @@ QString KDChartParams::hiLoChartSubTypeToString( HiLoChartSubType type ) { \param string the string to convert \return the HiLo chart subtype enum value */ -KDChartParams::HiLoChartSubType KDChartParams::stringToHiLoChartSubType( const QString& string ) { +KDChartParams::HiLoChartSubType KDChartParams::stringToHiLoChartSubType( const TQString& string ) { if( string == "HiLoSimple" ) return HiLoSimple; else if( string == "HiLoClose" ) @@ -3048,7 +3048,7 @@ KDChartParams::HiLoChartSubType KDChartParams::stringToHiLoChartSubType( const Q \param string the string to convert \return the BoxWhisker chart subtype enum value */ -KDChartParams::BWChartSubType KDChartParams::stringToBWChartSubType( const QString& string ) { +KDChartParams::BWChartSubType KDChartParams::stringToBWChartSubType( const TQString& string ) { if( string == "BWSimple" ) return BWSimple; else // should not happen @@ -3061,7 +3061,7 @@ KDChartParams::BWChartSubType KDChartParams::stringToBWChartSubType( const QStri \param type the BWStatVal enum to convert \return the string representation of the type BWStatVal */ -QString KDChartParams::bWChartStatValToString( BWStatVal type ) { +TQString KDChartParams::bWChartStatValToString( BWStatVal type ) { switch( type ) { case UpperOuterFence: return "UpperOuterFence"; @@ -3095,7 +3095,7 @@ QString KDChartParams::bWChartStatValToString( BWStatVal type ) { \param string the string to convert \return the BWStatVal enum value */ -KDChartParams::BWStatVal KDChartParams::stringToBWChartStatVal( const QString& string ) { +KDChartParams::BWStatVal KDChartParams::stringToBWChartStatVal( const TQString& string ) { if( string == "UpperOuterFence" ) return UpperOuterFence; else if( string == "UpperInnerFence" ) @@ -3127,7 +3127,7 @@ KDChartParams::BWStatVal KDChartParams::stringToBWChartStatVal( const QString& s \param type the legend position enum to convert \return the string representation of the type enum */ -QString KDChartParams::legendPositionToString( LegendPosition pos ) { +TQString KDChartParams::legendPositionToString( LegendPosition pos ) { switch( pos ) { case NoLegend: return "NoLegend"; @@ -3176,7 +3176,7 @@ QString KDChartParams::legendPositionToString( LegendPosition pos ) { \param string the string to convert \return the legend position enum value */ -KDChartParams::LegendPosition KDChartParams::stringToLegendPosition( const QString& string ) { +KDChartParams::LegendPosition KDChartParams::stringToLegendPosition( const TQString& string ) { if( string == "NoLegend" ) return NoLegend; else if( string == "LegendTop" ) @@ -3221,7 +3221,7 @@ KDChartParams::LegendPosition KDChartParams::stringToLegendPosition( const QStri \param source the legend source enum to convert \return the string representation of the type enum */ -QString KDChartParams::legendSourceToString( LegendSource source ) { +TQString KDChartParams::legendSourceToString( LegendSource source ) { switch( source ) { case LegendManual: return "Manual"; @@ -3242,7 +3242,7 @@ QString KDChartParams::legendSourceToString( LegendSource source ) { \param string the string to convert \return the legend source enum value */ -KDChartParams::LegendSource KDChartParams::stringToLegendSource( const QString& string ) { +KDChartParams::LegendSource KDChartParams::stringToLegendSource( const TQString& string ) { if( string == "Manual" ) return LegendManual; else if( string == "FirstColumn" ) @@ -3260,7 +3260,7 @@ KDChartParams::LegendSource KDChartParams::stringToLegendSource( const QString& \param mode the chart source mode enum value to convert \return the string */ -QString KDChartParams::chartSourceModeToString( const SourceMode& mode ) +TQString KDChartParams::chartSourceModeToString( const SourceMode& mode ) { switch( mode ){ case UnknownMode: @@ -3287,7 +3287,7 @@ QString KDChartParams::chartSourceModeToString( const SourceMode& mode ) \param string the string to convert \return the chart source mode enum value */ -KDChartParams::SourceMode KDChartParams::stringToChartSourceMode( const QString& string ) +KDChartParams::SourceMode KDChartParams::stringToChartSourceMode( const TQString& string ) { if( string.isEmpty() ) return UnknownMode; @@ -3321,7 +3321,7 @@ KDChartParams::SourceMode KDChartParams::stringToChartSourceMode( const QString& \param type the subtype enum to convert \return the string representation of the type enum */ -QString KDChartParams::bWChartSubTypeToString( BWChartSubType type ) { +TQString KDChartParams::bWChartSubTypeToString( BWChartSubType type ) { switch( type ) { case BWSimple: return "BWSimple"; |