diff options
Diffstat (limited to 'kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h')
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h index 85b1827f..86bd2e4f 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h +++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h @@ -25,8 +25,8 @@ #include <libxsldbg/xsldbgwin32config.h> #endif -#include <qevent.h> -#include <qptrlist.h> +#include <tqevent.h> +#include <tqptrlist.h> #include "xsldbgmsg.h" @@ -40,50 +40,50 @@ class XsldbgEventDataList : public QGList { public: XsldbgEventDataList(void) {} - XsldbgEventDataList( const XsldbgEventDataList &l ) : QGList(l) {} + XsldbgEventDataList( const XsldbgEventDataList &l ) : TQGList(l) {} ~XsldbgEventDataList(void) { clear(); } XsldbgEventDataList &operator=(const XsldbgEventDataList &l) - { return (XsldbgEventDataList&)QGList::operator=(l); } + { return (XsldbgEventDataList&)TQGList::operator=(l); } bool operator==( const XsldbgEventDataList &list ) const - { return QGList::operator==( list ); } - uint count(void) const { return QGList::count(); } - bool isEmpty(void) const { return QGList::count() == 0; } - bool insert( uint i, const XsldbgEventData *d){ return QGList::insertAt(i,(QPtrCollection::Item)d); } - void inSort( const XsldbgEventData *d ) { QGList::inSort((QPtrCollection::Item)d); } - void prepend( const XsldbgEventData *d ) { QGList::insertAt(0,(QPtrCollection::Item)d); } - void append( const XsldbgEventData *d ) { QGList::append((QPtrCollection::Item)d); } - bool remove( uint i ) { return QGList::removeAt(i); } - bool remove(void) { return QGList::remove((QPtrCollection::Item)0); } - bool remove( const XsldbgEventData *d ) { return QGList::remove((QPtrCollection::Item)d); } - bool removeRef( const XsldbgEventData *d ) { return QGList::removeRef((QPtrCollection::Item)d); } - void removeNode( QLNode *n ) { QGList::removeNode(n); } - bool removeFirst(void) { return QGList::removeFirst(); } - bool removeLast(void) { return QGList::removeLast(); } - XsldbgEventData *take( uint i ) { return (XsldbgEventData *)QGList::takeAt(i); } - XsldbgEventData *take(void) { return (XsldbgEventData *)QGList::take(); } - XsldbgEventData *takeNode( QLNode *n ) { return (XsldbgEventData *)QGList::takeNode(n); } - void clear(void) { QGList::clear(); } - void sort(void) { QGList::sort(); } - int find( const XsldbgEventData *d ) { return QGList::find((QPtrCollection::Item)d); } - int findNext( const XsldbgEventData *d ) { return QGList::find((QPtrCollection::Item)d,FALSE); } - int findRef( const XsldbgEventData *d ) { return QGList::findRef((QPtrCollection::Item)d); } - int findNextRef( const XsldbgEventData *d ){ return QGList::findRef((QPtrCollection::Item)d,FALSE);} - uint contains( const XsldbgEventData *d ) const { return QGList::contains((QPtrCollection::Item)d); } + { return TQGList::operator==( list ); } + uint count(void) const { return TQGList::count(); } + bool isEmpty(void) const { return TQGList::count() == 0; } + bool insert( uint i, const XsldbgEventData *d){ return TQGList::insertAt(i,(TQPtrCollection::Item)d); } + void inSort( const XsldbgEventData *d ) { TQGList::inSort((TQPtrCollection::Item)d); } + void prepend( const XsldbgEventData *d ) { TQGList::insertAt(0,(TQPtrCollection::Item)d); } + void append( const XsldbgEventData *d ) { TQGList::append((TQPtrCollection::Item)d); } + bool remove( uint i ) { return TQGList::removeAt(i); } + bool remove(void) { return TQGList::remove((TQPtrCollection::Item)0); } + bool remove( const XsldbgEventData *d ) { return TQGList::remove((TQPtrCollection::Item)d); } + bool removeRef( const XsldbgEventData *d ) { return TQGList::removeRef((TQPtrCollection::Item)d); } + void removeNode( TQLNode *n ) { TQGList::removeNode(n); } + bool removeFirst(void) { return TQGList::removeFirst(); } + bool removeLast(void) { return TQGList::removeLast(); } + XsldbgEventData *take( uint i ) { return (XsldbgEventData *)TQGList::takeAt(i); } + XsldbgEventData *take(void) { return (XsldbgEventData *)TQGList::take(); } + XsldbgEventData *takeNode( TQLNode *n ) { return (XsldbgEventData *)TQGList::takeNode(n); } + void clear(void) { TQGList::clear(); } + void sort(void) { TQGList::sort(); } + int find( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d); } + int findNext( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d,FALSE); } + int findRef( const XsldbgEventData *d ) { return TQGList::findRef((TQPtrCollection::Item)d); } + int findNextRef( const XsldbgEventData *d ){ return TQGList::findRef((TQPtrCollection::Item)d,FALSE);} + uint contains( const XsldbgEventData *d ) const { return TQGList::contains((TQPtrCollection::Item)d); } uint containsRef( const XsldbgEventData *d ) const - { return QGList::containsRef((QPtrCollection::Item)d); } - XsldbgEventData *at( uint i ) { return (XsldbgEventData *)QGList::at(i); } - int at(void) const { return QGList::at(); } - XsldbgEventData *current(void) const { return (XsldbgEventData *)QGList::get(); } - QLNode *currentNode(void) const { return QGList::currentNode(); } - XsldbgEventData *getFirst(void) const { return (XsldbgEventData *)QGList::cfirst(); } - XsldbgEventData *getLast(void) const { return (XsldbgEventData *)QGList::clast(); } - XsldbgEventData *first(void) { return (XsldbgEventData *)QGList::first(); } - XsldbgEventData *last(void) { return (XsldbgEventData *)QGList::last(); } - XsldbgEventData *next(void) { return (XsldbgEventData *)QGList::next(); } - XsldbgEventData *prev(void) { return (XsldbgEventData *)QGList::prev(); } - void toVector( QGVector *vec )const{ QGList::toVector(vec); } + { return TQGList::containsRef((TQPtrCollection::Item)d); } + XsldbgEventData *at( uint i ) { return (XsldbgEventData *)TQGList::at(i); } + int at(void) const { return TQGList::at(); } + XsldbgEventData *current(void) const { return (XsldbgEventData *)TQGList::get(); } + TQLNode *currentNode(void) const { return TQGList::currentNode(); } + XsldbgEventData *getFirst(void) const { return (XsldbgEventData *)TQGList::cfirst(); } + XsldbgEventData *getLast(void) const { return (XsldbgEventData *)TQGList::clast(); } + XsldbgEventData *first(void) { return (XsldbgEventData *)TQGList::first(); } + XsldbgEventData *last(void) { return (XsldbgEventData *)TQGList::last(); } + XsldbgEventData *next(void) { return (XsldbgEventData *)TQGList::next(); } + XsldbgEventData *prev(void) { return (XsldbgEventData *)TQGList::prev(); } + void toVector( TQGVector *vec )const{ TQGList::toVector(vec); } private: - void deleteItem( QPtrCollection::Item d ); + void deleteItem( TQPtrCollection::Item d ); }; @@ -111,18 +111,18 @@ class XsldbgEventData { * @param column 0 =< @p column < XSLDBGEVENT_COLUMNS * @param text The text value to store in column indicated */ - void setText(int column, QString text); + void setText(int column, TQString text); /** * Get the text from the column specified * - * @returns QString::null if invalid column number + * @returns TQString::null if invalid column number * * @param column 0 =< @p column < XSLDBGEVENT_COLUMNS * */ - QString getText(int column); + TQString getText(int column); /** @@ -146,10 +146,10 @@ class XsldbgEventData { private: /** Below are the messages that this class will support - Values are mapped left to right ie the first QString value maps + Values are mapped left to right ie the first TQString value maps to textValues[0], the second mapps to textValues[1] the third maps to textValues[2] etc.. */ - QString textValues[XSLDBGEVENT_COLUMNS]; + TQString textValues[XSLDBGEVENT_COLUMNS]; /** Both int and bool values are mapped to intValues in the same manner as @@ -158,65 +158,65 @@ class XsldbgEventData { /** - - - - - - The message/signal types supported - - - - - - */ // /** line number and/or file name changed */ - // void lineNoChanged(QString /* fileName */, int /* lineNumber */, bool /* breakpoint */); + // void lineNoChanged(TQString /* fileName */, int /* lineNumber */, bool /* breakpoint */); // These data items are mapped to attributes of this class with the same name // /** Show a message in debugger window */ - // void showMessage(QString /* msg*/); + // void showMessage(TQString /* msg*/); // These data item is mapped to the text attribute - // /** Add breakpoint to view, First parameter is QString::null + // /** Add breakpoint to view, First parameter is TQString::null // to indicate start of breakpoint list notfication */ - // void breakpointItem(QString /* fileName*/, int /* lineNumber */, QString /*templateName*/, + // void breakpointItem(TQString /* fileName*/, int /* lineNumber */, TQString /*templateName*/, // bool /* enabled */, int /* id */); // These data items are mapped to attributes of this class with the same name - // /** Add global variable to view, First parameter is QString::null + // /** Add global variable to view, First parameter is TQString::null // to indicate start of global variable list notfication */ - // void globalVariableItem(QString /* name */, QString /* fileName */, int /* lineNumber */); + // void globalVariableItem(TQString /* name */, TQString /* fileName */, int /* lineNumber */); // These data items are mapped to attributes of this class with the same name - // /** Add local variable to view, First parameter is QString::null + // /** Add local variable to view, First parameter is TQString::null // to indicate start of local variable list notfication */ - // void localVariableItem(QString /*name */, QString /* templateContext*/, - // QString /* fileName */, int /*lineNumber */); + // void localVariableItem(TQString /*name */, TQString /* templateContext*/, + // TQString /* fileName */, int /*lineNumber */); // These data items are mapped to attributes of this class with the same name - // /** Add template to view, First parameter is QString::null + // /** Add template to view, First parameter is TQString::null // to indicate start of template list notfication */ - // void templateItem(QString /* name*/, QString /*mode*/, QString /* fileName */, int /* lineNumber */); + // void templateItem(TQString /* name*/, TQString /*mode*/, TQString /* fileName */, int /* lineNumber */); - // /** Add source to view, First parameter is QString::null + // /** Add source to view, First parameter is TQString::null // to indicate start of source list notfication */ - // void sourceItem(QString /* fileName */, QString /* parentFileName */, int /*lineNumber */); + // void sourceItem(TQString /* fileName */, TQString /* parentFileName */, int /*lineNumber */); - // /** Add parameter to view, First parameter is QString::null + // /** Add parameter to view, First parameter is TQString::null // to indicate start of parameter list notfication */ - // void parameterItem(QString /* name*/, QString /* value */); + // void parameterItem(TQString /* name*/, TQString /* value */); - // /** Add callStack to view, First parameter is QString::null + // /** Add callStack to view, First parameter is TQString::null // to indicate start of callstack list notfication */ - // void callStackItem(QString /* tempalteName*/, QString /* fileName */, int /* lineNumber */); + // void callStackItem(TQString /* tempalteName*/, TQString /* fileName */, int /* lineNumber */); - // /** Add entity to view, First parameter is QString::null + // /** Add entity to view, First parameter is TQString::null // to indicate start of entity list notfication */ - // void entityItem(QString /*SystemID*/, QString /*PublicID*/); + // void entityItem(TQString /*SystemID*/, TQString /*PublicID*/); // /* Show the URI for SystemID or PublicID requested */ - // void resolveItem(QString /*URI*/); + // void resolveItem(TQString /*URI*/); - // /* Display a integer option value First parameter is QString::null + // /* Display a integer option value First parameter is TQString::null // to indicate start of option list notification */ - // void intOptionItem(QString /* name*/, int /* value */); + // void intOptionItem(TQString /* name*/, int /* value */); - // /* Display a string option value. First parameter is QString::null + // /* Display a string option value. First parameter is TQString::null // to indicate start of option list notification */ - // void stringOptionItem(QString /* name*/, QString /* value */); + // void stringOptionItem(TQString /* name*/, TQString /* value */); }; @@ -230,7 +230,7 @@ class XsldbgEventData { * * @author Keith Isdale <[email protected]> */ -class XsldbgEvent : public QEvent { +class XsldbgEvent : public TQEvent { public: XsldbgEvent(XsldbgMessageEnum type, const void *data); @@ -252,7 +252,7 @@ class XsldbgEvent : public QEvent { /** The following functions are directly related to the eventual signals that will be emitted ie the signal - lineNoChanged(QString, int bool) + lineNoChanged(TQString, int bool) is mapped to handleLineNoChanged(XsldbgEventData *, void *) */ |