summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/metadatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/metadatabase.cpp')
-rw-r--r--kdevdesigner/designer/metadatabase.cpp486
1 files changed, 243 insertions, 243 deletions
diff --git a/kdevdesigner/designer/metadatabase.cpp b/kdevdesigner/designer/metadatabase.cpp
index 3a97b680..5fc1960f 100644
--- a/kdevdesigner/designer/metadatabase.cpp
+++ b/kdevdesigner/designer/metadatabase.cpp
@@ -40,54 +40,54 @@
#include <kapplication.h>
#include <kstandarddirs.h>
-#include <qapplication.h>
-#include <qobject.h>
-#include <qlayout.h>
-#include <qptrdict.h>
-#include <qobjectlist.h>
-#include <qstrlist.h>
-#include <qmetaobject.h>
-#include <qwidgetlist.h>
-#include <qmainwindow.h>
-#include <qregexp.h>
+#include <tqapplication.h>
+#include <tqobject.h>
+#include <tqlayout.h>
+#include <tqptrdict.h>
+#include <tqobjectlist.h>
+#include <tqstrlist.h>
+#include <tqmetaobject.h>
+#include <tqwidgetlist.h>
+#include <tqmainwindow.h>
+#include <tqregexp.h>
#include <private/qpluginmanager_p.h>
-#include <qdatetime.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqdatetime.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
#include <stdlib.h>
class MetaDataBaseRecord
{
public:
- QObject *object;
- QStringList changedProperties;
- QMap<QString,QVariant> fakeProperties;
- QMap<QString, QString> propertyComments;
+ TQObject *object;
+ TQStringList changedProperties;
+ TQMap<TQString,TQVariant> fakeProperties;
+ TQMap<TQString, TQString> propertyComments;
int spacing, margin;
- QString resizeMode;
- QValueList<MetaDataBase::Connection> connections;
- QValueList<MetaDataBase::Function> functionList;
- QValueList<MetaDataBase::Include> includes;
- QValueList<MetaDataBase::Variable> variables;
- QStringList forwards, sigs;
- QWidgetList tabOrder;
+ TQString resizeMode;
+ TQValueList<MetaDataBase::Connection> connections;
+ TQValueList<MetaDataBase::Function> functionList;
+ TQValueList<MetaDataBase::Include> includes;
+ TQValueList<MetaDataBase::Variable> variables;
+ TQStringList forwards, sigs;
+ TQWidgetList tabOrder;
MetaDataBase::MetaInfo metaInfo;
- QCursor cursor;
- QMap<int, QString> pixmapArguments;
- QMap<int, QString> pixmapKeys;
- QMap<QString, QString> columnFields;
- QValueList<uint> breakPoints;
- QMap<int, QString> breakPointConditions;
- QString exportMacro;
+ TQCursor cursor;
+ TQMap<int, TQString> pixmapArguments;
+ TQMap<int, TQString> pixmapKeys;
+ TQMap<TQString, TQString> columnFields;
+ TQValueList<uint> breakPoints;
+ TQMap<int, TQString> breakPointConditions;
+ TQString exportMacro;
};
-static QPtrDict<MetaDataBaseRecord> *db = 0;
-static QPtrList<MetaDataBase::CustomWidget> *cWidgets = 0;
+static TQPtrDict<MetaDataBaseRecord> *db = 0;
+static TQPtrList<MetaDataBase::CustomWidget> *cWidgets = 0;
static bool doUpdate = TRUE;
-static QStringList langList;
-static QStringList editorLangList;
+static TQStringList langList;
+static TQStringList editorLangList;
static QPluginManager<LanguageInterface> *languageInterfaceManager = 0;
/*!
@@ -106,9 +106,9 @@ MetaDataBase::MetaDataBase()
inline void setupDataBase()
{
if ( !db || !cWidgets ) {
- db = new QPtrDict<MetaDataBaseRecord>( 1481 );
+ db = new TQPtrDict<MetaDataBaseRecord>( 1481 );
db->setAutoDelete( TRUE );
- cWidgets = new QPtrList<MetaDataBase::CustomWidget>;
+ cWidgets = new TQPtrList<MetaDataBase::CustomWidget>;
cWidgets->setAutoDelete( TRUE );
}
}
@@ -121,7 +121,7 @@ void MetaDataBase::clearDataBase()
cWidgets = 0;
}
-void MetaDataBase::addEntry( QObject *o )
+void MetaDataBase::addEntry( TQObject *o )
{
if ( !o )
return;
@@ -136,13 +136,13 @@ void MetaDataBase::addEntry( QObject *o )
WidgetFactory::initChangedProperties( o );
}
-void MetaDataBase::removeEntry( QObject *o )
+void MetaDataBase::removeEntry( TQObject *o )
{
setupDataBase();
db->remove( o );
}
-void MetaDataBase::setPropertyChanged( QObject *o, const QString &property, bool changed )
+void MetaDataBase::setPropertyChanged( TQObject *o, const TQString &property, bool changed )
{
setupDataBase();
if ( o->isA( "PropertyObject" ) ) {
@@ -183,7 +183,7 @@ void MetaDataBase::setPropertyChanged( QObject *o, const QString &property, bool
}
}
-bool MetaDataBase::isPropertyChanged( QObject *o, const QString &property )
+bool MetaDataBase::isPropertyChanged( TQObject *o, const TQString &property )
{
setupDataBase();
if ( o->isA( "PropertyObject" ) )
@@ -198,21 +198,21 @@ bool MetaDataBase::isPropertyChanged( QObject *o, const QString &property )
return r->changedProperties.findIndex( property ) != -1;
}
-QStringList MetaDataBase::changedProperties( QObject *o )
+TQStringList MetaDataBase::changedProperties( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QStringList();
+ return TQStringList();
}
- QStringList lst( r->changedProperties );
+ TQStringList lst( r->changedProperties );
return lst;
}
-void MetaDataBase::setPropertyComment( QObject *o, const QString &property, const QString &comment )
+void MetaDataBase::setPropertyComment( TQObject *o, const TQString &property, const TQString &comment )
{
setupDataBase();
if ( o->isA( "PropertyObject" ) ) {
@@ -229,7 +229,7 @@ void MetaDataBase::setPropertyComment( QObject *o, const QString &property, cons
r->propertyComments.insert( property, comment );
}
-QString MetaDataBase::propertyComment( QObject *o, const QString &property )
+TQString MetaDataBase::propertyComment( TQObject *o, const TQString &property )
{
setupDataBase();
if ( o->isA( "PropertyObject" ) )
@@ -238,13 +238,13 @@ QString MetaDataBase::propertyComment( QObject *o, const QString &property )
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QString::null;
+ return TQString::null;
}
return *r->propertyComments.find( property );
}
-void MetaDataBase::setFakeProperty( QObject *o, const QString &property, const QVariant& value )
+void MetaDataBase::setFakeProperty( TQObject *o, const TQString &property, const TQVariant& value )
{
setupDataBase();
if ( o->isA( "PropertyObject" ) ) {
@@ -260,7 +260,7 @@ void MetaDataBase::setFakeProperty( QObject *o, const QString &property, const Q
r->fakeProperties[property] = value;
}
-QVariant MetaDataBase::fakeProperty( QObject * o, const QString &property)
+TQVariant MetaDataBase::fakeProperty( TQObject * o, const TQString &property)
{
setupDataBase();
if ( o->isA( "PropertyObject" ) )
@@ -269,16 +269,16 @@ QVariant MetaDataBase::fakeProperty( QObject * o, const QString &property)
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QVariant();
+ return TQVariant();
}
- QMap<QString, QVariant>::Iterator it = r->fakeProperties.find( property );
+ TQMap<TQString, TQVariant>::Iterator it = r->fakeProperties.find( property );
if ( it != r->fakeProperties.end() )
return r->fakeProperties[property];
return WidgetFactory::defaultValue( o, property );
}
-QMap<QString,QVariant>* MetaDataBase::fakeProperties( QObject* o )
+TQMap<TQString,TQVariant>* MetaDataBase::fakeProperties( TQObject* o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -290,7 +290,7 @@ QMap<QString,QVariant>* MetaDataBase::fakeProperties( QObject* o )
return &r->fakeProperties;
}
-void MetaDataBase::setSpacing( QObject *o, int spacing )
+void MetaDataBase::setSpacing( TQObject *o, int spacing )
{
if ( !o )
return;
@@ -303,8 +303,8 @@ void MetaDataBase::setSpacing( QObject *o, int spacing )
}
r->spacing = spacing;
- QLayout * layout = 0;
- WidgetFactory::layoutType( (QWidget*)o, layout );
+ TQLayout * layout = 0;
+ WidgetFactory::layoutType( (TQWidget*)o, layout );
if ( layout ) {
int spadef = 6;
if ( MainWindow::self->formWindow() )
@@ -316,13 +316,13 @@ void MetaDataBase::setSpacing( QObject *o, int spacing )
}
}
-int MetaDataBase::spacing( QObject *o )
+int MetaDataBase::spacing( TQObject *o )
{
if ( !o )
return -1;
setupDataBase();
- if ( ::qt_cast<QMainWindow*>(o) )
- o = ( (QMainWindow*)o )->centralWidget();
+ if ( ::qt_cast<TQMainWindow*>(o) )
+ o = ( (TQMainWindow*)o )->centralWidget();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
@@ -333,7 +333,7 @@ int MetaDataBase::spacing( QObject *o )
return r->spacing;
}
-void MetaDataBase::setMargin( QObject *o, int margin )
+void MetaDataBase::setMargin( TQObject *o, int margin )
{
if ( !o )
return;
@@ -346,12 +346,12 @@ void MetaDataBase::setMargin( QObject *o, int margin )
}
r->margin = margin;
- QLayout * layout = 0;
- WidgetFactory::layoutType( (QWidget*)o, layout );
+ TQLayout * layout = 0;
+ WidgetFactory::layoutType( (TQWidget*)o, layout );
bool isInnerLayout = TRUE;
- QWidget *widget = (QWidget*)o;
+ TQWidget *widget = (TQWidget*)o;
if ( widget && !::qt_cast<QLayoutWidget*>(widget) &&
( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( widget ) ) ) ||
widget && widget->parentWidget() && ::qt_cast<FormWindow*>(widget->parentWidget()) ) )
@@ -373,13 +373,13 @@ void MetaDataBase::setMargin( QObject *o, int margin )
}
}
-int MetaDataBase::margin( QObject *o )
+int MetaDataBase::margin( TQObject *o )
{
if ( !o )
return -1;
setupDataBase();
- if ( ::qt_cast<QMainWindow*>(o) )
- o = ( (QMainWindow*)o )->centralWidget();
+ if ( ::qt_cast<TQMainWindow*>(o) )
+ o = ( (TQMainWindow*)o )->centralWidget();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
@@ -389,7 +389,7 @@ int MetaDataBase::margin( QObject *o )
return r->margin;
}
-void MetaDataBase::setResizeMode( QObject *o, const QString &mode )
+void MetaDataBase::setResizeMode( TQObject *o, const TQString &mode )
{
if ( !o )
return;
@@ -404,24 +404,24 @@ void MetaDataBase::setResizeMode( QObject *o, const QString &mode )
r->resizeMode = mode;
}
-QString MetaDataBase::resizeMode( QObject *o )
+TQString MetaDataBase::resizeMode( TQObject *o )
{
if ( !o )
- return QString::null;
+ return TQString::null;
setupDataBase();
- if ( ::qt_cast<QMainWindow*>(o) )
- o = ( (QMainWindow*)o )->centralWidget();
+ if ( ::qt_cast<TQMainWindow*>(o) )
+ o = ( (TQMainWindow*)o )->centralWidget();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QString::null;
+ return TQString::null;
}
return r->resizeMode;
}
-void MetaDataBase::addConnection( QObject *o, QObject *sender, const QCString &signal,
- QObject *receiver, const QCString &slot, bool addCode )
+void MetaDataBase::addConnection( TQObject *o, TQObject *sender, const TQCString &signal,
+ TQObject *receiver, const TQCString &slot, bool addCode )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -439,10 +439,10 @@ void MetaDataBase::addConnection( QObject *o, QObject *sender, const QCString &s
conn.slot = slot;
r->connections.append( conn );
if ( addCode ) {
- QString rec = receiver->name();
+ TQString rec = receiver->name();
if ( ::qt_cast<FormWindow*>(o) && receiver == ( (FormWindow*)o )->mainContainer() )
rec = "this";
- QString sen = sender->name();
+ TQString sen = sender->name();
if ( ::qt_cast<FormWindow*>(o) && sender == ( (FormWindow*)o )->mainContainer() )
sen = "this";
FormFile *ff = 0;
@@ -454,8 +454,8 @@ void MetaDataBase::addConnection( QObject *o, QObject *sender, const QCString &s
}
}
-void MetaDataBase::removeConnection( QObject *o, QObject *sender, const QCString &signal,
- QObject *receiver, const QCString &slot )
+void MetaDataBase::removeConnection( TQObject *o, TQObject *sender, const TQCString &signal,
+ TQObject *receiver, const TQCString &slot )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -466,7 +466,7 @@ void MetaDataBase::removeConnection( QObject *o, QObject *sender, const QCString
}
if ( !(sender && receiver) )
return;
- for ( QValueList<Connection>::Iterator it = r->connections.begin(); it != r->connections.end(); ++it ) {
+ for ( TQValueList<Connection>::Iterator it = r->connections.begin(); it != r->connections.end(); ++it ) {
Connection conn = *it;
if ( conn.sender == sender &&
conn.signal == signal &&
@@ -477,14 +477,14 @@ void MetaDataBase::removeConnection( QObject *o, QObject *sender, const QCString
}
}
if ( ::qt_cast<FormWindow*>(o) ) {
- QString rec = receiver->name();
+ TQString rec = receiver->name();
if ( receiver == ( (FormWindow*)o )->mainContainer() )
rec = "this";
( (FormWindow*)o )->formFile()->removeConnection( sender->name(), signal, rec, slot );
}
}
-void MetaDataBase::setupConnections( QObject *o, const QValueList<LanguageInterface::Connection> &conns )
+void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInterface::Connection> &conns )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -501,13 +501,13 @@ void MetaDataBase::setupConnections( QObject *o, const QValueList<LanguageInterf
r->connections.clear();
- for ( QValueList<LanguageInterface::Connection>::ConstIterator cit = conns.begin();
+ for ( TQValueList<LanguageInterface::Connection>::ConstIterator cit = conns.begin();
cit != conns.end(); ++cit ) {
// #### get the correct sender object out of Bla.Blub.sender
- QString senderName = (*cit).sender;
+ TQString senderName = (*cit).sender;
if ( senderName.find( '.' ) != -1 )
senderName = senderName.mid( senderName.findRev( '.' ) + 1 );
- QObject *sender = 0;
+ TQObject *sender = 0;
if ( formfile->formWindow() )
sender = formfile->formWindow()->child( senderName );
if ( !sender && formfile->isFake() )
@@ -519,8 +519,8 @@ void MetaDataBase::setupConnections( QObject *o, const QValueList<LanguageInterf
if ( !sender )
continue;
MetaDataBase::addConnection( formfile->formWindow() ?
- (QObject*)formfile->formWindow() :
- (QObject*)formfile,
+ (TQObject*)formfile->formWindow() :
+ (TQObject*)formfile,
sender,
(*cit).signal.latin1(),
formfile->formWindow() ?
@@ -531,8 +531,8 @@ void MetaDataBase::setupConnections( QObject *o, const QValueList<LanguageInterf
}
}
-bool MetaDataBase::hasConnection( QObject *o, QObject *sender, const QCString &signal,
- QObject *receiver, const QCString &slot )
+bool MetaDataBase::hasConnection( TQObject *o, TQObject *sender, const TQCString &signal,
+ TQObject *receiver, const TQCString &slot )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -542,7 +542,7 @@ bool MetaDataBase::hasConnection( QObject *o, QObject *sender, const QCString &s
return FALSE;
}
- for ( QValueList<Connection>::Iterator it = r->connections.begin(); it != r->connections.end(); ++it ) {
+ for ( TQValueList<Connection>::Iterator it = r->connections.begin(); it != r->connections.end(); ++it ) {
Connection conn = *it;
if ( conn.sender == sender &&
conn.signal == signal &&
@@ -554,31 +554,31 @@ bool MetaDataBase::hasConnection( QObject *o, QObject *sender, const QCString &s
}
-QValueList<MetaDataBase::Connection> MetaDataBase::connections( QObject *o )
+TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<Connection>();
+ return TQValueList<Connection>();
}
return r->connections;
}
-QValueList<MetaDataBase::Connection> MetaDataBase::connections( QObject *o, QObject *sender,
- QObject *receiver )
+TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQObject *sender,
+ TQObject *receiver )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<Connection>();
+ return TQValueList<Connection>();
}
- QValueList<Connection>::Iterator it = r->connections.begin();
- QValueList<Connection> ret;
- QValueList<Connection>::Iterator conn;
+ TQValueList<Connection>::Iterator it = r->connections.begin();
+ TQValueList<Connection> ret;
+ TQValueList<Connection>::Iterator conn;
while ( ( conn = it ) != r->connections.end() ) {
++it;
if ( (*conn).sender == sender &&
@@ -589,18 +589,18 @@ QValueList<MetaDataBase::Connection> MetaDataBase::connections( QObject *o, QObj
return ret;
}
-QValueList<MetaDataBase::Connection> MetaDataBase::connections( QObject *o, QObject *object )
+TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQObject *object )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<Connection>();
+ return TQValueList<Connection>();
}
- QValueList<Connection>::Iterator it = r->connections.begin();
- QValueList<Connection> ret;
- QValueList<Connection>::Iterator conn;
+ TQValueList<Connection>::Iterator it = r->connections.begin();
+ TQValueList<Connection> ret;
+ TQValueList<Connection>::Iterator conn;
while ( ( conn = it ) != r->connections.end() ) {
++it;
if ( (*conn).sender == object ||
@@ -610,7 +610,7 @@ QValueList<MetaDataBase::Connection> MetaDataBase::connections( QObject *o, QObj
return ret;
}
-void MetaDataBase::doConnections( QObject *o )
+void MetaDataBase::doConnections( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -620,9 +620,9 @@ void MetaDataBase::doConnections( QObject *o )
return;
}
- QObject *sender = 0, *receiver = 0;
- QObjectList *l = 0;
- QValueList<Connection>::Iterator it = r->connections.begin();
+ TQObject *sender = 0, *receiver = 0;
+ TQObjectList *l = 0;
+ TQValueList<Connection>::Iterator it = r->connections.begin();
for ( ; it != r->connections.end(); ++it ) {
Connection conn = *it;
if ( qstrcmp( conn.sender->name(), o->name() ) == 0 ) {
@@ -647,24 +647,24 @@ void MetaDataBase::doConnections( QObject *o )
receiver = l->first();
delete l;
}
- QString s = "2""%1";
+ TQString s = "2""%1";
s = s.arg( conn.signal );
- QString s2 = "1""%1";
+ TQString s2 = "1""%1";
s2 = s2.arg( conn.slot );
- QStrList signalList = sender->metaObject()->signalNames( TRUE );
- QStrList slotList = receiver->metaObject()->slotNames( TRUE );
+ TQStrList signalList = sender->metaObject()->signalNames( TRUE );
+ TQStrList slotList = receiver->metaObject()->slotNames( TRUE );
// avoid warnings
if ( signalList.find( conn.signal ) == -1 ||
slotList.find( conn.slot ) == -1 )
continue;
- QObject::connect( sender, s, receiver, s2 );
+ TQObject::connect( sender, s, receiver, s2 );
}
}
-bool MetaDataBase::hasSlot( QObject *o, const QCString &slot, bool onlyCustom )
+bool MetaDataBase::hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -675,7 +675,7 @@ bool MetaDataBase::hasSlot( QObject *o, const QCString &slot, bool onlyCustom )
}
if ( !onlyCustom ) {
- QStrList slotList = o->metaObject()->slotNames( TRUE );
+ TQStrList slotList = o->metaObject()->slotNames( TRUE );
if ( slotList.find( slot ) != -1 )
return TRUE;
@@ -689,8 +689,8 @@ bool MetaDataBase::hasSlot( QObject *o, const QCString &slot, bool onlyCustom )
//if ( ::qt_cast<CustomWidget*>(o) ) {
if ( o->inherits( "CustomWidget" ) ) {
MetaDataBase::CustomWidget *w = ( (::CustomWidget*)o )->customWidget();
- for ( QValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) {
- QCString s = (*it).function;
+ for ( TQValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) {
+ TQCString s = (*it).function;
if ( !s.data() )
continue;
if ( s == slot )
@@ -699,7 +699,7 @@ bool MetaDataBase::hasSlot( QObject *o, const QCString &slot, bool onlyCustom )
}
}
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
Function f = *it;
if ( normalizeFunction( f.function ) == normalizeFunction( slot ) && f.type == "slot" )
return TRUE;
@@ -708,7 +708,7 @@ bool MetaDataBase::hasSlot( QObject *o, const QCString &slot, bool onlyCustom )
return FALSE;
}
-bool MetaDataBase::isSlotUsed( QObject *o, const QCString &slot )
+bool MetaDataBase::isSlotUsed( TQObject *o, const TQCString &slot )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -718,8 +718,8 @@ bool MetaDataBase::isSlotUsed( QObject *o, const QCString &slot )
return FALSE;
}
- QValueList<Connection> conns = connections( o );
- for ( QValueList<Connection>::Iterator it = conns.begin(); it != conns.end(); ++it ) {
+ TQValueList<Connection> conns = connections( o );
+ for ( TQValueList<Connection>::Iterator it = conns.begin(); it != conns.end(); ++it ) {
if ( (*it).slot == slot )
return TRUE;
}
@@ -727,9 +727,9 @@ bool MetaDataBase::isSlotUsed( QObject *o, const QCString &slot )
}
-void MetaDataBase::addFunction( QObject *o, const QCString &function, const QString &specifier,
- const QString &access, const QString &type, const QString &language,
- const QString &returnType )
+void MetaDataBase::addFunction( TQObject *o, const TQCString &function, const TQString &specifier,
+ const TQString &access, const TQString &type, const TQString &language,
+ const TQString &returnType )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -746,14 +746,14 @@ void MetaDataBase::addFunction( QObject *o, const QCString &function, const QStr
f.type = type;
f.language = language;
f.returnType = returnType;
- QValueList<MetaDataBase::Function>::Iterator it = r->functionList.find( f );
+ TQValueList<MetaDataBase::Function>::Iterator it = r->functionList.find( f );
if ( it != r->functionList.end() )
r->functionList.remove( it );
r->functionList.append( f );
( (FormWindow*)o )->formFile()->addFunctionCode( f );
}
-void MetaDataBase::setFunctionList( QObject *o, const QValueList<Function> &functionList )
+void MetaDataBase::setFunctionList( TQObject *o, const TQValueList<Function> &functionList )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -765,9 +765,9 @@ void MetaDataBase::setFunctionList( QObject *o, const QValueList<Function> &func
r->functionList = functionList;
}
-void MetaDataBase::removeFunction( QObject *o, const QCString &function, const QString &specifier,
- const QString &access, const QString &type, const QString &language,
- const QString &returnType )
+void MetaDataBase::removeFunction( TQObject *o, const TQCString &function, const TQString &specifier,
+ const TQString &access, const TQString &type, const TQString &language,
+ const TQString &returnType )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -776,7 +776,7 @@ void MetaDataBase::removeFunction( QObject *o, const QCString &function, const Q
o, o->name(), o->className() );
return;
}
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
if ( MetaDataBase::normalizeFunction( (*it).function ) ==
MetaDataBase::normalizeFunction( function ) &&
(*it).specifier == specifier &&
@@ -791,7 +791,7 @@ void MetaDataBase::removeFunction( QObject *o, const QCString &function, const Q
}
}
-void MetaDataBase::removeFunction( QObject *o, const QString &function )
+void MetaDataBase::removeFunction( TQObject *o, const TQString &function )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -800,7 +800,7 @@ void MetaDataBase::removeFunction( QObject *o, const QString &function )
o, o->name(), o->className() );
return;
}
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
if ( normalizeFunction( (*it).function ) == normalizeFunction( function ) ) {
( (FormWindow*)o )->formFile()->removeFunctionCode( *it );
r->functionList.remove( it );
@@ -809,44 +809,44 @@ void MetaDataBase::removeFunction( QObject *o, const QString &function )
}
}
-QValueList<MetaDataBase::Function> MetaDataBase::functionList( QObject *o, bool onlyFunctions )
+TQValueList<MetaDataBase::Function> MetaDataBase::functionList( TQObject *o, bool onlyFunctions )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<Function>();
+ return TQValueList<Function>();
}
if ( !onlyFunctions )
return r->functionList;
- QValueList<Function> fList;
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ TQValueList<Function> fList;
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
if ( (*it).type == "function" )
fList.append( *it );
}
return fList;
}
-QValueList<MetaDataBase::Function> MetaDataBase::slotList( QObject *o )
+TQValueList<MetaDataBase::Function> MetaDataBase::slotList( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<Function>();
+ return TQValueList<Function>();
}
- QValueList<Function> slotList;
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ TQValueList<Function> slotList;
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
if ( (*it).type == "slot" )
slotList.append( *it );
}
return slotList;
}
-void MetaDataBase::changeFunction( QObject *o, const QString &function, const QString &newName,
- const QString &returnType )
+void MetaDataBase::changeFunction( TQObject *o, const TQString &function, const TQString &newName,
+ const TQString &returnType )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -856,7 +856,7 @@ void MetaDataBase::changeFunction( QObject *o, const QString &function, const QS
return;
}
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
Function f = *it;
if ( normalizeFunction( f.function ) == normalizeFunction( function ) ) {
(*it).function = newName;
@@ -867,10 +867,10 @@ void MetaDataBase::changeFunction( QObject *o, const QString &function, const QS
}
}
-void MetaDataBase::changeFunctionAttributes( QObject *o, const QString &oldName, const QString &newName,
- const QString &specifier, const QString &access,
- const QString &type, const QString &language,
- const QString &returnType )
+void MetaDataBase::changeFunctionAttributes( TQObject *o, const TQString &oldName, const TQString &newName,
+ const TQString &specifier, const TQString &access,
+ const TQString &type, const TQString &language,
+ const TQString &returnType )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -880,7 +880,7 @@ void MetaDataBase::changeFunctionAttributes( QObject *o, const QString &oldName,
return;
}
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
Function f = *it;
if ( normalizeFunction( f.function ) == normalizeFunction( oldName ) ) {
(*it).function = newName;
@@ -894,7 +894,7 @@ void MetaDataBase::changeFunctionAttributes( QObject *o, const QString &oldName,
}
}
-bool MetaDataBase::hasFunction( QObject *o, const QCString &function, bool onlyCustom )
+bool MetaDataBase::hasFunction( TQObject *o, const TQCString &function, bool onlyCustom )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -905,7 +905,7 @@ bool MetaDataBase::hasFunction( QObject *o, const QCString &function, bool onlyC
}
if ( !onlyCustom ) {
- QStrList functionList = o->metaObject()->slotNames( TRUE );
+ TQStrList functionList = o->metaObject()->slotNames( TRUE );
if ( functionList.find( function ) != -1 )
return TRUE;
@@ -919,8 +919,8 @@ bool MetaDataBase::hasFunction( QObject *o, const QCString &function, bool onlyC
//if ( ::qt_cast<CustomWidget*>(o) ) {
if ( o->inherits( "CustomWidget" ) ) {
MetaDataBase::CustomWidget *w = ( (::CustomWidget*)o )->customWidget();
- for ( QValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) {
- QCString s = (*it).function;
+ for ( TQValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) {
+ TQCString s = (*it).function;
if ( !s.data() )
continue;
if ( s == function )
@@ -929,7 +929,7 @@ bool MetaDataBase::hasFunction( QObject *o, const QCString &function, bool onlyC
}
}
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
Function f = *it;
if ( normalizeFunction( f.function ) == normalizeFunction( function ) )
return TRUE;
@@ -938,22 +938,22 @@ bool MetaDataBase::hasFunction( QObject *o, const QCString &function, bool onlyC
return FALSE;
}
-QString MetaDataBase::languageOfFunction( QObject *o, const QCString &function )
+TQString MetaDataBase::languageOfFunction( TQObject *o, const TQCString &function )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QString::null;
+ return TQString::null;
}
- QString fu = normalizeFunction( function );
- for ( QValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
+ TQString fu = normalizeFunction( function );
+ for ( TQValueList<Function>::Iterator it = r->functionList.begin(); it != r->functionList.end(); ++it ) {
if ( fu == normalizeFunction( (*it).function ) )
return (*it).language;
}
- return QString::null;
+ return TQString::null;
}
bool MetaDataBase::addCustomWidget( CustomWidget *wid )
@@ -962,15 +962,15 @@ bool MetaDataBase::addCustomWidget( CustomWidget *wid )
for ( CustomWidget *w = cWidgets->first(); w; w = cWidgets->next() ) {
if ( *wid == *w ) {
- for ( QValueList<QCString>::ConstIterator it = wid->lstSignals.begin(); it != wid->lstSignals.end(); ++it ) {
+ for ( TQValueList<TQCString>::ConstIterator it = wid->lstSignals.begin(); it != wid->lstSignals.end(); ++it ) {
if ( !w->hasSignal( *it ) )
w->lstSignals.append( *it );
}
- for ( QValueList<Function>::ConstIterator it2 = wid->lstSlots.begin(); it2 != wid->lstSlots.end(); ++it2 ) {
+ for ( TQValueList<Function>::ConstIterator it2 = wid->lstSlots.begin(); it2 != wid->lstSlots.end(); ++it2 ) {
if ( !w->hasSlot( MetaDataBase::normalizeFunction( (*it2).function ).latin1() ) )
w->lstSlots.append( *it2 );
}
- for ( QValueList<Property>::ConstIterator it3 = wid->lstProperties.begin(); it3 != wid->lstProperties.end(); ++it3 ) {
+ for ( TQValueList<Property>::ConstIterator it3 = wid->lstProperties.begin(); it3 != wid->lstProperties.end(); ++it3 ) {
if ( !w->hasProperty( (*it3).property ) )
w->lstProperties.append( *it3 );
}
@@ -984,7 +984,7 @@ bool MetaDataBase::addCustomWidget( CustomWidget *wid )
r->name = wid->className;
r->group = WidgetDatabase::widgetGroup( "Custom" );
r->toolTip = wid->className;
- r->icon = new QIconSet( *wid->pixmap, *wid->pixmap );
+ r->icon = new TQIconSet( *wid->pixmap, *wid->pixmap );
r->isContainer = wid->isContainer;
wid->id = WidgetDatabase::addCustomWidget( r );
cWidgets->append( wid );
@@ -996,7 +996,7 @@ void MetaDataBase::removeCustomWidget( CustomWidget *w )
cWidgets->removeRef( w );
}
-QPtrList<MetaDataBase::CustomWidget> *MetaDataBase::customWidgets()
+TQPtrList<MetaDataBase::CustomWidget> *MetaDataBase::customWidgets()
{
setupDataBase();
return cWidgets;
@@ -1022,7 +1022,7 @@ bool MetaDataBase::isWidgetNameUsed( CustomWidget *wid )
return FALSE;
}
-bool MetaDataBase::hasCustomWidget( const QString &className )
+bool MetaDataBase::hasCustomWidget( const TQString &className )
{
for ( CustomWidget *w = cWidgets->first(); w; w = cWidgets->next() ) {
if ( w->className == className )
@@ -1031,7 +1031,7 @@ bool MetaDataBase::hasCustomWidget( const QString &className )
return FALSE;
}
-void MetaDataBase::setTabOrder( QWidget *w, const QWidgetList &order )
+void MetaDataBase::setTabOrder( TQWidget *w, const TQWidgetList &order )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*) w );
@@ -1044,20 +1044,20 @@ void MetaDataBase::setTabOrder( QWidget *w, const QWidgetList &order )
r->tabOrder = order;
}
-QWidgetList MetaDataBase::tabOrder( QWidget *w )
+TQWidgetList MetaDataBase::tabOrder( TQWidget *w )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*) w );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
w, w->name(), w->className() );
- return QWidgetList();
+ return TQWidgetList();
}
return r->tabOrder;
}
-void MetaDataBase::setIncludes( QObject *o, const QValueList<Include> &incs )
+void MetaDataBase::setIncludes( TQObject *o, const TQValueList<Include> &incs )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1070,20 +1070,20 @@ void MetaDataBase::setIncludes( QObject *o, const QValueList<Include> &incs )
r->includes = incs;
}
-QValueList<MetaDataBase::Include> MetaDataBase::includes( QObject *o )
+TQValueList<MetaDataBase::Include> MetaDataBase::includes( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<Include>();
+ return TQValueList<Include>();
}
return r->includes;
}
-void MetaDataBase::setForwards( QObject *o, const QStringList &fwds )
+void MetaDataBase::setForwards( TQObject *o, const TQStringList &fwds )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1096,20 +1096,20 @@ void MetaDataBase::setForwards( QObject *o, const QStringList &fwds )
r->forwards = fwds;
}
-QStringList MetaDataBase::forwards( QObject *o )
+TQStringList MetaDataBase::forwards( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QStringList();
+ return TQStringList();
}
return r->forwards;
}
-void MetaDataBase::setVariables( QObject *o, const QValueList<Variable> &vars )
+void MetaDataBase::setVariables( TQObject *o, const TQValueList<Variable> &vars )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1122,7 +1122,7 @@ void MetaDataBase::setVariables( QObject *o, const QValueList<Variable> &vars )
r->variables = vars;
}
-void MetaDataBase::addVariable( QObject *o, const QString &name, const QString &access )
+void MetaDataBase::addVariable( TQObject *o, const TQString &name, const TQString &access )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1137,7 +1137,7 @@ void MetaDataBase::addVariable( QObject *o, const QString &name, const QString &
r->variables << v;
}
-void MetaDataBase::removeVariable( QObject *o, const QString &name )
+void MetaDataBase::removeVariable( TQObject *o, const TQString &name )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1146,7 +1146,7 @@ void MetaDataBase::removeVariable( QObject *o, const QString &name )
o, o->name(), o->className() );
return;
}
- QValueList<Variable>::Iterator it = r->variables.begin();
+ TQValueList<Variable>::Iterator it = r->variables.begin();
for ( ; it != r->variables.end(); ++it ) {
if ( (*it).varName == name ) {
r->variables.remove( it );
@@ -1155,20 +1155,20 @@ void MetaDataBase::removeVariable( QObject *o, const QString &name )
}
}
-QValueList<MetaDataBase::Variable> MetaDataBase::variables( QObject *o )
+TQValueList<MetaDataBase::Variable> MetaDataBase::variables( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<MetaDataBase::Variable>();
+ return TQValueList<MetaDataBase::Variable>();
}
return r->variables;
}
-bool MetaDataBase::hasVariable( QObject *o, const QString &name )
+bool MetaDataBase::hasVariable( TQObject *o, const TQString &name )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1178,7 +1178,7 @@ bool MetaDataBase::hasVariable( QObject *o, const QString &name )
return FALSE;
}
- QValueList<Variable>::Iterator it = r->variables.begin();
+ TQValueList<Variable>::Iterator it = r->variables.begin();
for ( ; it != r->variables.end(); ++it ) {
if ( extractVariableName( name ) == extractVariableName( (*it).varName ) )
return TRUE;
@@ -1186,9 +1186,9 @@ bool MetaDataBase::hasVariable( QObject *o, const QString &name )
return FALSE;
}
-QString MetaDataBase::extractVariableName( const QString &name )
+TQString MetaDataBase::extractVariableName( const TQString &name )
{
- QString n = name.right( name.length() - name.findRev( ' ' ) - 1 );
+ TQString n = name.right( name.length() - name.findRev( ' ' ) - 1 );
if ( n[ 0 ] == '*' || n[ 0 ] == '&' )
n[ 0 ] = ' ';
if ( n[ (int)n.length() - 1 ] == ';' )
@@ -1196,7 +1196,7 @@ QString MetaDataBase::extractVariableName( const QString &name )
return n.simplifyWhiteSpace();
}
-void MetaDataBase::setSignalList( QObject *o, const QStringList &sigs )
+void MetaDataBase::setSignalList( TQObject *o, const TQStringList &sigs )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1208,8 +1208,8 @@ void MetaDataBase::setSignalList( QObject *o, const QStringList &sigs )
r->sigs.clear();
- for ( QStringList::ConstIterator it = sigs.begin(); it != sigs.end(); ++it ) {
- QString s = (*it).simplifyWhiteSpace();
+ for ( TQStringList::ConstIterator it = sigs.begin(); it != sigs.end(); ++it ) {
+ TQString s = (*it).simplifyWhiteSpace();
bool hasSemicolon = s.endsWith( ";" );
if ( hasSemicolon )
s = s.left( s.length() - 1 );
@@ -1229,20 +1229,20 @@ void MetaDataBase::setSignalList( QObject *o, const QStringList &sigs )
}
}
-QStringList MetaDataBase::signalList( QObject *o )
+TQStringList MetaDataBase::signalList( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QStringList();
+ return TQStringList();
}
return r->sigs;
}
-void MetaDataBase::setMetaInfo( QObject *o, MetaInfo mi )
+void MetaDataBase::setMetaInfo( TQObject *o, MetaInfo mi )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1255,7 +1255,7 @@ void MetaDataBase::setMetaInfo( QObject *o, MetaInfo mi )
r->metaInfo = mi;
}
-MetaDataBase::MetaInfo MetaDataBase::metaInfo( QObject *o )
+MetaDataBase::MetaInfo MetaDataBase::metaInfo( TQObject *o )
{
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
@@ -1276,10 +1276,10 @@ MetaDataBase::CustomWidget::CustomWidget()
className = "MyCustomWidget";
includeFile = "mywidget.h";
includePolicy = Local;
- sizeHint = QSize( -1, -1 );
- pixmap = new QPixmap( BarIcon( "designer_customwidget.png", KDevDesignerPartFactory::instance() ) );
+ sizeHint = TQSize( -1, -1 );
+ pixmap = new TQPixmap( BarIcon( "designer_customwidget.png", KDevDesignerPartFactory::instance() ) );
id = -1;
- sizePolicy = QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
+ sizePolicy = TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred );
isContainer = FALSE;
}
@@ -1290,14 +1290,14 @@ MetaDataBase::CustomWidget::CustomWidget( const CustomWidget &w )
includePolicy = w.includePolicy;
sizeHint = w.sizeHint;
if ( w.pixmap )
- pixmap = new QPixmap( *w.pixmap );
+ pixmap = new TQPixmap( *w.pixmap );
else
pixmap = 0;
id = w.id;
isContainer = w.isContainer;
}
-void MetaDataBase::setCursor( QWidget *w, const QCursor &c )
+void MetaDataBase::setCursor( TQWidget *w, const TQCursor &c )
{
setupDataBase();
if ( w->isA( "PropertyObject" ) ) {
@@ -1314,7 +1314,7 @@ void MetaDataBase::setCursor( QWidget *w, const QCursor &c )
r->cursor = c;
}
-QCursor MetaDataBase::cursor( QWidget *w )
+TQCursor MetaDataBase::cursor( TQWidget *w )
{
setupDataBase();
if ( w->isA( "PropertyObject" ) )
@@ -1341,7 +1341,7 @@ MetaDataBase::CustomWidget &MetaDataBase::CustomWidget::operator=( const CustomW
includePolicy = w.includePolicy;
sizeHint = w.sizeHint;
if ( w.pixmap )
- pixmap = new QPixmap( *w.pixmap );
+ pixmap = new TQPixmap( *w.pixmap );
else
pixmap = 0;
lstSignals = w.lstSignals;
@@ -1352,45 +1352,45 @@ MetaDataBase::CustomWidget &MetaDataBase::CustomWidget::operator=( const CustomW
return *this;
}
-bool MetaDataBase::CustomWidget::hasSignal( const QCString &signal ) const
+bool MetaDataBase::CustomWidget::hasSignal( const TQCString &signal ) const
{
- QStrList sigList = QWidget::staticMetaObject()->signalNames( TRUE );
+ TQStrList sigList = TQWidget::staticMetaObject()->signalNames( TRUE );
if ( sigList.find( signal ) != -1 )
return TRUE;
- for ( QValueList<QCString>::ConstIterator it = lstSignals.begin(); it != lstSignals.end(); ++it ) {
+ for ( TQValueList<TQCString>::ConstIterator it = lstSignals.begin(); it != lstSignals.end(); ++it ) {
if ( normalizeFunction( *it ) == normalizeFunction( signal ) )
return TRUE;
}
return FALSE;
}
-bool MetaDataBase::CustomWidget::hasSlot( const QCString &slot ) const
+bool MetaDataBase::CustomWidget::hasSlot( const TQCString &slot ) const
{
- QStrList slotList = QWidget::staticMetaObject()->slotNames( TRUE );
+ TQStrList slotList = TQWidget::staticMetaObject()->slotNames( TRUE );
if ( slotList.find( normalizeFunction( slot ) ) != -1 )
return TRUE;
- for ( QValueList<MetaDataBase::Function>::ConstIterator it = lstSlots.begin(); it != lstSlots.end(); ++it ) {
+ for ( TQValueList<MetaDataBase::Function>::ConstIterator it = lstSlots.begin(); it != lstSlots.end(); ++it ) {
if ( normalizeFunction( (*it).function ) == normalizeFunction( slot ) )
return TRUE;
}
return FALSE;
}
-bool MetaDataBase::CustomWidget::hasProperty( const QCString &prop ) const
+bool MetaDataBase::CustomWidget::hasProperty( const TQCString &prop ) const
{
- QStrList propList = QWidget::staticMetaObject()->propertyNames( TRUE );
+ TQStrList propList = TQWidget::staticMetaObject()->propertyNames( TRUE );
if ( propList.find( prop ) != -1 )
return TRUE;
- for ( QValueList<MetaDataBase::Property>::ConstIterator it = lstProperties.begin(); it != lstProperties.end(); ++it ) {
+ for ( TQValueList<MetaDataBase::Property>::ConstIterator it = lstProperties.begin(); it != lstProperties.end(); ++it ) {
if ( (*it).property == prop )
return TRUE;
}
return FALSE;
}
-void MetaDataBase::setPixmapArgument( QObject *o, int pixmap, const QString &arg )
+void MetaDataBase::setPixmapArgument( TQObject *o, int pixmap, const TQString &arg )
{
if ( !o )
return;
@@ -1406,22 +1406,22 @@ void MetaDataBase::setPixmapArgument( QObject *o, int pixmap, const QString &arg
r->pixmapArguments.insert( pixmap, arg );
}
-QString MetaDataBase::pixmapArgument( QObject *o, int pixmap )
+TQString MetaDataBase::pixmapArgument( TQObject *o, int pixmap )
{
if ( !o )
- return QString::null;
+ return TQString::null;
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QString::null;
+ return TQString::null;
}
return *r->pixmapArguments.find( pixmap );
}
-void MetaDataBase::clearPixmapArguments( QObject *o )
+void MetaDataBase::clearPixmapArguments( TQObject *o )
{
if ( !o )
return;
@@ -1437,7 +1437,7 @@ void MetaDataBase::clearPixmapArguments( QObject *o )
}
-void MetaDataBase::setPixmapKey( QObject *o, int pixmap, const QString &arg )
+void MetaDataBase::setPixmapKey( TQObject *o, int pixmap, const TQString &arg )
{
if ( !o )
return;
@@ -1457,10 +1457,10 @@ void MetaDataBase::setPixmapKey( QObject *o, int pixmap, const QString &arg )
r->pixmapKeys.insert( pixmap, arg );
}
-QString MetaDataBase::pixmapKey( QObject *o, int pixmap )
+TQString MetaDataBase::pixmapKey( TQObject *o, int pixmap )
{
if ( !o )
- return QString::null;
+ return TQString::null;
setupDataBase();
if ( o->isA( "PropertyObject" ) )
return ( (PropertyObject*)o )->mdPixmapKey( pixmap );
@@ -1468,21 +1468,21 @@ QString MetaDataBase::pixmapKey( QObject *o, int pixmap )
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QString::null;
+ return TQString::null;
}
- QString s = *r->pixmapKeys.find( pixmap );
+ TQString s = *r->pixmapKeys.find( pixmap );
if ( !s.isNull() )
return s;
if ( !o->isWidgetType() )
return s;
- QWidget *w = (QWidget*)o;
+ TQWidget *w = (TQWidget*)o;
if ( w->icon() )
return *r->pixmapKeys.find( w->icon()->serialNumber() );
return s;
}
-void MetaDataBase::clearPixmapKeys( QObject *o )
+void MetaDataBase::clearPixmapKeys( TQObject *o )
{
if ( !o )
return;
@@ -1499,7 +1499,7 @@ void MetaDataBase::clearPixmapKeys( QObject *o )
-void MetaDataBase::setColumnFields( QObject *o, const QMap<QString, QString> &columnFields )
+void MetaDataBase::setColumnFields( TQObject *o, const TQMap<TQString, TQString> &columnFields )
{
if ( !o )
return;
@@ -1514,37 +1514,37 @@ void MetaDataBase::setColumnFields( QObject *o, const QMap<QString, QString> &co
r->columnFields = columnFields;
}
-QMap<QString, QString> MetaDataBase::columnFields( QObject *o )
+TQMap<TQString, TQString> MetaDataBase::columnFields( TQObject *o )
{
if ( !o )
- return QMap<QString, QString>();
+ return TQMap<TQString, TQString>();
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QMap<QString, QString>();
+ return TQMap<TQString, TQString>();
}
return r->columnFields;
}
-void MetaDataBase::setEditor( const QStringList &langs )
+void MetaDataBase::setEditor( const TQStringList &langs )
{
editorLangList = langs;
}
-bool MetaDataBase::hasEditor( const QString &lang )
+bool MetaDataBase::hasEditor( const TQString &lang )
{
return editorLangList.find( lang ) != editorLangList.end();
}
-void MetaDataBase::setupInterfaceManagers( const QString &plugDir )
+void MetaDataBase::setupInterfaceManagers( const TQString &plugDir )
{
if ( !languageInterfaceManager ) {
languageInterfaceManager =
new QPluginManager<LanguageInterface>( IID_Language,
- QApplication::libraryPaths(),
+ TQApplication::libraryPaths(),
// kapp->dirs()->resourceDirs("qtplugins"),
plugDir );
@@ -1554,34 +1554,34 @@ void MetaDataBase::setupInterfaceManagers( const QString &plugDir )
}
}
-QStringList MetaDataBase::languages()
+TQStringList MetaDataBase::languages()
{
return langList;
}
-QString MetaDataBase::normalizeFunction( const QString &f )
+TQString MetaDataBase::normalizeFunction( const TQString &f )
{
return Parser::cleanArgs( f );
}
-LanguageInterface *MetaDataBase::languageInterface( const QString &lang )
+LanguageInterface *MetaDataBase::languageInterface( const TQString &lang )
{
LanguageInterface* iface = 0;
languageInterfaceManager->queryInterface( lang, &iface );
return iface;
}
-void MetaDataBase::clear( QObject *o )
+void MetaDataBase::clear( TQObject *o )
{
if ( !o )
return;
setupDataBase();
db->remove( (void*)o );
- for ( QPtrDictIterator<QWidget> it( *( (FormWindow*)o )->widgets() ); it.current(); ++it )
+ for ( TQPtrDictIterator<TQWidget> it( *( (FormWindow*)o )->widgets() ); it.current(); ++it )
db->remove( (void*)it.current() );
}
-void MetaDataBase::setBreakPoints( QObject *o, const QValueList<uint> &l )
+void MetaDataBase::setBreakPoints( TQObject *o, const TQValueList<uint> &l )
{
if ( !o )
return;
@@ -1595,7 +1595,7 @@ void MetaDataBase::setBreakPoints( QObject *o, const QValueList<uint> &l )
r->breakPoints = l;
- QMap<int, QString>::Iterator it = r->breakPointConditions.begin();
+ TQMap<int, TQString>::Iterator it = r->breakPointConditions.begin();
while ( it != r->breakPointConditions.end() ) {
int line = it.key();
++it;
@@ -1604,22 +1604,22 @@ void MetaDataBase::setBreakPoints( QObject *o, const QValueList<uint> &l )
}
}
-QValueList<uint> MetaDataBase::breakPoints( QObject *o )
+TQValueList<uint> MetaDataBase::breakPoints( TQObject *o )
{
if ( !o )
- return QValueList<uint>();
+ return TQValueList<uint>();
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QValueList<uint>();
+ return TQValueList<uint>();
}
return r->breakPoints;
}
-void MetaDataBase::setBreakPointCondition( QObject *o, int line, const QString &condition )
+void MetaDataBase::setBreakPointCondition( TQObject *o, int line, const TQString &condition )
{
if ( !o )
return;
@@ -1633,24 +1633,24 @@ void MetaDataBase::setBreakPointCondition( QObject *o, int line, const QString &
r->breakPointConditions.replace( line, condition );
}
-QString MetaDataBase::breakPointCondition( QObject *o, int line )
+TQString MetaDataBase::breakPointCondition( TQObject *o, int line )
{
if ( !o )
- return QString::null;
+ return TQString::null;
setupDataBase();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r ) {
qWarning( "No entry for %p (%s, %s) found in MetaDataBase",
o, o->name(), o->className() );
- return QString::null;
+ return TQString::null;
}
- QMap<int, QString>::Iterator it = r->breakPointConditions.find( line );
+ TQMap<int, TQString>::Iterator it = r->breakPointConditions.find( line );
if ( it == r->breakPointConditions.end() )
- return QString::null;
+ return TQString::null;
return *it;
}
-void MetaDataBase::setExportMacro( QObject *o, const QString &macro )
+void MetaDataBase::setExportMacro( TQObject *o, const TQString &macro )
{
if ( !o )
return;
@@ -1669,7 +1669,7 @@ void MetaDataBase::setExportMacro( QObject *o, const QString &macro )
r->exportMacro = macro;
}
-QString MetaDataBase::exportMacro( QObject *o )
+TQString MetaDataBase::exportMacro( TQObject *o )
{
if ( !o )
return "";
@@ -1686,7 +1686,7 @@ QString MetaDataBase::exportMacro( QObject *o )
return r->exportMacro;
}
-bool MetaDataBase::hasObject( QObject *o )
+bool MetaDataBase::hasObject( TQObject *o )
{
return !!db->find( o );
}