diff options
Diffstat (limited to 'src/progs/direct/xml/xml_direct_parser.cpp')
-rw-r--r-- | src/progs/direct/xml/xml_direct_parser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/progs/direct/xml/xml_direct_parser.cpp b/src/progs/direct/xml/xml_direct_parser.cpp index ee51674..bc77853 100644 --- a/src/progs/direct/xml/xml_direct_parser.cpp +++ b/src/progs/direct/xml/xml_direct_parser.cpp @@ -18,19 +18,19 @@ public: XmlToData() : ::Programmer::XmlToData<Data>("direct", "Direct") {} private: - virtual void parseData(QDomElement element, Data &data); - virtual void includes(QTextStream &s) const; - virtual void outputFunctions(QTextStream &s) const; + virtual void parseData(TQDomElement element, Data &data); + virtual void includes(TQTextStream &s) const; + virtual void outputFunctions(TQTextStream &s) const; }; -void Direct::XmlToData::parseData(QDomElement element, Data &) +void Direct::XmlToData::parseData(TQDomElement element, Data &) { - QString s = element.attribute("pwidth"); + TQString s = element.attribute("pwidth"); const Device::Data *d = Device::lister().data(currentDevice()); if ( d==0 ) qFatal("Invalid device name"); } -void Direct::XmlToData::includes(QTextStream &s) const +void Direct::XmlToData::includes(TQTextStream &s) const { Programmer::XmlToData<Data>::includes(s); s << "#include \"direct_baseline.h\"" << endl; @@ -38,7 +38,7 @@ void Direct::XmlToData::includes(QTextStream &s) const s << "#include \"direct_18F.h\"" << endl; } -void Direct::XmlToData::outputFunctions(QTextStream &s) const +void Direct::XmlToData::outputFunctions(TQTextStream &s) const { Programmer::XmlToData<Data>::outputFunctions(s); s << "::Programmer::DeviceSpecific *Direct::Group::createDeviceSpecific(::Programmer::Base &base) const" << endl; @@ -46,7 +46,7 @@ void Direct::XmlToData::outputFunctions(QTextStream &s) const s << " uint i = family(static_cast<PicBase &>(base).device()->name());" << endl; s << " switch(i) {" << endl; for (uint i=0; i<uint(families().count()); i++) { - s << " case " + QString::number(i) + ": return new P" + families()[i] + "(base);" << endl; + s << " case " + TQString::number(i) + ": return new P" + families()[i] + "(base);" << endl; } s << " }" << endl; s << " Q_ASSERT(false);" << endl; |