summaryrefslogtreecommitdiffstats
path: root/src/devices/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/base')
-rw-r--r--src/devices/base/device_group.cpp24
-rw-r--r--src/devices/base/device_group.h2
-rw-r--r--src/devices/base/generic_device.cpp2
-rw-r--r--src/devices/base/generic_device.h10
-rw-r--r--src/devices/base/generic_memory.cpp2
-rw-r--r--src/devices/base/hex_buffer.cpp8
-rw-r--r--src/devices/base/register.cpp2
7 files changed, 25 insertions, 25 deletions
diff --git a/src/devices/base/device_group.cpp b/src/devices/base/device_group.cpp
index db70264..94586bd 100644
--- a/src/devices/base/device_group.cpp
+++ b/src/devices/base/device_group.cpp
@@ -12,16 +12,16 @@
# include <tqpainter.h>
# include <kglobal.h>
-TQColor Device::statusColor(Status status)
+TQColor Device::statusColor(tqStatus status)
{
switch (status.type()) {
- case Status::Future: return TQt::blue;
- case Status::InProduction: return TQt::green;
- case Status::Mature:
- case Status::NotRecommended: return TQColor("orange");
- case Status::EOL: return TQt::red;
- case Status::Unknown:
- case Status::Nb_Types: break;
+ case tqStatus::Future: return TQt::blue;
+ case tqStatus::InProduction: return TQt::green;
+ case tqStatus::Mature:
+ case tqStatus::NotRecommended: return TQColor("orange");
+ case tqStatus::EOL: return TQt::red;
+ case tqStatus::Unknown:
+ case tqStatus::Nb_Types: break;
}
return TQt::black;
}
@@ -232,8 +232,8 @@ TQString Device::htmlInfo(const Device::Data &data, const TQString &deviceHref,
if ( i!=0 ) s += ", ";
if ( deviceHref.isEmpty() ) s += data.alternatives()[i].upper();
else {
- TQString href = deviceHref.arg(data.alternatives()[i].upper());
- s += TQString("<a href=\"%1\">%2</a>").arg(href).arg(data.alternatives()[i].upper());
+ TQString href = deviceHref.tqarg(data.alternatives()[i].upper());
+ s += TQString("<a href=\"%1\">%2</a>").tqarg(href).tqarg(data.alternatives()[i].upper());
}
}
doc += htmlTableRow(i18n("Alternatives"), s);
@@ -247,7 +247,7 @@ TQString Device::htmlInfo(const Device::Data &data, const TQString &deviceHref,
TQString s;
for (uint i=0; i<data.packages().count(); i++)
for (uint k=0; k<data.packages()[i].types.count(); k++)
- s += i18n(Package::TYPE_DATA[data.packages()[i].types[k]].label) + TQString("[%1] ").arg(data.packages()[i].pins.count());
+ s += i18n(Package::TYPE_DATA[data.packages()[i].types[k]].label) + TQString("[%1] ").tqarg(data.packages()[i].pins.count());
doc += htmlTableRow(i18n("Packaging"), s);
doc += "</table>";
@@ -260,7 +260,7 @@ TQString Device::htmlPinDiagrams(const Device::Data &data, const TQString &image
// pins
const Package *package = 0;
for (uint i=0; Package::TYPE_DATA[i].name; i++) {
- if ( Package::TYPE_DATA[i].shape!=Package::Bar ) continue;
+ if ( Package::TYPE_DATA[i].tqshape!=Package::Bar ) continue;
package = barPackage(Package::TYPE_DATA[i].name, data);
if (package) break;
}
diff --git a/src/devices/base/device_group.h b/src/devices/base/device_group.h
index 1ecc6d1..8414515 100644
--- a/src/devices/base/device_group.h
+++ b/src/devices/base/device_group.h
@@ -61,7 +61,7 @@ protected:
//----------------------------------------------------------------------------
#if !defined(NO_KDE)
-extern TQColor statusColor(Status status);
+extern TQColor statusColor(tqStatus status);
extern TQPixmap vddGraph(const TQString &xLabel, const TQString &yLabel, const TQValueVector<RangeBox> &boxes);
extern const Package *barPackage(const char *name, const Data &data);
extern TQPixmap pinsGraph(const Package &package);
diff --git a/src/devices/base/generic_device.cpp b/src/devices/base/generic_device.cpp
index d147e4b..c0109de 100644
--- a/src/devices/base/generic_device.cpp
+++ b/src/devices/base/generic_device.cpp
@@ -13,7 +13,7 @@
#include "register.h"
//-----------------------------------------------------------------------------
-const Device::Status::Data Device::Status::DATA[Nb_Types] = {
+const Device::tqStatus::Data Device::tqStatus::DATA[Nb_Types] = {
{ "IP", I18N_NOOP("In Production") },
{ "Future", I18N_NOOP("Future Product") },
{ "NR", I18N_NOOP("Not Recommended for New Design") },
diff --git a/src/devices/base/generic_device.h b/src/devices/base/generic_device.h
index 373601c..73f9b15 100644
--- a/src/devices/base/generic_device.h
+++ b/src/devices/base/generic_device.h
@@ -19,9 +19,9 @@
namespace Device
{
//----------------------------------------------------------------------------
-BEGIN_DECLARE_ENUM(Status)
+BEGIN_DECLARE_ENUM(tqStatus)
InProduction = 0, Future, NotRecommended, EOL, Unknown, Mature
-END_DECLARE_ENUM_STD(Status)
+END_DECLARE_ENUM_STD(tqStatus)
BEGIN_DECLARE_ENUM(MemoryTechnology)
Flash = 0, Eprom, Rom, Romless
@@ -70,7 +70,7 @@ public:
enum { MAX_NB = 9 };
struct TypeData {
const char *name, *label;
- Shape shape;
+ Shape tqshape;
uint nbPins[MAX_NB];
};
static const TypeData TYPE_DATA[];
@@ -121,7 +121,7 @@ public:
virtual TQString name() const { return _name; }
virtual TQString fname(Special) const { return _name; }
virtual TQString listViewGroup() const = 0;
- Status status() const { return _status; }
+ tqStatus status() const { return _status; }
const Documents &documents() const { return _documents; }
const TQStringList &alternatives() const { return _alternatives; }
MemoryTechnology memoryTechnology() const { return _memoryTechnology; }
@@ -141,7 +141,7 @@ protected:
TQString _name;
Documents _documents;
TQStringList _alternatives;
- Status _status;
+ tqStatus _status;
TQValueVector<FrequencyRange> _frequencyRanges;
MemoryTechnology _memoryTechnology;
RegistersData *_registersData;
diff --git a/src/devices/base/generic_memory.cpp b/src/devices/base/generic_memory.cpp
index 6430497..54190f5 100644
--- a/src/devices/base/generic_memory.cpp
+++ b/src/devices/base/generic_memory.cpp
@@ -31,7 +31,7 @@ Device::Memory::WarningTypes Device::Memory::fromHexBuffer(const HexBuffer &hb,
if ( !it.data().isInitialized() || inRange[it.key()] ) continue;
if ( !(result & ValueOutsideRange) ) {
result |= ValueOutsideRange;
- warnings += i18n("At least one value (at address %1) is defined outside memory ranges.").arg(toHexLabel(it.key(), 8));
+ warnings += i18n("At least one value (at address %1) is defined outside memory ranges.").tqarg(toHexLabel(it.key(), 8));
}
break;
}
diff --git a/src/devices/base/hex_buffer.cpp b/src/devices/base/hex_buffer.cpp
index a0a4704..f389c92 100644
--- a/src/devices/base/hex_buffer.cpp
+++ b/src/devices/base/hex_buffer.cpp
@@ -9,7 +9,7 @@
***************************************************************************/
#include "hex_buffer.h"
-#include <textstream.h>
+#include <tqtextstream.h>
#include "devices/base/generic_device.h"
@@ -136,10 +136,10 @@ bool HexBuffer::fetchNextBlock(const_iterator& it, const const_iterator &end, in
TQString HexBuffer::ErrorData::message() const
{
switch (type) {
- case UnrecognizedFormat: return i18n("Unrecognized format (line %1).").arg(line);
+ case UnrecognizedFormat: return i18n("Unrecognized format (line %1).").tqarg(line);
case UnexpectedEOF: return i18n("Unexpected end-of-file.");
- case UnexpectedEOL: return i18n("Unexpected end-of-line (line %1).").arg(line);
- case WrongCRC: return i18n("CRC mismatch (line %1).").arg(line);
+ case UnexpectedEOL: return i18n("Unexpected end-of-line (line %1).").tqarg(line);
+ case WrongCRC: return i18n("CRC mismatch (line %1).").tqarg(line);
}
Q_ASSERT(false);
return TQString();
diff --git a/src/devices/base/register.cpp b/src/devices/base/register.cpp
index d6ff59c..946f668 100644
--- a/src/devices/base/register.cpp
+++ b/src/devices/base/register.cpp
@@ -48,7 +48,7 @@ Register::Type Register::TypeData::type() const
TQString Register::TypeData::toString() const
{
- return TQString("%1 %2 %3").arg(toLabel(_address)).arg(_nbChars).arg(_name);
+ return TQString("%1 %2 %3").tqarg(toLabel(_address)).tqarg(_nbChars).tqarg(_name);
}
Register::TypeData Register::TypeData::fromString(const TQString &s)