summaryrefslogtreecommitdiffstats
path: root/src/progs/pickit1/xml/xml_pickit1_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/pickit1/xml/xml_pickit1_parser.cpp')
-rw-r--r--src/progs/pickit1/xml/xml_pickit1_parser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/progs/pickit1/xml/xml_pickit1_parser.cpp b/src/progs/pickit1/xml/xml_pickit1_parser.cpp
index e5d1b78..9fbfafc 100644
--- a/src/progs/pickit1/xml/xml_pickit1_parser.cpp
+++ b/src/progs/pickit1/xml/xml_pickit1_parser.cpp
@@ -18,14 +18,14 @@ public:
XmlToData() : Programmer::XmlToData<Data>("pickit1", "Pickit1") {}
private:
- virtual void parseData(QDomElement element, Data &data);
- virtual void outputData(const Data &data, QTextStream &s) const;
- virtual void outputFunctions(QTextStream &s) const;
+ virtual void parseData(TQDomElement element, Data &data);
+ virtual void outputData(const Data &data, TQTextStream &s) const;
+ virtual void outputFunctions(TQTextStream &s) const;
};
-void Pickit1::XmlToData::parseData(QDomElement element, Data &data)
+void Pickit1::XmlToData::parseData(TQDomElement element, Data &data)
{
- QString s = element.attribute("entry");
+ TQString s = element.attribute("entry");
if ( s.length()!=1 || (s[0]!='O' && s[0]!='P') ) qFatal("Invalid or missing entry mode");
data.entryMode = s[0].latin1();
s = element.attribute("regen");
@@ -34,12 +34,12 @@ void Pickit1::XmlToData::parseData(QDomElement element, Data &data)
else qFatal("Invalid regen value");
}
-void Pickit1::XmlToData::outputData(const Data &data, QTextStream &s) const
+void Pickit1::XmlToData::outputData(const Data &data, TQTextStream &s) const
{
s << "'" << data.entryMode << "', " << (data.regenerateOsccal ? "true" : "false");
}
-void Pickit1::XmlToData::outputFunctions(QTextStream &s) const
+void Pickit1::XmlToData::outputFunctions(TQTextStream &s) const
{
Programmer::XmlToData<Data>::outputFunctions(s);
s << "::Programmer::DeviceSpecific *Group::createDeviceSpecific(Programmer::Base &base) const" << endl;
@@ -47,7 +47,7 @@ void Pickit1::XmlToData::outputFunctions(QTextStream &s) const
s << " uint i = family(static_cast< ::Pickit1::Base &>(base).device()->name());" << endl;
s << " switch(i) {" << endl;
for (uint i=0; i<uint(families().count()); i++) {
- s << " case " + QString::number(i) + ": return new " + families()[i] + "(base);" << endl;
+ s << " case " + TQString::number(i) + ": return new " + families()[i] + "(base);" << endl;
}
s << " }" << endl;
s << " Q_ASSERT(false);" << endl;