From 0881ed5059c46ce73e8241e6260b82b92f6d0e55 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 12:20:38 +0900 Subject: Rename ptr nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/annotated.html | 16 +- doc/html/bigtable-example.html | 8 +- doc/html/canvas-example.html | 16 +- doc/html/classchart.html | 16 +- doc/html/classes.html | 16 +- doc/html/collection.html | 70 +-- doc/html/customlayout-example.html | 78 +-- doc/html/customlayout.html | 28 +- doc/html/dirview-example.html | 6 +- doc/html/functions.html | 136 ++--- doc/html/grapher-nsplugin-example.html | 56 +- doc/html/headerfilesynonyms | 4 +- doc/html/headers.html | 12 +- doc/html/hierarchy.html | 16 +- doc/html/index | 304 +++++------ doc/html/listviews-example.html | 14 +- doc/html/mdi-example.html | 2 +- doc/html/ntqapplication.html | 8 +- doc/html/ntqasciicache.html | 20 +- doc/html/ntqasciidict.html | 34 +- doc/html/ntqcache.html | 20 +- doc/html/ntqdict.html | 42 +- doc/html/ntqdir.html | 4 +- doc/html/ntqdockarea.html | 2 +- doc/html/ntqintcache.html | 14 +- doc/html/ntqintdict.html | 32 +- doc/html/ntqmainwindow.html | 6 +- doc/html/ntqmemarray.html | 2 +- doc/html/ntqptrcollection.html | 177 ------ doc/html/ntqptrdict.html | 316 ----------- doc/html/ntqptrlist.html | 738 -------------------------- doc/html/ntqptrqueue.html | 216 -------- doc/html/ntqptrstack.html | 201 ------- doc/html/ntqptrvector.html | 393 -------------- doc/html/ntqstrlist.html | 14 +- doc/html/ntqtabbar.html | 2 +- doc/html/ntqurloperator.html | 4 +- doc/html/ntqworkspace.html | 4 +- doc/html/porting.html | 16 +- doc/html/qasciicache-members.html | 8 +- doc/html/qasciidict-members.html | 8 +- doc/html/qcache-members.html | 8 +- doc/html/qdict-members.html | 8 +- doc/html/qdockarea-h.html | 2 +- doc/html/qfontmanager_qws-h.html | 2 +- doc/html/qintcache-members.html | 8 +- doc/html/qintdict-members.html | 8 +- doc/html/qlistviewitemiterator.html | 8 +- doc/html/qmacmime.html | 2 +- doc/html/qmainwindow-h.html | 2 +- doc/html/qmenudata-h.html | 2 +- doc/html/qmime-h.html | 4 +- doc/html/qptrcollection-h.html | 120 ----- doc/html/qptrcollection-members.html | 54 -- doc/html/qptrdict-h.html | 163 ------ doc/html/qptrdict-members.html | 67 --- doc/html/qptrdictiterator-members.html | 57 -- doc/html/qptrdictiterator.html | 181 ------- doc/html/qptrlist-h.html | 236 -------- doc/html/qptrlist-members.html | 90 ---- doc/html/qptrlistiterator-members.html | 63 --- doc/html/qptrlistiterator.html | 234 -------- doc/html/qptrqueue-h.html | 135 ----- doc/html/qptrqueue-members.html | 62 --- doc/html/qptrstack-h.html | 135 ----- doc/html/qptrstack-members.html | 62 --- doc/html/qptrvector-h.html | 159 ------ doc/html/qptrvector-members.html | 76 --- doc/html/qstrilist-members.html | 82 +-- doc/html/qstrilist.html | 10 +- doc/html/qstrlist-h.html | 2 +- doc/html/qstrlist-members.html | 82 +-- doc/html/qstrlistiterator-members.html | 30 +- doc/html/qstrlistiterator.html | 6 +- doc/html/qstylesheet-h.html | 2 +- doc/html/qt-template-lib.html | 6 +- doc/html/qt.dcf | 366 ++++++------- doc/html/qtabbar-h.html | 2 +- doc/html/qtable-h.html | 4 +- doc/html/qtextbrowser-h.html | 2 +- doc/html/qtextedit-h.html | 4 +- doc/html/qurloperator-h.html | 2 +- doc/html/qwerty-example.html | 14 +- doc/html/qwindowsmime.html | 2 +- doc/html/qwindowsystem_qws-h.html | 2 +- doc/html/qwsserver.html | 2 +- doc/html/scribble-example.html | 2 +- doc/html/showimg-example.html | 2 +- doc/html/table-bigtable-main-cpp.html | 8 +- doc/html/tagreader-with-features-example.html | 4 +- doc/html/tictac-example.html | 2 +- doc/html/titleindex | 44 +- doc/html/tools.html | 16 +- doc/html/tqcanvas-h.html | 2 +- doc/html/tqcanvaspixmaparray.html | 2 +- doc/html/tqmap.html | 2 +- doc/html/tqobject.html | 10 +- doc/html/tqobjectlist-h.html | 2 +- doc/html/tqobjectlist-members.html | 82 +-- doc/html/tqobjectlist.html | 16 +- doc/html/tqobjectlistiterator-members.html | 28 +- doc/html/tqobjectlistiterator.html | 4 +- doc/html/tqpair.html | 4 +- doc/html/tqptrcollection-h.html | 120 +++++ doc/html/tqptrcollection-members.html | 54 ++ doc/html/tqptrcollection.html | 177 ++++++ doc/html/tqptrdict-h.html | 163 ++++++ doc/html/tqptrdict-members.html | 67 +++ doc/html/tqptrdict.html | 316 +++++++++++ doc/html/tqptrdictiterator-members.html | 57 ++ doc/html/tqptrdictiterator.html | 181 +++++++ doc/html/tqptrlist-h.html | 236 ++++++++ doc/html/tqptrlist-members.html | 90 ++++ doc/html/tqptrlist.html | 738 ++++++++++++++++++++++++++ doc/html/tqptrlistiterator-members.html | 63 +++ doc/html/tqptrlistiterator.html | 234 ++++++++ doc/html/tqptrqueue-h.html | 135 +++++ doc/html/tqptrqueue-members.html | 62 +++ doc/html/tqptrqueue.html | 216 ++++++++ doc/html/tqptrstack-h.html | 135 +++++ doc/html/tqptrstack-members.html | 62 +++ doc/html/tqptrstack.html | 201 +++++++ doc/html/tqptrvector-h.html | 159 ++++++ doc/html/tqptrvector-members.html | 76 +++ doc/html/tqptrvector.html | 393 ++++++++++++++ doc/html/tqsqldriver-h.html | 2 +- doc/html/tqvaluelist.html | 4 +- doc/html/tqvaluestack.html | 4 +- doc/html/tqvaluevector.html | 4 +- doc/html/tqwidgetfactory-h.html | 2 +- doc/html/tqwidgetstack-h.html | 2 +- doc/html/whatsthis | 18 +- doc/html/xml-sax-features-walkthrough.html | 4 +- 133 files changed, 4926 insertions(+), 4926 deletions(-) delete mode 100644 doc/html/ntqptrcollection.html delete mode 100644 doc/html/ntqptrdict.html delete mode 100644 doc/html/ntqptrlist.html delete mode 100644 doc/html/ntqptrqueue.html delete mode 100644 doc/html/ntqptrstack.html delete mode 100644 doc/html/ntqptrvector.html delete mode 100644 doc/html/qptrcollection-h.html delete mode 100644 doc/html/qptrcollection-members.html delete mode 100644 doc/html/qptrdict-h.html delete mode 100644 doc/html/qptrdict-members.html delete mode 100644 doc/html/qptrdictiterator-members.html delete mode 100644 doc/html/qptrdictiterator.html delete mode 100644 doc/html/qptrlist-h.html delete mode 100644 doc/html/qptrlist-members.html delete mode 100644 doc/html/qptrlistiterator-members.html delete mode 100644 doc/html/qptrlistiterator.html delete mode 100644 doc/html/qptrqueue-h.html delete mode 100644 doc/html/qptrqueue-members.html delete mode 100644 doc/html/qptrstack-h.html delete mode 100644 doc/html/qptrstack-members.html delete mode 100644 doc/html/qptrvector-h.html delete mode 100644 doc/html/qptrvector-members.html create mode 100644 doc/html/tqptrcollection-h.html create mode 100644 doc/html/tqptrcollection-members.html create mode 100644 doc/html/tqptrcollection.html create mode 100644 doc/html/tqptrdict-h.html create mode 100644 doc/html/tqptrdict-members.html create mode 100644 doc/html/tqptrdict.html create mode 100644 doc/html/tqptrdictiterator-members.html create mode 100644 doc/html/tqptrdictiterator.html create mode 100644 doc/html/tqptrlist-h.html create mode 100644 doc/html/tqptrlist-members.html create mode 100644 doc/html/tqptrlist.html create mode 100644 doc/html/tqptrlistiterator-members.html create mode 100644 doc/html/tqptrlistiterator.html create mode 100644 doc/html/tqptrqueue-h.html create mode 100644 doc/html/tqptrqueue-members.html create mode 100644 doc/html/tqptrqueue.html create mode 100644 doc/html/tqptrstack-h.html create mode 100644 doc/html/tqptrstack-members.html create mode 100644 doc/html/tqptrstack.html create mode 100644 doc/html/tqptrvector-h.html create mode 100644 doc/html/tqptrvector-members.html create mode 100644 doc/html/tqptrvector.html (limited to 'doc/html') diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 2dbf7b695..3b9f0da0c 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -297,14 +297,14 @@ body { background: #ffffff; color: black; } TQProcessUsed to start external programs and to communicate with them TQProgressBarHorizontal progress bar TQProgressDialogFeedback on the progress of a slow operation -TQPtrCollectionThe base class of most pointer-based TQt collections -TQPtrDictTemplate class that provides a dictionary based on void* keys -TQPtrDictIteratorIterator for TQPtrDict collections -TQPtrListTemplate class that provides a list -TQPtrListIteratorIterator for TQPtrList collections -TQPtrQueueTemplate class that provides a queue -TQPtrStackTemplate class that provides a stack -TQPtrVectorTemplate collection class that provides a vector (array) +TQPtrCollectionThe base class of most pointer-based TQt collections +TQPtrDictTemplate class that provides a dictionary based on void* keys +TQPtrDictIteratorIterator for TQPtrDict collections +TQPtrListTemplate class that provides a list +TQPtrListIteratorIterator for TQPtrList collections +TQPtrQueueTemplate class that provides a queue +TQPtrStackTemplate class that provides a stack +TQPtrVectorTemplate collection class that provides a vector (array) TQPushButtonCommand button TQRadioButtonRadio button with a text or pixmap label TQRangeControlInteger value within a range diff --git a/doc/html/bigtable-example.html b/doc/html/bigtable-example.html index e903b3bbc..2ac840b6f 100644 --- a/doc/html/bigtable-example.html +++ b/doc/html/bigtable-example.html @@ -59,8 +59,8 @@ class MyTable : public TQTable { public: MyTable( int r, int c ) : TQTable( r, c ) { - items.setAutoDelete( TRUE ); - widgets.setAutoDelete( TRUE ); + items.setAutoDelete( TRUE ); + widgets.setAutoDelete( TRUE ); setCaption( tr( "A 1 Million x 1 Million Cell Table" ) ); setLeftMargin( fontMetrics().width( "W999999W" ) ); } @@ -71,9 +71,9 @@ public: void clearCell( int r, int c ) { items.remove( indexOf( r, c ) ); } void takeItem( TQTableItem *item ) { - items.setAutoDelete( FALSE ); + items.setAutoDelete( FALSE ); items.remove( indexOf( item->row(), item->col() ) ); - items.setAutoDelete( TRUE ); + items.setAutoDelete( TRUE ); } void insertWidget( int r, int c, TQWidget *w ) { widgets.replace( indexOf( r, c ), w ); } TQWidget *cellWidget( int r, int c ) const { return widgets.find( indexOf( r, c ) ); } diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 0d877ecec..32d05b269 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -223,15 +223,15 @@ public: NodeItem( TQCanvas *canvas ); ~NodeItem() {} - void addInEdge( EdgeItem *edge ) { inList.append( edge ); } - void addOutEdge( EdgeItem *edge ) { outList.append( edge ); } + void addInEdge( EdgeItem *edge ) { inList.append( edge ); } + void addOutEdge( EdgeItem *edge ) { outList.append( edge ); } void moveBy(double dx, double dy); // TQPoint center() { return boundingRect().center(); } private: - TQPtrList<EdgeItem> inList; - TQPtrList<EdgeItem> outList; + TQPtrList<EdgeItem> inList; + TQPtrList<EdgeItem> outList; }; @@ -271,14 +271,14 @@ void NodeItem::moveBy(double dx, double d { TQCanvasEllipse::moveBy( dx, dy ); - TQPtrListIterator<EdgeItem> it1( inList ); + TQPtrListIterator<EdgeItem> it1( inList ); EdgeItem *edge; - while (( edge = it1.current() )) { + while (( edge = it1.current() )) { ++it1; edge->setToPoint( int(x()), int(y()) ); } - TQPtrListIterator<EdgeItem> it2( outList ); - while (( edge = it2.current() )) { + TQPtrListIterator<EdgeItem> it2( outList ); + while (( edge = it2.current() )) { ++it2; edge->setFromPoint( int(x()), int(y()) ); } diff --git a/doc/html/classchart.html b/doc/html/classchart.html index 675e4329a..5d72ef831 100644 --- a/doc/html/classchart.html +++ b/doc/html/classchart.html @@ -275,9 +275,9 @@ body { background: #ffffff; color: black; } - - - + + + @@ -294,10 +294,10 @@ body { background: #ffffff; color: black; } - + - + @@ -311,11 +311,11 @@ body { background: #ffffff; color: black; } - + - + - + diff --git a/doc/html/classes.html b/doc/html/classes.html index 729de0258..c8eda66fa 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -154,7 +154,7 @@ classes, see TQt's Main Classes. TQIMEvent -TQPtrCollection +TQPtrCollection TQTextDecoder @@ -165,7 +165,7 @@ classes, see TQt's Main Classes. TQInputDialog -TQPtrDict +TQPtrDict TQTextDrag @@ -176,7 +176,7 @@ classes, see TQt's Main Classes. TQIntCache -TQPtrDictIterator +TQPtrDictIterator TQTextEdit @@ -187,7 +187,7 @@ classes, see TQt's Main Classes. TQIntCacheIterator -TQPtrList +TQPtrList TQTextEncoder @@ -198,7 +198,7 @@ classes, see TQt's Main Classes. TQIntDict -TQPtrListIterator +TQPtrListIterator TQTextIStream @@ -209,7 +209,7 @@ classes, see TQt's Main Classes. TQIntDictIterator -TQPtrQueue +TQPtrQueue TQTextOStream @@ -220,7 +220,7 @@ classes, see TQt's Main Classes. TQIntValidator -TQPtrStack +TQPtrStack TQTextStream @@ -231,7 +231,7 @@ classes, see TQt's Main Classes. TQIODevice -TQPtrVector +TQPtrVector TQThread diff --git a/doc/html/collection.html b/doc/html/collection.html index 08b6be42c..cb7b53a6d 100644 --- a/doc/html/collection.html +++ b/doc/html/collection.html @@ -54,11 +54,11 @@ details.

The pointer-based collections are:

TQMemArray is exceptional; it is neither pointer nor value based, but memory based. For maximum efficiency with the simple data types @@ -71,8 +71,8 @@ is a class for traversing the items in a collection: TQIntCacheIterator

  • TQDictIterator, TQIntDictIterator, and -TQPtrDictIterator -
  • TQPtrListIterator +TQPtrDictIterator +
  • TQPtrListIterator
  • TQValueListIterator, and TQValueListConstIterator
  • TQMapIterator, and @@ -92,12 +92,12 @@ collections by casting item pointers to and from void pointers.

    This strategy allows TQt's templates to be very economical on space (instantiating one of these templates adds only inlinable calls to the base classes), without hurting performance. -

    A TQPtrList Example +

    A TQPtrList Example

    This example shows how to store Employee items in a list and prints them out in reverse order:

    -    #include <ntqptrlist.h>
    +    #include <tqptrlist.h>
         #include <ntqstring.h>
         #include <stdio.h>
     
    @@ -114,16 +114,16 @@ them out in reverse order:
     
         int main()
         {
    -        TQPtrList<Employee> list;        // list of pointers to Employee
    -        list.setAutoDelete( TRUE );     // delete items when they are removed
    +        TQPtrList<Employee> list;        // list of pointers to Employee
    +        list.setAutoDelete( TRUE );     // delete items when they are removed
     
    -        list.append( new Employee("Bill", 50000) );
    -        list.append( new Employee("Steve",80000) );
    -        list.append( new Employee("Ron",  60000) );
    +        list.append( new Employee("Bill", 50000) );
    +        list.append( new Employee("Steve",80000) );
    +        list.append( new Employee("Ron",  60000) );
     
    -        TQPtrListIterator<Employee> it(list); // iterator for employee list
    -        for ( it.toLast(); it.current(); --it) ) {
    -            Employee *emp = it.current();
    +        TQPtrListIterator<Employee> it(list); // iterator for employee list
    +        for ( it.toLast(); it.current(); --it) ) {
    +            Employee *emp = it.current();
                 printf( "%s earns %d\n", emp->name(), emp->salary() );
             }
     
    @@ -140,11 +140,11 @@ them out in reverse order:
      
     

    Managing Collection Items

    -

    All pointer-based collections inherit the TQPtrCollection base class. +

    All pointer-based collections inherit the TQPtrCollection base class. This class only knows about the number of items in the collection and the deletion strategy.

    By default, items in a collection are not deleted when they are -removed from the collection. The TQPtrCollection::setAutoDelete() +removed from the collection. The TQPtrCollection::setAutoDelete() function specifies the deletion strategy. In the list example, we enable auto-deletion to make the list delete the items when they are removed from the list. @@ -152,23 +152,23 @@ removed from the list. not the item itself. This is called a shallow copy. It is possible to make the collection copy all of the item's data (known as a deep copy) when an item is inserted. All collection functions that insert an -item call the virtual function TQPtrCollection::newItem() for the item +item call the virtual function TQPtrCollection::newItem() for the item to be inserted. Inherit a collection and reimplement it if you want to have deep copies in your collection.

    When removing an item from a list, the virtual function -TQPtrCollection::deleteItem() is called. The default implementation +TQPtrCollection::deleteItem() is called. The default implementation in all collection classes deletes the item if auto-deletion is enabled.

    Usage

    -

    A pointer-based collection class, such as TQPtrList<type>, defines a +

    A pointer-based collection class, such as TQPtrList<type>, defines a collection of pointers to type objects. The pointer (*) is implicit. -

    We discuss TQPtrList here, but the same techniques apply to all +

    We discuss TQPtrList here, but the same techniques apply to all pointer-based collection classes and all collection class iterators.

    Template instantiation:

    -    TQPtrList<Employee> list;            // wherever the list is used
    +    TQPtrList<Employee> list;            // wherever the list is used
     

    The item's class or type, Employee in our example, must be defined prior @@ -176,22 +176,22 @@ to the list definition.

         // Does not work: Employee is not defined
         class Employee;
    -    TQPtrList<Employee> list;
    +    TQPtrList<Employee> list;
     
         // This works: Employee is defined before it is used
         class Employee {
             ...
         };
    -    TQPtrList<Employee> list;
    +    TQPtrList<Employee> list;
     

    Iterators

    -

    Although TQPtrList has member functions to traverse the list, it can -often be better to make use of an iterator. TQPtrListIterator is very +

    Although TQPtrList has member functions to traverse the list, it can +often be better to make use of an iterator. TQPtrListIterator is very safe and can traverse lists that are being modified at the same time. Multiple iterators can work independently on the same collection. -

    A TQPtrList has an internal list of all the iterators that are +

    A TQPtrList has an internal list of all the iterators that are currently operating on it. When a list entry is removed, the list updates all iterators accordingly.

    The TQDict and TQCache collections have no traversal functions. To @@ -231,12 +231,12 @@ Iterator Classes TQIntDictIteratorIterator for TQIntDict collections TQObjectListTQPtrList of TQObjects TQObjectListIteratorIterator for TQObjectLists -TQPtrCollectionThe base class of most pointer-based TQt collections -TQPtrDictTemplate class that provides a dictionary based on void* keys -TQPtrDictIteratorIterator for TQPtrDict collections -TQPtrListTemplate class that provides a list -TQPtrListIteratorIterator for TQPtrList collections -TQPtrQueueTemplate class that provides a queue +TQPtrCollectionThe base class of most pointer-based TQt collections +TQPtrDictTemplate class that provides a dictionary based on void* keys +TQPtrDictIteratorIterator for TQPtrDict collections +TQPtrListTemplate class that provides a list +TQPtrListIteratorIterator for TQPtrList collections +TQPtrQueueTemplate class that provides a queue TQStrIListDoubly-linked list of char* with case-insensitive comparison TQStrListDoubly-linked list of char* diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html index e095c9ca8..b8fb8bf68 100644 --- a/doc/html/customlayout-example.html +++ b/doc/html/customlayout-example.html @@ -56,7 +56,7 @@ like card layouts, border layout and flow layouts. #define FLOW_H #include <ntqlayout.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> class SimpleFlow : public TQLayout { @@ -87,7 +87,7 @@ protected: private: int doLayout( const TQRect&, bool testonly = FALSE ); - TQPtrList<TQLayoutItem> list; + TQPtrList<TQLayoutItem> list; int cached_width; int cached_hfw; @@ -115,7 +115,7 @@ private: class SimpleFlowIterator :public TQGLayoutIterator { public: - SimpleFlowIterator( TQPtrList<TQLayoutItem> *l ) :idx(0), list(l) {} + SimpleFlowIterator( TQPtrList<TQLayoutItem> *l ) :idx(0), list(l) {} uint count() const; TQLayoutItem *current(); TQLayoutItem *next(); @@ -123,18 +123,18 @@ public: private: int idx; - TQPtrList<TQLayoutItem> *list; + TQPtrList<TQLayoutItem> *list; }; uint SimpleFlowIterator::count() const { - return list->count(); + return list->count(); } TQLayoutItem *SimpleFlowIterator::current() { - return idx < int(count()) ? list->at(idx) : 0; + return idx < int(count()) ? list->at(idx) : 0; } TQLayoutItem *SimpleFlowIterator::next() @@ -144,7 +144,7 @@ uint SimpleFlowIterator::count() const TQLayoutItem *SimpleFlowIterator::takeCurrent() { - return idx < int(count()) ? list->take( idx ) : 0; + return idx < int(count()) ? list->take( idx ) : 0; } SimpleFlow::~SimpleFlow() @@ -168,7 +168,7 @@ SimpleFlow::~SimpleFlow() void SimpleFlow::addItem( TQLayoutItem *item) { - list.append( item ); + list.append( item ); } bool SimpleFlow::hasHeightForWidth() const @@ -202,9 +202,9 @@ int SimpleFlow::doLayout( const TQRect int x = r.x(); int y = r.y(); int h = 0; //height of this line so far. - TQPtrListIterator<TQLayoutItem> it(list); + TQPtrListIterator<TQLayoutItem> it(list); TQLayoutItem *o; - while ( (o=it.current()) != 0 ) { + while ( (o=it.current()) != 0 ) { ++it; int nextX = x + o->sizeHint().width() + spacing(); if ( nextX - spacing() > r.right() && h > 0 ) { @@ -224,9 +224,9 @@ int SimpleFlow::doLayout( const TQRect TQSize SimpleFlow::minimumSize() const { TQSize s(0,0); - TQPtrListIterator<TQLayoutItem> it(list); + TQPtrListIterator<TQLayoutItem> it(list); TQLayoutItem *o; - while ( (o=it.current()) != 0 ) { + while ( (o=it.current()) != 0 ) { ++it; s = s.expandedTo( o->minimumSize() ); } @@ -254,7 +254,7 @@ int SimpleFlow::doLayout( const TQRect #define BORDER_H #include <ntqlayout.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> class BorderWidgetItem : public TQWidgetItem { @@ -334,7 +334,7 @@ private: void doLayout( const TQRect &rect, bool testonly = FALSE ); void calcSize( SizeType st ); - TQPtrList<BorderLayoutStruct> list; + TQPtrList<BorderLayoutStruct> list; TQSize cached, mcached; bool sizeDirty, msizeDirty; @@ -362,7 +362,7 @@ private: class BorderLayoutIterator : public TQGLayoutIterator { public: - BorderLayoutIterator( const TQPtrList<BorderLayout::BorderLayoutStruct> *l ) + BorderLayoutIterator( const TQPtrList<BorderLayout::BorderLayoutStruct> *l ) : idx( 0 ) , list( (TQPtrList<BorderLayout::BorderLayoutStruct>*)l ) {} @@ -376,23 +376,23 @@ public: private: int idx; - TQPtrList<BorderLayout::BorderLayoutStruct> *list; + TQPtrList<BorderLayout::BorderLayoutStruct> *list; }; uint BorderLayoutIterator::count() const { - return list->count(); + return list->count(); } TQLayoutItem *BorderLayoutIterator::current() { - return idx < (int)count() ? list->at( idx )->item : 0; + return idx < (int)count() ? list->at( idx )->item : 0; } BorderLayout::BorderLayoutStruct *BorderLayoutIterator::currentStruct() { - return idx < (int)count() ? list->at( idx ) : 0; + return idx < (int)count() ? list->at( idx ) : 0; } void BorderLayoutIterator::toFirst() @@ -409,7 +409,7 @@ void BorderLayoutIterator::toFirst() TQLayoutItem *BorderLayoutIterator::takeCurrent() { BorderLayout::BorderLayoutStruct *b - = idx < int( list->count() ) ? list->take( idx ) : 0; + = idx < int( list->count() ) ? list->take( idx ) : 0; TQLayoutItem *item = b ? b->item : 0; delete b; return item; @@ -439,7 +439,7 @@ void BorderLayout::addWidget( TQWidge void BorderLayout::add( TQLayoutItem *item, Position pos ) { - list.append( new BorderLayoutStruct( item, pos ) ); + list.append( new BorderLayoutStruct( item, pos ) ); sizeDirty = TRUE; msizeDirty = TRUE; calcSize( SizeHint ); calcSize( Minimum ); } @@ -594,7 +594,7 @@ void BorderLayout::calcSize( SizeType st ) #define CARD_H #include <ntqlayout.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> class CardLayout : public TQLayout { @@ -614,7 +614,7 @@ public: void setGeometry( const TQRect &rect ); private: - TQPtrList<TQLayoutItem> list; + TQPtrList<TQLayoutItem> list; }; @@ -640,7 +640,7 @@ private: class CardLayoutIterator :public TQGLayoutIterator { public: - CardLayoutIterator( TQPtrList<TQLayoutItem> *l ) + CardLayoutIterator( TQPtrList<TQLayoutItem> *l ) : idx( 0 ), list( l ) {} TQLayoutItem *current(); @@ -649,12 +649,12 @@ public: private: int idx; - TQPtrList<TQLayoutItem> *list; + TQPtrList<TQLayoutItem> *list; }; TQLayoutItem *CardLayoutIterator::current() { - return idx < int( list->count() ) ? list->at( idx ) : 0; + return idx < int( list->count() ) ? list->at( idx ) : 0; } TQLayoutItem *CardLayoutIterator::next() @@ -664,7 +664,7 @@ private: TQLayoutItem *CardLayoutIterator::takeCurrent() { - return idx < int( list->count() ) ?list->take( idx ) : 0; + return idx < int( list->count() ) ?list->take( idx ) : 0; } @@ -681,25 +681,25 @@ CardLayout::~CardLayout() void CardLayout::addItem( TQLayoutItem *item ) { - list.append( item ); + list.append( item ); } void CardLayout::setGeometry( const TQRect &rct ) { TQLayout::setGeometry( rct ); - TQPtrListIterator<TQLayoutItem> it( list ); - if ( it.count() == 0 ) + TQPtrListIterator<TQLayoutItem> it( list ); + if ( it.count() == 0 ) return; TQLayoutItem *o; int i = 0; - int w = rct.width() - ( list.count() - 1 ) * spacing(); - int h = rct.height() - ( list.count() - 1 ) * spacing(); + int w = rct.width() - ( list.count() - 1 ) * spacing(); + int h = rct.height() - ( list.count() - 1 ) * spacing(); - while ( ( o=it.current() ) != 0 ) { + while ( ( o=it.current() ) != 0 ) { ++it; TQRect geom( rct.x() + i * spacing(), rct.y() + i * spacing(), w, h ); @@ -711,12 +711,12 @@ CardLayout::~CardLayout() TQSize CardLayout::sizeHint() const { TQSize s(0,0); - int n = list.count(); + int n = list.count(); if ( n > 0 ) s = TQSize(100,70); //start with a nice default size - TQPtrListIterator<TQLayoutItem> it(list); + TQPtrListIterator<TQLayoutItem> it(list); TQLayoutItem *o; - while ( (o=it.current()) != 0 ) { + while ( (o=it.current()) != 0 ) { ++it; s = s.expandedTo( o->minimumSize() ); } @@ -726,10 +726,10 @@ CardLayout::~CardLayout() TQSize CardLayout::minimumSize() const { TQSize s(0,0); - int n = list.count(); - TQPtrListIterator<TQLayoutItem> it(list); + int n = list.count(); + TQPtrListIterator<TQLayoutItem> it(list); TQLayoutItem *o; - while ( (o=it.current()) != 0 ) { + while ( (o=it.current()) != 0 ) { ++it; s = s.expandedTo( o->minimumSize() ); } diff --git a/doc/html/customlayout.html b/doc/html/customlayout.html index a9bcfc34c..da82fa892 100644 --- a/doc/html/customlayout.html +++ b/doc/html/customlayout.html @@ -40,7 +40,7 @@ by the Java layout manager of the same name. It lays out the items

    • A data structure to store the items handled by the layout. Each item is a TQLayoutItem. We will use a -TQPtrList in this example. +TQPtrList in this example.
    • addItem(), how to add items to the layout.
    • setGeometry(), how to perform @@ -58,7 +58,7 @@ the layout. #define CARD_H #include <ntqlayout.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> class CardLayout : public TQLayout { @@ -78,7 +78,7 @@ public: void setGeometry(const TQRect &rect); private: - TQPtrList<TQLayoutItem> list; + TQPtrList<TQLayoutItem> list; }; #endif @@ -105,21 +105,21 @@ constructor. In our example we do not need a destructor. class CardLayoutIterator : public TQGLayoutIterator { public: - CardLayoutIterator( TQPtrList<TQLayoutItem> *l ) + CardLayoutIterator( TQPtrList<TQLayoutItem> *l ) : idx( 0 ), list( l ) {} TQLayoutItem *current() - { return idx < int(list->count()) ? list->at(idx) : 0; } + { return idx < int(list->count()) ? list->at(idx) : 0; } TQLayoutItem *next() { idx++; return current(); } TQLayoutItem *takeCurrent() - { return list->take( idx ); } + { return list->take( idx ); } private: int idx; - TQPtrList<TQLayoutItem> *list; + TQPtrList<TQLayoutItem> *list; };
    @@ -164,8 +164,8 @@ void CardLayout::setGeometry( const TQRect &rect { TQLayout::setGeometry( rect ); - TQPtrListIterator<TQLayoutItem> it( list ); - if (it.count() == 0) + TQPtrListIterator<TQLayoutItem> it( list ); + if (it.count() == 0) return; TQLayoutItem *item; @@ -175,7 +175,7 @@ void CardLayout::setGeometry( const TQRect &rect int w = rect.width() - ( list.count() - 1 ) * spacing(); int h = rect.height() - ( list.count() - 1 ) * spacing(); - while ( (item = it.current()) != 0 ) { + while ( (item = it.current()) != 0 ) { ++it; TQRect geom( rect.x() + i * spacing(), rect.y() + i * spacing(), w, h ); @@ -195,9 +195,9 @@ TQSize CardLayout::sizeHint() const int n = list.count(); if ( n > 0 ) s = TQSize( 100, 70 ); // start with a nice default size - TQPtrListIterator<TQLayoutItem> it( list ); + TQPtrListIterator<TQLayoutItem> it( list ); TQLayoutItem *item; - while ( (item = it.current()) != 0 ) { + while ( (item = it.current()) != 0 ) { ++it; s = s.expandedTo( item->minimumSize() ); } @@ -208,9 +208,9 @@ TQSize CardLayout::minimumSize() const { TQSize s( 0, 0 ); int n = list.count(); - TQPtrListIterator<TQLayoutItem> it( list ); + TQPtrListIterator<TQLayoutItem> it( list ); TQLayoutItem *item; - while ( (item = it.current()) != 0 ) { + while ( (item = it.current()) != 0 ) { ++it; s = s.expandedTo( item->minimumSize() ); } diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html index c734559bb..5cd95fe78 100644 --- a/doc/html/dirview-example.html +++ b/doc/html/dirview-example.html @@ -577,8 +577,8 @@ static const int autoopenTime = 750; e->accept(); - for ( uint i = 0; i < lst.count(); ++i ) { - TQString filename = TQDir::convertSeparators(TQUriDrag::uriToLocalFile(lst.at(i))); + for ( uint i = 0; i < lst.count(); ++i ) { + TQString filename = TQDir::convertSeparators(TQUriDrag::uriToLocalFile(lst.at(i))); str += filename + "\n"; } str += TQString( "\nTo\n\n %1" ) @@ -720,7 +720,7 @@ int main( int argc, char ** argv ) mw.setTreeStepSize( 20 ); const TQFileInfoList* roots = TQDir::drives(); - TQPtrListIterator<TQFileInfo> i(*roots); + TQPtrListIterator<TQFileInfo> i(*roots); TQFileInfo* fi; while ( (fi = *i) ) { ++i; diff --git a/doc/html/functions.html b/doc/html/functions.html index d4f6228a9..2bf662c5f 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -155,7 +155,7 @@ abort: TQCanvasItem
  • answerRect: TQDragMoveEvent
  • appID: TQAxFactory
  • append: - TQCString TQIconDrag TQPtrList TQSqlCursor TQSqlIndex TQSqlRecord TQString TQTextEdit TQValueList TQValueVector TQXmlAttributes
  • appendChild: + TQCString TQIconDrag TQPtrList TQSqlCursor TQSqlIndex TQSqlRecord TQString TQTextEdit TQValueList TQValueVector TQXmlAttributes
  • appendChild: TQDomNode
  • appendData: TQDomCharacterData
  • applicationContext: TQMotif
  • applicationDirPath: @@ -214,11 +214,11 @@ abort: TQMemArray
  • assistantClosed: TQAssistantClient
  • assistantOpened: TQAssistantClient
  • at: - TQBitArray TQIODevice TQMemArray TQPtrList TQPtrVector TQSocket TQSqlQuery TQSqlResult TQString TQValueList TQValueVector
  • atBeginning: + TQBitArray TQIODevice TQMemArray TQPtrList TQPtrVector TQSocket TQSqlQuery TQSqlResult TQString TQValueList TQValueVector
  • atBeginning: TQMultiLineEdit
  • atEnd: TQDataStream TQFile TQIODevice TQMultiLineEdit TQSocket TQTextStream
  • atFirst: - TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • atLast: - TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • attribute: + TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • atLast: + TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • attribute: TQDomElement
  • attributeDecl: TQXmlDeclHandler
  • attributeNS: TQDomElement
  • attributeNode: @@ -232,7 +232,7 @@ abort: TQProgressDialog
  • autoCompletion: TQComboBox
  • autoDefault: TQPushButton
  • autoDelete: - TQAsciiDict TQCache TQDataTable TQDict TQIconFactory TQIntDict TQNetworkProtocol TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector
  • autoEdit: + TQAsciiDict TQCache TQDataTable TQDict TQIconFactory TQIntDict TQNetworkProtocol TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector
  • autoEdit: TQDataBrowser TQDataTable
  • autoFormatting: TQTextEdit
  • autoMask: TQWidget
  • autoRaise: @@ -299,7 +299,7 @@ back: TQColorGroup
  • brush: TQCanvasPolygonalItem TQColorGroup TQPainter TQPalette
  • brushOrigin: TQPainter
  • bsearch: - TQMemArray TQPtrVector
  • buddy: + TQMemArray TQPtrVector
  • buddy: TQLabel
  • buffer: TQBuffer
  • button: TQColorGroup TQMouseEvent
  • buttonSymbols: @@ -396,7 +396,7 @@ c: TQDir
  • cleanText: TQSpinBox
  • cleanup: TQColor TQCursor TQFontManager
  • clear: - TQAccel TQAsciiCache TQAsciiDict TQAxBase TQCache TQClipboard TQComboBox TQDict TQDomNode TQIconView TQIntCache TQIntDict TQLabel TQLineEdit TQListBox TQListView TQMap TQMenuBar TQMenuData TQObjectCleanupHandler TQPixmapCache TQPopupMenu TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSplashScreen TQSqlCursor TQSqlField TQSqlForm TQSqlRecord TQStatusBar TQTextEdit TQToolBar TQToolTip TQTranslator TQValueList TQValueVector TQVariant TQXmlAttributes
  • clearArguments: + TQAccel TQAsciiCache TQAsciiDict TQAxBase TQCache TQClipboard TQComboBox TQDict TQDomNode TQIconView TQIntCache TQIntDict TQLabel TQLineEdit TQListBox TQListView TQMap TQMenuBar TQMenuData TQObjectCleanupHandler TQPixmapCache TQPopupMenu TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSplashScreen TQSqlCursor TQSqlField TQSqlForm TQSqlRecord TQStatusBar TQTextEdit TQToolBar TQToolTip TQTranslator TQValueList TQValueVector TQVariant TQXmlAttributes
  • clearArguments: TQProcess
  • clearBit: TQBitArray
  • clearCalibration: TQWSMouseHandler
  • clearCell: @@ -484,7 +484,7 @@ c: TQTranslatorMessage
  • communication: TQProcess
  • compare: TQIconViewItem TQListViewItem TQString
  • compareItems: - TQPtrList TQPtrVector
  • complete: + TQPtrList TQPtrVector
  • complete: TQNPStream
  • compose: TQString
  • confirmCancel: TQDataBrowser TQDataTable
  • confirmCancels: @@ -510,8 +510,8 @@ c: TQWidget
  • constref: TQString
  • consume: TQContextMenuEvent
  • contains: - TQCString TQDomNamedNodeMap TQIconViewItem TQMap TQMemArray TQPtrList TQPtrVector TQRect TQRegion TQSqlDatabase TQSqlRecord TQSqlRecordInfo TQString TQTranslator TQValueList
  • containsRef: - TQPtrList TQPtrVector
  • contentHandler: + TQCString TQDomNamedNodeMap TQIconViewItem TQMap TQMemArray TQPtrList TQPtrVector TQRect TQRegion TQSqlDatabase TQSqlRecord TQSqlRecordInfo TQString TQTranslator TQValueList
  • containsRef: + TQPtrList TQPtrVector
  • contentHandler: TQXmlReader
  • contentLength: TQHttpHeader
  • contentType: TQHttpHeader
  • contentsContextMenuEvent: @@ -558,7 +558,7 @@ c: TQTextEdit
  • copyBlt: TQPixmap
  • cornerWidget: TQScrollView TQTabWidget
  • count: - TQAccel TQAsciiCache TQAsciiCacheIterator TQAsciiDict TQAsciiDictIterator TQButtonGroup TQCache TQCacheIterator TQCanvasPixmapArray TQComboBox TQComboTableItem TQDict TQDictIterator TQDir TQDockArea TQDomNamedNodeMap TQDomNodeList TQFocusData TQHeader TQIconView TQIntCache TQIntCacheIterator TQIntDict TQIntDictIterator TQKeyEvent TQKeySequence TQListBox TQMap TQMemArray TQMenuData TQPtrCollection TQPtrDict TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQSqlForm TQSqlRecord TQTabBar TQTabWidget TQToolBox TQValueList TQValueVector TQXmlAttributes
  • countCf: + TQAccel TQAsciiCache TQAsciiCacheIterator TQAsciiDict TQAsciiDictIterator TQButtonGroup TQCache TQCacheIterator TQCanvasPixmapArray TQComboBox TQComboTableItem TQDict TQDictIterator TQDir TQDockArea TQDomNamedNodeMap TQDomNodeList TQFocusData TQHeader TQIconView TQIntCache TQIntCacheIterator TQIntDict TQIntDictIterator TQKeyEvent TQKeySequence TQListBox TQMap TQMemArray TQMenuData TQPtrCollection TQPtrDict TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQSqlForm TQSqlRecord TQTabBar TQTabWidget TQToolBox TQValueList TQValueVector TQXmlAttributes
  • countCf: TQWindowsMime
  • countFlavors: TQMacMime
  • country: TQLocale
  • countryToString: @@ -599,7 +599,7 @@ c: TQPointArray
  • currEditCol: TQTable
  • currEditRow: TQTable
  • current: - TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQDir TQGLayoutIterator TQIntCacheIterator TQIntDictIterator TQLayoutIterator TQListViewItemIterator TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack
  • currentAlignmentChanged: + TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQDir TQGLayoutIterator TQIntCacheIterator TQIntDictIterator TQLayoutIterator TQListViewItemIterator TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack
  • currentAlignmentChanged: TQTextEdit
  • currentAllocContext: TQColor
  • currentChanged: TQDataBrowser TQDataTable TQIconView TQListBox TQListView TQTabDialog TQTabWidget TQTable TQToolBox
  • currentColorChanged: @@ -618,8 +618,8 @@ c: TQFtp TQHttp
  • currentIndex: TQToolBox
  • currentItem: TQComboBox TQComboTableItem TQIconView TQListBox TQListView TQToolBox
  • currentKey: - TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator
  • currentNode: - TQPtrList
  • currentPage: + TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator
  • currentNode: + TQPtrList
  • currentPage: TQTabDialog TQTabWidget TQWizard
  • currentPageIndex: TQTabWidget
  • currentParagraph: TQSyntaxHighlighter
  • currentRecord: @@ -658,7 +658,7 @@ c: TQLineEdit TQTextEdit
  • dark: TQColor TQColorGroup
  • data: - TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMapConstIterator TQMapIterator TQMemArray TQMimeSourceFactory TQNetworkProtocol TQPicture TQPtrVector TQSqlResult TQUrlOperator TQXmlInputSource
  • dataChanged: + TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMapConstIterator TQMapIterator TQMemArray TQMimeSourceFactory TQNetworkProtocol TQPicture TQPtrVector TQSqlResult TQUrlOperator TQXmlInputSource
  • dataChanged: TQClipboard
  • dataReadProgress: TQHttp
  • dataSendProgress: TQHttp
  • dataTransferProgress: @@ -708,12 +708,12 @@ dark: TQLayout
  • deleteCurrent: TQDataBrowser TQDataTable TQLayoutIterator
  • deleteData: TQDomCharacterData
  • deleteItem: - TQPtrCollection
  • deleteLater: + TQPtrCollection
  • deleteLater: TQObject
  • deleteNetworkProtocol: TQUrlOperator
  • delta: TQWheelEvent
  • depth: TQDirectPainter TQGLFormat TQImage TQListViewItem TQPaintDeviceMetrics TQPixmap TQScreen
  • dequeue: - TQPtrQueue
  • descent: + TQPtrQueue
  • descent: TQFontMetrics
  • description: TQImageIO
  • deselect: TQLineEdit
  • designable: @@ -880,7 +880,7 @@ echoMode: TQXmlContentHandler
  • endsWith: TQString
  • enforceSortOrder: TQListViewItem
  • enqueue: - TQPtrQueue
  • ensureCellVisible: + TQPtrQueue
  • ensureCellVisible: TQGridView TQTable
  • ensureCurrentVisible: TQListBox
  • ensureCursorVisible: TQTextEdit
  • ensureItemVisible: @@ -954,11 +954,11 @@ falseText: TQDir TQFileInfo TQMimeSourceFactory
  • fileSelected: TQFileDialog
  • filesSelected: TQFileDialog
  • fill: - TQBitArray TQCString TQImage TQMemArray TQPixmap TQPtrVector TQString TQTextStream
  • fillRect: + TQBitArray TQCString TQImage TQMemArray TQPixmap TQPtrVector TQString TQTextStream
  • fillRect: TQPainter
  • filter: TQDataBrowser TQDataTable TQDir TQSqlCursor TQWSInputMethod
  • filterSelected: TQFileDialog
  • find: - TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataTable TQDict TQGLColormap TQIntCache TQIntDict TQMap TQMemArray TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlRecordInfo TQString TQTextEdit TQValueList TQWidget
  • findFirstVisibleItem: + TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataTable TQDict TQGLColormap TQIntCache TQIntDict TQMap TQMemArray TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlRecordInfo TQString TQTextEdit TQValueList TQWidget
  • findFirstVisibleItem: TQIconView
  • findIndex: TQValueList
  • findItem: TQIconView TQListBox TQListView TQMenuData
  • findKey: @@ -966,16 +966,16 @@ falseText: TQIconView
  • findMessage: TQTranslator
  • findNearest: TQGLColormap
  • findNext: - TQPtrList
  • findNextRef: - TQPtrList
  • findProperty: + TQPtrList
  • findNextRef: + TQPtrList
  • findProperty: TQMetaObject
  • findRef: - TQPtrList TQPtrVector
  • findRev: + TQPtrList TQPtrVector
  • findRev: TQCString TQString
  • findWidget: TQBoxLayout TQGridLayout
  • finish: TQSplashScreen
  • finishButton: TQWizard
  • finished: TQAxScript TQMovie TQNetworkProtocol TQThread TQUrlOperator
  • first: - TQDataBrowser TQFocusData TQPtrList TQSqlQuery TQValueList TQValueVector
  • firstChild: + TQDataBrowser TQFocusData TQPtrList TQSqlQuery TQValueList TQValueVector
  • firstChild: TQDomNode TQListView TQListViewItem
  • firstItem: TQIconView TQListBox
  • firstRecordAvailable: TQDataBrowser
  • fix: @@ -1060,7 +1060,7 @@ gamma: TQTextEdit
  • getDouble: TQInputDialog
  • getExistingDirectory: TQFileDialog
  • getFirst: - TQPtrList
  • getFont: + TQPtrList
  • getFont: TQFontDialog
  • getHsv: TQColor
  • getInteger: TQInputDialog
  • getItem: @@ -1068,7 +1068,7 @@ gamma: TQNPlugin
  • getJavaEnv: TQNPlugin
  • getJavaPeer: TQNPInstance
  • getLast: - TQPtrList
  • getLocation: + TQPtrList
  • getLocation: TQMainWindow
  • getMIMEDescription: TQNPlugin
  • getMarkedRegion: TQMultiLineEdit
  • getNetworkProtocol: @@ -1165,7 +1165,7 @@ hScrollBarMode: TQPainter
  • hasWorldXForm: TQPainter
  • hash: TQTranslatorMessage
  • head: - TQHttp TQPtrQueue
  • header: + TQHttp TQPtrQueue
  • header: TQListView
  • headerSection: TQStyleOption
  • headerWidth: TQHeader
  • height: @@ -1227,7 +1227,7 @@ icon: TQDomDocument
  • importNode: TQDomDocument
  • inFont: TQFontMetrics
  • inSort: - TQPtrList
  • inText: + TQPtrList
  • inText: TQSimpleRichText
  • inWhatsThisMode: TQWhatsThis
  • inactive: TQPalette
  • includeFile: @@ -1253,7 +1253,7 @@ icon: TQImage
  • inputFormats: TQImage TQImageDecoder TQImageIO
  • inputMask: TQLineEdit
  • insert: - TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataBrowser TQDict TQIntCache TQIntDict TQLineEdit TQMap TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQTextEdit TQTranslator TQValueList TQValueVector
  • insertAfter: + TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDataBrowser TQDict TQIntCache TQIntDict TQLineEdit TQMap TQPixmapCache TQPtrDict TQPtrList TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQTextEdit TQTranslator TQValueList TQValueVector
  • insertAfter: TQDomNode
  • insertAndMark: TQMultiLineEdit
  • insertAt: TQMultiLineEdit TQTextEdit
  • insertBefore: @@ -1359,7 +1359,7 @@ icon: TQTable
  • isEffectEnabled: TQApplication
  • isElement: TQDomElement TQDomNode
  • isEmpty: - TQAsciiCache TQAsciiCacheIterator TQAsciiDict TQAsciiDictIterator TQCString TQCache TQCacheIterator TQDict TQDictIterator TQDockArea TQGLColormap TQIntCache TQIntCacheIterator TQIntDict TQIntDictIterator TQKeySequence TQLayout TQLayoutItem TQMap TQMemArray TQObjectCleanupHandler TQPtrDict TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQRect TQRegExp TQRegion TQSize TQSpacerItem TQSqlRecord TQString TQTableSelection TQTranslator TQValueList TQValueVector TQWidgetItem
  • isEnabled: + TQAsciiCache TQAsciiCacheIterator TQAsciiDict TQAsciiDictIterator TQCString TQCache TQCacheIterator TQDict TQDictIterator TQDockArea TQGLColormap TQIntCache TQIntCacheIterator TQIntDict TQIntDictIterator TQKeySequence TQLayout TQLayoutItem TQMap TQMemArray TQObjectCleanupHandler TQPtrDict TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQRect TQRegExp TQRegion TQSize TQSpacerItem TQSqlRecord TQString TQTableSelection TQTranslator TQValueList TQValueVector TQWidgetItem
  • isEnabled: TQAccel TQAction TQCanvasItem TQLayout TQListViewItem TQSocketNotifier TQTab TQTableItem TQWidget
  • isEnabledTo: TQWidget
  • isEntity: TQDomEntity TQDomNode
  • isEntityReference: @@ -1407,7 +1407,7 @@ icon: TQLineEdit TQTextEdit
  • isMovingEnabled: TQDockWindow TQHeader
  • isNotation: TQDomNode TQDomNotation
  • isNull: - TQAxBase TQCString TQChar TQDate TQDateTime TQDomImplementation TQDomNode TQGuardedPtr TQHostAddress TQIconSet TQImage TQMemArray TQMovie TQPicture TQPixmap TQPoint TQPtrVector TQRect TQRegion TQSize TQSqlCursor TQSqlField TQSqlQuery TQSqlRecord TQSqlResult TQString TQTime TQUuid TQVariant
  • isNumber: + TQAxBase TQCString TQChar TQDate TQDateTime TQDomImplementation TQDomNode TQGuardedPtr TQHostAddress TQIconSet TQImage TQMemArray TQMovie TQPicture TQPixmap TQPoint TQPtrVector TQRect TQRegion TQSize TQSqlCursor TQSqlField TQSqlQuery TQSqlRecord TQSqlResult TQString TQTime TQUuid TQVariant
  • isNumber: TQChar
  • isOn: TQAction TQButton TQCheckBox TQCheckListItem TQPushButton TQRadioButton
  • isOpen: TQAssistantClient TQIODevice TQListView TQListViewItem TQSqlDatabase TQSqlDriver
  • isOpenError: @@ -1533,7 +1533,7 @@ label: TQProgressDialog
  • language: TQLocale
  • languageToString: TQLocale
  • last: - TQDataBrowser TQFocusData TQPtrList TQSqlQuery TQValueList TQValueVector
  • lastChild: + TQDataBrowser TQFocusData TQPtrList TQSqlQuery TQValueList TQValueVector
  • lastChild: TQDomNode
  • lastError: TQSqlDatabase TQSqlDriver TQSqlQuery TQSqlResult
  • lastItem: TQIconView TQListView
  • lastModified: @@ -1787,13 +1787,13 @@ name: TQNetworkProtocol TQUrlOperator
  • newConnection: TQServerSocket
  • newInstance: TQNPlugin
  • newItem: - TQPtrCollection
  • newLine: + TQPtrCollection
  • newLine: TQDockWindow TQMultiLineEdit
  • newPage: TQPrinter
  • newStream: TQNPInstance
  • newStreamCreated: TQNPInstance
  • newWindow: TQNPInstance
  • next: - TQDataBrowser TQFocusData TQGLayoutIterator TQListBoxItem TQPtrList TQSqlQuery TQWizard TQXmlInputSource
  • nextButton: + TQDataBrowser TQFocusData TQGLayoutIterator TQListBoxItem TQPtrList TQSqlQuery TQWizard TQXmlInputSource
  • nextButton: TQWizard
  • nextItem: TQIconViewItem
  • nextLine: TQScrollBar
  • nextPage: @@ -1875,32 +1875,32 @@ object: TQMemArray
  • operator int: TQBitVal
  • operator std::string: TQString
  • operator type *: - TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator TQPtrListIterator TQPtrQueue TQPtrStack
  • operator!: + TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator TQPtrListIterator TQPtrQueue TQPtrStack
  • operator!: TQString
  • operator!=: - TQBrush TQCString TQChar TQColor TQColorGroup TQDate TQDateTime TQDir TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQFont TQGuardedPtr TQImage TQKeySequence TQMapConstIterator TQMapIterator TQMemArray TQPalette TQPen TQPoint TQPtrList TQRect TQRegExp TQRegion TQSize TQSizePolicy TQString TQTableSelection TQTime TQTranslatorMessage TQUuid TQValueList TQValueListConstIterator TQValueListIterator TQVariant TQWMatrix
  • operator&: + TQBrush TQCString TQChar TQColor TQColorGroup TQDate TQDateTime TQDir TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQFont TQGuardedPtr TQImage TQKeySequence TQMapConstIterator TQMapIterator TQMemArray TQPalette TQPen TQPoint TQPtrList TQRect TQRegExp TQRegion TQSize TQSizePolicy TQString TQTableSelection TQTime TQTranslatorMessage TQUuid TQValueList TQValueListConstIterator TQValueListIterator TQVariant TQWMatrix
  • operator&: TQBitArray TQRect TQRegion
  • operator&=: TQBitArray TQRect TQRegion
  • operator(): - TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator TQPtrListIterator
  • operator*: - TQGuardedPtr TQListViewItemIterator TQMapConstIterator TQMapIterator TQPoint TQPtrListIterator TQSize TQValueListConstIterator TQValueListIterator
  • operator*=: + TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator TQPtrListIterator
  • operator*: + TQGuardedPtr TQListViewItemIterator TQMapConstIterator TQMapIterator TQPoint TQPtrListIterator TQSize TQValueListConstIterator TQValueListIterator
  • operator*=: TQPoint TQSize TQWMatrix
  • operator+: TQCString TQCanvasItemList TQPoint TQRegion TQSize TQString TQValueList
  • operator++: - TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQLayoutIterator TQListViewItemIterator TQMapConstIterator TQMapIterator TQPtrDictIterator TQPtrListIterator TQSemaphore TQValueListConstIterator TQValueListIterator
  • operator+=: - TQAsciiCacheIterator TQAsciiDictIterator TQCString TQCacheIterator TQIntCacheIterator TQIntDictIterator TQListViewItemIterator TQPoint TQPtrDictIterator TQPtrListIterator TQRegion TQSemaphore TQSize TQString TQValueList TQValueListIterator
  • operator-: + TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQLayoutIterator TQListViewItemIterator TQMapConstIterator TQMapIterator TQPtrDictIterator TQPtrListIterator TQSemaphore TQValueListConstIterator TQValueListIterator
  • operator+=: + TQAsciiCacheIterator TQAsciiDictIterator TQCString TQCacheIterator TQIntCacheIterator TQIntDictIterator TQListViewItemIterator TQPoint TQPtrDictIterator TQPtrListIterator TQRegion TQSemaphore TQSize TQString TQValueList TQValueListIterator
  • operator-: TQPoint TQRegion TQSize
  • operator--: - TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQListViewItemIterator TQMapConstIterator TQMapIterator TQPtrListIterator TQSemaphore TQValueListConstIterator TQValueListIterator
  • operator-=: - TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQListViewItemIterator TQPoint TQPtrListIterator TQRegion TQSemaphore TQSize TQValueListIterator
  • operator->: + TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQListViewItemIterator TQMapConstIterator TQMapIterator TQPtrListIterator TQSemaphore TQValueListConstIterator TQValueListIterator
  • operator-=: + TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQListViewItemIterator TQPoint TQPtrListIterator TQRegion TQSemaphore TQSize TQValueListIterator
  • operator->: TQGuardedPtr
  • operator/: TQPoint TQSize
  • operator/=: TQPoint TQSize
  • operator<: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage TQUuid
  • operator<<: TQBitArray TQBrush TQCString TQColor TQColorGroup TQCursor TQDataStream TQDate TQDateTime TQDockArea TQDomNode TQFont TQImage TQKeySequence TQMainWindow TQMap TQMemArray TQPalette TQPen TQPicture TQPixmap TQPoint TQPointArray TQRect TQRegion TQSize TQSplitter TQString TQTextStream TQTime TQUuid TQValueList TQWMatrix
  • operator<=: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage
  • operator=: - TQAsciiCacheIterator TQAsciiDict TQBitArray TQBitVal TQBitmap TQBrush TQCString TQCacheIterator TQColor TQColorGroup TQCursor TQDeepCopy TQDict TQDir TQDomAttr TQDomCDATASection TQDomCharacterData TQDomComment TQDomDocument TQDomDocumentFragment TQDomDocumentType TQDomElement TQDomEntity TQDomEntityReference TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQDomNotation TQDomProcessingInstruction TQDomText TQFileInfo TQFont TQFontInfo TQFontMetrics TQGLColormap TQGuardedPtr TQHostAddress TQHttpHeader TQIconSet TQImage TQIntCacheIterator TQIntDict fnord TQKeySequence TQLayoutIterator TQListViewItemIterator TQLocale TQMap TQMemArray TQMovie TQObjectList TQObjectListIterator TQPair TQPalette TQPen TQPicture TQPixmap TQPointArray TQPtrDict TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQRegExp TQRegion TQSqlCursor TQSqlError TQSqlField TQSqlFieldInfo TQSqlIndex TQSqlQuery TQSqlRecord TQStrList TQString TQStyleSheetItem TQTranslatorMessage TQUrl TQUrlInfo TQUuid TQValueList TQValueVector TQVariant
  • operator==: - TQBrush TQCString TQChar TQColor TQColorGroup TQDate TQDateTime TQDir TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQFont TQGuardedPtr TQHostAddress TQImage TQKeySequence TQMapConstIterator TQMapIterator TQMemArray TQPalette TQPen TQPoint TQPtrList TQPtrVector TQRect TQRegExp TQRegion TQSize TQSizePolicy TQSqlField TQSqlFieldInfo TQString TQTableSelection TQTime TQTranslatorMessage TQUrl TQUrlInfo TQUuid TQValueList TQValueListConstIterator TQValueListIterator TQValueVector TQVariant TQWMatrix
  • operator>: + TQAsciiCacheIterator TQAsciiDict TQBitArray TQBitVal TQBitmap TQBrush TQCString TQCacheIterator TQColor TQColorGroup TQCursor TQDeepCopy TQDict TQDir TQDomAttr TQDomCDATASection TQDomCharacterData TQDomComment TQDomDocument TQDomDocumentFragment TQDomDocumentType TQDomElement TQDomEntity TQDomEntityReference TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQDomNotation TQDomProcessingInstruction TQDomText TQFileInfo TQFont TQFontInfo TQFontMetrics TQGLColormap TQGuardedPtr TQHostAddress TQHttpHeader TQIconSet TQImage TQIntCacheIterator TQIntDict fnord TQKeySequence TQLayoutIterator TQListViewItemIterator TQLocale TQMap TQMemArray TQMovie TQObjectList TQObjectListIterator TQPair TQPalette TQPen TQPicture TQPixmap TQPointArray TQPtrDict TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQRegExp TQRegion TQSqlCursor TQSqlError TQSqlField TQSqlFieldInfo TQSqlIndex TQSqlQuery TQSqlRecord TQStrList TQString TQStyleSheetItem TQTranslatorMessage TQUrl TQUrlInfo TQUuid TQValueList TQValueVector TQVariant
  • operator==: + TQBrush TQCString TQChar TQColor TQColorGroup TQDate TQDateTime TQDir TQDomImplementation TQDomNamedNodeMap TQDomNode TQDomNodeList TQFont TQGuardedPtr TQHostAddress TQImage TQKeySequence TQMapConstIterator TQMapIterator TQMemArray TQPalette TQPen TQPoint TQPtrList TQPtrVector TQRect TQRegExp TQRegion TQSize TQSizePolicy TQSqlField TQSqlFieldInfo TQString TQTableSelection TQTime TQTranslatorMessage TQUrl TQUrlInfo TQUuid TQValueList TQValueListConstIterator TQValueListIterator TQValueVector TQVariant TQWMatrix
  • operator>: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage TQUuid
  • operator>=: TQCString TQChar TQDate TQDateTime TQString TQTime TQTranslatorMessage
  • operator>>: TQBitArray TQBrush TQCString TQColor TQCursor TQDataStream TQDate TQDateTime TQDockArea TQFont TQImage TQKeySequence TQMainWindow TQMap TQMemArray TQPalette TQPen TQPicture TQPixmap TQPoint TQPointArray TQRect TQRegion TQSize TQSplitter TQString TQTextStream TQTime TQUuid TQValueList TQWMatrix
  • operator[]: - TQAsciiCache TQAsciiDict TQBitArray TQCache TQDict TQDir TQIntCache TQIntDict TQKeySequence TQMap TQMemArray TQPtrDict TQPtrVector TQString TQValueList TQValueVector
  • operator^: + TQAsciiCache TQAsciiDict TQBitArray TQCache TQDict TQDir TQIntCache TQIntDict TQKeySequence TQMap TQMemArray TQPtrDict TQPtrVector TQString TQValueList TQValueVector
  • operator^: TQBitArray TQRegion
  • operator^=: TQBitArray TQRegion
  • operator|: TQBitArray TQRect TQRegion
  • operator|=: @@ -2011,7 +2011,7 @@ packImage: TQCanvasPolygon
  • polish: TQApplication TQStyle TQWidget
  • polishPopupMenu: TQStyle
  • pop: - TQPtrStack TQValueStack
  • popContext: + TQPtrStack TQValueStack
  • popContext: TQXmlNamespaceSupport
  • pop_back: TQValueList TQValueVector
  • pop_front: TQValueList
  • popup: @@ -2028,10 +2028,10 @@ packImage: TQDomNode TQSpinBox TQXmlNamespaceSupport
  • prefixes: TQXmlNamespaceSupport
  • prepare: TQSqlQuery
  • prepend: - TQCString TQPtrList TQString TQValueList
  • pressed: + TQCString TQPtrList TQString TQValueList
  • pressed: TQButton TQButtonGroup TQCheckBox TQHeader TQIconView TQListBox TQListView TQPushButton TQRadioButton TQTable
  • pressure: TQTabletEvent
  • prev: - TQDataBrowser TQFocusData TQListBoxItem TQPtrList TQSqlQuery
  • prevItem: + TQDataBrowser TQFocusData TQListBoxItem TQPtrList TQSqlQuery
  • prevItem: TQIconViewItem
  • prevLine: TQScrollBar
  • prevPage: TQScrollBar
  • prevRecordAvailable: @@ -2068,7 +2068,7 @@ packImage: TQNetworkOperation
  • provides: TQDropEvent TQMimeSource
  • publicId: TQDomDocumentType TQDomEntity TQDomNotation TQXmlParseException
  • push: - TQPtrStack TQValueStack
  • pushContext: + TQPtrStack TQValueStack
  • pushContext: TQXmlNamespaceSupport
  • pushData: TQMovie
  • pushSpace: TQMovie
  • push_back: @@ -2151,7 +2151,7 @@ rBottom: TQFtp
  • rawMode: TQFont TQFontInfo
  • rawName: TQFont
  • read: - TQAsciiDict TQDict TQImageIO TQIntDict TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTextStream
  • readAll: + TQAsciiDict TQDict TQImageIO TQIntDict TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTextStream
  • readAll: TQFile TQFtp TQHttp TQIODevice
  • readBlock: TQFtp TQHttp TQIODevice TQSocket TQSocketDevice
  • readBoolEntry: TQSettings
  • readBufferSize: @@ -2211,7 +2211,7 @@ rBottom: TQWidget
  • released: TQButton TQButtonGroup TQCheckBox TQHeader TQPushButton TQRadioButton
  • reload: TQTextBrowser
  • remove: - TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDict TQDir TQFile TQFtp TQIntCache TQIntDict TQLayout TQMap TQObjectCleanupHandler TQPixmapCache TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQToolTip TQTranslator TQUrlOperator TQValueList TQWhatsThis
  • removeAttribute: + TQAsciiCache TQAsciiDict TQButtonGroup TQCString TQCache TQDict TQDir TQFile TQFtp TQIntCache TQIntDict TQLayout TQMap TQObjectCleanupHandler TQPixmapCache TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSqlCursor TQSqlForm TQSqlPropertyMap TQSqlRecord TQString TQToolTip TQTranslator TQUrlOperator TQValueList TQWhatsThis
  • removeAttribute: TQDomElement
  • removeAttributeNS: TQDomElement
  • removeAttributeNode: TQDomElement
  • removeChild: @@ -2223,22 +2223,22 @@ rBottom: TQSettings
  • removeEventFilter: TQObject
  • removeFactory: TQMimeSourceFactory
  • removeFirst: - TQPtrList
  • removeFrom: + TQPtrList
  • removeFrom: TQAction
  • removeItem: TQAccel TQComboBox TQLayout TQListBox TQMenuBar TQMenuData TQPopupMenu TQToolBox
  • removeItemAt: TQMenuData TQPopupMenu
  • removeLabel: TQHeader
  • removeLast: - TQPtrList
  • removeLibraryPath: + TQPtrList
  • removeLibraryPath: TQApplication
  • removeLine: TQMultiLineEdit
  • removeMappings: TQSignalMapper
  • removeNamedItem: TQDomNamedNodeMap
  • removeNamedItemNS: TQDomNamedNodeMap
  • removeNode: - TQPtrList
  • removePage: + TQPtrList
  • removePage: TQTabDialog TQTabWidget TQWizard
  • removeParagraph: TQTextEdit
  • removePostedEvents: TQApplication
  • removeRef: - TQPtrList
  • removeRenameBox: + TQPtrList
  • removeRenameBox: TQIconViewItem
  • removeRow: TQTable
  • removeRows: TQTable
  • removeSearchPath: @@ -2268,7 +2268,7 @@ rBottom: TQIconView
  • repaintSelections: TQTable
  • reparent: TQWidget
  • replace: - TQAsciiDict TQCString TQDict TQIntDict TQMap TQPtrDict TQPtrList TQString
  • replaceChild: + TQAsciiDict TQCString TQDict TQIntDict TQMap TQPtrDict TQPtrList TQString
  • replaceChild: TQDomNode
  • replaceData: TQDomCharacterData
  • reportError: TQAxBindable
  • request: @@ -2289,7 +2289,7 @@ rBottom: TQFocusEvent
  • resetStatus: TQIODevice
  • resetXForm: TQPainter
  • resize: - TQAsciiDict TQBitArray TQCString TQCanvas TQDict TQIntDict TQMemArray TQPixmap TQPtrDict TQPtrVector TQValueVector TQWidget
  • resizeContents: + TQAsciiDict TQBitArray TQCString TQCanvas TQDict TQIntDict TQMemArray TQPixmap TQPtrDict TQPtrVector TQValueVector TQWidget
  • resizeContents: TQScrollView
  • resizeData: TQTable
  • resizeEvent: TQFrame TQGLWidget TQListView TQWidget
  • resizeGL: @@ -2471,7 +2471,7 @@ sRect: TQProgressDialog
  • setAutoCompletion: TQComboBox
  • setAutoDefault: TQPushButton
  • setAutoDelete: - TQAsciiDict TQCache TQDataTable TQDict TQIconFactory TQIntDict TQNetworkProtocol TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector
  • setAutoEdit: + TQAsciiDict TQCache TQDataTable TQDict TQIconFactory TQIntDict TQNetworkProtocol TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector
  • setAutoEdit: TQDataBrowser TQDataTable
  • setAutoFormatting: TQTextEdit
  • setAutoMask: TQWidget
  • setAutoRaise: @@ -3187,7 +3187,7 @@ sRect: TQTextCodec
  • simplifyWhiteSpace: TQCString TQString
  • singleShot: TQTimer
  • size: - TQAsciiCache TQAsciiDict TQBitArray TQCache TQCanvas TQCanvasRectangle TQDict TQDirectPainter TQFile TQFileInfo TQFontMetrics TQGLColormap TQIODevice TQIconViewItem TQImage TQIntCache TQIntDict TQMap TQMemArray TQPicture TQPixmap TQPtrDict TQPtrVector TQRect TQResizeEvent TQSocket TQSqlQuery TQSqlResult TQUrlInfo TQValueList TQValueVector TQWidget
  • sizeChange: + TQAsciiCache TQAsciiDict TQBitArray TQCache TQCanvas TQCanvasRectangle TQDict TQDirectPainter TQFile TQFileInfo TQFontMetrics TQGLColormap TQIODevice TQIconViewItem TQImage TQIntCache TQIntDict TQMap TQMemArray TQPicture TQPixmap TQPtrDict TQPtrVector TQRect TQResizeEvent TQSocket TQSqlQuery TQSqlResult TQUrlInfo TQValueList TQValueVector TQWidget
  • sizeChange: TQHeader
  • sizeFromContents: TQStyle
  • sizeHint: TQBoxLayout TQCanvasView TQCustomMenuItem TQGridLayout TQLayoutItem TQLineEdit TQProgressDialog TQSizeGrip TQSpacerItem TQTableItem TQWidget TQWidgetItem
  • sizeIncrement: @@ -3210,7 +3210,7 @@ sRect: TQFontDatabase
  • socket: TQServerSocket TQSocket TQSocketDevice TQSocketNotifier
  • socketDevice: TQServerSocket TQSocket
  • sort: - TQDataBrowser TQDataTable TQIconView TQListBox TQListView TQListViewItem TQMemArray TQPtrList TQPtrVector TQSqlCursor TQStringList
  • sortAscending: + TQDataBrowser TQDataTable TQIconView TQListBox TQListView TQListViewItem TQMemArray TQPtrList TQPtrVector TQSqlCursor TQStringList
  • sortAscending: TQDataTable
  • sortChildItems: TQListViewItem
  • sortColumn: TQDataTable TQListView TQTable
  • sortDescending: @@ -3260,7 +3260,7 @@ sRect: TQKeyEvent TQMouseEvent
  • stateChange: TQCheckListItem
  • stateChanged: TQAxScript TQButton TQCheckBox TQFtp TQHttp TQPushButton TQRadioButton
  • statistics: - TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict
  • status: + TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict
  • status: TQIODevice TQImageIO TQNPInstance
  • statusBar: TQMainWindow
  • statusCode: TQHttpResponseHeader
  • statusTip: @@ -3341,11 +3341,11 @@ tab: TQWidget
  • tag: TQStyleSheet
  • tagName: TQDomElement
  • take: - TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict TQPtrList TQPtrVector
  • takeCurrent: + TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict TQPtrList TQPtrVector
  • takeCurrent: TQGLayoutIterator TQLayoutIterator
  • takeDefaultFactory: TQMimeSourceFactory
  • takeItem: TQIconView TQListBox TQListView TQListViewItem TQTable
  • takeNode: - TQPtrList
  • target: + TQPtrList
  • target: TQDomProcessingInstruction TQDragObject
  • terminate: TQThread
  • testBit: TQBitArray
  • testOption: @@ -3405,7 +3405,7 @@ tab: TQDomNode
  • toEntityReference: TQDomNode
  • toField: TQSqlFieldInfo
  • toFirst: - TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator TQPtrListIterator
  • toFloat: + TQAsciiCacheIterator TQAsciiDictIterator TQCacheIterator TQDictIterator TQIntCacheIterator TQIntDictIterator TQPtrDictIterator TQPtrListIterator
  • toFloat: TQCString TQLocale TQString
  • toFont: TQVariant
  • toIPv4Address: TQHostAddress
  • toIPv6Address: @@ -3414,7 +3414,7 @@ tab: TQVariant
  • toInt: TQCString TQLocale TQString TQVariant
  • toKeySequence: TQVariant
  • toLast: - TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • toList: + TQAsciiCacheIterator TQCacheIterator TQIntCacheIterator TQPtrListIterator
  • toList: TQVariant
  • toLong: TQCString TQLocale TQString
  • toLongLong: TQLocale TQString TQVariant
  • toMap: @@ -3443,7 +3443,7 @@ tab: TQLocale TQString TQVariant
  • toUShort: TQCString TQLocale TQString
  • toUnicode: TQTextCodec TQTextDecoder
  • toVector: - TQPtrList
  • toggle: + TQPtrList
  • toggle: TQAction TQButton TQCheckBox TQPushButton TQRadioButton TQToolButton
  • toggleBit: TQBitArray
  • toggleCurrentItem: TQListBox
  • toggleType: @@ -3452,7 +3452,7 @@ tab: TQMainWindow
  • toolTip: TQAction TQTabBar TQWidgetPlugin
  • toolTipGroup: TQMainWindow
  • top: - TQDoubleValidator TQIntValidator TQPtrStack TQRect TQValueStack
  • topDock: + TQDoubleValidator TQIntValidator TQPtrStack TQRect TQValueStack
  • topDock: TQMainWindow
  • topEdge: TQCanvasSprite
  • topItem: TQListBox
  • topLeft: @@ -3638,7 +3638,7 @@ wait: TQTextEdit
  • wrapping: TQDial TQSpinBox
  • writable: TQMetaProperty
  • write: - TQAsciiDict TQDict TQImageIO TQIntDict TQNPInstance TQNPStream TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTranslatorMessage
  • writeBlock: + TQAsciiDict TQDict TQImageIO TQIntDict TQNPInstance TQNPStream TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQTranslatorMessage
  • writeBlock: TQBuffer TQIODevice TQSocket TQSocketDevice
  • writeBytes: TQDataStream
  • writeEntry: TQSettings
  • writeField: diff --git a/doc/html/grapher-nsplugin-example.html b/doc/html/grapher-nsplugin-example.html index e6b8e862b..5ed08a695 100644 --- a/doc/html/grapher-nsplugin-example.html +++ b/doc/html/grapher-nsplugin-example.html @@ -81,7 +81,7 @@ Implementation: #include <ntqpixmap.h> #include <ntqmenubar.h> #include <ntqpushbutton.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> #include <ntqmessagebox.h> // Include some C library functions. @@ -263,12 +263,12 @@ void Graph::paintBar(TQPaintEvent* event) return; } - TQPtrList<GraphModel::Datum>& data = model.graphData(); + TQPtrList<GraphModel::Datum>& data = model.graphData(); double max = 0.0; - for (GraphModel::Datum* rowdata = data.first(); - rowdata; rowdata = data.next()) + for (GraphModel::Datum* rowdata = data.first(); + rowdata; rowdata = data.next()) { if (rowdata[0].dbl > max) max = rowdata[0].dbl; } @@ -280,20 +280,20 @@ void Graph::paintBar(TQPaintEvent* event) p.setClipRect(event->rect()); - if ( w > data.count() ) { + if ( w > data.count() ) { // More pixels than data int x = 0; int i = 0; TQFontMetrics fm=fontMetrics(); int fh = fm.height(); - for (GraphModel::Datum* rowdata = data.first(); - rowdata; rowdata = data.next()) + for (GraphModel::Datum* rowdata = data.first(); + rowdata; rowdata = data.next()) { TQColor c; - c.setHsv( (i * 255)/data.count(), 255, 255 );// rainbow effect + c.setHsv( (i * 255)/data.count(), 255, 255 );// rainbow effect p.setBrush(c); - int bw = (w-w/4-x)/(data.count()-i); + int bw = (w-w/4-x)/(data.count()-i); int bh = int((h-h/4-1)*rowdata[0].dbl/max); p.drawRect( w/8+x, h-h/8-1-bh, bw, bh ); @@ -306,10 +306,10 @@ void Graph::paintBar(TQPaintEvent* event) int i = 0; double av = 0.0; int n = 0; - for (GraphModel::Datum* rowdata = data.first(); rowdata; - rowdata = data.next()) + for (GraphModel::Datum* rowdata = data.first(); rowdata; + rowdata = data.next()) { - int bx = i*w/data.count(); + int bx = i*w/data.count(); if (bx > x) { TQColor c; @@ -339,14 +339,14 @@ void Graph::paintPie(TQPaintEvent* event) return; } - TQPtrList<GraphModel::Datum>& data = model.graphData(); + TQPtrList<GraphModel::Datum>& data = model.graphData(); double total = 0.0; GraphModel::Datum* rowdata; - for (rowdata = data.first(); - rowdata; rowdata = data.next()) + for (rowdata = data.first(); + rowdata; rowdata = data.next()) { total += rowdata[0].dbl; } @@ -371,12 +371,12 @@ void Graph::paintPie(TQPaintEvent* event) int i = 0; - for (rowdata = data.first(); - rowdata; rowdata = data.next()) + for (rowdata = data.first(); + rowdata; rowdata = data.next()) { TQColor c; - c.setHsv( ( i * 255)/data.count(), 255, 255 );// rainbow effect + c.setHsv( ( i * 255)/data.count(), 255, 255 );// rainbow effect p.setBrush( c ); // solid fill with color c int a = int(( rowdata[0].dbl * 360.0 ) / total * 16.0 + 0.5); @@ -388,8 +388,8 @@ void Graph::paintPie(TQPaintEvent* event) if (model.colType(1) == GraphModel::Label) { double apos = (pieRotation-90)*M_PI/180; - for (rowdata = data.first(); - rowdata; rowdata = data.next()) + for (rowdata = data.first(); + rowdata; rowdata = data.next()) { double a = rowdata[0].dbl * 360 / total * M_PI / 180; int x = int(cos(apos+a/2)*w*5/16 + w/2 + 0.5); @@ -471,12 +471,12 @@ private: // Grapher is a GraphModel, so it implements the pure virtual // functions of that class. // - TQPtrList<Datum>& graphData(); + TQPtrList<Datum>& graphData(); ColType colType(int col) const; int nCols() const; void consumeLine(); - TQPtrList<Datum> data; + TQPtrList<Datum> data; TQBuffer line; int ncols; ColType *coltype; @@ -490,7 +490,7 @@ private slots: Grapher::Grapher() { - data.setAutoDelete(TRUE); + data.setAutoDelete(TRUE); ncols = 0; line.open(IO_WriteOnly|IO_Truncate); } @@ -547,8 +547,8 @@ void Grapher::consumeLine() if (ncols == 0 ) { ncols=0; - TQPtrList<ColType> typelist; - typelist.setAutoDelete(TRUE); + TQPtrList<ColType> typelist; + typelist.setAutoDelete(TRUE); do { TQString typestr; ts >> typestr >> ws; @@ -558,10 +558,10 @@ void Grapher::consumeLine() } else if ( typestr == "label" ) { t = new ColType(Label); } - if (t) typelist.append(t); + if (t) typelist.append(t); } while (!ts.atEnd()); coltype = new ColType[ncols]; - for (ColType* t = typelist.first(); t; t = typelist.next()) { + for (ColType* t = typelist.first(); t; t = typelist.next()) { coltype[ncols++] = *t; } } else { @@ -585,7 +585,7 @@ void Grapher::consumeLine() col++; } - data.append(rowdata); + data.append(rowdata); } line.close(); diff --git a/doc/html/headerfilesynonyms b/doc/html/headerfilesynonyms index 7b25e7b73..abd705512 100644 --- a/doc/html/headerfilesynonyms +++ b/doc/html/headerfilesynonyms @@ -126,8 +126,8 @@ qnplugin.h ntqnp.h tqobjectlistiterator.h tqobjectlist.h qcolorgroup.h ntqpalette.h qpngimagepacker.h ntqpngio.h -qptrdictiterator.h ntqptrdict.h -qptrlistiterator.h ntqptrlist.h +tqptrdictiterator.h tqptrdict.h +tqptrlistiterator.h tqptrlist.h qhebrewcodec.h ntqrtlcodec.h tqsqlfieldinfo.h tqsqlfield.h tqsqlrecordinfo.h tqsqlrecord.h diff --git a/doc/html/headers.html b/doc/html/headers.html index 81d5c4970..529d153e5 100644 --- a/doc/html/headers.html +++ b/doc/html/headers.html @@ -190,12 +190,12 @@ body { background: #ffffff; color: black; }
  • ntqprocess.h
  • ntqprogressbar.h
  • ntqprogressdialog.h -
  • ntqptrcollection.h -
  • ntqptrdict.h -
  • ntqptrlist.h -
  • ntqptrqueue.h -
  • ntqptrstack.h -
  • ntqptrvector.h +
  • tqptrcollection.h +
  • tqptrdict.h +
  • tqptrlist.h +
  • tqptrqueue.h +
  • tqptrstack.h +
  • tqptrvector.h
  • ntqpushbutton.h
  • ntqradiobutton.h
  • ntqrangecontrol.h diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index 6faac1e04..cc6be7fa6 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -192,7 +192,7 @@ classes in the TQt API.
  • TQPixmapCache
  • TQPNGImagePacker
  • TQPoint -
  • TQPtrCollection +
  • TQPtrCollection -
  • TQPtrVector +
  • TQPtrVector -
  • TQPtrDictIterator -
  • TQPtrListIterator +
  • TQPtrDictIterator +
  • TQPtrListIterator -
  • TQPtrQueue -
  • TQPtrStack +
  • TQPtrQueue +
  • TQPtrStack
  • TQRangeControl
  • TQRect
  • TQRegExp diff --git a/doc/html/index b/doc/html/index index 2ac0d810e..aa89ed74d 100644 --- a/doc/html/index +++ b/doc/html/index @@ -4922,158 +4922,158 @@ "QProgressDialog::wasCanceled" ntqprogressdialog.html#wasCanceled "QProgressDialog::wasCanceled" ntqprogressdialog.html#wasCanceled-prop "QProgressDialog::~QProgressDialog" ntqprogressdialog.html#~QProgressDialog -"QPtrCollection" ntqptrcollection.html -"QPtrCollection::Item" ntqptrcollection.html#Item -"QPtrCollection::autoDelete" ntqptrcollection.html#autoDelete -"QPtrCollection::clear" ntqptrcollection.html#clear -"QPtrCollection::count" ntqptrcollection.html#count -"QPtrCollection::deleteItem" ntqptrcollection.html#deleteItem -"QPtrCollection::newItem" ntqptrcollection.html#newItem -"QPtrCollection::setAutoDelete" ntqptrcollection.html#setAutoDelete -"QPtrCollection::~QPtrCollection" ntqptrcollection.html#~QPtrCollection -"QPtrDict" ntqptrdict.html -"QPtrDict::clear" ntqptrdict.html#clear -"QPtrDict::count" ntqptrdict.html#count -"QPtrDict::find" ntqptrdict.html#find -"QPtrDict::insert" ntqptrdict.html#insert -"QPtrDict::isEmpty" ntqptrdict.html#isEmpty -"QPtrDict::operator=" ntqptrdict.html#operator-eq -"QPtrDict::operator[]" ntqptrdict.html#operator[] -"QPtrDict::read" ntqptrdict.html#read -"QPtrDict::remove" ntqptrdict.html#remove -"QPtrDict::replace" ntqptrdict.html#replace -"QPtrDict::resize" ntqptrdict.html#resize -"QPtrDict::size" ntqptrdict.html#size -"QPtrDict::statistics" ntqptrdict.html#statistics -"QPtrDict::take" ntqptrdict.html#take -"QPtrDict::write" ntqptrdict.html#write -"QPtrDict::~QPtrDict" ntqptrdict.html#~QPtrDict -"QPtrDictIterator" qptrdictiterator.html -"QPtrDictIterator::count" qptrdictiterator.html#count -"QPtrDictIterator::current" qptrdictiterator.html#current -"QPtrDictIterator::currentKey" qptrdictiterator.html#currentKey -"QPtrDictIterator::isEmpty" qptrdictiterator.html#isEmpty -"QPtrDictIterator::operator type *" qptrdictiterator.html#operator-type-* -"QPtrDictIterator::operator()" qptrdictiterator.html#operator() -"QPtrDictIterator::operator++" qptrdictiterator.html#operator++ -"QPtrDictIterator::operator+=" qptrdictiterator.html#operator+-eq -"QPtrDictIterator::toFirst" qptrdictiterator.html#toFirst -"QPtrDictIterator::~QPtrDictIterator" qptrdictiterator.html#~QPtrDictIterator -"QPtrList" ntqptrlist.html -"QPtrList::append" ntqptrlist.html#append -"QPtrList::at" ntqptrlist.html#at -"QPtrList::clear" ntqptrlist.html#clear -"QPtrList::compareItems" ntqptrlist.html#compareItems -"QPtrList::contains" ntqptrlist.html#contains -"QPtrList::containsRef" ntqptrlist.html#containsRef -"QPtrList::count" ntqptrlist.html#count -"QPtrList::current" ntqptrlist.html#current -"QPtrList::currentNode" ntqptrlist.html#currentNode -"QPtrList::find" ntqptrlist.html#find -"QPtrList::findNext" ntqptrlist.html#findNext -"QPtrList::findNextRef" ntqptrlist.html#findNextRef -"QPtrList::findRef" ntqptrlist.html#findRef -"QPtrList::first" ntqptrlist.html#first -"QPtrList::getFirst" ntqptrlist.html#getFirst -"QPtrList::getLast" ntqptrlist.html#getLast -"QPtrList::inSort" ntqptrlist.html#inSort -"QPtrList::insert" ntqptrlist.html#insert -"QPtrList::isEmpty" ntqptrlist.html#isEmpty -"QPtrList::last" ntqptrlist.html#last -"QPtrList::next" ntqptrlist.html#next -"QPtrList::operator!=" ntqptrlist.html#operator!-eq -"QPtrList::operator=" ntqptrlist.html#operator-eq -"QPtrList::operator==" ntqptrlist.html#operator-eq-eq -"QPtrList::prepend" ntqptrlist.html#prepend -"QPtrList::prev" ntqptrlist.html#prev -"QPtrList::read" ntqptrlist.html#read -"QPtrList::remove" ntqptrlist.html#remove -"QPtrList::removeFirst" ntqptrlist.html#removeFirst -"QPtrList::removeLast" ntqptrlist.html#removeLast -"QPtrList::removeNode" ntqptrlist.html#removeNode -"QPtrList::removeRef" ntqptrlist.html#removeRef -"QPtrList::replace" ntqptrlist.html#replace -"QPtrList::sort" ntqptrlist.html#sort -"QPtrList::take" ntqptrlist.html#take -"QPtrList::takeNode" ntqptrlist.html#takeNode -"QPtrList::toVector" ntqptrlist.html#toVector -"QPtrList::write" ntqptrlist.html#write -"QPtrList::~QPtrList" ntqptrlist.html#~QPtrList -"QPtrListIterator" qptrlistiterator.html -"QPtrListIterator::atFirst" qptrlistiterator.html#atFirst -"QPtrListIterator::atLast" qptrlistiterator.html#atLast -"QPtrListIterator::count" qptrlistiterator.html#count -"QPtrListIterator::current" qptrlistiterator.html#current -"QPtrListIterator::isEmpty" qptrlistiterator.html#isEmpty -"QPtrListIterator::operator type *" qptrlistiterator.html#operator-type-* -"QPtrListIterator::operator()" qptrlistiterator.html#operator() -"QPtrListIterator::operator*" qptrlistiterator.html#operator* -"QPtrListIterator::operator++" qptrlistiterator.html#operator++ -"QPtrListIterator::operator+=" qptrlistiterator.html#operator+-eq -"QPtrListIterator::operator--" qptrlistiterator.html#operator-- -"QPtrListIterator::operator-=" qptrlistiterator.html#operator--eq -"QPtrListIterator::operator=" qptrlistiterator.html#operator-eq -"QPtrListIterator::toFirst" qptrlistiterator.html#toFirst -"QPtrListIterator::toLast" qptrlistiterator.html#toLast -"QPtrListIterator::~QPtrListIterator" qptrlistiterator.html#~QPtrListIterator -"QPtrQueue" ntqptrqueue.html -"QPtrQueue::autoDelete" ntqptrqueue.html#autoDelete -"QPtrQueue::clear" ntqptrqueue.html#clear -"QPtrQueue::count" ntqptrqueue.html#count -"QPtrQueue::current" ntqptrqueue.html#current -"QPtrQueue::dequeue" ntqptrqueue.html#dequeue -"QPtrQueue::enqueue" ntqptrqueue.html#enqueue -"QPtrQueue::head" ntqptrqueue.html#head -"QPtrQueue::isEmpty" ntqptrqueue.html#isEmpty -"QPtrQueue::operator type *" ntqptrqueue.html#operator-type-* -"QPtrQueue::operator=" ntqptrqueue.html#operator-eq -"QPtrQueue::read" ntqptrqueue.html#read -"QPtrQueue::remove" ntqptrqueue.html#remove -"QPtrQueue::setAutoDelete" ntqptrqueue.html#setAutoDelete -"QPtrQueue::write" ntqptrqueue.html#write -"QPtrQueue::~QPtrQueue" ntqptrqueue.html#~QPtrQueue -"QPtrStack" ntqptrstack.html -"QPtrStack::autoDelete" ntqptrstack.html#autoDelete -"QPtrStack::clear" ntqptrstack.html#clear -"QPtrStack::count" ntqptrstack.html#count -"QPtrStack::current" ntqptrstack.html#current -"QPtrStack::isEmpty" ntqptrstack.html#isEmpty -"QPtrStack::operator type *" ntqptrstack.html#operator-type-* -"QPtrStack::operator=" ntqptrstack.html#operator-eq -"QPtrStack::pop" ntqptrstack.html#pop -"QPtrStack::push" ntqptrstack.html#push -"QPtrStack::read" ntqptrstack.html#read -"QPtrStack::remove" ntqptrstack.html#remove -"QPtrStack::setAutoDelete" ntqptrstack.html#setAutoDelete -"QPtrStack::top" ntqptrstack.html#top -"QPtrStack::write" ntqptrstack.html#write -"QPtrStack::~QPtrStack" ntqptrstack.html#~QPtrStack -"QPtrVector" ntqptrvector.html -"QPtrVector::at" ntqptrvector.html#at -"QPtrVector::bsearch" ntqptrvector.html#bsearch -"QPtrVector::clear" ntqptrvector.html#clear -"QPtrVector::compareItems" ntqptrvector.html#compareItems -"QPtrVector::contains" ntqptrvector.html#contains -"QPtrVector::containsRef" ntqptrvector.html#containsRef -"QPtrVector::count" ntqptrvector.html#count -"QPtrVector::data" ntqptrvector.html#data -"QPtrVector::fill" ntqptrvector.html#fill -"QPtrVector::find" ntqptrvector.html#find -"QPtrVector::findRef" ntqptrvector.html#findRef -"QPtrVector::insert" ntqptrvector.html#insert -"QPtrVector::isEmpty" ntqptrvector.html#isEmpty -"QPtrVector::isNull" ntqptrvector.html#isNull -"QPtrVector::operator=" ntqptrvector.html#operator-eq -"QPtrVector::operator==" ntqptrvector.html#operator-eq-eq -"QPtrVector::operator[]" ntqptrvector.html#operator[] -"QPtrVector::read" ntqptrvector.html#read -"QPtrVector::remove" ntqptrvector.html#remove -"QPtrVector::resize" ntqptrvector.html#resize -"QPtrVector::size" ntqptrvector.html#size -"QPtrVector::sort" ntqptrvector.html#sort -"QPtrVector::take" ntqptrvector.html#take -"QPtrVector::write" ntqptrvector.html#write -"QPtrVector::~QPtrVector" ntqptrvector.html#~QPtrVector +"TQPtrCollection" tqptrcollection.html +"TQPtrCollection::Item" tqptrcollection.html#Item +"TQPtrCollection::autoDelete" tqptrcollection.html#autoDelete +"TQPtrCollection::clear" tqptrcollection.html#clear +"TQPtrCollection::count" tqptrcollection.html#count +"TQPtrCollection::deleteItem" tqptrcollection.html#deleteItem +"TQPtrCollection::newItem" tqptrcollection.html#newItem +"TQPtrCollection::setAutoDelete" tqptrcollection.html#setAutoDelete +"TQPtrCollection::~TQPtrCollection" tqptrcollection.html#~TQPtrCollection +"TQPtrDict" tqptrdict.html +"TQPtrDict::clear" tqptrdict.html#clear +"TQPtrDict::count" tqptrdict.html#count +"TQPtrDict::find" tqptrdict.html#find +"TQPtrDict::insert" tqptrdict.html#insert +"TQPtrDict::isEmpty" tqptrdict.html#isEmpty +"TQPtrDict::operator=" tqptrdict.html#operator-eq +"TQPtrDict::operator[]" tqptrdict.html#operator[] +"TQPtrDict::read" tqptrdict.html#read +"TQPtrDict::remove" tqptrdict.html#remove +"TQPtrDict::replace" tqptrdict.html#replace +"TQPtrDict::resize" tqptrdict.html#resize +"TQPtrDict::size" tqptrdict.html#size +"TQPtrDict::statistics" tqptrdict.html#statistics +"TQPtrDict::take" tqptrdict.html#take +"TQPtrDict::write" tqptrdict.html#write +"TQPtrDict::~TQPtrDict" tqptrdict.html#~TQPtrDict +"TQPtrDictIterator" tqptrdictiterator.html +"TQPtrDictIterator::count" tqptrdictiterator.html#count +"TQPtrDictIterator::current" tqptrdictiterator.html#current +"TQPtrDictIterator::currentKey" tqptrdictiterator.html#currentKey +"TQPtrDictIterator::isEmpty" tqptrdictiterator.html#isEmpty +"TQPtrDictIterator::operator type *" tqptrdictiterator.html#operator-type-* +"TQPtrDictIterator::operator()" tqptrdictiterator.html#operator() +"TQPtrDictIterator::operator++" tqptrdictiterator.html#operator++ +"TQPtrDictIterator::operator+=" tqptrdictiterator.html#operator+-eq +"TQPtrDictIterator::toFirst" tqptrdictiterator.html#toFirst +"TQPtrDictIterator::~TQPtrDictIterator" tqptrdictiterator.html#~TQPtrDictIterator +"TQPtrList" tqptrlist.html +"TQPtrList::append" tqptrlist.html#append +"TQPtrList::at" tqptrlist.html#at +"TQPtrList::clear" tqptrlist.html#clear +"TQPtrList::compareItems" tqptrlist.html#compareItems +"TQPtrList::contains" tqptrlist.html#contains +"TQPtrList::containsRef" tqptrlist.html#containsRef +"TQPtrList::count" tqptrlist.html#count +"TQPtrList::current" tqptrlist.html#current +"TQPtrList::currentNode" tqptrlist.html#currentNode +"TQPtrList::find" tqptrlist.html#find +"TQPtrList::findNext" tqptrlist.html#findNext +"TQPtrList::findNextRef" tqptrlist.html#findNextRef +"TQPtrList::findRef" tqptrlist.html#findRef +"TQPtrList::first" tqptrlist.html#first +"TQPtrList::getFirst" tqptrlist.html#getFirst +"TQPtrList::getLast" tqptrlist.html#getLast +"TQPtrList::inSort" tqptrlist.html#inSort +"TQPtrList::insert" tqptrlist.html#insert +"TQPtrList::isEmpty" tqptrlist.html#isEmpty +"TQPtrList::last" tqptrlist.html#last +"TQPtrList::next" tqptrlist.html#next +"TQPtrList::operator!=" tqptrlist.html#operator!-eq +"TQPtrList::operator=" tqptrlist.html#operator-eq +"TQPtrList::operator==" tqptrlist.html#operator-eq-eq +"TQPtrList::prepend" tqptrlist.html#prepend +"TQPtrList::prev" tqptrlist.html#prev +"TQPtrList::read" tqptrlist.html#read +"TQPtrList::remove" tqptrlist.html#remove +"TQPtrList::removeFirst" tqptrlist.html#removeFirst +"TQPtrList::removeLast" tqptrlist.html#removeLast +"TQPtrList::removeNode" tqptrlist.html#removeNode +"TQPtrList::removeRef" tqptrlist.html#removeRef +"TQPtrList::replace" tqptrlist.html#replace +"TQPtrList::sort" tqptrlist.html#sort +"TQPtrList::take" tqptrlist.html#take +"TQPtrList::takeNode" tqptrlist.html#takeNode +"TQPtrList::toVector" tqptrlist.html#toVector +"TQPtrList::write" tqptrlist.html#write +"TQPtrList::~TQPtrList" tqptrlist.html#~TQPtrList +"TQPtrListIterator" tqptrlistiterator.html +"TQPtrListIterator::atFirst" tqptrlistiterator.html#atFirst +"TQPtrListIterator::atLast" tqptrlistiterator.html#atLast +"TQPtrListIterator::count" tqptrlistiterator.html#count +"TQPtrListIterator::current" tqptrlistiterator.html#current +"TQPtrListIterator::isEmpty" tqptrlistiterator.html#isEmpty +"TQPtrListIterator::operator type *" tqptrlistiterator.html#operator-type-* +"TQPtrListIterator::operator()" tqptrlistiterator.html#operator() +"TQPtrListIterator::operator*" tqptrlistiterator.html#operator* +"TQPtrListIterator::operator++" tqptrlistiterator.html#operator++ +"TQPtrListIterator::operator+=" tqptrlistiterator.html#operator+-eq +"TQPtrListIterator::operator--" tqptrlistiterator.html#operator-- +"TQPtrListIterator::operator-=" tqptrlistiterator.html#operator--eq +"TQPtrListIterator::operator=" tqptrlistiterator.html#operator-eq +"TQPtrListIterator::toFirst" tqptrlistiterator.html#toFirst +"TQPtrListIterator::toLast" tqptrlistiterator.html#toLast +"TQPtrListIterator::~TQPtrListIterator" tqptrlistiterator.html#~TQPtrListIterator +"TQPtrQueue" tqptrqueue.html +"TQPtrQueue::autoDelete" tqptrqueue.html#autoDelete +"TQPtrQueue::clear" tqptrqueue.html#clear +"TQPtrQueue::count" tqptrqueue.html#count +"TQPtrQueue::current" tqptrqueue.html#current +"TQPtrQueue::dequeue" tqptrqueue.html#dequeue +"TQPtrQueue::enqueue" tqptrqueue.html#enqueue +"TQPtrQueue::head" tqptrqueue.html#head +"TQPtrQueue::isEmpty" tqptrqueue.html#isEmpty +"TQPtrQueue::operator type *" tqptrqueue.html#operator-type-* +"TQPtrQueue::operator=" tqptrqueue.html#operator-eq +"TQPtrQueue::read" tqptrqueue.html#read +"TQPtrQueue::remove" tqptrqueue.html#remove +"TQPtrQueue::setAutoDelete" tqptrqueue.html#setAutoDelete +"TQPtrQueue::write" tqptrqueue.html#write +"TQPtrQueue::~TQPtrQueue" tqptrqueue.html#~TQPtrQueue +"TQPtrStack" tqptrstack.html +"TQPtrStack::autoDelete" tqptrstack.html#autoDelete +"TQPtrStack::clear" tqptrstack.html#clear +"TQPtrStack::count" tqptrstack.html#count +"TQPtrStack::current" tqptrstack.html#current +"TQPtrStack::isEmpty" tqptrstack.html#isEmpty +"TQPtrStack::operator type *" tqptrstack.html#operator-type-* +"TQPtrStack::operator=" tqptrstack.html#operator-eq +"TQPtrStack::pop" tqptrstack.html#pop +"TQPtrStack::push" tqptrstack.html#push +"TQPtrStack::read" tqptrstack.html#read +"TQPtrStack::remove" tqptrstack.html#remove +"TQPtrStack::setAutoDelete" tqptrstack.html#setAutoDelete +"TQPtrStack::top" tqptrstack.html#top +"TQPtrStack::write" tqptrstack.html#write +"TQPtrStack::~TQPtrStack" tqptrstack.html#~TQPtrStack +"TQPtrVector" tqptrvector.html +"TQPtrVector::at" tqptrvector.html#at +"TQPtrVector::bsearch" tqptrvector.html#bsearch +"TQPtrVector::clear" tqptrvector.html#clear +"TQPtrVector::compareItems" tqptrvector.html#compareItems +"TQPtrVector::contains" tqptrvector.html#contains +"TQPtrVector::containsRef" tqptrvector.html#containsRef +"TQPtrVector::count" tqptrvector.html#count +"TQPtrVector::data" tqptrvector.html#data +"TQPtrVector::fill" tqptrvector.html#fill +"TQPtrVector::find" tqptrvector.html#find +"TQPtrVector::findRef" tqptrvector.html#findRef +"TQPtrVector::insert" tqptrvector.html#insert +"TQPtrVector::isEmpty" tqptrvector.html#isEmpty +"TQPtrVector::isNull" tqptrvector.html#isNull +"TQPtrVector::operator=" tqptrvector.html#operator-eq +"TQPtrVector::operator==" tqptrvector.html#operator-eq-eq +"TQPtrVector::operator[]" tqptrvector.html#operator[] +"TQPtrVector::read" tqptrvector.html#read +"TQPtrVector::remove" tqptrvector.html#remove +"TQPtrVector::resize" tqptrvector.html#resize +"TQPtrVector::size" tqptrvector.html#size +"TQPtrVector::sort" tqptrvector.html#sort +"TQPtrVector::take" tqptrvector.html#take +"TQPtrVector::write" tqptrvector.html#write +"TQPtrVector::~TQPtrVector" tqptrvector.html#~TQPtrVector "QPushButton" ntqpushbutton.html "QPushButton::autoDefault" ntqpushbutton.html#autoDefault "QPushButton::autoDefault" ntqpushbutton.html#autoDefault-prop diff --git a/doc/html/listviews-example.html b/doc/html/listviews-example.html index 90f5c7037..7b3d668a6 100644 --- a/doc/html/listviews-example.html +++ b/doc/html/listviews-example.html @@ -55,7 +55,7 @@ and works like the main window of a mail client. #include <ntqstring.h> #include <tqobject.h> #include <ntqdatetime.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> #include <ntqlistview.h> class TQListView; @@ -128,16 +128,16 @@ public: {} void addMessage( Message *m ) - { lstMessages.append( m ); } + { lstMessages.append( m ); } TQString folderName() { return fName; } - Message *firstMessage() { return lstMessages.first(); } - Message *nextMessage() { return lstMessages.next(); } + Message *firstMessage() { return lstMessages.first(); } + Message *nextMessage() { return lstMessages.next(); } protected: TQString fName; - TQPtrList<Message> lstMessages; + TQPtrList<Message> lstMessages; }; @@ -195,7 +195,7 @@ protected: TQLabel *message; TQPopupMenu* menu; - TQPtrList<Folder> lstFolders; + TQPtrList<Folder> lstFolders; protected slots: void slotFolderChanged( TQListViewItem* ); @@ -366,7 +366,7 @@ void FolderListItem::insertSubFolders( const setMargin( 5 ); TQValueList<int> lst; - lst.append( 170 ); + lst.append( 170 ); setSizes( lst ); } diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 7abea925d..52e941fa8 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -51,7 +51,7 @@ that it provides a Multiple Document Interface (MDI). #define APPLICATION_H #include <ntqmainwindow.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> class TQTextEdit; class TQToolBar; diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index 22ce1183a..23534ff03 100644 --- a/doc/html/ntqapplication.html +++ b/doc/html/ntqapplication.html @@ -586,7 +586,7 @@ installed. Returns a list of all the widgets in the application.

    The list is created using new and must be deleted by the caller. -

    The list is empty (TQPtrList::isEmpty()) if there are no widgets. +

    The list is empty (TQPtrList::isEmpty()) if there are no widgets.

    Note that some of the widgets may be hidden.

    Example that updates all widgets:

    @@ -604,7 +604,7 @@ Returns a list of all the widgets in the application.
     file.
     

    Warning: Delete the list as soon as you have finished using it. The widgets in the list may be deleted by someone else at any time. -

    See also topLevelWidgets(), TQWidget::visible, and TQPtrList::isEmpty(). +

    See also topLevelWidgets(), TQWidget::visible, and TQPtrList::isEmpty().

    TQString TQApplication::applicationDirPath ()

    @@ -1638,7 +1638,7 @@ normally takes some time. Does nothing on other platforms. Returns a list of the top level widgets in the application.

    The list is created using new and must be deleted by the caller. -

    The list is empty (TQPtrList::isEmpty()) if there are no top level +

    The list is empty (TQPtrList::isEmpty()) if there are no top level widgets.

    Note that some of the top level widgets may be hidden, for example the tooltip if no tooltip is currently shown. @@ -1658,7 +1658,7 @@ the tooltip if no tooltip is currently shown.

    Warning: Delete the list as soon you have finished using it. The widgets in the list may be deleted by someone else at any time. -

    See also allWidgets(), TQWidget::isTopLevel, TQWidget::visible, and TQPtrList::isEmpty(). +

    See also allWidgets(), TQWidget::isTopLevel, TQWidget::visible, and TQPtrList::isEmpty().

    TQString TQApplication::translate ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const

    Note: This function is reentrant when TQt is built with thread support.

    diff --git a/doc/html/ntqasciicache.html b/doc/html/ntqasciicache.html index 13df1f01c..0c71987ba 100644 --- a/doc/html/ntqasciicache.html +++ b/doc/html/ntqasciicache.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

    The TQAsciiCache class is a template class that provides a cache based on char* keys. More...

    #include <ntqasciicache.h> -

    Inherits TQPtrCollection. +

    Inherits TQPtrCollection.

    List of all member functions.

    Public Members

      @@ -76,17 +76,17 @@ the least recently used items in the cache are removed. item, returns it, and by default marks it as being the most recently used item.

      There are also methods to remove() or take() an object from the -cache. Calling setAutoDelete(TRUE) tells the cache to delete items that +cache. Calling setAutoDelete(TRUE) tells the cache to delete items that are removed. The default is to not delete items when then are removed (i.e., remove() and take() are equivalent).

      When inserting an item into the cache, only the pointer is copied, not the item itself. This is called a shallow copy. It is possible to make the cache copy all of the item's data (known as a deep copy) when an item is inserted. insert() calls the virtual -function TQPtrCollection::newItem() for the item to be inserted. -Inherit a cache and reimplement newItem() if you want deep copies. +function TQPtrCollection::newItem() for the item to be inserted. +Inherit a cache and reimplement newItem() if you want deep copies.

      When removing a cache item the virtual function -TQPtrCollection::deleteItem() is called. Its default implementation -in TQAsciiCache is to delete the item if auto-deletion is enabled. +TQPtrCollection::deleteItem() is called. Its default implementation +in TQAsciiCache is to delete the item if auto-deletion is enabled.

      There is a TQAsciiCacheIterator which may be used to traverse the items in the cache in arbitrary order.

      See also TQAsciiCacheIterator, TQCache, TQIntCache, Collection Classes, and Non-GUI Classes. @@ -122,19 +122,19 @@ All iterators that access this cache will be reset.

      void TQAsciiCache::clear () [virtual]

      -

      Removes all items from the cache, and deletes them if auto-deletion has been +

      Removes all items from the cache, and deletes them if auto-deletion has been enabled.

      All cache iterators that operate on this cache are reset.

      See also remove() and take(). -

      Reimplemented from TQPtrCollection. +

      Reimplemented from TQPtrCollection.

      uint TQAsciiCache::count () const [virtual]

      Returns the number of items in the cache.

      See also totalCost() and size(). -

      Reimplemented from TQPtrCollection. +

      Reimplemented from TQPtrCollection.

      type * TQAsciiCache::find ( const char * k, bool ref = TRUE ) const

      @@ -192,7 +192,7 @@ inserted last is returned.

      Removes the item with key k and returns TRUE if the item was present in the cache; otherwise returns FALSE.

      The item is deleted if auto-deletion has been enabled, i.e., if -you have called setAutoDelete(TRUE). +you have called setAutoDelete(TRUE).

      If there are two or more items with equal keys, the one that was inserted last is removed.

      All iterators that refer to the removed item are set to point to diff --git a/doc/html/ntqasciidict.html b/doc/html/ntqasciidict.html index 460792d7f..7c74e2021 100644 --- a/doc/html/ntqasciidict.html +++ b/doc/html/ntqasciidict.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

      The TQAsciiDict class is a template class that provides a dictionary based on char* keys. More...

      #include <ntqasciidict.h> -

      Inherits TQPtrCollection. +

      Inherits TQPtrCollection.

      List of all member functions.

      Public Members

        @@ -107,10 +107,10 @@ performace as a TQAsciiDict. In this example we use a dictionary to keep track of the line edits we're using. We insert each line edit into the dictionary with a unique name and then access the line edits via the -dictionary. See TQPtrDict, TQIntDict and TQDict. +dictionary. See TQPtrDict, TQIntDict and TQDict.

        See TQDict for full details, including the choice of dictionary size, and how deletions are handled. -

        See also TQAsciiDictIterator, TQDict, TQIntDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. +

        See also TQAsciiDictIterator, TQDict, TQIntDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes.


        Member Function Documentation

        TQAsciiDict::TQAsciiDict ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE ) @@ -141,30 +141,30 @@ pointers are copied (shallow copy).

        Removes all items from the dictionary and destroys it.

        The items are deleted if auto-delete is enabled.

        All iterators that access this dictionary will be reset. -

        See also setAutoDelete(). +

        See also setAutoDelete().

        bool TQPtrCollection::autoDelete () const

        Returns the setting of the auto-delete option. The default is FALSE. -

        See also setAutoDelete(). +

        See also setAutoDelete().

        void TQAsciiDict::clear () [virtual]

        Removes all items from the dictionary. -

        The removed items are deleted if auto-deletion is enabled. +

        The removed items are deleted if auto-deletion is enabled.

        All dictionary iterators that operate on dictionary are reset. -

        See also remove(), take(), and setAutoDelete(). +

        See also remove(), take(), and setAutoDelete(). -

        Reimplemented from TQPtrCollection. +

        Reimplemented from TQPtrCollection.

        uint TQAsciiDict::count () const [virtual]

        Returns the number of items in the dictionary.

        See also isEmpty(). -

        Reimplemented from TQPtrCollection. +

        Reimplemented from TQPtrCollection.

        type * TQAsciiDict::find ( const char * key ) const

        @@ -200,7 +200,7 @@ otherwise it returns FALSE. dictionary.

        This dictionary is first cleared and then each item in dict is inserted into this dictionary. Only the pointers are copied -(shallow copy) unless newItem() has been reimplemented(). +(shallow copy) unless newItem() has been reimplemented().

        type * TQAsciiDict::operator[] ( const char * key ) const

        @@ -214,7 +214,7 @@ was most recently inserted will be found.

        Equivalent to the find() function.

        See also find(). -

        TQDataStream & TQAsciiDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

        TQDataStream & TQAsciiDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected]

        Reads a dictionary item from the stream s and returns a @@ -230,10 +230,10 @@ Returns TRUE if successful, i.e. if the key existed in the dictionary; otherwise returns FALSE.

        If there are two or more items with equal keys, then the most recently inserted item will be removed. -

        The removed item is deleted if auto-deletion is enabled. +

        The removed item is deleted if auto-deletion is enabled.

        All dictionary iterators that refer to the removed item will be set to point to the next item in the dictionary traversal order. -

        See also take(), clear(), and setAutoDelete(). +

        See also take(), clear(), and setAutoDelete().

        void TQAsciiDict::replace ( const char * key, const type * item )

        @@ -276,7 +276,7 @@ with two collections deleting the same items. in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item. -

        See also autoDelete(). +

        See also autoDelete().

        Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp.

        uint TQAsciiDict::size () const @@ -296,16 +296,16 @@ distribution using tqDebug().

        Takes the item associated with key out of the dictionary -without deleting it (even if auto-deletion is enabled). +without deleting it (even if auto-deletion is enabled).

        If there are two or more items with equal keys, then the most recently inserted item will be taken.

        Returns a pointer to the item taken out, or 0 if the key does not exist in the dictionary.

        All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order. -

        See also remove(), clear(), and setAutoDelete(). +

        See also remove(), clear(), and setAutoDelete(). -

        TQDataStream & TQAsciiDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected] +

        TQDataStream & TQAsciiDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected]

        Writes a dictionary item to the stream s and returns a diff --git a/doc/html/ntqcache.html b/doc/html/ntqcache.html index ed557bf54..da9c879d0 100644 --- a/doc/html/ntqcache.html +++ b/doc/html/ntqcache.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

        The TQCache class is a template class that provides a cache based on TQString keys. More...

        #include <ntqcache.h> -

        Inherits TQPtrCollection. +

        Inherits TQPtrCollection.

        List of all member functions.

        Public Members

          @@ -79,16 +79,16 @@ operates on pointers to X, or X*. item, returns it, and by default marks it as being the most recently used item.

          There are also methods to remove() or take() an object from the -cache. Calling setAutoDelete(TRUE) for a cache tells it to delete +cache. Calling setAutoDelete(TRUE) for a cache tells it to delete items that are removed. The default is to not delete items when they are removed (i.e., remove() and take() are equivalent).

          When inserting an item into the cache, only the pointer is copied, not the item itself. This is called a shallow copy. It is possible to make the cache copy all of the item's data (known as a deep copy) when an item is inserted. insert() calls the virtual -function TQPtrCollection::newItem() for the item to be inserted. -Inherit a cache and reimplement newItem() if you want deep copies. +function TQPtrCollection::newItem() for the item to be inserted. +Inherit a cache and reimplement newItem() if you want deep copies.

          When removing a cache item, the virtual function -TQPtrCollection::deleteItem() is called. The default +TQPtrCollection::deleteItem() is called. The default implementation deletes the item if auto-deletion is enabled, and does nothing otherwise.

          There is a TQCacheIterator that can be used to traverse the items @@ -127,7 +127,7 @@ that access this cache will be reset.

          Returns the setting of the auto-delete option. The default is FALSE. -

          See also setAutoDelete(). +

          See also setAutoDelete().

          void TQCache::clear () [virtual]

          @@ -137,14 +137,14 @@ has been enabled.

          All cache iterators that operate this on cache are reset.

          See also remove() and take(). -

          Reimplemented from TQPtrCollection. +

          Reimplemented from TQPtrCollection.

          uint TQCache::count () const [virtual]

          Returns the number of items in the cache.

          See also totalCost(). -

          Reimplemented from TQPtrCollection. +

          Reimplemented from TQPtrCollection.

          type * TQCache::find ( const TQString & k, bool ref = TRUE ) const

          @@ -201,7 +201,7 @@ inserted last is returned.

          Removes the item associated with k, and returns TRUE if the item was present in the cache; otherwise returns FALSE.

          The item is deleted if auto-deletion has been enabled, i.e., if -you have called setAutoDelete(TRUE). +you have called setAutoDelete(TRUE).

          If there are two or more items with equal keys, the one that was inserted last is removed.

          All iterators that refer to the removed item are set to point to @@ -223,7 +223,7 @@ with two collections deleting the same items. in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item. -

          See also autoDelete(). +

          See also autoDelete().

          Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp.

          void TQCache::setMaxCost ( int m ) diff --git a/doc/html/ntqdict.html b/doc/html/ntqdict.html index cfca2729d..e8eade989 100644 --- a/doc/html/ntqdict.html +++ b/doc/html/ntqdict.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } dictionary based on TQString keys. More...

          #include <ntqdict.h> -

          Inherits TQPtrCollection. +

          Inherits TQPtrCollection.

          List of all member functions.

          Public Members

            @@ -99,7 +99,7 @@ returns TRUE. You can change an item's value with replace are looked up with operator[](), or with find() which return a pointer to the value or 0 if the given key does not exist. You can take an item out of the dictionary with take(). -

            Calling setAutoDelete(TRUE) for a dictionary tells it to delete +

            Calling setAutoDelete(TRUE) for a dictionary tells it to delete items that are removed. The default behaviour is not to delete items when they are removed.

            When an item is inserted, the key is converted (hashed) to an @@ -115,11 +115,11 @@ the same dictionary. copied, not the item itself, i.e. a shallow copy is made. It is possible to make the dictionary copy all of the item's data (a deep copy) when an item is inserted. insert() calls the virtual -function TQPtrCollection::newItem() for the item to be inserted. -Inherit a dictionary and reimplement newItem() if you want deep +function TQPtrCollection::newItem() for the item to be inserted. +Inherit a dictionary and reimplement newItem() if you want deep copies.

            When removing a dictionary item, the virtual function -TQPtrCollection::deleteItem() is called. TQDict's default +TQPtrCollection::deleteItem() is called. TQDict's default implementation is to delete the item if auto-deletion is enabled.

            Example #1:

            @@ -191,7 +191,7 @@ letter the style will simply have no accelerator. If the first
             letter of the style name is not in the dictionary we use it for
             the accelerator and add it to the dictionary. Finally we create a
             TQAction for each style.
            -

            See also TQDictIterator, TQAsciiDict, TQIntDict, TQPtrDict, Collection Classes, and Non-GUI Classes. +

            See also TQDictIterator, TQAsciiDict, TQIntDict, TQPtrDict, Collection Classes, and Non-GUI Classes.


            Member Function Documentation

            TQDict::TQDict ( int size = 17, bool caseSensitive = TRUE ) @@ -216,32 +216,32 @@ pointers are copied (shallow copy).

            Removes all items from the dictionary and destroys it. If -setAutoDelete() is TRUE, each value is deleted. All iterators that +setAutoDelete() is TRUE, each value is deleted. All iterators that access this dictionary will be reset. -

            See also setAutoDelete(). +

            See also setAutoDelete().

            bool TQPtrCollection::autoDelete () const

            Returns the setting of the auto-delete option. The default is FALSE. -

            See also setAutoDelete(). +

            See also setAutoDelete().

            void TQDict::clear () [virtual]

            Removes all items from the dictionary. -

            The removed items are deleted if auto-deletion is enabled. +

            The removed items are deleted if auto-deletion is enabled.

            All dictionary iterators that operate on the dictionary are reset. -

            See also remove(), take(), and setAutoDelete(). +

            See also remove(), take(), and setAutoDelete(). -

            Reimplemented from TQPtrCollection. +

            Reimplemented from TQPtrCollection.

            uint TQDict::count () const [virtual]

            Returns the number of items in the dictionary.

            See also isEmpty(). -

            Reimplemented from TQPtrCollection. +

            Reimplemented from TQPtrCollection.

            type * TQDict::find ( const TQString & key ) const

            @@ -276,7 +276,7 @@ otherwise returns FALSE. dictionary.

            This dictionary is first cleared, then each item in dict is inserted into this dictionary. Only the pointers are copied -(shallow copy), unless newItem() has been reimplemented. +(shallow copy), unless newItem() has been reimplemented.

            type * TQDict::operator[] ( const TQString & key ) const

            @@ -288,7 +288,7 @@ recently inserted item will be found.

            Equivalent to the find() function.

            See also find(). -

            TQDataStream & TQDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

            TQDataStream & TQDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected]

            Reads a dictionary item from the stream s and returns a @@ -304,10 +304,10 @@ successful, i.e. if the item is in the dictionary; otherwise returns FALSE.

            If there are two or more items with equal keys, then the last item that was inserted will be removed. -

            The removed item is deleted if auto-deletion is enabled. +

            The removed item is deleted if auto-deletion is enabled.

            All dictionary iterators that refer to the removed item will be set to point to the next item in the dictionary's traversal order. -

            See also take(), clear(), and setAutoDelete(). +

            See also take(), clear(), and setAutoDelete().

            void TQDict::replace ( const TQString & key, const type * item )

            @@ -350,7 +350,7 @@ with two collections deleting the same items. in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item. -

            See also autoDelete(). +

            See also autoDelete().

            Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp.

            uint TQDict::size () const @@ -370,16 +370,16 @@ distribution using tqDebug().

            Takes the item with key out of the dictionary without deleting -it (even if auto-deletion is enabled). +it (even if auto-deletion is enabled).

            If there are two or more items with equal keys, then the last item that was inserted will be taken.

            Returns a pointer to the item taken out, or 0 if the key does not exist in the dictionary.

            All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order. -

            See also remove(), clear(), and setAutoDelete(). +

            See also remove(), clear(), and setAutoDelete(). -

            TQDataStream & TQDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected] +

            TQDataStream & TQDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected]

            Writes a dictionary item to the stream s and returns a diff --git a/doc/html/ntqdir.html b/doc/html/ntqdir.html index 5066c4f95..89372c3bf 100644 --- a/doc/html/ntqdir.html +++ b/doc/html/ntqdir.html @@ -451,7 +451,7 @@ list is owned by the TQDir object and will be reused on the next call to entryInfoList() for the same TQDir instance. If you want to keep the entries of the list after a subsequent call to this function you must copy them. -

            Note: TQFileInfoList is really a TQPtrList. +

            Note: TQFileInfoList is really a TQPtrList.

            See also entryList(), setNameFilter(), setSorting(), and setFilter().

            Examples: dirview/dirview.cpp and fileiconview/qfileiconview.cpp. @@ -470,7 +470,7 @@ list is owned by the TQDir object and will be reused on the next call to entryInfoList() for the same TQDir instance. If you want to keep the entries of the list after a subsequent call to this function you must copy them. -

            Note: TQFileInfoList is really a TQPtrList. +

            Note: TQFileInfoList is really a TQPtrList.

            See also entryList(), setNameFilter(), setSorting(), and setFilter().

            TQStringList TQDir::entryList ( const TQString & nameFilter, int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const [virtual] diff --git a/doc/html/ntqdockarea.html b/doc/html/ntqdockarea.html index 439d7a1ee..83db618fe 100644 --- a/doc/html/ntqdockarea.html +++ b/doc/html/ntqdockarea.html @@ -164,7 +164,7 @@ area.

            int TQDockArea::count () const

            Returns the number of dock windows in the dock area. See the "count" property for details. -

            TQPtrList<TQDockWindow> TQDockArea::dockWindowList () const +

            TQPtrList<TQDockWindow> TQDockArea::dockWindowList () const

            Returns a list of the dock windows in the dock area. diff --git a/doc/html/ntqintcache.html b/doc/html/ntqintcache.html index 8bd43af2e..61587a90e 100644 --- a/doc/html/ntqintcache.html +++ b/doc/html/ntqintcache.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

            The TQIntCache class is a template class that provides a cache based on long keys. More...

            #include <ntqintcache.h> -

            Inherits TQPtrCollection. +

            Inherits TQPtrCollection.

            List of all member functions.

            Public Members

              @@ -74,14 +74,14 @@ the cache are removed. item, returns it, and by default marks it as being the most recently used item.

              There are also methods to remove() or take() an object from the -cache. Calling setAutoDelete(TRUE) for a cache tells it to delete +cache. Calling setAutoDelete(TRUE) for a cache tells it to delete items that are removed. The default is to not delete items when they are removed (i.e. remove() and take() are equivalent).

              When inserting an item into the cache, only the pointer is copied, not the item itself. This is called a shallow copy. It is possible to make the cache copy all of the item's data (known as a deep copy) when an item is inserted. insert() calls the virtual -function TQPtrCollection::newItem() for the item to be inserted. -Inherit a dictionary and reimplement newItem() if you want deep +function TQPtrCollection::newItem() for the item to be inserted. +Inherit a dictionary and reimplement newItem() if you want deep copies.

              When removing a cache item, the item will be automatically deleted if auto-deletion is enabled. @@ -119,14 +119,14 @@ auto-deletion has been enabled.

              All cache iterators that operate this on cache are reset.

              See also remove() and take(). -

              Reimplemented from TQPtrCollection. +

              Reimplemented from TQPtrCollection.

              uint TQIntCache::count () const [virtual]

              Returns the number of items in the cache.

              See also totalCost(). -

              Reimplemented from TQPtrCollection. +

              Reimplemented from TQPtrCollection.

              type * TQIntCache::find ( long k, bool ref = TRUE ) const

              @@ -182,7 +182,7 @@ inserted most recently is returned.

              Removes the item associated with k, and returns TRUE if the item was present in the cache; otherwise returns FALSE.

              The item is deleted if auto-deletion has been enabled, i.e. if you -have called setAutoDelete(TRUE). +have called setAutoDelete(TRUE).

              If there are two or more items with equal keys, the one that was inserted most recently is removed.

              All iterators that refer to the removed item are set to point to diff --git a/doc/html/ntqintdict.html b/doc/html/ntqintdict.html index 9b13c49e3..83339e183 100644 --- a/doc/html/ntqintdict.html +++ b/doc/html/ntqintdict.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

              The TQIntDict class is a template class that provides a dictionary based on long keys. More...

              #include <ntqintdict.h> -

              Inherits TQPtrCollection. +

              Inherits TQPtrCollection.

              List of all member functions.

              Public Members

                @@ -104,7 +104,7 @@ pointer. Dictionaries provide very fast insertion and lookup.

                See TQDict for full details, including the choice of dictionary size, and how deletions are handled. -

                See also TQIntDictIterator, TQDict, TQAsciiDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. +

                See also TQIntDictIterator, TQDict, TQAsciiDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes.


                Member Function Documentation

                TQIntDict::TQIntDict ( int size = 17 ) @@ -127,30 +127,30 @@ pointers are copied (shallow copy).

                Removes all items from the dictionary and destroys it.

                All iterators that access this dictionary will be reset. -

                See also setAutoDelete(). +

                See also setAutoDelete().

                bool TQPtrCollection::autoDelete () const

                Returns the setting of the auto-delete option. The default is FALSE. -

                See also setAutoDelete(). +

                See also setAutoDelete().

                void TQIntDict::clear () [virtual]

                Removes all items from the dictionary. -

                The removed items are deleted if auto-deletion is enabled. +

                The removed items are deleted if auto-deletion is enabled.

                All dictionary iterators that access this dictionary will be reset. -

                See also remove(), take(), and setAutoDelete(). +

                See also remove(), take(), and setAutoDelete(). -

                Reimplemented from TQPtrCollection. +

                Reimplemented from TQPtrCollection.

                uint TQIntDict::count () const [virtual]

                Returns the number of items in the dictionary.

                See also isEmpty(). -

                Reimplemented from TQPtrCollection. +

                Reimplemented from TQPtrCollection.

                type * TQIntDict::find ( long key ) const

                @@ -185,7 +185,7 @@ item will be accessible using operator[](). dictionary.

                This dictionary is first cleared and then each item in dict is inserted into this dictionary. Only the pointers are copied -(shallow copy), unless newItem() has been reimplemented. +(shallow copy), unless newItem() has been reimplemented.

                type * TQIntDict::operator[] ( long key ) const

                @@ -197,7 +197,7 @@ recently inserted item will be found.

                Equivalent to the find() function.

                See also find(). -

                TQDataStream & TQIntDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

                TQDataStream & TQIntDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected]

                Reads a dictionary item from the stream s and returns a @@ -213,11 +213,11 @@ Returns TRUE if successful, i.e. if the key is in the dictionary; otherwise returns FALSE.

                If there are two or more items with equal keys, then the most recently inserted item will be removed. -

                The removed item is deleted if auto-deletion is enabled. +

                The removed item is deleted if auto-deletion is enabled.

                All dictionary iterators that refer to the removed item will be set to point to the next item in the dictionary's traversal order. -

                See also take(), clear(), and setAutoDelete(). +

                See also take(), clear(), and setAutoDelete().

                Example: table/bigtable/main.cpp.

                void TQIntDict::replace ( long key, const type * item ) @@ -263,7 +263,7 @@ with two collections deleting the same items. in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item. -

                See also autoDelete(). +

                See also autoDelete().

                Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp.

                uint TQIntDict::size () const @@ -283,17 +283,17 @@ distribution using tqDebug().

                Takes the item associated with key out of the dictionary -without deleting it (even if auto-deletion is enabled). +without deleting it (even if auto-deletion is enabled).

                If there are two or more items with equal keys, then the most recently inserted item will be taken.

                Returns a pointer to the item taken out, or 0 if the key does not exist in the dictionary.

                All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary's traversing order. -

                See also remove(), clear(), and setAutoDelete(). +

                See also remove(), clear(), and setAutoDelete().

                Example: table/bigtable/main.cpp. -

                TQDataStream & TQIntDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected] +

                TQDataStream & TQIntDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected]

                Writes a dictionary item to the stream s and returns a diff --git a/doc/html/ntqmainwindow.html b/doc/html/ntqmainwindow.html index ce9fbc405..c70ddd854 100644 --- a/doc/html/ntqmainwindow.html +++ b/doc/html/ntqmainwindow.html @@ -525,7 +525,7 @@ within its dock area or moved to another dock area (including the Minimized and TearOff dock areas).

                See also getLocation(). -

                TQPtrList<TQDockWindow> TQMainWindow::dockWindows ( Dock dock ) const +

                TQPtrList<TQDockWindow> TQMainWindow::dockWindows ( Dock dock ) const

                Returns a list of all the dock windows which are in the dock dock area, regardless of their state. @@ -533,7 +533,7 @@ dock area, regardless of their state. windows but these are returned along with the visible dock windows. -

                TQPtrList<TQDockWindow> TQMainWindow::dockWindows () const +

                TQPtrList<TQDockWindow> TQMainWindow::dockWindows () const

                This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

                Returns the list of dock windows which belong to this main window, @@ -807,7 +807,7 @@ tip group too. This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

                -

                TQPtrList<TQToolBar> TQMainWindow::toolBars ( Dock dock ) const +

                TQPtrList<TQToolBar> TQMainWindow::toolBars ( Dock dock ) const

                Returns a list of all the toolbars which are in the dock dock area, regardless of their state. diff --git a/doc/html/ntqmemarray.html b/doc/html/ntqmemarray.html index cba6fdccf..de5956cca 100644 --- a/doc/html/ntqmemarray.html +++ b/doc/html/ntqmemarray.html @@ -101,7 +101,7 @@ only deal with simple types (i.e. C++ types, structs, and classes that have no constructors, destructors, or virtual functions). TQMemArray uses bitwise operations to copy and compare array elements. -

                The TQPtrVector collection class is also a kind of array. Like most +

                The TQPtrVector collection class is also a kind of array. Like most collection classes, it uses pointers to the contained items.

                TQMemArray uses explicit sharing with a diff --git a/doc/html/ntqptrcollection.html b/doc/html/ntqptrcollection.html deleted file mode 100644 index 7ba1bd2f8..000000000 --- a/doc/html/ntqptrcollection.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - -TQPtrCollection Class - - - - - - - -
                - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                TQPtrCollection Class Reference

                - -

                The TQPtrCollection class is the base class of most pointer-based TQt collections. -More... -

                All the functions in this class are reentrant when TQt is built with thread support.

                -

                #include <ntqptrcollection.h> -

                Inherited by TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. -

                List of all member functions. -

                Public Members

                - -

                Protected Members

                - -

                Detailed Description

                - - - -The TQPtrCollection class is the base class of most pointer-based TQt collections. -

                - -

                The TQPtrCollection class is an abstract base class for the TQt -collection classes TQDict, TQPtrList, -etc. TQt also includes value based collections, e.g. TQValueList, -TQMap, etc. -

                A TQPtrCollection only knows about the number of objects in the -collection and the deletion strategy (see setAutoDelete()). -

                A collection is implemented using the Item (generic collection -item) type, which is a void*. The template classes that create -the real collections cast the Item to the required type. -

                See also Collection Classes and Non-GUI Classes. - -


                Member Type Documentation

                -

                TQPtrCollection::Item

                - -

                This type is the generic "item" in a TQPtrCollection. - -


                Member Function Documentation

                -

                TQPtrCollection::TQPtrCollection () [protected] -

                - -

                Constructs a collection. The constructor is protected because -TQPtrCollection is an abstract class. - -

                TQPtrCollection::TQPtrCollection ( const TQPtrCollection & source ) [protected] -

                - -

                Constructs a copy of source with autoDelete() set to FALSE. The -constructor is protected because TQPtrCollection is an abstract -class. -

                Note that if source has autoDelete turned on, copying it will -risk memory leaks, reading freed memory, or both. - -

                TQPtrCollection::~TQPtrCollection () [virtual protected] -

                - -

                Destroys the collection. The destructor is protected because -TQPtrCollection is an abstract class. - -

                bool TQPtrCollection::autoDelete () const -

                - -

                Returns the setting of the auto-delete option. The default is FALSE. -

                See also setAutoDelete(). - -

                void TQPtrCollection::clear () [pure virtual] -

                - -

                Removes all objects from the collection. The objects will be -deleted if auto-delete has been enabled. -

                See also setAutoDelete(). - -

                Reimplemented in TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. -

                uint TQPtrCollection::count () const [pure virtual] -

                - -

                Returns the number of objects in the collection. - -

                Reimplemented in TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. -

                void TQPtrCollection::deleteItem ( Item d ) [pure virtual protected] -

                - -

                Reimplement this function if you want to be able to delete items. -

                Deletes an item that is about to be removed from the collection. -

                This function has to reimplemented in the collection template -classes, and should only delete item d if auto-delete has -been enabled. -

                Warning: If you reimplement this function you must also -reimplement the destructor and call the virtual function clear() -from your destructor. This is due to the way virtual functions and -destructors work in C++: Virtual functions in derived classes -cannot be called from a destructor. If you do not do this, your -deleteItem() function will not be called when the container is -destroyed. -

                See also newItem() and setAutoDelete(). - -

                Item TQPtrCollection::newItem ( Item d ) [virtual protected] -

                -Virtual function that creates a copy of an object that is about to -be inserted into the collection. -

                The default implementation returns the d pointer, i.e. no copy -is made. -

                This function is seldom reimplemented in the collection template -classes. It is not common practice to make a copy of something -that is being inserted. -

                See also deleteItem(). - -

                void TQPtrCollection::setAutoDelete ( bool enable ) -

                - -

                Sets the collection to auto-delete its contents if enable is -TRUE and to never delete them if enable is FALSE. -

                If auto-deleting is turned on, all the items in a collection are -deleted when the collection itself is deleted. This is convenient -if the collection has the only pointer to the items. -

                The default setting is FALSE, for safety. If you turn it on, be -careful about copying the collection - you might find yourself -with two collections deleting the same items. -

                Note that the auto-delete setting may also affect other functions -in subclasses. For example, a subclass that has a remove() -function will remove the item from its data structure, and if -auto-delete is enabled, will also delete the item. -

                See also autoDelete(). - -

                Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. - -


                -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                - -
                Copyright © 2007 -TrolltechTrademarks -
                TQt 3.3.8
                -
                - diff --git a/doc/html/ntqptrdict.html b/doc/html/ntqptrdict.html deleted file mode 100644 index 33ea4eb05..000000000 --- a/doc/html/ntqptrdict.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - -TQPtrDict Class - - - - - - - -
                - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                TQPtrDict Class Reference

                - -

                The TQPtrDict class is a template class that provides a dictionary based on void* keys. -More... -

                #include <ntqptrdict.h> -

                Inherits TQPtrCollection. -

                List of all member functions. -

                Public Members

                - -

                Important Inherited Members

                - -

                Protected Members

                -
                  -
                • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                • -
                • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item ) const
                • -
                -

                Detailed Description

                - - -The TQPtrDict class is a template class that provides a dictionary based on void* keys. -

                - -

                -

                TQPtrDict is implemented as a template class. Define a template -instance TQPtrDict<X> to create a dictionary that operates on -pointers to X (X*). -

                A dictionary is a collection of key-value pairs. The key is a -void* used for insertion, removal and lookup. The value is a -pointer. Dictionaries provide very fast insertion and lookup. -

                Example: -

                -    TQPtrDict<char> fields; // void* keys, char* values
                -
                -    TQLineEdit *le1 = new TQLineEdit( this );
                -    le1->setText( "Simpson" );
                -    TQLineEdit *le2 = new TQLineEdit( this );
                -    le2->setText( "Homer" );
                -    TQLineEdit *le3 = new TQLineEdit( this );
                -    le3->setText( "45" );
                -
                -    fields.insert( le1, "Surname" );
                -    fields.insert( le2, "Forename" );
                -    fields.insert( le3, "Age" );
                -
                -    TQPtrDictIterator<char> it( fields );
                -    for( ; it.current(); ++it )
                -        cout << it.current() << endl;
                -    cout << endl;
                -
                -    if ( fields[le1] ) // Prints "Surname: Simpson"
                -        cout << fields[le1] << ": " << le1->text() << endl; 
                -    if ( fields[le2] ) // Prints "Forename: Homer"
                -        cout << fields[le2] << ": " << le2->text() << endl; 
                -
                -    fields.remove( le1 ); // Removes le1 from the dictionary
                -    cout << le1->text() << endl; // Prints "Simpson"
                -    
                - -In this example we use a dictionary to add an extra property (a -char*) to the line edits we're using. -

                See TQDict for full details, including the choice of dictionary -size, and how deletions are handled. -

                See also TQPtrDictIterator, TQDict, TQAsciiDict, TQIntDict, Collection Classes, Collection Classes, and Non-GUI Classes. - -


                Member Function Documentation

                -

                TQPtrDict::TQPtrDict ( int size = 17 ) -

                - -

                Constructs a dictionary using an internal hash array with the size -size. -

                Setting size to a suitably large prime number (equal to or -greater than the expected number of entries) makes the hash -distribution better and improves lookup performance. - -

                TQPtrDict::TQPtrDict ( const TQPtrDict<type> & dict ) -

                - -

                Constructs a copy of dict. -

                Each item in dict is inserted into this dictionary. Only the -pointers are copied (shallow copy). - -

                TQPtrDict::~TQPtrDict () -

                - -

                Removes all items from the dictionary and destroys it. -

                All iterators that access this dictionary will be reset. -

                See also setAutoDelete(). - -

                bool TQPtrCollection::autoDelete () const -

                - -

                Returns the setting of the auto-delete option. The default is FALSE. -

                See also setAutoDelete(). - -

                void TQPtrDict::clear () [virtual] -

                - -

                Removes all items from the dictionary. -

                The removed items are deleted if auto-deletion is enabled. -

                All dictionary iterators that access this dictionary will be -reset. -

                See also remove(), take(), and setAutoDelete(). - -

                Reimplemented from TQPtrCollection. -

                uint TQPtrDict::count () const [virtual] -

                - -

                Returns the number of items in the dictionary. -

                See also isEmpty(). - -

                Reimplemented from TQPtrCollection. -

                type * TQPtrDict::find ( void * key ) const -

                - -

                Returns the item associated with key, or 0 if the key does not -exist in the dictionary. -

                If there are two or more items with equal keys, then the most -recently inserted item will be found. -

                Equivalent to operator[]. -

                See also operator[](). - -

                void TQPtrDict::insert ( void * key, const type * item ) -

                - -

                Inserts the key with the item into the dictionary. -

                Multiple items can have the same key, in which case only the last -item will be accessible using operator[](). -

                item may not be 0. -

                See also replace(). - -

                bool TQPtrDict::isEmpty () const -

                - -

                Returns TRUE if the dictionary is empty; otherwise returns FALSE. -

                See also count(). - -

                TQPtrDict<type> & TQPtrDict::operator= ( const TQPtrDict<type> & dict ) -

                - -

                Assigns dict to this dictionary and returns a reference to this -dictionary. -

                This dictionary is first cleared and then each item in dict is -inserted into the dictionary. Only the pointers are copied -(shallow copy), unless newItem() has been reimplemented. - -

                type * TQPtrDict::operator[] ( void * key ) const -

                - -

                Returns the item associated with key, or 0 if the key does not -exist in the dictionary. -

                If there are two or more items with equal keys, then the most -recently inserted item will be found. -

                Equivalent to the find() function. -

                See also find(). - -

                TQDataStream & TQPtrDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] -

                - -

                Reads a dictionary item from the stream s and returns a -reference to the stream. -

                The default implementation sets item to 0. -

                See also write(). - -

                bool TQPtrDict::remove ( void * key ) -

                - -

                Removes the item associated with key from the dictionary. -Returns TRUE if successful, i.e. if key is in the dictionary; -otherwise returns FALSE. -

                If there are two or more items with equal keys, then the most -recently inserted item will be removed. -

                The removed item is deleted if auto-deletion is enabled. -

                All dictionary iterators that refer to the removed item will be -set to point to the next item in the dictionary traversal order. -

                See also take(), clear(), and setAutoDelete(). - -

                void TQPtrDict::replace ( void * key, const type * item ) -

                - -

                If the dictionary has key key, this key's item is replaced with -item. If the dictionary doesn't contain key key, item is -inserted into the dictionary using key key. -

                item may not be 0. -

                Equivalent to -

                -        TQPtrDict<ItemType> dict;
                -            ...
                -        if ( dict.find( key ) )
                -            dict.remove( key );
                -        dict.insert( key, item );
                -    
                - -

                If there are two or more items with equal keys, then the most -recently inserted item will be replaced. -

                See also insert(). - -

                void TQPtrDict::resize ( uint newsize ) -

                - -

                Changes the size of the hash table to newsize. The contents of -the dictionary are preserved, but all iterators on the dictionary -become invalid. - -

                void TQPtrCollection::setAutoDelete ( bool enable ) -

                - -

                Sets the collection to auto-delete its contents if enable is -TRUE and to never delete them if enable is FALSE. -

                If auto-deleting is turned on, all the items in a collection are -deleted when the collection itself is deleted. This is convenient -if the collection has the only pointer to the items. -

                The default setting is FALSE, for safety. If you turn it on, be -careful about copying the collection - you might find yourself -with two collections deleting the same items. -

                Note that the auto-delete setting may also affect other functions -in subclasses. For example, a subclass that has a remove() -function will remove the item from its data structure, and if -auto-delete is enabled, will also delete the item. -

                See also autoDelete(). - -

                Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -

                uint TQPtrDict::size () const -

                - -

                Returns the size of the internal hash table (as specified in the -constructor). -

                See also count(). - -

                void TQPtrDict::statistics () const -

                - -

                Debugging-only function that prints out the dictionary -distribution using tqDebug(). - -

                type * TQPtrDict::take ( void * key ) -

                - -

                Takes the item associated with key out of the dictionary -without deleting it (even if auto-deletion is enabled). -

                If there are two or more items with equal keys, then the most -recently inserted item will be removed. -

                Returns a pointer to the item taken out, or 0 if the key does not -exist in the dictionary. -

                All dictionary iterators that refer to the taken item will be set -to point to the next item in the dictionary traversal order. -

                See also remove(), clear(), and setAutoDelete(). - -

                TQDataStream & TQPtrDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected] -

                - -

                Writes a dictionary item to the stream s and returns a -reference to the stream. -

                See also read(). - - -


                -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                - -
                Copyright © 2007 -TrolltechTrademarks -
                TQt 3.3.8
                -
                - diff --git a/doc/html/ntqptrlist.html b/doc/html/ntqptrlist.html deleted file mode 100644 index 4b00f377d..000000000 --- a/doc/html/ntqptrlist.html +++ /dev/null @@ -1,738 +0,0 @@ - - - - - -TQPtrList Class - - - - - - - -
                - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                TQPtrList Class Reference

                - -

                The TQPtrList class is a template class that provides a list. -More... -

                #include <ntqptrlist.h> -

                Inherits TQPtrCollection. -

                Inherited by TQObjectList and TQStrList. -

                List of all member functions. -

                Public Members

                - -

                Important Inherited Members

                - -

                Protected Members

                -
                  -
                • virtual int compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )
                • -
                • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                • -
                • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                • -
                -

                Detailed Description

                - - -The TQPtrList class is a template class that provides a list. -

                - -

                -

                TQValueList is an STL-compatible alternative to this class. -

                Define a template instance TQPtrList<X> to create a list that -operates on pointers to X (X*). -

                The list class is indexable and has a current - index and a current item. The -first item corresponds to index position 0. The current index is --1 if the current item is 0. -

                Items are inserted with prepend(), insert() or append(). Items are -removed with remove(), removeRef(), removeFirst() and -removeLast(). You can search for an item using find(), findNext(), -findRef() or findNextRef(). The list can be sorted with sort(). -You can count the number of occurrences of an item with contains() -or containsRef(). You can get a pointer to the current item with -current(), to an item at a particular index position in the list -with at() or to the first or last item with getFirst() and -getLast(). You can also iterate over the list with first(), -last(), next() and prev() (which all update current()). The list's -deletion property is set with setAutoDelete(). -

                -Example: -

                -    class Employee
                -    {
                -    public:
                -        Employee() : sn( 0 ) { }
                -        Employee( const TQString& forename, const TQString& surname, int salary )
                -            : fn( forename ), sn( surname ), sal( salary )
                -        { }
                -
                -        void setSalary( int salary ) { sal = salary; }
                -
                -        TQString forename() const { return fn; }
                -        TQString surname() const { return sn; }
                -        int salary() const { return sal; }
                -
                -    private:
                -        TQString fn;
                -        TQString sn;
                -        int sal;
                -    };
                -
                -    TQPtrList<Employee> list;
                -    list.setAutoDelete( TRUE ); // the list owns the objects
                -
                -    list.append( new Employee("John", "Doe", 50000) );
                -    list.append( new Employee("Jane", "Williams", 80000) );
                -    list.append( new Employee("Tom", "Jones", 60000) );
                -
                -    Employee *employee;
                -    for ( employee = list.first(); employee; employee = list.next() )
                -        cout << employee->surname().latin1() << ", " <<
                -                employee->forename().latin1() << " earns " <<
                -                employee->salary() << endl;
                -    cout << endl;
                -
                -    // very inefficient for big lists
                -    for ( uint i = 0; i < list.count(); ++i )
                -        if ( list.at(i) )
                -            cout << list.at( i )->surname().latin1() << endl;
                -    
                - -

                The output is -

                -    Doe, John earns 50000
                -    Williams, Jane earns 80000
                -    Jones, Tom earns 60000
                -
                -    Doe
                -    Williams
                -    Jones
                -    
                - -

                TQPtrList has several member functions for traversing the list, but -using a TQPtrListIterator can be more practical. Multiple list -iterators may traverse the same list, independently of each other -and of the current list item. -

                In the example above we make the call setAutoDelete(TRUE). -Enabling auto-deletion tells the list to delete items that are -removed. The default is to not delete items when they are removed -but this would cause a memory leak in the example because there -are no other references to the list items. -

                When inserting an item into a list only the pointer is copied, not -the item itself, i.e. a shallow copy. It is possible to make the -list copy all of the item's data (deep copy) when an item is -inserted. insert(), inSort() and append() call the virtual -function TQPtrCollection::newItem() for the item to be inserted. -Inherit a list and reimplement newItem() to have deep copies. -

                When removing an item from a list, the virtual function -TQPtrCollection::deleteItem() is called. TQPtrList's default -implementation is to delete the item if auto-deletion is enabled. -

                The virtual function compareItems() can be reimplemented to -compare two list items. This function is called from all list -functions that need to compare list items, for instance -remove(const type*). If you only want to deal with pointers, there -are functions that compare pointers instead, for instance -removeRef(const type*). These functions are somewhat faster than -those that call compareItems(). -

                List items are stored as void* in an internal TQLNode, which -also holds pointers to the next and previous list items. The -functions currentNode(), removeNode(), and takeNode() operate -directly on the TQLNode, but they should be used with care. The -data component of the node is available through TQLNode::getData(). -

                The TQStrList class defined in ntqstrlist.h is a list of char*. -It reimplements newItem(), deleteItem() and compareItems(). (But -see TQStringList for a list of Unicode TQStrings.) -

                See also TQPtrListIterator, Collection Classes, and Non-GUI Classes. - -


                Member Function Documentation

                -

                TQPtrList::TQPtrList () -

                - -

                Constructs an empty list. - -

                TQPtrList::TQPtrList ( const TQPtrList<type> & list ) -

                - -

                Constructs a copy of list. -

                Each item in list is appended to this -list. Only the pointers are copied (shallow copy). - -

                TQPtrList::~TQPtrList () -

                - -

                Removes all items from the list and destroys the list. -

                All list iterators that access this list will be reset. -

                See also setAutoDelete(). - -

                void TQPtrList::append ( const type * item ) -

                - -

                Inserts the item at the end of the list. -

                The inserted item becomes the current list item. This is -equivalent to insert( count(), item ). -

                item must not be 0. -

                See also insert(), current(), and prepend(). - -

                Examples: customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, grapher/grapher.cpp, listviews/listviews.cpp, listviews/listviews.h, and qwerty/qwerty.cpp. -

                type * TQPtrList::at ( uint index ) -

                - -

                Returns a pointer to the item at position index in the list, or -0 if the index is out of range. -

                Sets the current list item to this item if index is valid. The -valid range is 0..(count() - 1) inclusive. -

                This function is very efficient. It starts scanning from the first -item, last item, or current item, whichever is closest to index. -

                See also current(). - -

                Examples: customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. -

                int TQPtrList::at () const -

                - -

                This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

                Returns the index of the current list item. The returned value is --1 if the current item is 0. -

                See also current(). - -

                bool TQPtrCollection::autoDelete () const -

                - -

                Returns the setting of the auto-delete option. The default is FALSE. -

                See also setAutoDelete(). - -

                void TQPtrList::clear () [virtual] -

                - -

                Removes all items from the list. -

                The removed items are deleted if auto-deletion is enabled. -

                All list iterators that access this list will be reset. -

                See also remove(), take(), and setAutoDelete(). - -

                Reimplemented from TQPtrCollection. -

                int TQPtrList::compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 ) [virtual protected] -

                - -

                This virtual function compares two list items. -

                Returns: -

                  -
                • zero if item1 == item2 -
                • nonzero if item1 != item2 -
                -

                This function returns int rather than bool so that -reimplementations can return three values and use it to sort by: -

                  -
                • 0 if item1 == item2 -
                • > 0 (positive integer) if item1 > item2 -
                • < 0 (negative integer) if item1 < item2 -
                -

                inSort() requires that compareItems() is implemented as described -here. -

                This function should not modify the list because some const -functions call compareItems(). -

                The default implementation compares the pointers. - -

                uint TQPtrList::contains ( const type * item ) const -

                - -

                Returns the number of occurrences of item in the list. -

                The compareItems() function is called when looking for the item -in the list. If compareItems() is not reimplemented, it is more -efficient to call containsRef(). -

                This function does not affect the current list item. -

                See also containsRef() and compareItems(). - -

                uint TQPtrList::containsRef ( const type * item ) const -

                - -

                Returns the number of occurrences of item in the list. -

                Calling this function is much faster than contains() because -contains() compares item with each list item using -compareItems(), whereas his function only compares the pointers. -

                This function does not affect the current list item. -

                See also contains(). - -

                uint TQPtrList::count () const [virtual] -

                - -

                Returns the number of items in the list. -

                See also isEmpty(). - -

                Examples: customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, grapher/grapher.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. -

                Reimplemented from TQPtrCollection. -

                type * TQPtrList::current () const -

                - -

                Returns a pointer to the current list item. The current item may -be 0 (implies that the current index is -1). -

                See also at(). - -

                TQLNode * TQPtrList::currentNode () const -

                - -

                Returns a pointer to the current list node. -

                The node can be kept and removed later using removeNode(). The -advantage is that the item can be removed directly without -searching the list. -

                Warning: Do not call this function unless you are an expert. -

                See also removeNode(), takeNode(), and current(). - -

                int TQPtrList::find ( const type * item ) -

                - -

                Finds the first occurrence of item in the list. -

                If the item is found, the list sets the current item to point to -the found item and returns the index of this item. If the item is -not found, the list sets the current item to 0, the current -index to -1, and returns -1. -

                The compareItems() function is called when searching for the item -in the list. If compareItems() is not reimplemented, it is more -efficient to call findRef(). -

                See also findNext(), findRef(), compareItems(), and current(). - -

                int TQPtrList::findNext ( const type * item ) -

                - -

                Finds the next occurrence of item in the list, starting from -the current list item. -

                If the item is found, the list sets the current item to point to -the found item and returns the index of this item. If the item is -not found, the list sets the current item to 0, the current -index to -1, and returns -1. -

                The compareItems() function is called when searching for the item -in the list. If compareItems() is not reimplemented, it is more -efficient to call findNextRef(). -

                See also find(), findNextRef(), compareItems(), and current(). - -

                int TQPtrList::findNextRef ( const type * item ) -

                - -

                Finds the next occurrence of item in the list, starting from -the current list item. -

                If the item is found, the list sets the current item to point to -the found item and returns the index of this item. If the item is -not found, the list sets the current item to 0, the current -index to -1, and returns -1. -

                Calling this function is much faster than findNext() because -findNext() compares item with each list item using -compareItems(), whereas this function only compares the pointers. -

                See also findRef(), findNext(), and current(). - -

                int TQPtrList::findRef ( const type * item ) -

                - -

                Finds the first occurrence of item in the list. -

                If the item is found, the list sets the current item to point to -the found item and returns the index of this item. If the item is -not found, the list sets the current item to 0, the current -index to -1, and returns -1. -

                Calling this function is much faster than find() because find() -compares item with each list item using compareItems(), whereas -this function only compares the pointers. -

                See also findNextRef(), find(), and current(). - -

                type * TQPtrList::first () -

                - -

                Returns a pointer to the first item in the list and makes this the -current list item; returns 0 if the list is empty. -

                See also getFirst(), last(), next(), prev(), and current(). - -

                Examples: grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. -

                type * TQPtrList::getFirst () const -

                - -

                Returns a pointer to the first item in the list, or 0 if the list -is empty. -

                This function does not affect the current list item. -

                See also first() and getLast(). - -

                type * TQPtrList::getLast () const -

                - -

                Returns a pointer to the last item in the list, or 0 if the list -is empty. -

                This function does not affect the current list item. -

                See also last() and getFirst(). - -

                void TQPtrList::inSort ( const type * item ) -

                - -

                Inserts the item at its sorted position in the list. -

                The sort order depends on the virtual compareItems() function. All -items must be inserted with inSort() to maintain the sorting -order. -

                The inserted item becomes the current list item. -

                item must not be 0. -

                Warning: Using inSort() is slow. An alternative, especially if you -have lots of items, is to simply append() or insert() them and -then use sort(). inSort() takes up to O(n) compares. That means -inserting n items in your list will need O(n^2) compares whereas -sort() only needs O(n*log n) for the same task. So use inSort() -only if you already have a presorted list and want to insert just -a few additional items. -

                See also insert(), compareItems(), current(), and sort(). - -

                bool TQPtrList::insert ( uint index, const type * item ) -

                - -

                Inserts the item at position index in the list. -

                Returns TRUE if successful, i.e. if index is in range; -otherwise returns FALSE. The valid range is 0 to count() -(inclusively). The item is appended if index == count(). -

                The inserted item becomes the current list item. -

                item must not be 0. -

                See also append(), current(), and replace(). - -

                bool TQPtrList::isEmpty () const -

                - -

                Returns TRUE if the list is empty; otherwise returns FALSE. -

                See also count(). - -

                type * TQPtrList::last () -

                - -

                Returns a pointer to the last item in the list and makes this the -current list item; returns 0 if the list is empty. -

                See also getLast(), first(), next(), prev(), and current(). - -

                type * TQPtrList::next () -

                - -

                Returns a pointer to the item succeeding the current item. Returns -0 if the current item is 0 or equal to the last item. -

                Makes the succeeding item current. If the current item before this -function call was the last item, the current item will be set to -0. If the current item was 0, this function does nothing. -

                See also first(), last(), prev(), and current(). - -

                Examples: grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. -

                bool TQPtrList::operator!= ( const TQPtrList<type> & list ) const -

                - -

                Compares this list with list. Returns TRUE if the lists contain -different data; otherwise returns FALSE. - -

                TQPtrList<type> & TQPtrList::operator= ( const TQPtrList<type> & list ) -

                - -

                Assigns list to this list and returns a reference to this list. -

                This list is first cleared and then each item in list is appended to this list. Only the pointers are -copied (shallow copy) unless newItem() has been reimplemented. - -

                bool TQPtrList::operator== ( const TQPtrList<type> & list ) const -

                - -

                Compares this list with list. Returns TRUE if the lists contain -the same data; otherwise returns FALSE. - -

                void TQPtrList::prepend ( const type * item ) -

                - -

                Inserts the item at the start of the list. -

                The inserted item becomes the current list item. This is -equivalent to insert( 0, item ). -

                item must not be 0. -

                See also append(), insert(), and current(). - -

                type * TQPtrList::prev () -

                - -

                Returns a pointer to the item preceding the current item. Returns -0 if the current item is 0 or equal to the first item. -

                Makes the preceding item current. If the current item before this -function call was the first item, the current item will be set to -0. If the current item was 0, this function does nothing. -

                See also first(), last(), next(), and current(). - -

                TQDataStream & TQPtrList::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] -

                - -

                Reads a list item from the stream s and returns a reference to -the stream. -

                The default implementation sets item to 0. -

                See also write(). - -

                bool TQPtrList::remove ( uint index ) -

                - -

                Removes the item at position index in the list. -

                Returns TRUE if successful, i.e. if index is in range; -otherwise returns FALSE. The valid range is 0..(count() - 1) -inclusive. -

                The removed item is deleted if auto-deletion is enabled. -

                The item after the removed item becomes the new current list item -if the removed item is not the last item in the list. If the last -item is removed, the new last item becomes the current item. -

                All list iterators that refer to the removed item will be set to -point to the new current item. -

                See also take(), clear(), setAutoDelete(), current(), and removeRef(). - -

                bool TQPtrList::remove () -

                - -

                This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

                Removes the current list item. -

                Returns TRUE if successful, i.e. if the current item isn't 0; -otherwise returns FALSE. -

                The removed item is deleted if auto-deletion is enabled. -

                The item after the removed item becomes the new current list item -if the removed item is not the last item in the list. If the last -item is removed, the new last item becomes the current item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the removed item will be set to -point to the new current item. -

                See also take(), clear(), setAutoDelete(), current(), and removeRef(). - -

                bool TQPtrList::remove ( const type * item ) -

                - -

                This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

                Removes the first occurrence of item from the list. -

                Returns TRUE if successful, i.e. if item is in the list; -otherwise returns FALSE. -

                The removed item is deleted if auto-deletion is enabled. -

                The compareItems() function is called when searching for the item -in the list. If compareItems() is not reimplemented, it is more -efficient to call removeRef(). -

                If item is NULL then the current item is removed from the list. -

                The item after the removed item becomes the new current list item -if the removed item is not the last item in the list. If the last -item is removed, the new last item becomes the current item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the removed item will be set to -point to the new current item. -

                See also removeRef(), take(), clear(), setAutoDelete(), compareItems(), and current(). - -

                bool TQPtrList::removeFirst () -

                - -

                Removes the first item from the list. Returns TRUE if successful, -i.e. if the list isn't empty; otherwise returns FALSE. -

                The removed item is deleted if auto-deletion is enabled. -

                The first item in the list becomes the new current list item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the removed item will be set to -point to the new current item. -

                See also removeLast(), setAutoDelete(), current(), and remove(). - -

                bool TQPtrList::removeLast () -

                - -

                Removes the last item from the list. Returns TRUE if successful, -i.e. if the list isn't empty; otherwise returns FALSE. -

                The removed item is deleted if auto-deletion is enabled. -

                The last item in the list becomes the new current list item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the removed item will be set to -point to the new current item. -

                See also removeFirst(), setAutoDelete(), and current(). - -

                void TQPtrList::removeNode ( TQLNode * node ) -

                - -

                Removes the node from the list. -

                This node must exist in the list, otherwise the program may crash. -

                The removed item is deleted if auto-deletion is enabled. -

                The first item in the list will become the new current list item. -The current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the removed item will be set to -point to the item succeeding this item or to the preceding item if -the removed item was the last item. -

                Warning: Do not call this function unless you are an expert. -

                See also takeNode(), currentNode(), remove(), and removeRef(). - -

                bool TQPtrList::removeRef ( const type * item ) -

                - -

                Removes the first occurrence of item from the list. -

                Returns TRUE if successful, i.e. if item is in the list; -otherwise returns FALSE. -

                The removed item is deleted if auto-deletion is enabled. -

                Equivalent to: -

                -        if ( list.findRef( item ) != -1 )
                -            list.remove();
                -    
                - -

                The item after the removed item becomes the new current list item -if the removed item is not the last item in the list. If the last -item is removed, the new last item becomes the current item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the removed item will be set to -point to the new current item. -

                See also remove(), clear(), setAutoDelete(), and current(). - -

                bool TQPtrList::replace ( uint index, const type * item ) -

                - -

                Replaces the item at position index with the new item. -

                Returns TRUE if successful, i.e. index is in the range 0 to -count()-1. -

                See also append(), current(), and insert(). - -

                void TQPtrCollection::setAutoDelete ( bool enable ) -

                - -

                Sets the collection to auto-delete its contents if enable is -TRUE and to never delete them if enable is FALSE. -

                If auto-deleting is turned on, all the items in a collection are -deleted when the collection itself is deleted. This is convenient -if the collection has the only pointer to the items. -

                The default setting is FALSE, for safety. If you turn it on, be -careful about copying the collection - you might find yourself -with two collections deleting the same items. -

                Note that the auto-delete setting may also affect other functions -in subclasses. For example, a subclass that has a remove() -function will remove the item from its data structure, and if -auto-delete is enabled, will also delete the item. -

                See also autoDelete(). - -

                Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -

                void TQPtrList::sort () -

                - -

                Sorts the list by the result of the virtual compareItems() -function. -

                The heap sort algorithm is used for sorting. It sorts n items with -O(n*log n) comparisons. This is the asymptotic optimal solution of -the sorting problem. -

                See also inSort(). - -

                type * TQPtrList::take ( uint index ) -

                - -

                Takes the item at position index out of the list without -deleting it (even if auto-deletion -is enabled). -

                Returns a pointer to the item taken out of the list, or 0 if the -index is out of range. The valid range is 0..(count() - 1) -inclusive. -

                The item after the removed item becomes the new current list item -if the removed item is not the last item in the list. If the last -item is removed, the new last item becomes the current item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the taken item will be set to -point to the new current item. -

                See also remove(), clear(), and current(). - -

                Examples: customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp. -

                type * TQPtrList::take () -

                - -

                This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

                Takes the current item out of the list without deleting it (even -if auto-deletion is enabled). -

                Returns a pointer to the item taken out of the list, or 0 if -the current item is 0. -

                The item after the removed item becomes the new current list item -if the removed item is not the last item in the list. If the last -item is removed, the new last item becomes the current item. The -current item is set to 0 if the list becomes empty. -

                All list iterators that refer to the taken item will be set to -point to the new current item. -

                See also remove(), clear(), and current(). - -

                type * TQPtrList::takeNode ( TQLNode * node ) -

                - -

                Takes the node out of the list without deleting its item (even -if auto-deletion is enabled). -Returns a pointer to the item taken out of the list. -

                This node must exist in the list, otherwise the program may crash. -

                The first item in the list becomes the new current list item. -

                All list iterators that refer to the taken item will be set to -point to the item succeeding this item or to the preceding item if -the taken item was the last item. -

                Warning: Do not call this function unless you are an expert. -

                See also removeNode() and currentNode(). - -

                void TQPtrList::toVector ( TQGVector * vec ) const -

                - -

                Stores all list items in the vector vec. -

                The vector must be of the same item type, otherwise the result -will be undefined. - -

                TQDataStream & TQPtrList::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] -

                - -

                Writes a list item, item to the stream s and returns a -reference to the stream. -

                The default implementation does nothing. -

                See also read(). - - -


                -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                - -
                Copyright © 2007 -TrolltechTrademarks -
                TQt 3.3.8
                -
                - diff --git a/doc/html/ntqptrqueue.html b/doc/html/ntqptrqueue.html deleted file mode 100644 index b2ac1a832..000000000 --- a/doc/html/ntqptrqueue.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - -TQPtrQueue Class - - - - - - - -
                - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                TQPtrQueue Class Reference

                - -

                The TQPtrQueue class is a template class that provides a queue. -More... -

                #include <ntqptrqueue.h> -

                List of all member functions. -

                Public Members

                - -

                Protected Members

                -
                  -
                • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                • -
                • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                • -
                -

                Detailed Description

                - - -The TQPtrQueue class is a template class that provides a queue. -

                - -

                TQValueVector can be used as an STL-compatible alternative to this -class. -

                A template instance TQPtrQueue<X> is a queue that operates on -pointers to X (X*). -

                A queue is a first in, first out structure. Items are added to the -tail of the queue with enqueue() and retrieved from the head with -dequeue(). You can peek at the head item without dequeing it using -head(). -

                You can control the queue's deletion policy with setAutoDelete(). -

                For compatibility with the TQPtrCollection classes, current() and -remove() are provided; both operate on the head(). -

                See also TQPtrList, TQPtrStack, Collection Classes, and Non-GUI Classes. - -


                Member Function Documentation

                -

                TQPtrQueue::TQPtrQueue () -

                - -

                Creates an empty queue with autoDelete() set to FALSE. - -

                TQPtrQueue::TQPtrQueue ( const TQPtrQueue<type> & queue ) -

                - -

                Creates a queue from queue. -

                Only the pointers are copied; the items are not. The autoDelete() -flag is set to FALSE. - -

                TQPtrQueue::~TQPtrQueue () -

                - -

                Destroys the queue. Items in the queue are deleted if autoDelete() -is TRUE. - -

                bool TQPtrQueue::autoDelete () const -

                - -

                Returns the setting of the auto-delete option. The default is -FALSE. -

                See also setAutoDelete(). - -

                void TQPtrQueue::clear () -

                - -

                Removes all items from the queue, and deletes them if autoDelete() -is TRUE. -

                See also remove(). - -

                uint TQPtrQueue::count () const -

                - -

                Returns the number of items in the queue. -

                See also isEmpty(). - -

                type * TQPtrQueue::current () const -

                - -

                Returns a pointer to the head item in the queue. The queue is not -changed. Returns 0 if the queue is empty. -

                See also dequeue() and isEmpty(). - -

                type * TQPtrQueue::dequeue () -

                - -

                Takes the head item from the queue and returns a pointer to it. -Returns 0 if the queue is empty. -

                See also enqueue() and count(). - -

                void TQPtrQueue::enqueue ( const type * d ) -

                - -

                Adds item d to the tail of the queue. -

                See also count() and dequeue(). - -

                type * TQPtrQueue::head () const -

                - -

                Returns a pointer to the head item in the queue. The queue is not -changed. Returns 0 if the queue is empty. -

                See also dequeue() and isEmpty(). - -

                bool TQPtrQueue::isEmpty () const -

                - -

                Returns TRUE if the queue is empty; otherwise returns FALSE. -

                See also count(), dequeue(), and head(). - -

                TQPtrQueue::operator type * () const -

                - -

                Returns a pointer to the head item in the queue. The queue is not -changed. Returns 0 if the queue is empty. -

                See also dequeue() and isEmpty(). - -

                TQPtrQueue<type> & TQPtrQueue::operator= ( const TQPtrQueue<type> & queue ) -

                - -

                Assigns queue to this queue and returns a reference to this -queue. -

                This queue is first cleared and then each item in queue is -enqueued to this queue. Only the pointers are copied. -

                Warning: The autoDelete() flag is not modified. If it it TRUE for -both queue and this queue, deleting the two lists will cause double-deletion of the items. - -

                TQDataStream & TQPtrQueue::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] -

                - -

                Reads a queue item, item, from the stream s and returns a -reference to the stream. -

                The default implementation sets item to 0. -

                See also write(). - -

                bool TQPtrQueue::remove () -

                - -

                Removes the head item from the queue, and returns TRUE if there -was an item, i.e. the queue wasn't empty; otherwise returns FALSE. -

                The item is deleted if autoDelete() is TRUE. -

                See also head(), isEmpty(), and dequeue(). - -

                void TQPtrQueue::setAutoDelete ( bool enable ) -

                - -

                Sets the queue to auto-delete its contents if enable is TRUE -and not to delete them if enable is FALSE. -

                If auto-deleting is turned on, all the items in a queue are -deleted when the queue itself is deleted. This can be quite -convenient if the queue has the only pointer to the items. -

                The default setting is FALSE, for safety. If you turn it on, be -careful about copying the queue: you might find yourself with two -queues deleting the same items. -

                See also autoDelete(). - -

                TQDataStream & TQPtrQueue::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] -

                - -

                Writes a queue item, item, to the stream s and returns a -reference to the stream. -

                The default implementation does nothing. -

                See also read(). - - -


                -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                - -
                Copyright © 2007 -TrolltechTrademarks -
                TQt 3.3.8
                -
                - diff --git a/doc/html/ntqptrstack.html b/doc/html/ntqptrstack.html deleted file mode 100644 index 7c1964ae2..000000000 --- a/doc/html/ntqptrstack.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - -TQPtrStack Class - - - - - - - -
                - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                TQPtrStack Class Reference

                - -

                The TQPtrStack class is a template class that provides a stack. -More... -

                #include <ntqptrstack.h> -

                List of all member functions. -

                Public Members

                - -

                Protected Members

                -
                  -
                • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                • -
                • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                • -
                -

                Detailed Description

                - - -The TQPtrStack class is a template class that provides a stack. -

                -

                TQValueStack is an STL-compatible alternative to this class. -

                Define a template instance TQPtrStack<X> to create a stack that -operates on pointers to X, (X*). -

                A stack is a last in, first out (LIFO) structure. Items are added -to the top of the stack with push() and retrieved from the top -with pop(). Use top() to get a reference to the top element -without changing the stack. -

                You can control the stack's deletion policy with setAutoDelete(). -

                For compatibility with the TQPtrCollection classes current() and -remove() are provided; they both operate on the top(). -

                See also TQPtrList, TQPtrQueue, and Non-GUI Classes. - -


                Member Function Documentation

                -

                TQPtrStack::TQPtrStack () -

                - -

                Creates an empty stack. - -

                TQPtrStack::TQPtrStack ( const TQPtrStack<type> & s ) -

                - -

                Creates a stack by making a shallow copy of another stack s. - -

                TQPtrStack::~TQPtrStack () -

                - -

                Destroys the stack. All items will be deleted if autoDelete() is -TRUE. - -

                bool TQPtrStack::autoDelete () const -

                - -

                The same as TQPtrCollection::autoDelete(). -

                See also setAutoDelete(). - -

                void TQPtrStack::clear () -

                - -

                Removes all items from the stack, deleting them if autoDelete() is -TRUE. -

                See also remove(). - -

                uint TQPtrStack::count () const -

                - -

                Returns the number of items in the stack. -

                See also isEmpty(). - -

                type * TQPtrStack::current () const -

                - -

                Returns a pointer to the top item on the stack (most recently -pushed). The stack is not changed. Returns 0 if the stack is -empty. - -

                bool TQPtrStack::isEmpty () const -

                - -

                Returns TRUE if the stack contains no elements; otherwise returns -FALSE. - -

                TQPtrStack::operator type * () const -

                - -

                Returns a pointer to the top item on the stack (most recently -pushed). The stack is not changed. Returns 0 if the stack is -empty. - -

                TQPtrStack<type> & TQPtrStack::operator= ( const TQPtrStack<type> & s ) -

                - -

                Sets the contents of this stack by making a shallow copy of -another stack s. Elements currently in this stack will be -deleted if autoDelete() is TRUE. - -

                type * TQPtrStack::pop () -

                - -

                Removes the top item from the stack and returns it. The stack must -not be empty. - -

                void TQPtrStack::push ( const type * d ) -

                - -

                Adds an element d to the top of the stack. Last in, first out. - -

                TQDataStream & TQPtrStack::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] -

                - -

                Reads a stack item, item, from the stream s and returns a -reference to the stream. -

                The default implementation sets item to 0. -

                See also write(). - -

                bool TQPtrStack::remove () -

                - -

                Removes the top item from the stack and deletes it if autoDelete() -is TRUE. Returns TRUE if there was an item to pop; otherwise -returns FALSE. -

                See also clear(). - -

                void TQPtrStack::setAutoDelete ( bool enable ) -

                - -

                Defines whether this stack auto-deletes its contents. The same as -TQPtrCollection::setAutoDelete(). -

                If enable is TRUE the stack auto-deletes its contents; if enable is FALSE the stack does not delete its contents. -

                See also autoDelete(). - -

                type * TQPtrStack::top () const -

                - -

                Returns a pointer to the top item on the stack (most recently -pushed). The stack is not changed. Returns 0 if the stack is -empty. - -

                TQDataStream & TQPtrStack::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] -

                - -

                Writes a stack item, item, to the stream s and returns a -reference to the stream. -

                The default implementation does nothing. -

                See also read(). - - -


                -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                - -
                Copyright © 2007 -TrolltechTrademarks -
                TQt 3.3.8
                -
                - diff --git a/doc/html/ntqptrvector.html b/doc/html/ntqptrvector.html deleted file mode 100644 index c4eef2b39..000000000 --- a/doc/html/ntqptrvector.html +++ /dev/null @@ -1,393 +0,0 @@ - - - - - -TQPtrVector Class - - - - - - - -
                - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                TQPtrVector Class Reference

                - -

                The TQPtrVector class is a template collection class that -provides a vector (array). -More... -

                #include <ntqptrvector.h> -

                Inherits TQPtrCollection. -

                List of all member functions. -

                Public Members

                - -

                Important Inherited Members

                - -

                Protected Members

                -
                  -
                • virtual int compareItems ( TQPtrCollection::Item d1, TQPtrCollection::Item d2 )
                • -
                • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                • -
                • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                • -
                -

                Detailed Description

                - - -The TQPtrVector class is a template collection class that -provides a vector (array). -

                -

                -

                TQValueVector is an STL-compatible alternative to this class. -

                TQPtrVector is implemented as a template class. Defines a template -instance TQPtrVector<X> to create a vector that contains pointers -to X (X*). -

                A vector is the same as an array. The main difference between -TQPtrVector and TQMemArray is that TQPtrVector stores pointers to the -elements, whereas TQMemArray stores the elements themselves (i.e. -TQMemArray is value-based and TQPtrVector is pointer-based). -

                Items are added to the vector using insert() or fill(). Items are -removed with remove(). You can get a pointer to an item at a -particular index position using at(). -

                Unless otherwise stated, all functions that remove items from the -vector will also delete the element pointed to if auto-deletion is enabled. By default, -auto-deletion is disabled; see setAutoDelete(). This behaviour can -be changed in a subclass by reimplementing the virtual function -deleteItem(). -

                Functions that compare items (find() and sort() for example) will -do so using the virtual function compareItems(). The default -implementation of this function only compares the pointer values. -Reimplement compareItems() in a subclass to get searching and -sorting based on the item contents. You can perform a linear -search for a pointer in the vector using findRef(), or a binary -search (of a sorted vector) using bsearch(). You can count the -number of times an item appears in the vector with contains() or -containsRef(). -

                See also TQMemArray and Non-GUI Classes. - -


                Member Function Documentation

                -

                TQPtrVector::TQPtrVector () -

                - -

                Constructs a null vector. -

                See also isNull(). - -

                TQPtrVector::TQPtrVector ( uint size ) -

                - -

                Constructs an vector with room for size items. Makes a null -vector if size == 0. -

                All size positions in the vector are initialized to 0. -

                See also size(), resize(), and isNull(). - -

                TQPtrVector::TQPtrVector ( const TQPtrVector<type> & v ) -

                - -

                Constructs a copy of v. Only the pointers are copied (i.e. -shallow copy). - -

                TQPtrVector::~TQPtrVector () -

                - -

                Removes all items from the vector, and destroys the vector itself. -

                See also clear(). - -

                type * TQPtrVector::at ( uint i ) const -

                - -

                Returns the item at position i, or 0 if there is no item at -that position. i must be less than size(). - -

                bool TQPtrCollection::autoDelete () const -

                - -

                Returns the setting of the auto-delete option. The default is FALSE. -

                See also setAutoDelete(). - -

                int TQPtrVector::bsearch ( const type * d ) const -

                - -

                In a sorted array, finds the first occurrence of d using a -binary search. For a sorted array, this is generally much faster -than find(), which performs a linear search. -

                Returns the position of d, or -1 if d could not be found. d must not be 0. -

                Compares items using the virtual function compareItems(). -

                See also sort() and find(). - -

                void TQPtrVector::clear () [virtual] -

                - -

                Removes all items from the vector, and destroys the vector itself. -

                The vector becomes a null vector. -

                See also isNull(). - -

                Reimplemented from TQPtrCollection. -

                int TQPtrVector::compareItems ( TQPtrCollection::Item d1, TQPtrCollection::Item d2 ) [virtual protected] -

                - -

                This virtual function compares two list items. -

                Returns: -

                  -
                • zero if d1 == d2 -
                • nonzero if d1 != d2 -
                -

                This function returns int rather than bool so that -reimplementations can return one of three values and use it to -sort by: -

                  -
                • 0 if d1 == d2 -
                • > 0 (positive integer) if d1 > d2 -
                • < 0 (negative integer) if d1 < d2 -
                -

                The sort() and bsearch() functions require compareItems() to be -implemented as described here. -

                This function should not modify the vector because some const -functions call compareItems(). - -

                uint TQPtrVector::contains ( const type * d ) const -

                - -

                Returns the number of occurrences of item d in the vector. -

                Compares items using the virtual function compareItems(). -

                See also containsRef(). - -

                uint TQPtrVector::containsRef ( const type * d ) const -

                - -

                Returns the number of occurrences of the item pointer d in the -vector. -

                This function does not use compareItems() to compare items. -

                See also findRef(). - -

                uint TQPtrVector::count () const [virtual] -

                - -

                Returns the number of items in the vector. The vector is empty if -count() == 0. -

                See also isEmpty(), size(), and isNull(). - -

                Reimplemented from TQPtrCollection. -

                type ** TQPtrVector::data () const -

                - -

                Returns a pointer to the actual vector data, which is an array of -type*. -

                The vector is a null vector if data() == 0 (null pointer). -

                See also isNull(). - -

                bool TQPtrVector::fill ( const type * d, int size = -1 ) -

                - -

                Inserts item d in all positions in the vector. Any existing -items are removed. If d is 0, the vector becomes empty. -

                If size >= 0, the vector is first resized to size. By -default, size is -1. -

                Returns TRUE if successful, i.e. size is the same as the -current size, or size is larger and the memory has successfully -been allocated; otherwise returns FALSE. -

                See also resize(), insert(), and isEmpty(). - -

                int TQPtrVector::find ( const type * d, uint i = 0 ) const -

                - -

                Finds the first occurrence of item d in the vector using a -linear search. The search starts at position i, which must be -less than size(). i is by default 0; i.e. the search starts at -the start of the vector. -

                Returns the position of d, or -1 if d could not be found. -

                Compares items using the virtual function compareItems(). -

                Use the much faster bsearch() to search a sorted vector. -

                See also findRef() and bsearch(). - -

                int TQPtrVector::findRef ( const type * d, uint i = 0 ) const -

                - -

                Finds the first occurrence of the item pointer d in the vector -using a linear search. The search starts at position i, which -must be less than size(). i is by default 0; i.e. the search -starts at the start of the vector. -

                Returns the position of d, or -1 if d could not be found. -

                This function does not use compareItems() to compare items. -

                Use the much faster bsearch() to search a sorted vector. -

                See also find() and bsearch(). - -

                bool TQPtrVector::insert ( uint i, const type * d ) -

                - -

                Sets position i in the vector to contain the item d. i -must be less than size(). Any previous element in position i is -removed. -

                See also at(). - -

                bool TQPtrVector::isEmpty () const -

                - -

                Returns TRUE if the vector is empty; otherwise returns FALSE. -

                See also count(). - -

                bool TQPtrVector::isNull () const -

                - -

                Returns TRUE if the vector is null; otherwise returns FALSE. -

                A null vector has size() == 0 and data() == 0. -

                See also size(). - -

                TQPtrVector<type> & TQPtrVector::operator= ( const TQPtrVector<type> & v ) -

                - -

                Assigns v to this vector and returns a reference to this -vector. -

                This vector is first cleared and then all the items from v are -copied into the vector. Only the pointers are copied (i.e. shallow copy). -

                See also clear(). - -

                bool TQPtrVector::operator== ( const TQPtrVector<type> & v ) const -

                - -

                Returns TRUE if this vector and v are equal; otherwise returns -FALSE. - -

                type * TQPtrVector::operator[] ( int i ) const -

                - -

                Returns the item at position i, or 0 if there is no item at -that position. i must be less than size(). -

                Equivalent to at( i ). -

                See also at(). - -

                TQDataStream & TQPtrVector::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] -

                - -

                Reads a vector item, item, from the stream s and returns a -reference to the stream. -

                The default implementation sets item to 0. -

                See also write(). - -

                bool TQPtrVector::remove ( uint i ) -

                - -

                Removes the item at position i in the vector, if there is one. -i must be less than size(). -

                Returns TRUE if i is within range; otherwise returns FALSE. -

                See also take() and at(). - -

                bool TQPtrVector::resize ( uint size ) -

                - -

                Resizes (expands or shrinks) the vector to size elements. The -vector becomes a null vector if size == 0. -

                Any items at position size or beyond in the vector are removed. -New positions are initialized to 0. -

                Returns TRUE if successful, i.e. if the memory was successfully -allocated; otherwise returns FALSE. -

                See also size() and isNull(). - -

                void TQPtrCollection::setAutoDelete ( bool enable ) -

                - -

                Sets the collection to auto-delete its contents if enable is -TRUE and to never delete them if enable is FALSE. -

                If auto-deleting is turned on, all the items in a collection are -deleted when the collection itself is deleted. This is convenient -if the collection has the only pointer to the items. -

                The default setting is FALSE, for safety. If you turn it on, be -careful about copying the collection - you might find yourself -with two collections deleting the same items. -

                Note that the auto-delete setting may also affect other functions -in subclasses. For example, a subclass that has a remove() -function will remove the item from its data structure, and if -auto-delete is enabled, will also delete the item. -

                See also autoDelete(). - -

                Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -

                uint TQPtrVector::size () const -

                - -

                Returns the size of the vector, i.e. the number of vector -positions. This is also the maximum number of items the vector can -hold. -

                The vector is a null vector if size() == 0. -

                See also isNull(), resize(), and count(). - -

                void TQPtrVector::sort () -

                - -

                Sorts the items in ascending order. Any empty positions will be -put last. -

                Compares items using the virtual function compareItems(). -

                See also bsearch(). - -

                type * TQPtrVector::take ( uint i ) -

                - -

                Returns the item at position i in the vector, and removes that -item from the vector. i must be less than size(). If there is -no item at position i, 0 is returned. -

                Unlike remove(), this function does not call deleteItem() for -the removed item. -

                See also remove() and at(). - -

                TQDataStream & TQPtrVector::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] -

                - -

                Writes a vector item, item, to the stream s and returns a -reference to the stream. -

                The default implementation does nothing. -

                See also read(). - - -


                -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                - -
                Copyright © 2007 -TrolltechTrademarks -
                TQt 3.3.8
                -
                - diff --git a/doc/html/ntqstrlist.html b/doc/html/ntqstrlist.html index 1c2db91ab..a5a72f043 100644 --- a/doc/html/ntqstrlist.html +++ b/doc/html/ntqstrlist.html @@ -1,5 +1,5 @@ - + @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

                The TQStrList class provides a doubly-linked list of char*. More...

                #include <ntqstrlist.h> -

                Inherits TQPtrList<char>. +

                Inherits TQPtrList<char>.

                Inherited by TQStrIList.

                List of all member functions.

                Public Members

                @@ -52,7 +52,7 @@ The TQStrList class provides a doubly-linked list of char*.

                If you want a string list of TQStrings use TQStringList. -

                This class is a TQPtrList<char> instance (a list of char*). +

                This class is a TQPtrList<char> instance (a list of char*).

                TQStrList can make deep or shallow copies of the strings that are inserted.

                A deep copy means that memory is allocated for the string and then @@ -67,12 +67,12 @@ shallow copies is that they consume far less memory than deep copies. It is also much faster to copy a pointer (typically 4 or 8 bytes) than to copy string data.

                A TQStrList that operates on deep copies will, by default, turn on -auto-deletion (see setAutoDelete()). Thus, by default TQStrList +auto-deletion (see setAutoDelete()). Thus, by default TQStrList will deallocate any string copies it allocates. -

                The virtual compareItems() function is reimplemented and does a -case-sensitive string comparison. The inSort() function will +

                The virtual compareItems() function is reimplemented and does a +case-sensitive string comparison. The inSort() function will insert strings in sorted order. In general it is fastest to insert -the strings as they come and sort() at the end; inSort() is useful +the strings as they come and sort() at the end; inSort() is useful when you just have to add a few extra strings to an already sorted list.

                The TQStrListIterator class is an iterator for TQStrList. diff --git a/doc/html/ntqtabbar.html b/doc/html/ntqtabbar.html index a9cb783bc..6c2b28f1f 100644 --- a/doc/html/ntqtabbar.html +++ b/doc/html/ntqtabbar.html @@ -285,7 +285,7 @@ Returns the tab with id id or 0 if there is no such tab. Returns the tab at position index.

                See also indexOf(). -

                TQPtrList<TQTab> * TQTabBar::tabList () [protected] +

                TQPtrList<TQTab> * TQTabBar::tabList () [protected]

                The list of TQTab objects in the tab bar.

                This list is unlikely to be in the order that the TQTab elements diff --git a/doc/html/ntqurloperator.html b/doc/html/ntqurloperator.html index 918e42c2b..b42a245ce 100644 --- a/doc/html/ntqurloperator.html +++ b/doc/html/ntqurloperator.html @@ -180,7 +180,7 @@ state changes. state describes the new state, which is a

                data is a string that describes the change of the connection. This can be used to display a message to the user. -

                TQPtrList<TQNetworkOperation> TQUrlOperator::copy ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE ) [virtual] +

                TQPtrList<TQNetworkOperation> TQUrlOperator::copy ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE ) [virtual]

                Copies the file from to to. If move is TRUE, the file is moved (copied and removed). from must point to a file and to @@ -479,7 +479,7 @@ operation object which contains all the information about the operation, including the state.

                See also TQNetworkOperation and TQNetworkProtocol. -

                void TQUrlOperator::startedNextCopy ( const TQPtrList<TQNetworkOperation> & lst ) [signal] +

                void TQUrlOperator::startedNextCopy ( const TQPtrList<TQNetworkOperation> & lst ) [signal]

                This signal is emitted if copy() starts a new copy operation. lst contains all TQNetworkOperations related to this copy diff --git a/doc/html/ntqworkspace.html b/doc/html/ntqworkspace.html index 8a5e7a45f..86f10f3e5 100644 --- a/doc/html/ntqworkspace.html +++ b/doc/html/ntqworkspace.html @@ -190,8 +190,8 @@ Returns a list of all windows. If order is CreationOrder had been inserted into the workspace. If order is StackingOrder the windows are listed in their stacking order, with the topmost window being the last window in the list. -

                TQWidgetList is the same as TQPtrList. -

                See also TQPtrList. +

                TQWidgetList is the same as TQPtrList. +

                See also TQPtrList.

                Example: mdi/application.cpp.

                TQWidgetList TQWorkspace::windowList () const diff --git a/doc/html/porting.html b/doc/html/porting.html index e0850be85..db22665e8 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -305,7 +305,7 @@ new code.
              • TQCanvasItem::enabled() const
              • TQCanvasItem::selected() const
              • TQCanvasItem::visible() const -
              • TQCanvasPixmapArray::TQCanvasPixmapArray( TQPtrList<TQPixmap> list, TQPtrList<TQPoint> hotspots ) +
              • TQCanvasPixmapArray::TQCanvasPixmapArray( TQPtrList<TQPixmap> list, TQPtrList<TQPoint> hotspots )
              • TQCanvasPixmapArray::operator!()
              • TQColorGroup::TQColorGroup( const TQColor & foreground, const TQColor & background, const TQColor & light, const TQColor & dark, const TQColor & mid, const TQColor & text, const TQColor & base )
              • TQComboBox::autoResize() const @@ -417,12 +417,12 @@ names are no longer avaialable.

                Old Name New Name New Header File
                TQArray TQMemArray <ntqmemarray.h> -
                TQCollection TQPtrCollection <ntqptrcollection.h> -
                TQList TQPtrList <ntqptrlist.h> -
                TQListIterator TQPtrListIterator <ntqptrlist.h> -
                TQQueue TQPtrQueue <ntqptrqueue.h> -
                TQStack TQPtrStack <ntqptrstack.h> -
                TQVector TQPtrVector <ntqptrvector.h> +
                TQCollection TQPtrCollection <tqptrcollection.h> +
                TQList TQPtrList <tqptrlist.h> +
                TQListIterator TQPtrListIterator <tqptrlist.h> +
                TQQueue TQPtrQueue <tqptrqueue.h> +
                TQStack TQPtrStack <tqptrstack.h> +
                TQVector TQPtrVector <tqptrvector.h>

                TQButtonGroup

                @@ -650,7 +650,7 @@ modal dialog instead.

                TQSortedList

                The TQSortedList class is now obsolete. Consider using a TQDict, a TQMap -or a plain TQPtrList instead. +or a plain TQPtrList instead.

                TQTableView

                The TQTableView class has been obsoleted and is no longer a part of the diff --git a/doc/html/qasciicache-members.html b/doc/html/qasciicache-members.html index dc6e43560..7bc0d2e46 100644 --- a/doc/html/qasciicache-members.html +++ b/doc/html/qasciicache-members.html @@ -36,18 +36,18 @@ body { background: #ffffff; color: black; }

                • ~TQAsciiCache() -
                • autoDelete() +
                • autoDelete()
                • clear()
                • count() -
                • deleteItem() +
                • deleteItem()
                • find()
                • insert()
                • isEmpty()
                • maxCost() -
                • newItem() +
                • newItem()
                • operator[]()
                • remove() -
                • setAutoDelete() +
                • setAutoDelete()
                • setMaxCost()
                • size()
                • statistics() diff --git a/doc/html/qasciidict-members.html b/doc/html/qasciidict-members.html index e9da96799..d5cac0965 100644 --- a/doc/html/qasciidict-members.html +++ b/doc/html/qasciidict-members.html @@ -37,21 +37,21 @@ body { background: #ffffff; color: black; }
                  • TQAsciiDict()
                  • ~TQAsciiDict() -
                  • autoDelete() +
                  • autoDelete()
                  • clear()
                  • count() -
                  • deleteItem() +
                  • deleteItem()
                  • find()
                  • insert()
                  • isEmpty() -
                  • newItem() +
                  • newItem()
                  • operator=()
                  • operator[]()
                  • read()
                  • remove()
                  • replace()
                  • resize() -
                  • setAutoDelete() +
                  • setAutoDelete()
                  • size()
                  • statistics()
                  • take() diff --git a/doc/html/qcache-members.html b/doc/html/qcache-members.html index 05dd1bc8e..e6de67e7d 100644 --- a/doc/html/qcache-members.html +++ b/doc/html/qcache-members.html @@ -36,18 +36,18 @@ body { background: #ffffff; color: black; }
                    • ~TQCache() -
                    • autoDelete() +
                    • autoDelete()
                    • clear()
                    • count() -
                    • deleteItem() +
                    • deleteItem()
                    • find()
                    • insert()
                    • isEmpty()
                    • maxCost() -
                    • newItem() +
                    • newItem()
                    • operator[]()
                    • remove() -
                    • setAutoDelete() +
                    • setAutoDelete()
                    • setMaxCost()
                    • size()
                    • statistics() diff --git a/doc/html/qdict-members.html b/doc/html/qdict-members.html index 103ab44b6..124d9ab91 100644 --- a/doc/html/qdict-members.html +++ b/doc/html/qdict-members.html @@ -37,21 +37,21 @@ body { background: #ffffff; color: black; }
                      • TQDict()
                      • ~TQDict() -
                      • autoDelete() +
                      • autoDelete()
                      • clear()
                      • count() -
                      • deleteItem() +
                      • deleteItem()
                      • find()
                      • insert()
                      • isEmpty() -
                      • newItem() +
                      • newItem()
                      • operator=()
                      • operator[]()
                      • read()
                      • remove()
                      • replace()
                      • resize() -
                      • setAutoDelete() +
                      • setAutoDelete()
                      • size()
                      • statistics()
                      • take() diff --git a/doc/html/qdockarea-h.html b/doc/html/qdockarea-h.html index 50d7c1133..655170550 100644 --- a/doc/html/qdockarea-h.html +++ b/doc/html/qdockarea-h.html @@ -79,7 +79,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "tqwidget.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqdockwindow.h" #include "ntqlayout.h" #include "tqvaluelist.h" diff --git a/doc/html/qfontmanager_qws-h.html b/doc/html/qfontmanager_qws-h.html index 1ea95d141..40f47881d 100644 --- a/doc/html/qfontmanager_qws-h.html +++ b/doc/html/qfontmanager_qws-h.html @@ -77,7 +77,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqfont.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include <private/qtextengine_p.h> #endif // QT_H diff --git a/doc/html/qintcache-members.html b/doc/html/qintcache-members.html index c6762f89e..570dbd6d7 100644 --- a/doc/html/qintcache-members.html +++ b/doc/html/qintcache-members.html @@ -36,18 +36,18 @@ body { background: #ffffff; color: black; }
                        • ~TQIntCache() -
                        • autoDelete() +
                        • autoDelete()
                        • clear()
                        • count() -
                        • deleteItem() +
                        • deleteItem()
                        • find()
                        • insert()
                        • isEmpty()
                        • maxCost() -
                        • newItem() +
                        • newItem()
                        • operator[]()
                        • remove() -
                        • setAutoDelete() +
                        • setAutoDelete()
                        • setMaxCost()
                        • size()
                        • statistics() diff --git a/doc/html/qintdict-members.html b/doc/html/qintdict-members.html index 7839c1dd4..d84ef48a5 100644 --- a/doc/html/qintdict-members.html +++ b/doc/html/qintdict-members.html @@ -37,21 +37,21 @@ body { background: #ffffff; color: black; }
                          • TQIntDict()
                          • ~TQIntDict() -
                          • autoDelete() +
                          • autoDelete()
                          • clear()
                          • count() -
                          • deleteItem() +
                          • deleteItem()
                          • find()
                          • insert()
                          • isEmpty() -
                          • newItem() +
                          • newItem()
                          • operator=()
                          • operator[]()
                          • read()
                          • remove()
                          • replace()
                          • resize() -
                          • setAutoDelete() +
                          • setAutoDelete()
                          • size()
                          • statistics()
                          • take() diff --git a/doc/html/qlistviewitemiterator.html b/doc/html/qlistviewitemiterator.html index 907797f9e..cc82a4750 100644 --- a/doc/html/qlistviewitemiterator.html +++ b/doc/html/qlistviewitemiterator.html @@ -72,21 +72,21 @@ sibling, the next sibling of the parent becomes current. been selected by the user, storing pointers to the items in a TQPtrList:
                            -    TQPtrList<TQListViewItem> lst;
                            +    TQPtrList<TQListViewItem> lst;
                                 TQListViewItemIterator it( myListView );
                                 while ( it.current() ) {
                                     if ( it.current()->isSelected() )
                            -            lst.append( it.current() );
                            +            lst.append( it.current() );
                                     ++it;
                                 }
                                 

                            An alternative approach is to use an IteratorFlag:

                            -    TQPtrList<TQListViewItem> lst;
                            +    TQPtrList<TQListViewItem> lst;
                                 TQListViewItemIterator it( myListView, TQListViewItemIterator::Selected );
                                 while ( it.current() ) {
                            -        lst.append( it.current() );
                            +        lst.append( it.current() );
                                     ++it;
                                 }
                                 
                            diff --git a/doc/html/qmacmime.html b/doc/html/qmacmime.html index 03ccf64e5..04208b70e 100644 --- a/doc/html/qmacmime.html +++ b/doc/html/qmacmime.html @@ -96,7 +96,7 @@ globally accessed list of available convertors. Destroys a conversion object, removing it from the global list of available convertors. -

                            TQPtrList<TQMacMime> TQMacMime::all ( TQMacMimeType t ) [static] +

                            TQPtrList<TQMacMime> TQMacMime::all ( TQMacMimeType t ) [static]

                            Returns a list of all currently defined TQMacMime objects of type t. diff --git a/doc/html/qmainwindow-h.html b/doc/html/qmainwindow-h.html index 7fbbea8a2..f87aab5b8 100644 --- a/doc/html/qmainwindow-h.html +++ b/doc/html/qmainwindow-h.html @@ -80,7 +80,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "tqwidget.h" #include "ntqtoolbar.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqtextstream.h" #endif // QT_H diff --git a/doc/html/qmenudata-h.html b/doc/html/qmenudata-h.html index fb6dfa4de..d06d5dcc9 100644 --- a/doc/html/qmenudata-h.html +++ b/doc/html/qmenudata-h.html @@ -154,7 +154,7 @@ private: // Disabled copy constructor and operator= #endif }; -#include "ntqptrlist.h" +#include "tqptrlist.h" typedef TQPtrList<TQMenuItem> TQMenuItemList; typedef TQPtrListIterator<TQMenuItem> TQMenuItemListIt; diff --git a/doc/html/qmime-h.html b/doc/html/qmime-h.html index 015b91e5f..c9a402b3e 100644 --- a/doc/html/qmime-h.html +++ b/doc/html/qmime-h.html @@ -161,7 +161,7 @@ private: #if defined(TQ_WS_WIN) #ifndef QT_H -#include "ntqptrlist.h" // down here for GCC 2.7.* compatibility +#include "tqptrlist.h" // down here for GCC 2.7.* compatibility #endif // QT_H /* @@ -197,7 +197,7 @@ public: #if defined(TQ_WS_MAC) #ifndef QT_H -#include "ntqptrlist.h" // down here for GCC 2.7.* compatibility +#include "tqptrlist.h" // down here for GCC 2.7.* compatibility #endif // QT_H /* diff --git a/doc/html/qptrcollection-h.html b/doc/html/qptrcollection-h.html deleted file mode 100644 index de63bc4f5..000000000 --- a/doc/html/qptrcollection-h.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - -ntqptrcollection.h Include File - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            ntqptrcollection.h

                            - -

                            This is the verbatim text of the ntqptrcollection.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


                            -
                            -/****************************************************************************
                            -**
                            -** Definition of base class for all pointer based collection classes
                            -**
                            -**
                            -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                            -**
                            -** This file is part of the tools module of the TQt GUI Toolkit.
                            -**
                            -** This file may be used under the terms of the GNU General Public
                            -** License versions 2.0 or 3.0 as published by the Free Software
                            -** Foundation and appearing in the file LICENSE.GPL included in the
                            -** packaging of this file. Alternatively you may (at your option) use any
                            -** later version of the GNU General Public License if such license has
                            -** been publicly approved by Trolltech ASA (or its successors, if any)
                            -** and the KDE Free TQt Foundation.
                            -**
                            -** Please review the following information to ensure GNU General
                            -** Public Licensing requirements will be met:
                            -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                            -** If you are unsure which license is appropriate for your use, please
                            -** review the following information:
                            -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                            -** or contact the sales department at sales@trolltech.com.
                            -**
                            -** This file may be used under the terms of the Q Public License as
                            -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                            -** included in the packaging of this file.  Licensees holding valid TQt
                            -** Commercial licenses may use this file in accordance with the TQt
                            -** Commercial License Agreement provided with the Software.
                            -**
                            -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                            -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                            -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                            -** herein.
                            -**
                            -**********************************************************************/
                            -
                            -#ifndef TQPTRCOLLECTION_H
                            -#define TQPTRCOLLECTION_H
                            -
                            -#ifndef QT_H
                            -#include "ntqglobal.h"
                            -#endif // QT_H
                            -
                            -
                            -class TQGVector;
                            -class TQGList;
                            -class TQGDict;
                            -
                            -
                            -class TQ_EXPORT TQPtrCollection			// inherited by all collections
                            -{
                            -public:
                            -    bool autoDelete()	const	       { return del_item; }
                            -    void setAutoDelete( bool enable )  { del_item = enable; }
                            -
                            -    virtual uint  count() const = 0;
                            -    virtual void  clear() = 0;			// delete all objects
                            -
                            -    typedef void *Item;				// generic collection item
                            -
                            -protected:
                            -    TQPtrCollection() { del_item = FALSE; }		// no deletion of objects
                            -    TQPtrCollection(const TQPtrCollection &) { del_item = FALSE; }
                            -    virtual ~TQPtrCollection() {}
                            -
                            -    bool del_item;				// default FALSE
                            -
                            -    virtual Item     newItem( Item );		// create object
                            -    virtual void     deleteItem( Item ) = 0;	// delete object
                            -};
                            -
                            -
                            -#endif // TQPTRCOLLECTION_H
                            -
                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrcollection-members.html b/doc/html/qptrcollection-members.html deleted file mode 100644 index 1d65205e1..000000000 --- a/doc/html/qptrcollection-members.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - -TQPtrCollection Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrCollection

                            - -

                            This is the complete list of member functions for -TQPtrCollection, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrdict-h.html b/doc/html/qptrdict-h.html deleted file mode 100644 index 0d8efdcb0..000000000 --- a/doc/html/qptrdict-h.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - -ntqptrdict.h Include File - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            ntqptrdict.h

                            - -

                            This is the verbatim text of the ntqptrdict.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


                            -
                            -/****************************************************************************
                            -** $Id: qt/ntqptrdict.h   3.3.8   edited Jan 11 14:38 $
                            -**
                            -** Definition of TQPtrDict template class
                            -**
                            -** Created : 970415
                            -**
                            -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                            -**
                            -** This file is part of the tools module of the TQt GUI Toolkit.
                            -**
                            -** This file may be used under the terms of the GNU General Public
                            -** License versions 2.0 or 3.0 as published by the Free Software
                            -** Foundation and appearing in the file LICENSE.GPL included in the
                            -** packaging of this file. Alternatively you may (at your option) use any
                            -** later version of the GNU General Public License if such license has
                            -** been publicly approved by Trolltech ASA (or its successors, if any)
                            -** and the KDE Free TQt Foundation.
                            -**
                            -** Please review the following information to ensure GNU General
                            -** Public Licensing requirements will be met:
                            -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                            -** If you are unsure which license is appropriate for your use, please
                            -** review the following information:
                            -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                            -** or contact the sales department at sales@trolltech.com.
                            -**
                            -** This file may be used under the terms of the Q Public License as
                            -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                            -** included in the packaging of this file.  Licensees holding valid TQt
                            -** Commercial licenses may use this file in accordance with the TQt
                            -** Commercial License Agreement provided with the Software.
                            -**
                            -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                            -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                            -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                            -** herein.
                            -**
                            -**********************************************************************/
                            -
                            -#ifndef TQPTRDICT_H
                            -#define TQPTRDICT_H
                            -
                            -#ifndef QT_H
                            -#include "ntqgdict.h"
                            -#endif // QT_H
                            -
                            -template<class type>
                            -class TQPtrDict
                            -#ifdef Q_QDOC
                            -	: public TQPtrCollection
                            -#else
                            -	: public TQGDict
                            -#endif
                            -{
                            -public:
                            -    TQPtrDict(int size=17) : TQGDict(size,PtrKey,0,0) {}
                            -    TQPtrDict( const TQPtrDict<type> &d ) : TQGDict(d) {}
                            -   ~TQPtrDict()				{ clear(); }
                            -    TQPtrDict<type> &operator=(const TQPtrDict<type> &d)
                            -			{ return (TQPtrDict<type>&)TQGDict::operator=(d); }
                            -    uint  count()   const		{ return TQGDict::count(); }
                            -    uint  size()    const		{ return TQGDict::size(); }
                            -    bool  isEmpty() const		{ return TQGDict::count() == 0; }
                            -    void  insert( void *k, const type *d )
                            -					{ TQGDict::look_ptr(k,(Item)d,1); }
                            -    void  replace( void *k, const type *d )
                            -					{ TQGDict::look_ptr(k,(Item)d,2); }
                            -    bool  remove( void *k )		{ return TQGDict::remove_ptr(k); }
                            -    type *take( void *k )		{ return (type*)TQGDict::take_ptr(k); }
                            -    type *find( void *k ) const
                            -		{ return (type *)((TQGDict*)this)->TQGDict::look_ptr(k,0,0); }
                            -    type *operator[]( void *k ) const
                            -		{ return (type *)((TQGDict*)this)->TQGDict::look_ptr(k,0,0); }
                            -    void  clear()			{ TQGDict::clear(); }
                            -    void  resize( uint n )		{ TQGDict::resize(n); }
                            -    void  statistics() const		{ TQGDict::statistics(); }
                            -
                            -#ifdef Q_QDOC
                            -protected:
                            -    virtual TQDataStream& read( TQDataStream &, TQPtrCollection::Item & );
                            -    virtual TQDataStream& write( TQDataStream &, TQPtrCollection::Item ) const;
                            -#endif
                            -
                            -private:
                            -    void  deleteItem( Item d );
                            -};
                            -
                            -#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                            -template<> inline void TQPtrDict<void>::deleteItem( TQPtrCollection::Item )
                            -{
                            -}
                            -#endif
                            -
                            -template<class type>
                            -inline void TQPtrDict<type>::deleteItem( TQPtrCollection::Item d )
                            -{
                            -    if ( del_item ) delete (type *)d;
                            -}
                            -
                            -template<class type>
                            -class TQPtrDictIterator : public TQGDictIterator
                            -{
                            -public:
                            -    TQPtrDictIterator(const TQPtrDict<type> &d) :TQGDictIterator((TQGDict &)d) {}
                            -   ~TQPtrDictIterator()	      {}
                            -    uint  count()   const     { return dict->count(); }
                            -    bool  isEmpty() const     { return dict->count() == 0; }
                            -    type *toFirst()	      { return (type *)TQGDictIterator::toFirst(); }
                            -    operator type *()  const  { return (type *)TQGDictIterator::get(); }
                            -    type *current()    const  { return (type *)TQGDictIterator::get(); }
                            -    void *currentKey() const  { return TQGDictIterator::getKeyPtr(); }
                            -    type *operator()()	      { return (type *)TQGDictIterator::operator()(); }
                            -    type *operator++()	      { return (type *)TQGDictIterator::operator++(); }
                            -    type *operator+=(uint j)  { return (type *)TQGDictIterator::operator+=(j);}
                            -};
                            -
                            -#endif // TQPTRDICT_H
                            -
                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrdict-members.html b/doc/html/qptrdict-members.html deleted file mode 100644 index 5df1ba1ae..000000000 --- a/doc/html/qptrdict-members.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - -TQPtrDict Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrDict

                            - -

                            This is the complete list of member functions for -TQPtrDict, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrdictiterator-members.html b/doc/html/qptrdictiterator-members.html deleted file mode 100644 index d6806314e..000000000 --- a/doc/html/qptrdictiterator-members.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - -TQPtrDictIterator Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrDictIterator

                            - -

                            This is the complete list of member functions for -TQPtrDictIterator, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrdictiterator.html b/doc/html/qptrdictiterator.html deleted file mode 100644 index 8e4f56d1c..000000000 --- a/doc/html/qptrdictiterator.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - -TQPtrDictIterator Class - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            TQPtrDictIterator Class Reference

                            - -

                            The TQPtrDictIterator class provides an iterator for TQPtrDict collections. -More... -

                            #include <ntqptrdict.h> -

                            List of all member functions. -

                            Public Members

                            - -

                            Detailed Description

                            - - -The TQPtrDictIterator class provides an iterator for TQPtrDict collections. -

                            - -

                            TQPtrDictIterator is implemented as a template class. Define a -template instance TQPtrDictIterator<X> to create a dictionary -iterator that operates on TQPtrDict<X> (dictionary of X*). -

                            Example: -

                            -    TQPtrDict<char> fields;
                            -
                            -    TQLineEdit *le1 = new TQLineEdit( this );
                            -    le1->setText( "Simpson" );
                            -    TQLineEdit *le2 = new TQLineEdit( this );
                            -    le2->setText( "Homer" );
                            -    TQLineEdit *le3 = new TQLineEdit( this );
                            -    le3->setText( "45" );
                            -
                            -    fields.insert( le1, "Surname" );
                            -    fields.insert( le2, "Forename" );
                            -    fields.insert( le3, "Age" );
                            -
                            -    TQPtrDictIterator<char> it( fields );
                            -    for( ; it.current(); ++it ) {
                            -        TQLineEdit *le = (TQLineEdit)it.currentKey();
                            -        cout << it.current() << ": " << le->text() << endl;
                            -    }
                            -    cout << endl;
                            -
                            -    // Output (random order):
                            -    //  Forename: Homer
                            -    //  Age: 45
                            -    //  Surname: Simpson
                            -    
                            - -In the example we insert some line edits into a dictionary, -associating a string with each. We then iterate over the -dictionary printing the associated strings. -

                            Multiple iterators may independently traverse the same dictionary. -A TQPtrDict knows about all the iterators that are operating on the -dictionary. When an item is removed from the dictionary, TQPtrDict -updates all iterators that refer the removed item to point to the -next item in the traversing order. -

                            See also TQPtrDict, Collection Classes, and Non-GUI Classes. - -


                            Member Function Documentation

                            -

                            TQPtrDictIterator::TQPtrDictIterator ( const TQPtrDict<type> & dict ) -

                            - -

                            Constructs an iterator for dict. The current iterator item is -set to point on the first item in the dict. - -

                            TQPtrDictIterator::~TQPtrDictIterator () -

                            - -

                            Destroys the iterator. - -

                            uint TQPtrDictIterator::count () const -

                            - -

                            Returns the number of items in the dictionary this iterator -operates on. -

                            See also isEmpty(). - -

                            type * TQPtrDictIterator::current () const -

                            - -

                            Returns a pointer to the current iterator item's value. - -

                            void * TQPtrDictIterator::currentKey () const -

                            - -

                            Returns the current iterator item's key. - -

                            bool TQPtrDictIterator::isEmpty () const -

                            - -

                            Returns TRUE if the dictionary is empty; otherwise returns FALSE. -

                            See also count(). - -

                            TQPtrDictIterator::operator type * () const -

                            - -

                            Cast operator. Returns a pointer to the current iterator item. -Same as current(). - -

                            type * TQPtrDictIterator::operator() () -

                            - -

                            Makes the succeeding item current and returns the original current -item. -

                            If the current iterator item was the last item in the dictionary -or if it was 0, 0 is returned. - -

                            type * TQPtrDictIterator::operator++ () -

                            - -

                            Prefix ++ makes the succeeding item current and returns the new -current item. -

                            If the current iterator item was the last item in the dictionary -or if it was 0, 0 is returned. - -

                            type * TQPtrDictIterator::operator+= ( uint jump ) -

                            - -

                            Sets the current item to the item jump positions after the -current item and returns a pointer to that item. -

                            If that item is beyond the last item or if the dictionary is -empty, it sets the current item to 0 and returns 0. - -

                            type * TQPtrDictIterator::toFirst () -

                            - -

                            Sets the current iterator item to point to the first item in the -dictionary and returns a pointer to the item. If the dictionary is -empty, it sets the current item to 0 and returns 0. - - -


                            -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrlist-h.html b/doc/html/qptrlist-h.html deleted file mode 100644 index d3d5dc02d..000000000 --- a/doc/html/qptrlist-h.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - -ntqptrlist.h Include File - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            ntqptrlist.h

                            - -

                            This is the verbatim text of the ntqptrlist.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


                            -
                            -/****************************************************************************
                            -** $Id: qt/ntqptrlist.h   3.3.8   edited Jan 11 14:38 $
                            -**
                            -** Definition of TQPtrList template/macro class
                            -**
                            -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                            -**
                            -** This file is part of the tools module of the TQt GUI Toolkit.
                            -**
                            -** This file may be used under the terms of the GNU General Public
                            -** License versions 2.0 or 3.0 as published by the Free Software
                            -** Foundation and appearing in the file LICENSE.GPL included in the
                            -** packaging of this file. Alternatively you may (at your option) use any
                            -** later version of the GNU General Public License if such license has
                            -** been publicly approved by Trolltech ASA (or its successors, if any)
                            -** and the KDE Free TQt Foundation.
                            -**
                            -** Please review the following information to ensure GNU General
                            -** Public Licensing requirements will be met:
                            -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                            -** If you are unsure which license is appropriate for your use, please
                            -** review the following information:
                            -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                            -** or contact the sales department at sales@trolltech.com.
                            -**
                            -** This file may be used under the terms of the Q Public License as
                            -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                            -** included in the packaging of this file.  Licensees holding valid TQt
                            -** Commercial licenses may use this file in accordance with the TQt
                            -** Commercial License Agreement provided with the Software.
                            -**
                            -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                            -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                            -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                            -** herein.
                            -**
                            -**********************************************************************/
                            -
                            -#ifndef TQPTRLIST_H
                            -#define TQPTRLIST_H
                            -
                            -#ifndef QT_H
                            -#include "ntqglist.h"
                            -#endif // QT_H
                            -
                            -template<class type>
                            -class TQPtrListStdIterator : public TQGListStdIterator
                            -{
                            -public:
                            -    inline TQPtrListStdIterator( TQLNode* n ): TQGListStdIterator(n) {}
                            -    type *operator*() { return node ? (type *)node->getData() : 0; }
                            -    inline TQPtrListStdIterator<type> operator++()
                            -    { node = next(); return *this; }
                            -    inline TQPtrListStdIterator<type> operator++(int)
                            -    { TQLNode* n = node; node = next(); return TQPtrListStdIterator<type>( n ); }
                            -    inline bool operator==( const TQPtrListStdIterator<type>& it ) const { return node == it.node; }
                            -    inline bool operator!=( const TQPtrListStdIterator<type>& it ) const { return node != it.node; }
                            -};
                            -
                            -
                            -template<class type>
                            -class TQPtrList
                            -#ifdef Q_QDOC
                            -	: public TQPtrCollection
                            -#else
                            -	: public TQGList
                            -#endif
                            -{
                            -public:
                            -
                            -    TQPtrList()				{}
                            -    TQPtrList( const TQPtrList<type> &l ) : TQGList(l) {}
                            -    ~TQPtrList()				{ clear(); }
                            -    TQPtrList<type> &operator=(const TQPtrList<type> &l)
                            -			{ return (TQPtrList<type>&)TQGList::operator=(l); }
                            -    bool operator==( const TQPtrList<type> &list ) const
                            -    { return TQGList::operator==( list ); }
                            -    bool operator!=( const TQPtrList<type> &list ) const
                            -    { return !TQGList::operator==( list ); }
                            -    uint  count()   const		{ return TQGList::count(); }
                            -    bool  isEmpty() const		{ return TQGList::count() == 0; }
                            -    bool  insert( uint i, const type *d){ return TQGList::insertAt(i,(TQPtrCollection::Item)d); }
                            -    void  inSort( const type *d )	{ TQGList::inSort((TQPtrCollection::Item)d); }
                            -    void  prepend( const type *d )	{ TQGList::insertAt(0,(TQPtrCollection::Item)d); }
                            -    void  append( const type *d )	{ TQGList::append((TQPtrCollection::Item)d); }
                            -    bool  remove( uint i )		{ return TQGList::removeAt(i); }
                            -    bool  remove()			{ return TQGList::remove((TQPtrCollection::Item)0); }
                            -    bool  remove( const type *d )	{ return TQGList::remove((TQPtrCollection::Item)d); }
                            -    bool  removeRef( const type *d )	{ return TQGList::removeRef((TQPtrCollection::Item)d); }
                            -    void  removeNode( TQLNode *n )	{ TQGList::removeNode(n); }
                            -    bool  removeFirst()			{ return TQGList::removeFirst(); }
                            -    bool  removeLast()			{ return TQGList::removeLast(); }
                            -    type *take( uint i )		{ return (type *)TQGList::takeAt(i); }
                            -    type *take()			{ return (type *)TQGList::take(); }
                            -    type *takeNode( TQLNode *n )		{ return (type *)TQGList::takeNode(n); }
                            -    void  clear()			{ TQGList::clear(); }
                            -    void  sort()			{ TQGList::sort(); }
                            -    int	  find( const type *d )		{ return TQGList::find((TQPtrCollection::Item)d); }
                            -    int	  findNext( const type *d )	{ return TQGList::find((TQPtrCollection::Item)d,FALSE); }
                            -    int	  findRef( const type *d )	{ return TQGList::findRef((TQPtrCollection::Item)d); }
                            -    int	  findNextRef( const type *d ){ return TQGList::findRef((TQPtrCollection::Item)d,FALSE);}
                            -    uint  contains( const type *d ) const { return TQGList::contains((TQPtrCollection::Item)d); }
                            -    uint  containsRef( const type *d ) const
                            -					{ return TQGList::containsRef((TQPtrCollection::Item)d); }
                            -    bool replace( uint i, const type *d ) { return TQGList::replaceAt( i, (TQPtrCollection::Item)d ); }
                            -    type *operator[]( uint i )		{ return (type *)TQGList::at(i); }
                            -    type *at( uint i )			{ return (type *)TQGList::at(i); }
                            -    int	  at() const			{ return TQGList::at(); }
                            -    type *current()  const		{ return (type *)TQGList::get(); }
                            -    TQLNode *currentNode()  const	{ return TQGList::currentNode(); }
                            -    type *getFirst() const		{ return (type *)TQGList::cfirst(); }
                            -    type *getLast()  const		{ return (type *)TQGList::clast(); }
                            -    type *first()			{ return (type *)TQGList::first(); }
                            -    type *last()			{ return (type *)TQGList::last(); }
                            -    type *next()			{ return (type *)TQGList::next(); }
                            -    type *prev()			{ return (type *)TQGList::prev(); }
                            -    void  toVector( TQGVector *vec )const{ TQGList::toVector(vec); }
                            -
                            -
                            -    // standard iterators
                            -    typedef TQPtrListStdIterator<type> Iterator;
                            -    typedef TQPtrListStdIterator<type> ConstIterator;
                            -    inline Iterator begin() { return TQGList::begin(); }
                            -    inline ConstIterator begin() const { return TQGList::begin(); }
                            -    inline ConstIterator constBegin() const { return TQGList::begin(); }
                            -    inline Iterator end() { return TQGList::end(); }
                            -    inline ConstIterator end() const { return TQGList::end(); }
                            -    inline ConstIterator constEnd() const { return TQGList::end(); }
                            -    inline Iterator erase( Iterator it ) { return TQGList::erase( it ); }
                            -    // stl syntax compatibility
                            -    typedef Iterator iterator;
                            -    typedef ConstIterator const_iterator;
                            -
                            -
                            -#ifdef Q_QDOC
                            -protected:
                            -    virtual int compareItems( TQPtrCollection::Item, TQPtrCollection::Item );
                            -    virtual TQDataStream& read( TQDataStream&, TQPtrCollection::Item& );
                            -    virtual TQDataStream& write( TQDataStream&, TQPtrCollection::Item ) const;
                            -#endif
                            -
                            -private:
                            -    void  deleteItem( Item d );
                            -};
                            -
                            -#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                            -template<> inline void TQPtrList<void>::deleteItem( TQPtrCollection::Item )
                            -{
                            -}
                            -#endif
                            -
                            -template<class type> inline void TQPtrList<type>::deleteItem( TQPtrCollection::Item d )
                            -{
                            -    if ( del_item ) delete (type *)d;
                            -}
                            -
                            -template<class type>
                            -class TQPtrListIterator : public TQGListIterator
                            -{
                            -public:
                            -    TQPtrListIterator(const TQPtrList<type> &l) :TQGListIterator((TQGList &)l) {}
                            -   ~TQPtrListIterator()	      {}
                            -    uint  count()   const     { return list->count(); }
                            -    bool  isEmpty() const     { return list->count() == 0; }
                            -    bool  atFirst() const     { return TQGListIterator::atFirst(); }
                            -    bool  atLast()  const     { return TQGListIterator::atLast(); }
                            -    type *toFirst()	      { return (type *)TQGListIterator::toFirst(); }
                            -    type *toLast()	      { return (type *)TQGListIterator::toLast(); }
                            -    operator type *() const   { return (type *)TQGListIterator::get(); }
                            -    type *operator*()         { return (type *)TQGListIterator::get(); }
                            -
                            -    // No good, since TQPtrList<char> (ie. TQStrList fails...
                            -    //
                            -    // MSVC++ gives warning
                            -    // Sunpro C++ 4.1 gives error
                            -    //    type *operator->()        { return (type *)TQGListIterator::get(); }
                            -
                            -    type *current()   const   { return (type *)TQGListIterator::get(); }
                            -    type *operator()()	      { return (type *)TQGListIterator::operator()();}
                            -    type *operator++()	      { return (type *)TQGListIterator::operator++(); }
                            -    type *operator+=(uint j)  { return (type *)TQGListIterator::operator+=(j);}
                            -    type *operator--()	      { return (type *)TQGListIterator::operator--(); }
                            -    type *operator-=(uint j)  { return (type *)TQGListIterator::operator-=(j);}
                            -    TQPtrListIterator<type>& operator=(const TQPtrListIterator<type>&it)
                            -			      { TQGListIterator::operator=(it); return *this; }
                            -};
                            -
                            -#define Q_DEFINED_QPTRLIST
                            -#include "ntqwinexport.h"
                            -
                            -#endif // TQPTRLIST_H
                            -
                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrlist-members.html b/doc/html/qptrlist-members.html deleted file mode 100644 index 0c964296c..000000000 --- a/doc/html/qptrlist-members.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - -TQPtrList Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrList

                            - -

                            This is the complete list of member functions for -TQPtrList, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrlistiterator-members.html b/doc/html/qptrlistiterator-members.html deleted file mode 100644 index 468b6fd14..000000000 --- a/doc/html/qptrlistiterator-members.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - -TQPtrListIterator Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrListIterator

                            - -

                            This is the complete list of member functions for -TQPtrListIterator, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrlistiterator.html b/doc/html/qptrlistiterator.html deleted file mode 100644 index 688404fe3..000000000 --- a/doc/html/qptrlistiterator.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - -TQPtrListIterator Class - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            TQPtrListIterator Class Reference

                            - -

                            The TQPtrListIterator class provides an iterator for -TQPtrList collections. -More... -

                            #include <ntqptrlist.h> -

                            Inherited by TQObjectListIterator and TQStrListIterator. -

                            List of all member functions. -

                            Public Members

                            - -

                            Detailed Description

                            - - -The TQPtrListIterator class provides an iterator for -TQPtrList collections. -

                            - -

                            Define a template instance TQPtrListIterator<X> to create a list -iterator that operates on TQPtrList<X> (list of X*). -

                            The following example is similar to the example in the TQPtrList class documentation, but it uses TQPtrListIterator. The class Employee is -defined there. -

                            -    TQPtrList<Employee> list;
                            -
                            -    list.append( new Employee("John", "Doe", 50000) );
                            -    list.append( new Employee("Jane", "Williams", 80000) );
                            -    list.append( new Employee("Tom", "Jones", 60000) );
                            -
                            -    TQPtrListIterator<Employee> it( list );
                            -    Employee *employee;
                            -    while ( (employee = it.current()) != 0 ) {
                            -        ++it;
                            -        cout << employee->surname().latin1() << ", " <<
                            -                employee->forename().latin1() << " earns " <<
                            -                employee->salary() << endl;
                            -    }
                            -    
                            - -

                            The output is -

                            -    Doe, John earns 50000
                            -    Williams, Jane earns 80000
                            -    Jones, Tom earns 60000
                            -    
                            - -

                            Using a list iterator is a more robust way of traversing the list -than using the TQPtrList member functions first(), next(), current(), etc., as many iterators can -traverse the same list independently. -

                            An iterator has its own current list item and can get the next and -previous list items. It doesn't modify the list in any way. -

                            When an item is removed from the list, all iterators that point to -that item are updated to point to TQPtrList::current() instead to -avoid dangling references. -

                            See also TQPtrList, Collection Classes, and Non-GUI Classes. - -


                            Member Function Documentation

                            -

                            TQPtrListIterator::TQPtrListIterator ( const TQPtrList<type> & list ) -

                            - -

                            Constructs an iterator for list. The current iterator item is -set to point on the first item in the list. - -

                            TQPtrListIterator::~TQPtrListIterator () -

                            - -

                            Destroys the iterator. - -

                            bool TQPtrListIterator::atFirst () const -

                            - -

                            Returns TRUE if the current iterator item is the first list item; -otherwise returns FALSE. -

                            See also toFirst() and atLast(). - -

                            bool TQPtrListIterator::atLast () const -

                            - -

                            Returns TRUE if the current iterator item is the last list item; -otherwise returns FALSE. -

                            See also toLast() and atFirst(). - -

                            uint TQPtrListIterator::count () const -

                            - -

                            Returns the number of items in the list this iterator operates on. -

                            See also isEmpty(). - -

                            Example: customlayout/card.cpp. -

                            type * TQPtrListIterator::current () const -

                            - -

                            Returns a pointer to the current iterator item. If the iterator is -positioned before the first item in the list or after the last -item in the list, 0 is returned. - -

                            Examples: canvas/canvas.cpp, customlayout/card.cpp, and customlayout/flow.cpp. -

                            bool TQPtrListIterator::isEmpty () const -

                            - -

                            Returns TRUE if the list is empty; otherwise returns FALSE. -

                            See also count(). - -

                            TQPtrListIterator::operator type * () const -

                            - -

                            Cast operator. Returns a pointer to the current iterator item. -Same as current(). - -

                            type * TQPtrListIterator::operator() () -

                            - -

                            Makes the succeeding item current and returns the original current -item. -

                            If the current iterator item was the last item in the list or if -it was 0, 0 is returned. - -

                            type * TQPtrListIterator::operator* () -

                            - -

                            Asterisk operator. Returns a pointer to the current iterator item. -Same as current(). - -

                            type * TQPtrListIterator::operator++ () -

                            - -

                            Prefix ++ makes the succeeding item current and returns the new -current item. -

                            If the current iterator item was the last item in the list or if -it was 0, 0 is returned. - -

                            type * TQPtrListIterator::operator+= ( uint jump ) -

                            - -

                            Sets the current item to the item jump positions after the -current item and returns a pointer to that item. -

                            If that item is beyond the last item or if the list is empty, it -sets the current item to 0 and returns 0 - -

                            type * TQPtrListIterator::operator-- () -

                            - -

                            Prefix - makes the preceding item current and returns the new -current item. -

                            If the current iterator item was the first item in the list or if -it was 0, 0 is returned. - -

                            type * TQPtrListIterator::operator-= ( uint jump ) -

                            - -

                            Returns the item jump positions before the current item or 0 -if it is beyond the first item. Makes this the current item. - -

                            TQPtrListIterator<type> & TQPtrListIterator::operator= ( const TQPtrListIterator<type> & it ) -

                            - -

                            Assignment. Makes a copy of the iterator it and returns a -reference to this iterator. - -

                            type * TQPtrListIterator::toFirst () -

                            - -

                            Sets the current iterator item to point to the first list item and -returns a pointer to the item. Sets the current item to 0 and -returns 0 if the list is empty. -

                            See also toLast() and atFirst(). - -

                            type * TQPtrListIterator::toLast () -

                            - -

                            Sets the current iterator item to point to the last list item and -returns a pointer to the item. Sets the current item to 0 and -returns 0 if the list is empty. -

                            See also toFirst() and atLast(). - - -


                            -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrqueue-h.html b/doc/html/qptrqueue-h.html deleted file mode 100644 index b7a69b437..000000000 --- a/doc/html/qptrqueue-h.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - -ntqptrqueue.h Include File - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            ntqptrqueue.h

                            - -

                            This is the verbatim text of the ntqptrqueue.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


                            -
                            -/****************************************************************************
                            -** $Id: qt/ntqptrqueue.h   3.3.8   edited Jan 11 14:38 $
                            -**
                            -** Definition of TQPtrQueue template/macro class
                            -**
                            -** Created : 920917
                            -**
                            -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                            -**
                            -** This file is part of the tools module of the TQt GUI Toolkit.
                            -**
                            -** This file may be used under the terms of the GNU General Public
                            -** License versions 2.0 or 3.0 as published by the Free Software
                            -** Foundation and appearing in the file LICENSE.GPL included in the
                            -** packaging of this file. Alternatively you may (at your option) use any
                            -** later version of the GNU General Public License if such license has
                            -** been publicly approved by Trolltech ASA (or its successors, if any)
                            -** and the KDE Free TQt Foundation.
                            -**
                            -** Please review the following information to ensure GNU General
                            -** Public Licensing requirements will be met:
                            -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                            -** If you are unsure which license is appropriate for your use, please
                            -** review the following information:
                            -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                            -** or contact the sales department at sales@trolltech.com.
                            -**
                            -** This file may be used under the terms of the Q Public License as
                            -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                            -** included in the packaging of this file.  Licensees holding valid TQt
                            -** Commercial licenses may use this file in accordance with the TQt
                            -** Commercial License Agreement provided with the Software.
                            -**
                            -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                            -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                            -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                            -** herein.
                            -**
                            -**********************************************************************/
                            -
                            -#ifndef TQPTRQUEUE_H
                            -#define TQPTRQUEUE_H
                            -
                            -#ifndef QT_H
                            -#include "ntqglist.h"
                            -#endif // QT_H
                            -
                            -template<class type>
                            -class TQPtrQueue : protected TQGList
                            -{
                            -public:
                            -    TQPtrQueue()				{}
                            -    TQPtrQueue( const TQPtrQueue<type> &q ) : TQGList(q) {}
                            -    ~TQPtrQueue()			{ clear(); }
                            -    TQPtrQueue<type>& operator=(const TQPtrQueue<type> &q)
                            -			{ return (TQPtrQueue<type>&)TQGList::operator=(q); }
                            -    bool  autoDelete() const		{ return TQPtrCollection::autoDelete(); }
                            -    void  setAutoDelete( bool del )	{ TQPtrCollection::setAutoDelete(del); }
                            -    uint  count()   const		{ return TQGList::count(); }
                            -    bool  isEmpty() const		{ return TQGList::count() == 0; }
                            -    void  enqueue( const type *d )	{ TQGList::append(Item(d)); }
                            -    type *dequeue()			{ return (type *)TQGList::takeFirst();}
                            -    bool  remove()			{ return TQGList::removeFirst(); }
                            -    void  clear()			{ TQGList::clear(); }
                            -    type *head()    const		{ return (type *)TQGList::cfirst(); }
                            -	  operator type *() const	{ return (type *)TQGList::cfirst(); }
                            -    type *current() const		{ return (type *)TQGList::cfirst(); }
                            -
                            -#ifdef Q_QDOC
                            -protected:
                            -    virtual TQDataStream& read( TQDataStream&, TQPtrCollection::Item& );
                            -    virtual TQDataStream& write( TQDataStream&, TQPtrCollection::Item ) const;
                            -#endif
                            -
                            -private:
                            -    void  deleteItem( Item d );
                            -};
                            -
                            -#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                            -template<> inline void TQPtrQueue<void>::deleteItem( TQPtrCollection::Item )
                            -{
                            -}
                            -#endif
                            -
                            -template<class type> inline void TQPtrQueue<type>::deleteItem( TQPtrCollection::Item d )
                            -{
                            -    if ( del_item ) delete (type *)d;
                            -}
                            -
                            -#endif // TQPTRQUEUE_H
                            -
                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrqueue-members.html b/doc/html/qptrqueue-members.html deleted file mode 100644 index 8f244e2f9..000000000 --- a/doc/html/qptrqueue-members.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - -TQPtrQueue Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrQueue

                            - -

                            This is the complete list of member functions for -TQPtrQueue, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrstack-h.html b/doc/html/qptrstack-h.html deleted file mode 100644 index 4270c79c9..000000000 --- a/doc/html/qptrstack-h.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - -ntqptrstack.h Include File - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            ntqptrstack.h

                            - -

                            This is the verbatim text of the ntqptrstack.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


                            -
                            -/****************************************************************************
                            -** $Id: qt/ntqptrstack.h   3.3.8   edited Jan 11 14:38 $
                            -**
                            -** Definition of TQPtrStack pointer based template class
                            -**
                            -** Created : 920917
                            -**
                            -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                            -**
                            -** This file is part of the tools module of the TQt GUI Toolkit.
                            -**
                            -** This file may be used under the terms of the GNU General Public
                            -** License versions 2.0 or 3.0 as published by the Free Software
                            -** Foundation and appearing in the file LICENSE.GPL included in the
                            -** packaging of this file. Alternatively you may (at your option) use any
                            -** later version of the GNU General Public License if such license has
                            -** been publicly approved by Trolltech ASA (or its successors, if any)
                            -** and the KDE Free TQt Foundation.
                            -**
                            -** Please review the following information to ensure GNU General
                            -** Public Licensing requirements will be met:
                            -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                            -** If you are unsure which license is appropriate for your use, please
                            -** review the following information:
                            -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                            -** or contact the sales department at sales@trolltech.com.
                            -**
                            -** This file may be used under the terms of the Q Public License as
                            -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                            -** included in the packaging of this file.  Licensees holding valid TQt
                            -** Commercial licenses may use this file in accordance with the TQt
                            -** Commercial License Agreement provided with the Software.
                            -**
                            -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                            -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                            -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                            -** herein.
                            -**
                            -**********************************************************************/
                            -
                            -#ifndef TQPTRSTACK_H
                            -#define TQPTRSTACK_H
                            -
                            -#ifndef QT_H
                            -#include "ntqglist.h"
                            -#endif // QT_H
                            -
                            -template<class type>
                            -class TQPtrStack : protected TQGList
                            -{
                            -public:
                            -    TQPtrStack()				{ }
                            -    TQPtrStack( const TQPtrStack<type> &s ) : TQGList( s ) { }
                            -    ~TQPtrStack()			{ clear(); }
                            -    TQPtrStack<type> &operator=(const TQPtrStack<type> &s)
                            -			{ return (TQPtrStack<type>&)TQGList::operator=(s); }
                            -    bool  autoDelete() const		{ return TQPtrCollection::autoDelete(); }
                            -    void  setAutoDelete( bool del )	{ TQPtrCollection::setAutoDelete(del); }
                            -    uint  count()   const		{ return TQGList::count(); }
                            -    bool  isEmpty() const		{ return TQGList::count() == 0; }
                            -    void  push( const type *d )		{ TQGList::insertAt(0,Item(d)); }
                            -    type *pop()				{ return (type *)TQGList::takeFirst(); }
                            -    bool  remove()			{ return TQGList::removeFirst(); }
                            -    void  clear()			{ TQGList::clear(); }
                            -    type *top()	    const		{ return (type *)TQGList::cfirst(); }
                            -	  operator type *() const	{ return (type *)TQGList::cfirst(); }
                            -    type *current() const		{ return (type *)TQGList::cfirst(); }
                            -
                            -#ifdef Q_QDOC
                            -protected:
                            -    virtual TQDataStream& read( TQDataStream&, TQPtrCollection::Item& );
                            -    virtual TQDataStream& write( TQDataStream&, TQPtrCollection::Item ) const;
                            -#endif
                            -
                            -private:
                            -    void  deleteItem( Item d );
                            -};
                            -
                            -#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                            -template<> inline void TQPtrStack<void>::deleteItem( TQPtrCollection::Item )
                            -{
                            -}
                            -#endif
                            -
                            -template<class type> inline void TQPtrStack<type>::deleteItem( TQPtrCollection::Item d )
                            -{
                            -    if ( del_item ) delete (type *)d;
                            -}
                            -
                            -#endif // TQPTRSTACK_H
                            -
                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrstack-members.html b/doc/html/qptrstack-members.html deleted file mode 100644 index 9a4bf7d6f..000000000 --- a/doc/html/qptrstack-members.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - -TQPtrStack Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrStack

                            - -

                            This is the complete list of member functions for -TQPtrStack, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrvector-h.html b/doc/html/qptrvector-h.html deleted file mode 100644 index 0a51044a8..000000000 --- a/doc/html/qptrvector-h.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - -ntqptrvector.h Include File - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            ntqptrvector.h

                            - -

                            This is the verbatim text of the ntqptrvector.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


                            -
                            -/****************************************************************************
                            -** $Id: qt/ntqptrvector.h   3.3.8   edited Jan 11 14:38 $
                            -**
                            -** Definition of TQPtrVector pointer based template class
                            -**
                            -** Created : 930907
                            -**
                            -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                            -**
                            -** This file is part of the tools module of the TQt GUI Toolkit.
                            -**
                            -** This file may be used under the terms of the GNU General Public
                            -** License versions 2.0 or 3.0 as published by the Free Software
                            -** Foundation and appearing in the file LICENSE.GPL included in the
                            -** packaging of this file. Alternatively you may (at your option) use any
                            -** later version of the GNU General Public License if such license has
                            -** been publicly approved by Trolltech ASA (or its successors, if any)
                            -** and the KDE Free TQt Foundation.
                            -**
                            -** Please review the following information to ensure GNU General
                            -** Public Licensing requirements will be met:
                            -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                            -** If you are unsure which license is appropriate for your use, please
                            -** review the following information:
                            -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                            -** or contact the sales department at sales@trolltech.com.
                            -**
                            -** This file may be used under the terms of the Q Public License as
                            -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                            -** included in the packaging of this file.  Licensees holding valid TQt
                            -** Commercial licenses may use this file in accordance with the TQt
                            -** Commercial License Agreement provided with the Software.
                            -**
                            -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                            -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                            -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                            -** herein.
                            -**
                            -**********************************************************************/
                            -
                            -#ifndef TQPTRVECTOR_H
                            -#define TQPTRVECTOR_H
                            -
                            -#ifndef QT_H
                            -#include "ntqgvector.h"
                            -#endif // QT_H
                            -
                            -template<class type>
                            -class TQPtrVector
                            -#ifdef Q_QDOC
                            -	: public TQPtrCollection
                            -#else
                            -	: public TQGVector
                            -#endif
                            -{
                            -public:
                            -    TQPtrVector()				{ }
                            -    TQPtrVector( uint size ) : TQGVector(size) { }
                            -    TQPtrVector( const TQPtrVector<type> &v ) : TQGVector( v ) { }
                            -    ~TQPtrVector()				{ clear(); }
                            -    TQPtrVector<type> &operator=(const TQPtrVector<type> &v)
                            -			{ return (TQPtrVector<type>&)TQGVector::operator=(v); }
                            -    bool operator==( const TQPtrVector<type> &v ) const { return TQGVector::operator==(v); }
                            -    type **data()   const		{ return (type **)TQGVector::data(); }
                            -    uint  size()    const		{ return TQGVector::size(); }
                            -    uint  count()   const		{ return TQGVector::count(); }
                            -    bool  isEmpty() const		{ return TQGVector::count() == 0; }
                            -    bool  isNull()  const		{ return TQGVector::size() == 0; }
                            -    bool  resize( uint size )		{ return TQGVector::resize(size); }
                            -    bool  insert( uint i, const type *d){ return TQGVector::insert(i,(Item)d); }
                            -    bool  remove( uint i )		{ return TQGVector::remove(i); }
                            -    type *take( uint i )		{ return (type *)TQGVector::take(i); }
                            -    void  clear()			{ TQGVector::clear(); }
                            -    bool  fill( const type *d, int size=-1 )
                            -					{ return TQGVector::fill((Item)d,size);}
                            -    void  sort()			{ TQGVector::sort(); }
                            -    int	  bsearch( const type *d ) const{ return TQGVector::bsearch((Item)d); }
                            -    int	  findRef( const type *d, uint i=0 ) const
                            -					{ return TQGVector::findRef((Item)d,i);}
                            -    int	  find( const type *d, uint i= 0 ) const
                            -					{ return TQGVector::find((Item)d,i); }
                            -    uint  containsRef( const type *d ) const
                            -				{ return TQGVector::containsRef((Item)d); }
                            -    uint  contains( const type *d ) const
                            -					{ return TQGVector::contains((Item)d); }
                            -    type *operator[]( int i ) const	{ return (type *)TQGVector::at(i); }
                            -    type *at( uint i ) const		{ return (type *)TQGVector::at(i); }
                            -    void  toList( TQGList *list ) const	{ TQGVector::toList(list); }
                            -
                            -#ifdef Q_QDOC
                            -protected:
                            -    virtual int compareItems( TQPtrCollection::Item d1, TQPtrCollection::Item d2 );
                            -    virtual TQDataStream& read( TQDataStream &s, TQPtrCollection::Item &d );
                            -    virtual TQDataStream& write( TQDataStream &s, TQPtrCollection::Item d ) const;
                            -#endif
                            -
                            -private:
                            -    void  deleteItem( Item d );
                            -};
                            -
                            -#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                            -template<> inline void TQPtrVector<void>::deleteItem( TQPtrCollection::Item )
                            -{
                            -}
                            -#endif
                            -
                            -template<class type> inline void TQPtrVector<type>::deleteItem( TQPtrCollection::Item d )
                            -{
                            -    if ( del_item ) delete (type *)d;
                            -}
                            -
                            -#define Q_DEFINED_QPTRVECTOR
                            -#include "ntqwinexport.h"
                            -#endif // TQPTRVECTOR_H
                            -
                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qptrvector-members.html b/doc/html/qptrvector-members.html deleted file mode 100644 index a5a5a3b85..000000000 --- a/doc/html/qptrvector-members.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -TQPtrVector Member List - - - - - - - -
                            - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

                            Complete Member List for TQPtrVector

                            - -

                            This is the complete list of member functions for -TQPtrVector, including inherited members. - -

                            - -


                            - -
                            Copyright © 2007 -TrolltechTrademarks -
                            TQt 3.3.8
                            -
                            - diff --git a/doc/html/qstrilist-members.html b/doc/html/qstrilist-members.html index 2a58e291d..3f4fd3dce 100644 --- a/doc/html/qstrilist-members.html +++ b/doc/html/qstrilist-members.html @@ -37,48 +37,48 @@ body { background: #ffffff; color: black; }


                            diff --git a/doc/html/qstrilist.html b/doc/html/qstrilist.html index 417f7c6be..26b2b8876 100644 --- a/doc/html/qstrilist.html +++ b/doc/html/qstrilist.html @@ -1,5 +1,5 @@ - + @@ -49,12 +49,12 @@ The TQStrIList class provides a doubly-linked list of char* with case-insensitive comparison.

                            -

                            This class is a TQPtrList<char> instance (a list of char*). +

                            This class is a TQPtrList<char> instance (a list of char*).

                            TQStrIList is identical to TQStrList except that the virtual -compareItems() function is reimplemented to compare strings -case-insensitively. The inSort() function inserts strings in a +compareItems() function is reimplemented to compare strings +case-insensitively. The inSort() function inserts strings in a sorted order. In general it is fastest to insert the strings as -they come and sort() at the end; inSort() is useful when you just +they come and sort() at the end; inSort() is useful when you just have to add a few extra strings to an already sorted list.

                            The TQStrListIterator class works for TQStrIList.

                            See also TQStringList, Collection Classes, and Non-GUI Classes. diff --git a/doc/html/qstrlist-h.html b/doc/html/qstrlist-h.html index 4624cfca1..798614f49 100644 --- a/doc/html/qstrlist-h.html +++ b/doc/html/qstrlist-h.html @@ -79,7 +79,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqstring.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqdatastream.h" #endif // QT_H diff --git a/doc/html/qstrlist-members.html b/doc/html/qstrlist-members.html index 48fcff3a5..2fe06f41f 100644 --- a/doc/html/qstrlist-members.html +++ b/doc/html/qstrlist-members.html @@ -37,48 +37,48 @@ body { background: #ffffff; color: black; }


                            diff --git a/doc/html/qstrlistiterator-members.html b/doc/html/qstrlistiterator-members.html index c4f095fc8..2a9c4af48 100644 --- a/doc/html/qstrlistiterator-members.html +++ b/doc/html/qstrlistiterator-members.html @@ -35,21 +35,21 @@ body { background: #ffffff; color: black; } TQStrListIterator, including inherited members.


                            diff --git a/doc/html/qstrlistiterator.html b/doc/html/qstrlistiterator.html index 77fb6185c..920d3d980 100644 --- a/doc/html/qstrlistiterator.html +++ b/doc/html/qstrlistiterator.html @@ -1,5 +1,5 @@ - + @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } and TQStrIList classes. More...

                            #include <ntqstrlist.h> -

                            Inherits TQPtrListIterator<char>. +

                            Inherits TQPtrListIterator<char>.

                            List of all member functions.


                            Detailed Description

                            @@ -43,7 +43,7 @@ and TQStrIList classes. The TQStrListIterator class is an iterator for the TQStrList and TQStrIList classes.

                            -

                            This class is a TQPtrListIterator<char> instance. It can traverse +

                            This class is a TQPtrListIterator<char> instance. It can traverse the strings in the TQStrList and TQStrIList classes.

                            See also Non-GUI Classes. diff --git a/doc/html/qstylesheet-h.html b/doc/html/qstylesheet-h.html index 09f042485..32f9d8632 100644 --- a/doc/html/qstylesheet-h.html +++ b/doc/html/qstylesheet-h.html @@ -80,7 +80,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqstring.h" #include "tqvaluelist.h" -#include "ntqptrvector.h" +#include "tqptrvector.h" #include "ntqdict.h" #include "tqobject.h" #endif // QT_H diff --git a/doc/html/qt-template-lib.html b/doc/html/qt-template-lib.html index 296778444..a96e9b7f0 100644 --- a/doc/html/qt-template-lib.html +++ b/doc/html/qt-template-lib.html @@ -51,11 +51,11 @@ of the STL container API. Compared with the STL, TQTL has no platform differences, but is often a little slower and often expands to less object code.

                            If you cannot make copies of the objects you want to store you should -use TQPtrCollection and friends, all of which operate on pointers +use TQPtrCollection and friends, all of which operate on pointers rather than values. This applies, for example, to all classes derived from TQObject. A TQObject does not have a copy constructor, so using it as value is impossible. You may choose to store pointers to -TQObjects in a TQValueList, but using TQPtrList directly seems to be the +TQObjects in a TQValueList, but using TQPtrList directly seems to be the better choice for this kind of application domain. TQPtrList, like all other TQPtrCollection based containers, provides far more sanity checking than a speed-optimized value based container. @@ -76,7 +76,7 @@ your data's class. TQString and all simple C++ types, such as int, bool or double.

                            The TQt Template Library is designed for speed. Iterators are extremely fast. To achieve this performance, less error checking is done than in -the TQPtrCollection based containers. A TQTL container, for example, +the TQPtrCollection based containers. A TQTL container, for example, does not track any associated iterators. This makes certain validity checks, for example when removing items, impossible to perform automatically, but does lead to extremely good performance. diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf index e6530294d..85fcc0afa 100644 --- a/doc/html/qt.dcf +++ b/doc/html/qt.dcf @@ -5805,189 +5805,189 @@

                            -
                            - QPtrCollection - Item - autoDelete - clear - count - deleteItem - newItem - setAutoDelete - ~QPtrCollection -
                            -
                            -
                            -
                            - QPtrDict - clear - count - find - insert - isEmpty - operator= - operator[] - read - remove - replace - resize - size - statistics - take - write - ~QPtrDict -
                            -
                            -
                            -
                            - QPtrDictIterator - count - current - currentKey - isEmpty - operator type * - operator() - operator++ - operator+= - toFirst - ~QPtrDictIterator -
                            -
                            -
                            -
                            - QPtrList - append - at - clear - compareItems - contains - containsRef - count - current - currentNode - find - findNext - findNextRef - findRef - first - getFirst - getLast - inSort - insert - isEmpty - last - next - operator!= - operator= - operator== - prepend - prev - read - remove - removeFirst - removeLast - removeNode - removeRef - replace - sort - take - takeNode - toVector - write - ~QPtrList -
                            -
                            -
                            -
                            - QPtrListIterator - atFirst - atLast - count - current - isEmpty - operator type * - operator() - operator* - operator++ - operator+= - operator-- - operator-= - operator= - toFirst - toLast - ~QPtrListIterator -
                            -
                            -
                            -
                            - QPtrQueue - autoDelete - clear - count - current - dequeue - enqueue - head - isEmpty - operator type * - operator= - read - remove - setAutoDelete - write - ~QPtrQueue -
                            -
                            -
                            -
                            - QPtrStack - autoDelete - clear - count - current - isEmpty - operator type * - operator= - pop - push - read - remove - setAutoDelete - top - write - ~QPtrStack -
                            -
                            -
                            -
                            - QPtrVector - at - bsearch - clear - compareItems - contains - containsRef - count - data - fill - find - findRef - insert - isEmpty - isNull - operator= - operator== - operator[] - read - remove - resize - size - sort - take - write - ~QPtrVector -
                            -
                            +
                            + TQPtrCollection + Item + autoDelete + clear + count + deleteItem + newItem + setAutoDelete + ~TQPtrCollection +
                            +
                            +
                            +
                            + TQPtrDict + clear + count + find + insert + isEmpty + operator= + operator[] + read + remove + replace + resize + size + statistics + take + write + ~TQPtrDict +
                            +
                            +
                            +
                            + TQPtrDictIterator + count + current + currentKey + isEmpty + operator type * + operator() + operator++ + operator+= + toFirst + ~TQPtrDictIterator +
                            +
                            +
                            +
                            + TQPtrList + append + at + clear + compareItems + contains + containsRef + count + current + currentNode + find + findNext + findNextRef + findRef + first + getFirst + getLast + inSort + insert + isEmpty + last + next + operator!= + operator= + operator== + prepend + prev + read + remove + removeFirst + removeLast + removeNode + removeRef + replace + sort + take + takeNode + toVector + write + ~TQPtrList +
                            +
                            +
                            +
                            + TQPtrListIterator + atFirst + atLast + count + current + isEmpty + operator type * + operator() + operator* + operator++ + operator+= + operator-- + operator-= + operator= + toFirst + toLast + ~TQPtrListIterator +
                            +
                            +
                            +
                            + TQPtrQueue + autoDelete + clear + count + current + dequeue + enqueue + head + isEmpty + operator type * + operator= + read + remove + setAutoDelete + write + ~TQPtrQueue +
                            +
                            +
                            +
                            + TQPtrStack + autoDelete + clear + count + current + isEmpty + operator type * + operator= + pop + push + read + remove + setAutoDelete + top + write + ~TQPtrStack +
                            +
                            +
                            +
                            + TQPtrVector + at + bsearch + clear + compareItems + contains + containsRef + count + data + fill + find + findRef + insert + isEmpty + isNull + operator= + operator== + operator[] + read + remove + resize + size + sort + take + write + ~TQPtrVector +
                            +
                            QPushButton diff --git a/doc/html/qtabbar-h.html b/doc/html/qtabbar-h.html index 1efa0cf36..9684d5546 100644 --- a/doc/html/qtabbar-h.html +++ b/doc/html/qtabbar-h.html @@ -77,7 +77,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "tqwidget.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #endif // QT_H #ifndef TQT_NO_TABBAR diff --git a/doc/html/qtable-h.html b/doc/html/qtable-h.html index 362ba7f62..5b454902e 100644 --- a/doc/html/qtable-h.html +++ b/doc/html/qtable-h.html @@ -79,10 +79,10 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqscrollview.h" #include "ntqpixmap.h" -#include "ntqptrvector.h" +#include "tqptrvector.h" #include "ntqheader.h" #include "ntqmemarray.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqguardedptr.h" #include "ntqshared.h" #include "ntqintdict.h" diff --git a/doc/html/qtextbrowser-h.html b/doc/html/qtextbrowser-h.html index 65596b236..0932d2839 100644 --- a/doc/html/qtextbrowser-h.html +++ b/doc/html/qtextbrowser-h.html @@ -78,7 +78,7 @@ body { background: #ffffff; color: black; } #define TQTEXTBROWSER_H #ifndef QT_H -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqpixmap.h" #include "ntqcolor.h" #include "ntqtextedit.h" diff --git a/doc/html/qtextedit-h.html b/doc/html/qtextedit-h.html index 8cda9e170..c03747801 100644 --- a/doc/html/qtextedit-h.html +++ b/doc/html/qtextedit-h.html @@ -80,9 +80,9 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqscrollview.h" #include "ntqstylesheet.h" -#include "ntqptrvector.h" +#include "tqptrvector.h" #include "tqvaluelist.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #endif // QT_H #ifndef TQT_NO_TEXTEDIT diff --git a/doc/html/qurloperator-h.html b/doc/html/qurloperator-h.html index 8d8734515..18887aadc 100644 --- a/doc/html/qurloperator-h.html +++ b/doc/html/qurloperator-h.html @@ -80,7 +80,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "tqobject.h" #include "ntqurl.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqnetworkprotocol.h" #include "ntqstringlist.h" // TQString->TQStringList conversion #endif // QT_H diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index a69de6000..09d52e78e 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -117,7 +117,7 @@ private: #include <ntqpainter.h> #include <ntqmessagebox.h> #include <ntqpaintdevicemetrics.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> #include <ntqfontdialog.h> #include <ntqtextcodec.h> @@ -205,12 +205,12 @@ Editor::~Editor() void Editor::rebuildCodecList() { delete codecList; - codecList = new TQPtrList<TQTextCodec>; + codecList = new TQPtrList<TQTextCodec>; TQTextCodec *codec; int i; for (i = 0; (codec = TQTextCodec::codecForIndex(i)); i++) - codecList->append( codec ); - int n = codecList->count(); + codecList->append( codec ); + int n = codecList->count(); for (int pm=0; pm<2; pm++) { TQPopupMenu* menu = pm ? open_as : save_as; menu->clear(); @@ -224,7 +224,7 @@ void Editor::rebuildCodecList() if ( pm ) menu->insertItem( "[guess]", Guess ); for ( i = 0; i < n; i++ ) - menu->insertItem( codecList->at(i)->name(), Codec + i ); + menu->insertItem( codecList->at(i)->name(), Codec + i ); } } @@ -260,7 +260,7 @@ void Editor::load( const TQString& fileName, in TQTextStream t(&f); if ( code >= Codec ) - t.setCodec( codecList->at(code-Codec) ); + t.setCodec( codecList->at(code-Codec) ); else if ( code == Uni ) t.setEncoding( TQTextStream::Unicode ); else if ( code == MBug ) @@ -360,7 +360,7 @@ bool Editor::saveAs( const TQString< } TQTextStream t(&f); if ( code >= Codec ) - t.setCodec( codecList->at(code-Codec) ); + t.setCodec( codecList->at(code-Codec) ); else if ( code == Uni ) t.setEncoding( TQTextStream::Unicode ); else if ( code == MBug ) diff --git a/doc/html/qwindowsmime.html b/doc/html/qwindowsmime.html index 537ef6188..b47810182 100644 --- a/doc/html/qwindowsmime.html +++ b/doc/html/qwindowsmime.html @@ -103,7 +103,7 @@ list of available convertors. Destroys a conversion object, removing it from the global list of available convertors. -

                            TQPtrList<TQWindowsMime> TQWindowsMime::all () [static] +

                            TQPtrList<TQWindowsMime> TQWindowsMime::all () [static]

                            Returns a list of all currently defined TQWindowsMime objects. diff --git a/doc/html/qwindowsystem_qws-h.html b/doc/html/qwindowsystem_qws-h.html index 998606cdd..02a40b3a9 100644 --- a/doc/html/qwindowsystem_qws-h.html +++ b/doc/html/qwindowsystem_qws-h.html @@ -79,7 +79,7 @@ body { background: #ffffff; color: black; } #include "qwssocket_qws.h" #include "tqmap.h" #include "ntqdatetime.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqimage.h" #include "qwsproperty_qws.h" diff --git a/doc/html/qwsserver.html b/doc/html/qwsserver.html index 48863b51c..9467193d7 100644 --- a/doc/html/qwsserver.html +++ b/doc/html/qwsserver.html @@ -159,7 +159,7 @@ parent is parent and it is called name.
              • Destruct TQWSServer -

                const TQPtrList<TQWSWindow> & TQWSServer::clientWindows () +

                const TQPtrList<TQWSWindow> & TQWSServer::clientWindows ()

                Returns the list of top-level windows. This list will change as diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index 5c60e2591..753a87546 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -280,7 +280,7 @@ void Scribble::slotSave() { TQPopupMenu *menu = new TQPopupMenu( 0 ); TQIntDict<TQString> formats; - formats.setAutoDelete( TRUE ); + formats.setAutoDelete( TRUE ); for ( unsigned int i = 0; i < TQImageIO::outputFormats().count(); i++ ) { TQString str = TQString( TQImageIO::outputFormats().at( i ) ); diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html index 218dcf0a0..561715f38 100644 --- a/doc/html/showimg-example.html +++ b/doc/html/showimg-example.html @@ -181,7 +181,7 @@ private slots: TQStrList fmt = TQImage::outputFormats(); saveimage = new TQPopupMenu( menubar ); savepixmap = new TQPopupMenu( menubar ); - for (const char* f = fmt.first(); f; f = fmt.next()) { + for (const char* f = fmt.first(); f; f = fmt.next()) { saveimage->insertItem( f ); savepixmap->insertItem( f ); } diff --git a/doc/html/table-bigtable-main-cpp.html b/doc/html/table-bigtable-main-cpp.html index 1c5419102..5333f34fc 100644 --- a/doc/html/table-bigtable-main-cpp.html +++ b/doc/html/table-bigtable-main-cpp.html @@ -54,8 +54,8 @@ class MyTable : public TQTable { public: MyTable( int r, int c ) : TQTable( r, c ) { - items.setAutoDelete( TRUE ); - widgets.setAutoDelete( TRUE ); + items.setAutoDelete( TRUE ); + widgets.setAutoDelete( TRUE ); setCaption( tr( "A 1 Million x 1 Million Cell Table" ) ); setLeftMargin( fontMetrics().width( "W999999W" ) ); } @@ -66,9 +66,9 @@ public: void clearCell( int r, int c ) { items.remove( indexOf( r, c ) ); } void takeItem( TQTableItem *item ) { - items.setAutoDelete( FALSE ); + items.setAutoDelete( FALSE ); items.remove( indexOf( item->row(), item->col() ) ); - items.setAutoDelete( TRUE ); + items.setAutoDelete( TRUE ); } void insertWidget( int r, int c, TQWidget *w ) { widgets.replace( indexOf( r, c ), w ); } TQWidget *cellWidget( int r, int c ) const { return widgets.find( indexOf( r, c ) ); } diff --git a/doc/html/tagreader-with-features-example.html b/doc/html/tagreader-with-features-example.html index 43725f287..fa71f2533 100644 --- a/doc/html/tagreader-with-features-example.html +++ b/doc/html/tagreader-with-features-example.html @@ -53,7 +53,7 @@ $Id: qt/structureparser.h 3.3.8 edited May 27 2003 $ #define STRUCTUREPARSER_H #include <tqxml.h> -#include <ntqptrstack.h> +#include <tqptrstack.h> class TQListView; class TQListViewItem; @@ -70,7 +70,7 @@ public: void setListView( TQListView * ); private: - TQPtrStack<TQListViewItem> stack; + TQPtrStack<TQListViewItem> stack; TQListView * table; }; diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html index 2fd58a3c9..ae4812965 100644 --- a/doc/html/tictac-example.html +++ b/doc/html/tictac-example.html @@ -55,7 +55,7 @@ widget. #include <ntqpushbutton.h> -#include <ntqptrvector.h> +#include <tqptrvector.h> class TQComboBox; class TQLabel; diff --git a/doc/html/titleindex b/doc/html/titleindex index fcb74f45e..a639bbc1b 100644 --- a/doc/html/titleindex +++ b/doc/html/titleindex @@ -697,22 +697,22 @@ QProgressBar Class | ntqprogressbar.html QProgressBar Member List | qprogressbar-members.html QProgressDialog Class | ntqprogressdialog.html QProgressDialog Member List | qprogressdialog-members.html -QPtrCollection Class | ntqptrcollection.html -QPtrCollection Member List | qptrcollection-members.html -QPtrDict Class | ntqptrdict.html -QPtrDict Member List | qptrdict-members.html -QPtrDictIterator Class | qptrdictiterator.html -QPtrDictIterator Member List | qptrdictiterator-members.html -QPtrList Class | ntqptrlist.html -QPtrList Member List | qptrlist-members.html -QPtrListIterator Class | qptrlistiterator.html -QPtrListIterator Member List | qptrlistiterator-members.html -QPtrQueue Class | ntqptrqueue.html -QPtrQueue Member List | qptrqueue-members.html -QPtrStack Class | ntqptrstack.html -QPtrStack Member List | qptrstack-members.html -QPtrVector Class | ntqptrvector.html -QPtrVector Member List | qptrvector-members.html +TQPtrCollection Class | tqptrcollection.html +TQPtrCollection Member List | tqptrcollection-members.html +TQPtrDict Class | tqptrdict.html +TQPtrDict Member List | tqptrdict-members.html +TQPtrDictIterator Class | tqptrdictiterator.html +TQPtrDictIterator Member List | tqptrdictiterator-members.html +TQPtrList Class | tqptrlist.html +TQPtrList Member List | tqptrlist-members.html +TQPtrListIterator Class | tqptrlistiterator.html +TQPtrListIterator Member List | tqptrlistiterator-members.html +TQPtrQueue Class | tqptrqueue.html +TQPtrQueue Member List | tqptrqueue-members.html +TQPtrStack Class | tqptrstack.html +TQPtrStack Member List | tqptrstack-members.html +TQPtrVector Class | tqptrvector.html +TQPtrVector Member List | tqptrvector-members.html QPushButton Class | ntqpushbutton.html QPushButton Member List | qpushbutton-members.html QRadioButton Class | ntqradiobutton.html @@ -1321,12 +1321,12 @@ ntqprinter.h Include File | qprinter-h.html ntqprocess.h Include File | qprocess-h.html ntqprogressbar.h Include File | qprogressbar-h.html ntqprogressdialog.h Include File | qprogressdialog-h.html -ntqptrcollection.h Include File | qptrcollection-h.html -ntqptrdict.h Include File | qptrdict-h.html -ntqptrlist.h Include File | qptrlist-h.html -ntqptrqueue.h Include File | qptrqueue-h.html -ntqptrstack.h Include File | qptrstack-h.html -ntqptrvector.h Include File | qptrvector-h.html +tqptrcollection.h Include File | tqptrcollection-h.html +tqptrdict.h Include File | tqptrdict-h.html +tqptrlist.h Include File | tqptrlist-h.html +tqptrqueue.h Include File | tqptrqueue-h.html +tqptrstack.h Include File | tqptrstack-h.html +tqptrvector.h Include File | tqptrvector-h.html ntqpushbutton.h Include File | qpushbutton-h.html ntqradiobutton.h Include File | qradiobutton-h.html ntqrangecontrol.h Include File | qrangecontrol-h.html diff --git a/doc/html/tools.html b/doc/html/tools.html index 7a2969da0..9d55de4f7 100644 --- a/doc/html/tools.html +++ b/doc/html/tools.html @@ -63,14 +63,14 @@ classes. TQObjectListTQPtrList of TQObjects TQObjectListIteratorIterator for TQObjectLists TQPairValue-based template class that provides a pair of elements -TQPtrCollectionThe base class of most pointer-based TQt collections -TQPtrDictTemplate class that provides a dictionary based on void* keys -TQPtrDictIteratorIterator for TQPtrDict collections -TQPtrListTemplate class that provides a list -TQPtrListIteratorIterator for TQPtrList collections -TQPtrQueueTemplate class that provides a queue -TQPtrStackTemplate class that provides a stack -TQPtrVectorTemplate collection class that provides a vector (array) +TQPtrCollectionThe base class of most pointer-based TQt collections +TQPtrDictTemplate class that provides a dictionary based on void* keys +TQPtrDictIteratorIterator for TQPtrDict collections +TQPtrListTemplate class that provides a list +TQPtrListIteratorIterator for TQPtrList collections +TQPtrQueueTemplate class that provides a queue +TQPtrStackTemplate class that provides a stack +TQPtrVectorTemplate collection class that provides a vector (array) TQRegExpPattern matching using regular expressions TQStrIListDoubly-linked list of char* with case-insensitive comparison TQStringAbstraction of Unicode text and the classic C '\0'-terminated char array diff --git a/doc/html/tqcanvas-h.html b/doc/html/tqcanvas-h.html index 477dc2c0e..281ea932c 100644 --- a/doc/html/tqcanvas-h.html +++ b/doc/html/tqcanvas-h.html @@ -80,7 +80,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqscrollview.h" #include "ntqpixmap.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #include "ntqbrush.h" #include "ntqpen.h" #include "tqvaluelist.h" diff --git a/doc/html/tqcanvaspixmaparray.html b/doc/html/tqcanvaspixmaparray.html index d7c259678..4e011751a 100644 --- a/doc/html/tqcanvaspixmaparray.html +++ b/doc/html/tqcanvaspixmaparray.html @@ -96,7 +96,7 @@ the first (and only) frame. an image, or some other error occurs, the array ends up empty and isValid() returns FALSE. -

                TQCanvasPixmapArray::TQCanvasPixmapArray ( TQPtrList<TQPixmap> list, TQPtrList<TQPoint> hotspots ) +

                TQCanvasPixmapArray::TQCanvasPixmapArray ( TQPtrList<TQPixmap> list, TQPtrList<TQPoint> hotspots )

                This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

                Use TQCanvasPixmapArray::TQCanvasPixmapArray( TQValueList, TQPointArray ) diff --git a/doc/html/tqmap.html b/doc/html/tqmap.html index 14a006d9e..57080728a 100644 --- a/doc/html/tqmap.html +++ b/doc/html/tqmap.html @@ -110,7 +110,7 @@ available on all your target platforms. TQMap is part of the TQPtrList and TQDict are pointer-based. +value-based, whereas TQPtrList and TQDict are pointer-based.

                TQMap contains and manages a collection of objects of type Data with associated key values of type Key and provides iterators that allow the contained objects to be addressed. TQMap owns the diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html index 43c77e4d4..58f4792c0 100644 --- a/doc/html/tqobject.html +++ b/doc/html/tqobject.html @@ -158,7 +158,7 @@ certain functions to exhibit undefined behaviour. isWidgetType() returns whether an object is actually a widget. It is much faster than inherits( "TQWidget" ).

                Some TQObject functions, e.g. children(), objectTrees() and -queryList() return a TQObjectList. A TQObjectList is a TQPtrList of +queryList() return a TQObjectList. A TQObjectList is a TQPtrList of TQObjects. TQObjectLists support the same operations as TQPtrLists and have an iterator class, TQObjectListIt.

                See also Object Model. @@ -255,8 +255,8 @@ in functions that depend on the state. One notable example is children.

                The TQObjectList class is defined in the tqobjectlist.h header file. -

                The first child added is the first -object in the list and the last child added is the last object in the list, i.e. new +

                The first child added is the first +object in the list and the last child added is the last object in the list, i.e. new children are appended at the end.

                Note that the list order changes when TQWidget children are raised or lowered. A widget that is raised becomes the last object in the list, and a widget that is lowered becomes the first object @@ -710,8 +710,8 @@ Returns a pointer to the list of all object trees (their root objects), or 0 if there are no objects.

                The TQObjectList class is defined in the tqobjectlist.h header file. -

                The most recent root object created is the first object in the list and the first root object added -is the last object in the list. +

                The most recent root object created is the first object in the list and the first root object added +is the last object in the list.

                See also children(), parent(), insertChild(), and removeChild().

                TQObject * TQObject::parent () const diff --git a/doc/html/tqobjectlist-h.html b/doc/html/tqobjectlist-h.html index c1ca928bb..606061eb6 100644 --- a/doc/html/tqobjectlist-h.html +++ b/doc/html/tqobjectlist-h.html @@ -79,7 +79,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "tqobject.h" -#include "ntqptrlist.h" +#include "tqptrlist.h" #endif // QT_H diff --git a/doc/html/tqobjectlist-members.html b/doc/html/tqobjectlist-members.html index a75d12fb6..606b9e3ae 100644 --- a/doc/html/tqobjectlist-members.html +++ b/doc/html/tqobjectlist-members.html @@ -37,48 +37,48 @@ body { background: #ffffff; color: black; }


                diff --git a/doc/html/tqobjectlist.html b/doc/html/tqobjectlist.html index 0b4a92539..28d8c4d4c 100644 --- a/doc/html/tqobjectlist.html +++ b/doc/html/tqobjectlist.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

                The TQObjectList class is a TQPtrList of TQObjects. More...

                #include <tqobjectlist.h> -

                Inherits TQPtrList<TQObject>. +

                Inherits TQPtrList<TQObject>.

                List of all member functions.

                Public Members

                  @@ -46,11 +46,11 @@ body { background: #ffffff; color: black; }

                  Detailed Description

                  -The TQObjectList class is a TQPtrList of TQObjects. +The TQObjectList class is a TQPtrList of TQObjects.

                  -

                  A TQObjectList is a TQPtrList<TQObject>. The list can be traversed using -inherited functions, e.g. getFirst(), next(), etc., or using a +

                  A TQObjectList is a TQPtrList<TQObject>. The list can be traversed using +inherited functions, e.g. getFirst(), next(), etc., or using a TQObjectListIterator iterator.

                  See TQObject::queryList() for an example of use.

                  See also TQObjectListIterator, TQObject, Collection Classes, and Non-GUI Classes. @@ -65,7 +65,7 @@ inherited functions, e.g. getFirst(),

                  Constructs a copy of list. -

                  Each item in list is appended to this +

                  Each item in list is appended to this list. Only the pointers are copied (shallow copy).

                  TQObjectList::~TQObjectList () @@ -74,14 +74,14 @@ list. Only the pointers are copied (shallow copy).

                  Removes all the object pointers from the list and destroys the list.

                  All list iterators that access this list will be reset. -

                  See also setAutoDelete(). +

                  See also setAutoDelete().

                  TQObjectList & TQObjectList::operator= ( const TQObjectList & list )

                  Assigns list to this list and returns a reference to this list. -

                  This list is first cleared and then each item in list is appended to this list. Only the pointers are -copied (shallow copy) unless newItem() has been reimplemented(). +

                  This list is first cleared and then each item in list is appended to this list. Only the pointers are +copied (shallow copy) unless newItem() has been reimplemented().


                  diff --git a/doc/html/tqobjectlistiterator-members.html b/doc/html/tqobjectlistiterator-members.html index f1d64f486..6a590d964 100644 --- a/doc/html/tqobjectlistiterator-members.html +++ b/doc/html/tqobjectlistiterator-members.html @@ -36,21 +36,21 @@ body { background: #ffffff; color: black; }


                  diff --git a/doc/html/tqobjectlistiterator.html b/doc/html/tqobjectlistiterator.html index aa89ee177..757d956bc 100644 --- a/doc/html/tqobjectlistiterator.html +++ b/doc/html/tqobjectlistiterator.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } TQObjectLists. More...

                  #include <tqobjectlist.h> -

                  Inherits TQPtrListIterator<TQObject>. +

                  Inherits TQPtrListIterator<TQObject>.

                  List of all member functions.

                  Public Members

                    @@ -49,7 +49,7 @@ The TQObjectListIterator class provides an iterator for TQObjectLists.

                    -

                    A TQObjectListIterator iterator is a TQPtrListIterator<TQObject>. +

                    A TQObjectListIterator iterator is a TQPtrListIterator<TQObject>.

                    See TQObject::queryList() for an example of use.

                    See also TQObjectList, Collection Classes, and Non-GUI Classes. diff --git a/doc/html/tqpair.html b/doc/html/tqpair.html index 23a144018..06358d915 100644 --- a/doc/html/tqpair.html +++ b/doc/html/tqpair.html @@ -62,12 +62,12 @@ values that contains two values of type T1 and T2. Please note that TQPair does not store pointers to the two elements; it holds a copy of every member. This is why these kinds of classes are called value based. If you're interested in pointer based -classes see, for example, TQPtrList and TQDict. +classes see, for example, TQPtrList and TQDict.

                    TQPair holds one copy of type T1 and one copy of type T2, but does not provide iterators to access these elements. Instead, the two elements (first and second) are public member variables of the pair. TQPair owns the contained elements. For more relaxed -ownership semantics, see TQPtrCollection and friends which are +ownership semantics, see TQPtrCollection and friends which are pointer-based containers.

                    Some classes cannot be used within a TQPair: for example, all classes derived from TQObject and thus all classes that implement diff --git a/doc/html/tqptrcollection-h.html b/doc/html/tqptrcollection-h.html new file mode 100644 index 000000000..6ccde3862 --- /dev/null +++ b/doc/html/tqptrcollection-h.html @@ -0,0 +1,120 @@ + + + + + +tqptrcollection.h Include File + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    tqptrcollection.h

                    + +

                    This is the verbatim text of the tqptrcollection.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


                    +
                    +/****************************************************************************
                    +**
                    +** Definition of base class for all pointer based collection classes
                    +**
                    +**
                    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                    +**
                    +** This file is part of the tools module of the TQt GUI Toolkit.
                    +**
                    +** This file may be used under the terms of the GNU General Public
                    +** License versions 2.0 or 3.0 as published by the Free Software
                    +** Foundation and appearing in the file LICENSE.GPL included in the
                    +** packaging of this file. Alternatively you may (at your option) use any
                    +** later version of the GNU General Public License if such license has
                    +** been publicly approved by Trolltech ASA (or its successors, if any)
                    +** and the KDE Free TQt Foundation.
                    +**
                    +** Please review the following information to ensure GNU General
                    +** Public Licensing requirements will be met:
                    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                    +** If you are unsure which license is appropriate for your use, please
                    +** review the following information:
                    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                    +** or contact the sales department at sales@trolltech.com.
                    +**
                    +** This file may be used under the terms of the Q Public License as
                    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                    +** included in the packaging of this file.  Licensees holding valid TQt
                    +** Commercial licenses may use this file in accordance with the TQt
                    +** Commercial License Agreement provided with the Software.
                    +**
                    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                    +** herein.
                    +**
                    +**********************************************************************/
                    +
                    +#ifndef TQPTRCOLLECTION_H
                    +#define TQPTRCOLLECTION_H
                    +
                    +#ifndef QT_H
                    +#include "ntqglobal.h"
                    +#endif // QT_H
                    +
                    +
                    +class TQGVector;
                    +class TQGList;
                    +class TQGDict;
                    +
                    +
                    +class TQ_EXPORT TQPtrCollection			// inherited by all collections
                    +{
                    +public:
                    +    bool autoDelete()	const	       { return del_item; }
                    +    void setAutoDelete( bool enable )  { del_item = enable; }
                    +
                    +    virtual uint  count() const = 0;
                    +    virtual void  clear() = 0;			// delete all objects
                    +
                    +    typedef void *Item;				// generic collection item
                    +
                    +protected:
                    +    TQPtrCollection() { del_item = FALSE; }		// no deletion of objects
                    +    TQPtrCollection(const TQPtrCollection &) { del_item = FALSE; }
                    +    virtual ~TQPtrCollection() {}
                    +
                    +    bool del_item;				// default FALSE
                    +
                    +    virtual Item     newItem( Item );		// create object
                    +    virtual void     deleteItem( Item ) = 0;	// delete object
                    +};
                    +
                    +
                    +#endif // TQPTRCOLLECTION_H
                    +
                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrcollection-members.html b/doc/html/tqptrcollection-members.html new file mode 100644 index 000000000..e94fc9d67 --- /dev/null +++ b/doc/html/tqptrcollection-members.html @@ -0,0 +1,54 @@ + + + + + +TQPtrCollection Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrCollection

                    + +

                    This is the complete list of member functions for +TQPtrCollection, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrcollection.html b/doc/html/tqptrcollection.html new file mode 100644 index 000000000..d24a722c5 --- /dev/null +++ b/doc/html/tqptrcollection.html @@ -0,0 +1,177 @@ + + + + + +TQPtrCollection Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrCollection Class Reference

                    + +

                    The TQPtrCollection class is the base class of most pointer-based TQt collections. +More... +

                    All the functions in this class are reentrant when TQt is built with thread support.

                    +

                    #include <tqptrcollection.h> +

                    Inherited by TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +

                    List of all member functions. +

                    Public Members

                    + +

                    Protected Members

                    + +

                    Detailed Description

                    + + + +The TQPtrCollection class is the base class of most pointer-based TQt collections. +

                    + +

                    The TQPtrCollection class is an abstract base class for the TQt +collection classes TQDict, TQPtrList, +etc. TQt also includes value based collections, e.g. TQValueList, +TQMap, etc. +

                    A TQPtrCollection only knows about the number of objects in the +collection and the deletion strategy (see setAutoDelete()). +

                    A collection is implemented using the Item (generic collection +item) type, which is a void*. The template classes that create +the real collections cast the Item to the required type. +

                    See also Collection Classes and Non-GUI Classes. + +


                    Member Type Documentation

                    +

                    TQPtrCollection::Item

                    + +

                    This type is the generic "item" in a TQPtrCollection. + +


                    Member Function Documentation

                    +

                    TQPtrCollection::TQPtrCollection () [protected] +

                    + +

                    Constructs a collection. The constructor is protected because +TQPtrCollection is an abstract class. + +

                    TQPtrCollection::TQPtrCollection ( const TQPtrCollection & source ) [protected] +

                    + +

                    Constructs a copy of source with autoDelete() set to FALSE. The +constructor is protected because TQPtrCollection is an abstract +class. +

                    Note that if source has autoDelete turned on, copying it will +risk memory leaks, reading freed memory, or both. + +

                    TQPtrCollection::~TQPtrCollection () [virtual protected] +

                    + +

                    Destroys the collection. The destructor is protected because +TQPtrCollection is an abstract class. + +

                    bool TQPtrCollection::autoDelete () const +

                    + +

                    Returns the setting of the auto-delete option. The default is FALSE. +

                    See also setAutoDelete(). + +

                    void TQPtrCollection::clear () [pure virtual] +

                    + +

                    Removes all objects from the collection. The objects will be +deleted if auto-delete has been enabled. +

                    See also setAutoDelete(). + +

                    Reimplemented in TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +

                    uint TQPtrCollection::count () const [pure virtual] +

                    + +

                    Returns the number of objects in the collection. + +

                    Reimplemented in TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +

                    void TQPtrCollection::deleteItem ( Item d ) [pure virtual protected] +

                    + +

                    Reimplement this function if you want to be able to delete items. +

                    Deletes an item that is about to be removed from the collection. +

                    This function has to reimplemented in the collection template +classes, and should only delete item d if auto-delete has +been enabled. +

                    Warning: If you reimplement this function you must also +reimplement the destructor and call the virtual function clear() +from your destructor. This is due to the way virtual functions and +destructors work in C++: Virtual functions in derived classes +cannot be called from a destructor. If you do not do this, your +deleteItem() function will not be called when the container is +destroyed. +

                    See also newItem() and setAutoDelete(). + +

                    Item TQPtrCollection::newItem ( Item d ) [virtual protected] +

                    +Virtual function that creates a copy of an object that is about to +be inserted into the collection. +

                    The default implementation returns the d pointer, i.e. no copy +is made. +

                    This function is seldom reimplemented in the collection template +classes. It is not common practice to make a copy of something +that is being inserted. +

                    See also deleteItem(). + +

                    void TQPtrCollection::setAutoDelete ( bool enable ) +

                    + +

                    Sets the collection to auto-delete its contents if enable is +TRUE and to never delete them if enable is FALSE. +

                    If auto-deleting is turned on, all the items in a collection are +deleted when the collection itself is deleted. This is convenient +if the collection has the only pointer to the items. +

                    The default setting is FALSE, for safety. If you turn it on, be +careful about copying the collection - you might find yourself +with two collections deleting the same items. +

                    Note that the auto-delete setting may also affect other functions +in subclasses. For example, a subclass that has a remove() +function will remove the item from its data structure, and if +auto-delete is enabled, will also delete the item. +

                    See also autoDelete(). + +

                    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrdict-h.html b/doc/html/tqptrdict-h.html new file mode 100644 index 000000000..546458afa --- /dev/null +++ b/doc/html/tqptrdict-h.html @@ -0,0 +1,163 @@ + + + + + +tqptrdict.h Include File + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    tqptrdict.h

                    + +

                    This is the verbatim text of the tqptrdict.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


                    +
                    +/****************************************************************************
                    +** $Id: qt/tqptrdict.h   3.3.8   edited Jan 11 14:38 $
                    +**
                    +** Definition of TQPtrDict template class
                    +**
                    +** Created : 970415
                    +**
                    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                    +**
                    +** This file is part of the tools module of the TQt GUI Toolkit.
                    +**
                    +** This file may be used under the terms of the GNU General Public
                    +** License versions 2.0 or 3.0 as published by the Free Software
                    +** Foundation and appearing in the file LICENSE.GPL included in the
                    +** packaging of this file. Alternatively you may (at your option) use any
                    +** later version of the GNU General Public License if such license has
                    +** been publicly approved by Trolltech ASA (or its successors, if any)
                    +** and the KDE Free TQt Foundation.
                    +**
                    +** Please review the following information to ensure GNU General
                    +** Public Licensing requirements will be met:
                    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                    +** If you are unsure which license is appropriate for your use, please
                    +** review the following information:
                    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                    +** or contact the sales department at sales@trolltech.com.
                    +**
                    +** This file may be used under the terms of the Q Public License as
                    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                    +** included in the packaging of this file.  Licensees holding valid TQt
                    +** Commercial licenses may use this file in accordance with the TQt
                    +** Commercial License Agreement provided with the Software.
                    +**
                    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                    +** herein.
                    +**
                    +**********************************************************************/
                    +
                    +#ifndef TQPTRDICT_H
                    +#define TQPTRDICT_H
                    +
                    +#ifndef QT_H
                    +#include "ntqgdict.h"
                    +#endif // QT_H
                    +
                    +template<class type>
                    +class TQPtrDict
                    +#ifdef Q_QDOC
                    +	: public TQPtrCollection
                    +#else
                    +	: public TQGDict
                    +#endif
                    +{
                    +public:
                    +    TQPtrDict(int size=17) : TQGDict(size,PtrKey,0,0) {}
                    +    TQPtrDict( const TQPtrDict<type> &d ) : TQGDict(d) {}
                    +   ~TQPtrDict()				{ clear(); }
                    +    TQPtrDict<type> &operator=(const TQPtrDict<type> &d)
                    +			{ return (TQPtrDict<type>&)TQGDict::operator=(d); }
                    +    uint  count()   const		{ return TQGDict::count(); }
                    +    uint  size()    const		{ return TQGDict::size(); }
                    +    bool  isEmpty() const		{ return TQGDict::count() == 0; }
                    +    void  insert( void *k, const type *d )
                    +					{ TQGDict::look_ptr(k,(Item)d,1); }
                    +    void  replace( void *k, const type *d )
                    +					{ TQGDict::look_ptr(k,(Item)d,2); }
                    +    bool  remove( void *k )		{ return TQGDict::remove_ptr(k); }
                    +    type *take( void *k )		{ return (type*)TQGDict::take_ptr(k); }
                    +    type *find( void *k ) const
                    +		{ return (type *)((TQGDict*)this)->TQGDict::look_ptr(k,0,0); }
                    +    type *operator[]( void *k ) const
                    +		{ return (type *)((TQGDict*)this)->TQGDict::look_ptr(k,0,0); }
                    +    void  clear()			{ TQGDict::clear(); }
                    +    void  resize( uint n )		{ TQGDict::resize(n); }
                    +    void  statistics() const		{ TQGDict::statistics(); }
                    +
                    +#ifdef Q_QDOC
                    +protected:
                    +    virtual TQDataStream& read( TQDataStream &, TQPtrCollection::Item & );
                    +    virtual TQDataStream& write( TQDataStream &, TQPtrCollection::Item ) const;
                    +#endif
                    +
                    +private:
                    +    void  deleteItem( Item d );
                    +};
                    +
                    +#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                    +template<> inline void TQPtrDict<void>::deleteItem( TQPtrCollection::Item )
                    +{
                    +}
                    +#endif
                    +
                    +template<class type>
                    +inline void TQPtrDict<type>::deleteItem( TQPtrCollection::Item d )
                    +{
                    +    if ( del_item ) delete (type *)d;
                    +}
                    +
                    +template<class type>
                    +class TQPtrDictIterator : public TQGDictIterator
                    +{
                    +public:
                    +    TQPtrDictIterator(const TQPtrDict<type> &d) :TQGDictIterator((TQGDict &)d) {}
                    +   ~TQPtrDictIterator()	      {}
                    +    uint  count()   const     { return dict->count(); }
                    +    bool  isEmpty() const     { return dict->count() == 0; }
                    +    type *toFirst()	      { return (type *)TQGDictIterator::toFirst(); }
                    +    operator type *()  const  { return (type *)TQGDictIterator::get(); }
                    +    type *current()    const  { return (type *)TQGDictIterator::get(); }
                    +    void *currentKey() const  { return TQGDictIterator::getKeyPtr(); }
                    +    type *operator()()	      { return (type *)TQGDictIterator::operator()(); }
                    +    type *operator++()	      { return (type *)TQGDictIterator::operator++(); }
                    +    type *operator+=(uint j)  { return (type *)TQGDictIterator::operator+=(j);}
                    +};
                    +
                    +#endif // TQPTRDICT_H
                    +
                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrdict-members.html b/doc/html/tqptrdict-members.html new file mode 100644 index 000000000..a22a09f74 --- /dev/null +++ b/doc/html/tqptrdict-members.html @@ -0,0 +1,67 @@ + + + + + +TQPtrDict Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrDict

                    + +

                    This is the complete list of member functions for +TQPtrDict, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrdict.html b/doc/html/tqptrdict.html new file mode 100644 index 000000000..bed2cc493 --- /dev/null +++ b/doc/html/tqptrdict.html @@ -0,0 +1,316 @@ + + + + + +TQPtrDict Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrDict Class Reference

                    + +

                    The TQPtrDict class is a template class that provides a dictionary based on void* keys. +More... +

                    #include <tqptrdict.h> +

                    Inherits TQPtrCollection. +

                    List of all member functions. +

                    Public Members

                    + +

                    Important Inherited Members

                    + +

                    Protected Members

                    +
                      +
                    • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                    • +
                    • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item ) const
                    • +
                    +

                    Detailed Description

                    + + +The TQPtrDict class is a template class that provides a dictionary based on void* keys. +

                    + +

                    +

                    TQPtrDict is implemented as a template class. Define a template +instance TQPtrDict<X> to create a dictionary that operates on +pointers to X (X*). +

                    A dictionary is a collection of key-value pairs. The key is a +void* used for insertion, removal and lookup. The value is a +pointer. Dictionaries provide very fast insertion and lookup. +

                    Example: +

                    +    TQPtrDict<char> fields; // void* keys, char* values
                    +
                    +    TQLineEdit *le1 = new TQLineEdit( this );
                    +    le1->setText( "Simpson" );
                    +    TQLineEdit *le2 = new TQLineEdit( this );
                    +    le2->setText( "Homer" );
                    +    TQLineEdit *le3 = new TQLineEdit( this );
                    +    le3->setText( "45" );
                    +
                    +    fields.insert( le1, "Surname" );
                    +    fields.insert( le2, "Forename" );
                    +    fields.insert( le3, "Age" );
                    +
                    +    TQPtrDictIterator<char> it( fields );
                    +    for( ; it.current(); ++it )
                    +        cout << it.current() << endl;
                    +    cout << endl;
                    +
                    +    if ( fields[le1] ) // Prints "Surname: Simpson"
                    +        cout << fields[le1] << ": " << le1->text() << endl; 
                    +    if ( fields[le2] ) // Prints "Forename: Homer"
                    +        cout << fields[le2] << ": " << le2->text() << endl; 
                    +
                    +    fields.remove( le1 ); // Removes le1 from the dictionary
                    +    cout << le1->text() << endl; // Prints "Simpson"
                    +    
                    + +In this example we use a dictionary to add an extra property (a +char*) to the line edits we're using. +

                    See TQDict for full details, including the choice of dictionary +size, and how deletions are handled. +

                    See also TQPtrDictIterator, TQDict, TQAsciiDict, TQIntDict, Collection Classes, Collection Classes, and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrDict::TQPtrDict ( int size = 17 ) +

                    + +

                    Constructs a dictionary using an internal hash array with the size +size. +

                    Setting size to a suitably large prime number (equal to or +greater than the expected number of entries) makes the hash +distribution better and improves lookup performance. + +

                    TQPtrDict::TQPtrDict ( const TQPtrDict<type> & dict ) +

                    + +

                    Constructs a copy of dict. +

                    Each item in dict is inserted into this dictionary. Only the +pointers are copied (shallow copy). + +

                    TQPtrDict::~TQPtrDict () +

                    + +

                    Removes all items from the dictionary and destroys it. +

                    All iterators that access this dictionary will be reset. +

                    See also setAutoDelete(). + +

                    bool TQPtrCollection::autoDelete () const +

                    + +

                    Returns the setting of the auto-delete option. The default is FALSE. +

                    See also setAutoDelete(). + +

                    void TQPtrDict::clear () [virtual] +

                    + +

                    Removes all items from the dictionary. +

                    The removed items are deleted if auto-deletion is enabled. +

                    All dictionary iterators that access this dictionary will be +reset. +

                    See also remove(), take(), and setAutoDelete(). + +

                    Reimplemented from TQPtrCollection. +

                    uint TQPtrDict::count () const [virtual] +

                    + +

                    Returns the number of items in the dictionary. +

                    See also isEmpty(). + +

                    Reimplemented from TQPtrCollection. +

                    type * TQPtrDict::find ( void * key ) const +

                    + +

                    Returns the item associated with key, or 0 if the key does not +exist in the dictionary. +

                    If there are two or more items with equal keys, then the most +recently inserted item will be found. +

                    Equivalent to operator[]. +

                    See also operator[](). + +

                    void TQPtrDict::insert ( void * key, const type * item ) +

                    + +

                    Inserts the key with the item into the dictionary. +

                    Multiple items can have the same key, in which case only the last +item will be accessible using operator[](). +

                    item may not be 0. +

                    See also replace(). + +

                    bool TQPtrDict::isEmpty () const +

                    + +

                    Returns TRUE if the dictionary is empty; otherwise returns FALSE. +

                    See also count(). + +

                    TQPtrDict<type> & TQPtrDict::operator= ( const TQPtrDict<type> & dict ) +

                    + +

                    Assigns dict to this dictionary and returns a reference to this +dictionary. +

                    This dictionary is first cleared and then each item in dict is +inserted into the dictionary. Only the pointers are copied +(shallow copy), unless newItem() has been reimplemented. + +

                    type * TQPtrDict::operator[] ( void * key ) const +

                    + +

                    Returns the item associated with key, or 0 if the key does not +exist in the dictionary. +

                    If there are two or more items with equal keys, then the most +recently inserted item will be found. +

                    Equivalent to the find() function. +

                    See also find(). + +

                    TQDataStream & TQPtrDict::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

                    + +

                    Reads a dictionary item from the stream s and returns a +reference to the stream. +

                    The default implementation sets item to 0. +

                    See also write(). + +

                    bool TQPtrDict::remove ( void * key ) +

                    + +

                    Removes the item associated with key from the dictionary. +Returns TRUE if successful, i.e. if key is in the dictionary; +otherwise returns FALSE. +

                    If there are two or more items with equal keys, then the most +recently inserted item will be removed. +

                    The removed item is deleted if auto-deletion is enabled. +

                    All dictionary iterators that refer to the removed item will be +set to point to the next item in the dictionary traversal order. +

                    See also take(), clear(), and setAutoDelete(). + +

                    void TQPtrDict::replace ( void * key, const type * item ) +

                    + +

                    If the dictionary has key key, this key's item is replaced with +item. If the dictionary doesn't contain key key, item is +inserted into the dictionary using key key. +

                    item may not be 0. +

                    Equivalent to +

                    +        TQPtrDict<ItemType> dict;
                    +            ...
                    +        if ( dict.find( key ) )
                    +            dict.remove( key );
                    +        dict.insert( key, item );
                    +    
                    + +

                    If there are two or more items with equal keys, then the most +recently inserted item will be replaced. +

                    See also insert(). + +

                    void TQPtrDict::resize ( uint newsize ) +

                    + +

                    Changes the size of the hash table to newsize. The contents of +the dictionary are preserved, but all iterators on the dictionary +become invalid. + +

                    void TQPtrCollection::setAutoDelete ( bool enable ) +

                    + +

                    Sets the collection to auto-delete its contents if enable is +TRUE and to never delete them if enable is FALSE. +

                    If auto-deleting is turned on, all the items in a collection are +deleted when the collection itself is deleted. This is convenient +if the collection has the only pointer to the items. +

                    The default setting is FALSE, for safety. If you turn it on, be +careful about copying the collection - you might find yourself +with two collections deleting the same items. +

                    Note that the auto-delete setting may also affect other functions +in subclasses. For example, a subclass that has a remove() +function will remove the item from its data structure, and if +auto-delete is enabled, will also delete the item. +

                    See also autoDelete(). + +

                    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

                    uint TQPtrDict::size () const +

                    + +

                    Returns the size of the internal hash table (as specified in the +constructor). +

                    See also count(). + +

                    void TQPtrDict::statistics () const +

                    + +

                    Debugging-only function that prints out the dictionary +distribution using tqDebug(). + +

                    type * TQPtrDict::take ( void * key ) +

                    + +

                    Takes the item associated with key out of the dictionary +without deleting it (even if auto-deletion is enabled). +

                    If there are two or more items with equal keys, then the most +recently inserted item will be removed. +

                    Returns a pointer to the item taken out, or 0 if the key does not +exist in the dictionary. +

                    All dictionary iterators that refer to the taken item will be set +to point to the next item in the dictionary traversal order. +

                    See also remove(), clear(), and setAutoDelete(). + +

                    TQDataStream & TQPtrDict::write ( TQDataStream & s, TQPtrCollection::Item ) const [virtual protected] +

                    + +

                    Writes a dictionary item to the stream s and returns a +reference to the stream. +

                    See also read(). + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrdictiterator-members.html b/doc/html/tqptrdictiterator-members.html new file mode 100644 index 000000000..874f9ed65 --- /dev/null +++ b/doc/html/tqptrdictiterator-members.html @@ -0,0 +1,57 @@ + + + + + +TQPtrDictIterator Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrDictIterator

                    + +

                    This is the complete list of member functions for +TQPtrDictIterator, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrdictiterator.html b/doc/html/tqptrdictiterator.html new file mode 100644 index 000000000..857a2e7a4 --- /dev/null +++ b/doc/html/tqptrdictiterator.html @@ -0,0 +1,181 @@ + + + + + +TQPtrDictIterator Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrDictIterator Class Reference

                    + +

                    The TQPtrDictIterator class provides an iterator for TQPtrDict collections. +More... +

                    #include <tqptrdict.h> +

                    List of all member functions. +

                    Public Members

                    + +

                    Detailed Description

                    + + +The TQPtrDictIterator class provides an iterator for TQPtrDict collections. +

                    + +

                    TQPtrDictIterator is implemented as a template class. Define a +template instance TQPtrDictIterator<X> to create a dictionary +iterator that operates on TQPtrDict<X> (dictionary of X*). +

                    Example: +

                    +    TQPtrDict<char> fields;
                    +
                    +    TQLineEdit *le1 = new TQLineEdit( this );
                    +    le1->setText( "Simpson" );
                    +    TQLineEdit *le2 = new TQLineEdit( this );
                    +    le2->setText( "Homer" );
                    +    TQLineEdit *le3 = new TQLineEdit( this );
                    +    le3->setText( "45" );
                    +
                    +    fields.insert( le1, "Surname" );
                    +    fields.insert( le2, "Forename" );
                    +    fields.insert( le3, "Age" );
                    +
                    +    TQPtrDictIterator<char> it( fields );
                    +    for( ; it.current(); ++it ) {
                    +        TQLineEdit *le = (TQLineEdit)it.currentKey();
                    +        cout << it.current() << ": " << le->text() << endl;
                    +    }
                    +    cout << endl;
                    +
                    +    // Output (random order):
                    +    //  Forename: Homer
                    +    //  Age: 45
                    +    //  Surname: Simpson
                    +    
                    + +In the example we insert some line edits into a dictionary, +associating a string with each. We then iterate over the +dictionary printing the associated strings. +

                    Multiple iterators may independently traverse the same dictionary. +A TQPtrDict knows about all the iterators that are operating on the +dictionary. When an item is removed from the dictionary, TQPtrDict +updates all iterators that refer the removed item to point to the +next item in the traversing order. +

                    See also TQPtrDict, Collection Classes, and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrDictIterator::TQPtrDictIterator ( const TQPtrDict<type> & dict ) +

                    + +

                    Constructs an iterator for dict. The current iterator item is +set to point on the first item in the dict. + +

                    TQPtrDictIterator::~TQPtrDictIterator () +

                    + +

                    Destroys the iterator. + +

                    uint TQPtrDictIterator::count () const +

                    + +

                    Returns the number of items in the dictionary this iterator +operates on. +

                    See also isEmpty(). + +

                    type * TQPtrDictIterator::current () const +

                    + +

                    Returns a pointer to the current iterator item's value. + +

                    void * TQPtrDictIterator::currentKey () const +

                    + +

                    Returns the current iterator item's key. + +

                    bool TQPtrDictIterator::isEmpty () const +

                    + +

                    Returns TRUE if the dictionary is empty; otherwise returns FALSE. +

                    See also count(). + +

                    TQPtrDictIterator::operator type * () const +

                    + +

                    Cast operator. Returns a pointer to the current iterator item. +Same as current(). + +

                    type * TQPtrDictIterator::operator() () +

                    + +

                    Makes the succeeding item current and returns the original current +item. +

                    If the current iterator item was the last item in the dictionary +or if it was 0, 0 is returned. + +

                    type * TQPtrDictIterator::operator++ () +

                    + +

                    Prefix ++ makes the succeeding item current and returns the new +current item. +

                    If the current iterator item was the last item in the dictionary +or if it was 0, 0 is returned. + +

                    type * TQPtrDictIterator::operator+= ( uint jump ) +

                    + +

                    Sets the current item to the item jump positions after the +current item and returns a pointer to that item. +

                    If that item is beyond the last item or if the dictionary is +empty, it sets the current item to 0 and returns 0. + +

                    type * TQPtrDictIterator::toFirst () +

                    + +

                    Sets the current iterator item to point to the first item in the +dictionary and returns a pointer to the item. If the dictionary is +empty, it sets the current item to 0 and returns 0. + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrlist-h.html b/doc/html/tqptrlist-h.html new file mode 100644 index 000000000..aa5e489bd --- /dev/null +++ b/doc/html/tqptrlist-h.html @@ -0,0 +1,236 @@ + + + + + +tqptrlist.h Include File + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    tqptrlist.h

                    + +

                    This is the verbatim text of the tqptrlist.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


                    +
                    +/****************************************************************************
                    +** $Id: qt/tqptrlist.h   3.3.8   edited Jan 11 14:38 $
                    +**
                    +** Definition of TQPtrList template/macro class
                    +**
                    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                    +**
                    +** This file is part of the tools module of the TQt GUI Toolkit.
                    +**
                    +** This file may be used under the terms of the GNU General Public
                    +** License versions 2.0 or 3.0 as published by the Free Software
                    +** Foundation and appearing in the file LICENSE.GPL included in the
                    +** packaging of this file. Alternatively you may (at your option) use any
                    +** later version of the GNU General Public License if such license has
                    +** been publicly approved by Trolltech ASA (or its successors, if any)
                    +** and the KDE Free TQt Foundation.
                    +**
                    +** Please review the following information to ensure GNU General
                    +** Public Licensing requirements will be met:
                    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                    +** If you are unsure which license is appropriate for your use, please
                    +** review the following information:
                    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                    +** or contact the sales department at sales@trolltech.com.
                    +**
                    +** This file may be used under the terms of the Q Public License as
                    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                    +** included in the packaging of this file.  Licensees holding valid TQt
                    +** Commercial licenses may use this file in accordance with the TQt
                    +** Commercial License Agreement provided with the Software.
                    +**
                    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                    +** herein.
                    +**
                    +**********************************************************************/
                    +
                    +#ifndef TQPTRLIST_H
                    +#define TQPTRLIST_H
                    +
                    +#ifndef QT_H
                    +#include "ntqglist.h"
                    +#endif // QT_H
                    +
                    +template<class type>
                    +class TQPtrListStdIterator : public TQGListStdIterator
                    +{
                    +public:
                    +    inline TQPtrListStdIterator( TQLNode* n ): TQGListStdIterator(n) {}
                    +    type *operator*() { return node ? (type *)node->getData() : 0; }
                    +    inline TQPtrListStdIterator<type> operator++()
                    +    { node = next(); return *this; }
                    +    inline TQPtrListStdIterator<type> operator++(int)
                    +    { TQLNode* n = node; node = next(); return TQPtrListStdIterator<type>( n ); }
                    +    inline bool operator==( const TQPtrListStdIterator<type>& it ) const { return node == it.node; }
                    +    inline bool operator!=( const TQPtrListStdIterator<type>& it ) const { return node != it.node; }
                    +};
                    +
                    +
                    +template<class type>
                    +class TQPtrList
                    +#ifdef Q_QDOC
                    +	: public TQPtrCollection
                    +#else
                    +	: public TQGList
                    +#endif
                    +{
                    +public:
                    +
                    +    TQPtrList()				{}
                    +    TQPtrList( const TQPtrList<type> &l ) : TQGList(l) {}
                    +    ~TQPtrList()				{ clear(); }
                    +    TQPtrList<type> &operator=(const TQPtrList<type> &l)
                    +			{ return (TQPtrList<type>&)TQGList::operator=(l); }
                    +    bool operator==( const TQPtrList<type> &list ) const
                    +    { return TQGList::operator==( list ); }
                    +    bool operator!=( const TQPtrList<type> &list ) const
                    +    { return !TQGList::operator==( list ); }
                    +    uint  count()   const		{ return TQGList::count(); }
                    +    bool  isEmpty() const		{ return TQGList::count() == 0; }
                    +    bool  insert( uint i, const type *d){ return TQGList::insertAt(i,(TQPtrCollection::Item)d); }
                    +    void  inSort( const type *d )	{ TQGList::inSort((TQPtrCollection::Item)d); }
                    +    void  prepend( const type *d )	{ TQGList::insertAt(0,(TQPtrCollection::Item)d); }
                    +    void  append( const type *d )	{ TQGList::append((TQPtrCollection::Item)d); }
                    +    bool  remove( uint i )		{ return TQGList::removeAt(i); }
                    +    bool  remove()			{ return TQGList::remove((TQPtrCollection::Item)0); }
                    +    bool  remove( const type *d )	{ return TQGList::remove((TQPtrCollection::Item)d); }
                    +    bool  removeRef( const type *d )	{ return TQGList::removeRef((TQPtrCollection::Item)d); }
                    +    void  removeNode( TQLNode *n )	{ TQGList::removeNode(n); }
                    +    bool  removeFirst()			{ return TQGList::removeFirst(); }
                    +    bool  removeLast()			{ return TQGList::removeLast(); }
                    +    type *take( uint i )		{ return (type *)TQGList::takeAt(i); }
                    +    type *take()			{ return (type *)TQGList::take(); }
                    +    type *takeNode( TQLNode *n )		{ return (type *)TQGList::takeNode(n); }
                    +    void  clear()			{ TQGList::clear(); }
                    +    void  sort()			{ TQGList::sort(); }
                    +    int	  find( const type *d )		{ return TQGList::find((TQPtrCollection::Item)d); }
                    +    int	  findNext( const type *d )	{ return TQGList::find((TQPtrCollection::Item)d,FALSE); }
                    +    int	  findRef( const type *d )	{ return TQGList::findRef((TQPtrCollection::Item)d); }
                    +    int	  findNextRef( const type *d ){ return TQGList::findRef((TQPtrCollection::Item)d,FALSE);}
                    +    uint  contains( const type *d ) const { return TQGList::contains((TQPtrCollection::Item)d); }
                    +    uint  containsRef( const type *d ) const
                    +					{ return TQGList::containsRef((TQPtrCollection::Item)d); }
                    +    bool replace( uint i, const type *d ) { return TQGList::replaceAt( i, (TQPtrCollection::Item)d ); }
                    +    type *operator[]( uint i )		{ return (type *)TQGList::at(i); }
                    +    type *at( uint i )			{ return (type *)TQGList::at(i); }
                    +    int	  at() const			{ return TQGList::at(); }
                    +    type *current()  const		{ return (type *)TQGList::get(); }
                    +    TQLNode *currentNode()  const	{ return TQGList::currentNode(); }
                    +    type *getFirst() const		{ return (type *)TQGList::cfirst(); }
                    +    type *getLast()  const		{ return (type *)TQGList::clast(); }
                    +    type *first()			{ return (type *)TQGList::first(); }
                    +    type *last()			{ return (type *)TQGList::last(); }
                    +    type *next()			{ return (type *)TQGList::next(); }
                    +    type *prev()			{ return (type *)TQGList::prev(); }
                    +    void  toVector( TQGVector *vec )const{ TQGList::toVector(vec); }
                    +
                    +
                    +    // standard iterators
                    +    typedef TQPtrListStdIterator<type> Iterator;
                    +    typedef TQPtrListStdIterator<type> ConstIterator;
                    +    inline Iterator begin() { return TQGList::begin(); }
                    +    inline ConstIterator begin() const { return TQGList::begin(); }
                    +    inline ConstIterator constBegin() const { return TQGList::begin(); }
                    +    inline Iterator end() { return TQGList::end(); }
                    +    inline ConstIterator end() const { return TQGList::end(); }
                    +    inline ConstIterator constEnd() const { return TQGList::end(); }
                    +    inline Iterator erase( Iterator it ) { return TQGList::erase( it ); }
                    +    // stl syntax compatibility
                    +    typedef Iterator iterator;
                    +    typedef ConstIterator const_iterator;
                    +
                    +
                    +#ifdef Q_QDOC
                    +protected:
                    +    virtual int compareItems( TQPtrCollection::Item, TQPtrCollection::Item );
                    +    virtual TQDataStream& read( TQDataStream&, TQPtrCollection::Item& );
                    +    virtual TQDataStream& write( TQDataStream&, TQPtrCollection::Item ) const;
                    +#endif
                    +
                    +private:
                    +    void  deleteItem( Item d );
                    +};
                    +
                    +#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                    +template<> inline void TQPtrList<void>::deleteItem( TQPtrCollection::Item )
                    +{
                    +}
                    +#endif
                    +
                    +template<class type> inline void TQPtrList<type>::deleteItem( TQPtrCollection::Item d )
                    +{
                    +    if ( del_item ) delete (type *)d;
                    +}
                    +
                    +template<class type>
                    +class TQPtrListIterator : public TQGListIterator
                    +{
                    +public:
                    +    TQPtrListIterator(const TQPtrList<type> &l) :TQGListIterator((TQGList &)l) {}
                    +   ~TQPtrListIterator()	      {}
                    +    uint  count()   const     { return list->count(); }
                    +    bool  isEmpty() const     { return list->count() == 0; }
                    +    bool  atFirst() const     { return TQGListIterator::atFirst(); }
                    +    bool  atLast()  const     { return TQGListIterator::atLast(); }
                    +    type *toFirst()	      { return (type *)TQGListIterator::toFirst(); }
                    +    type *toLast()	      { return (type *)TQGListIterator::toLast(); }
                    +    operator type *() const   { return (type *)TQGListIterator::get(); }
                    +    type *operator*()         { return (type *)TQGListIterator::get(); }
                    +
                    +    // No good, since TQPtrList<char> (ie. TQStrList fails...
                    +    //
                    +    // MSVC++ gives warning
                    +    // Sunpro C++ 4.1 gives error
                    +    //    type *operator->()        { return (type *)TQGListIterator::get(); }
                    +
                    +    type *current()   const   { return (type *)TQGListIterator::get(); }
                    +    type *operator()()	      { return (type *)TQGListIterator::operator()();}
                    +    type *operator++()	      { return (type *)TQGListIterator::operator++(); }
                    +    type *operator+=(uint j)  { return (type *)TQGListIterator::operator+=(j);}
                    +    type *operator--()	      { return (type *)TQGListIterator::operator--(); }
                    +    type *operator-=(uint j)  { return (type *)TQGListIterator::operator-=(j);}
                    +    TQPtrListIterator<type>& operator=(const TQPtrListIterator<type>&it)
                    +			      { TQGListIterator::operator=(it); return *this; }
                    +};
                    +
                    +#define Q_DEFINED_QPTRLIST
                    +#include "ntqwinexport.h"
                    +
                    +#endif // TQPTRLIST_H
                    +
                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrlist-members.html b/doc/html/tqptrlist-members.html new file mode 100644 index 000000000..eacdb8645 --- /dev/null +++ b/doc/html/tqptrlist-members.html @@ -0,0 +1,90 @@ + + + + + +TQPtrList Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrList

                    + +

                    This is the complete list of member functions for +TQPtrList, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrlist.html b/doc/html/tqptrlist.html new file mode 100644 index 000000000..15b7913c4 --- /dev/null +++ b/doc/html/tqptrlist.html @@ -0,0 +1,738 @@ + + + + + +TQPtrList Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrList Class Reference

                    + +

                    The TQPtrList class is a template class that provides a list. +More... +

                    #include <tqptrlist.h> +

                    Inherits TQPtrCollection. +

                    Inherited by TQObjectList and TQStrList. +

                    List of all member functions. +

                    Public Members

                    + +

                    Important Inherited Members

                    + +

                    Protected Members

                    +
                      +
                    • virtual int compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )
                    • +
                    • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                    • +
                    • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                    • +
                    +

                    Detailed Description

                    + + +The TQPtrList class is a template class that provides a list. +

                    + +

                    +

                    TQValueList is an STL-compatible alternative to this class. +

                    Define a template instance TQPtrList<X> to create a list that +operates on pointers to X (X*). +

                    The list class is indexable and has a current + index and a current item. The +first item corresponds to index position 0. The current index is +-1 if the current item is 0. +

                    Items are inserted with prepend(), insert() or append(). Items are +removed with remove(), removeRef(), removeFirst() and +removeLast(). You can search for an item using find(), findNext(), +findRef() or findNextRef(). The list can be sorted with sort(). +You can count the number of occurrences of an item with contains() +or containsRef(). You can get a pointer to the current item with +current(), to an item at a particular index position in the list +with at() or to the first or last item with getFirst() and +getLast(). You can also iterate over the list with first(), +last(), next() and prev() (which all update current()). The list's +deletion property is set with setAutoDelete(). +

                    +Example: +

                    +    class Employee
                    +    {
                    +    public:
                    +        Employee() : sn( 0 ) { }
                    +        Employee( const TQString& forename, const TQString& surname, int salary )
                    +            : fn( forename ), sn( surname ), sal( salary )
                    +        { }
                    +
                    +        void setSalary( int salary ) { sal = salary; }
                    +
                    +        TQString forename() const { return fn; }
                    +        TQString surname() const { return sn; }
                    +        int salary() const { return sal; }
                    +
                    +    private:
                    +        TQString fn;
                    +        TQString sn;
                    +        int sal;
                    +    };
                    +
                    +    TQPtrList<Employee> list;
                    +    list.setAutoDelete( TRUE ); // the list owns the objects
                    +
                    +    list.append( new Employee("John", "Doe", 50000) );
                    +    list.append( new Employee("Jane", "Williams", 80000) );
                    +    list.append( new Employee("Tom", "Jones", 60000) );
                    +
                    +    Employee *employee;
                    +    for ( employee = list.first(); employee; employee = list.next() )
                    +        cout << employee->surname().latin1() << ", " <<
                    +                employee->forename().latin1() << " earns " <<
                    +                employee->salary() << endl;
                    +    cout << endl;
                    +
                    +    // very inefficient for big lists
                    +    for ( uint i = 0; i < list.count(); ++i )
                    +        if ( list.at(i) )
                    +            cout << list.at( i )->surname().latin1() << endl;
                    +    
                    + +

                    The output is +

                    +    Doe, John earns 50000
                    +    Williams, Jane earns 80000
                    +    Jones, Tom earns 60000
                    +
                    +    Doe
                    +    Williams
                    +    Jones
                    +    
                    + +

                    TQPtrList has several member functions for traversing the list, but +using a TQPtrListIterator can be more practical. Multiple list +iterators may traverse the same list, independently of each other +and of the current list item. +

                    In the example above we make the call setAutoDelete(TRUE). +Enabling auto-deletion tells the list to delete items that are +removed. The default is to not delete items when they are removed +but this would cause a memory leak in the example because there +are no other references to the list items. +

                    When inserting an item into a list only the pointer is copied, not +the item itself, i.e. a shallow copy. It is possible to make the +list copy all of the item's data (deep copy) when an item is +inserted. insert(), inSort() and append() call the virtual +function TQPtrCollection::newItem() for the item to be inserted. +Inherit a list and reimplement newItem() to have deep copies. +

                    When removing an item from a list, the virtual function +TQPtrCollection::deleteItem() is called. TQPtrList's default +implementation is to delete the item if auto-deletion is enabled. +

                    The virtual function compareItems() can be reimplemented to +compare two list items. This function is called from all list +functions that need to compare list items, for instance +remove(const type*). If you only want to deal with pointers, there +are functions that compare pointers instead, for instance +removeRef(const type*). These functions are somewhat faster than +those that call compareItems(). +

                    List items are stored as void* in an internal TQLNode, which +also holds pointers to the next and previous list items. The +functions currentNode(), removeNode(), and takeNode() operate +directly on the TQLNode, but they should be used with care. The +data component of the node is available through TQLNode::getData(). +

                    The TQStrList class defined in ntqstrlist.h is a list of char*. +It reimplements newItem(), deleteItem() and compareItems(). (But +see TQStringList for a list of Unicode TQStrings.) +

                    See also TQPtrListIterator, Collection Classes, and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrList::TQPtrList () +

                    + +

                    Constructs an empty list. + +

                    TQPtrList::TQPtrList ( const TQPtrList<type> & list ) +

                    + +

                    Constructs a copy of list. +

                    Each item in list is appended to this +list. Only the pointers are copied (shallow copy). + +

                    TQPtrList::~TQPtrList () +

                    + +

                    Removes all items from the list and destroys the list. +

                    All list iterators that access this list will be reset. +

                    See also setAutoDelete(). + +

                    void TQPtrList::append ( const type * item ) +

                    + +

                    Inserts the item at the end of the list. +

                    The inserted item becomes the current list item. This is +equivalent to insert( count(), item ). +

                    item must not be 0. +

                    See also insert(), current(), and prepend(). + +

                    Examples: customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, grapher/grapher.cpp, listviews/listviews.cpp, listviews/listviews.h, and qwerty/qwerty.cpp. +

                    type * TQPtrList::at ( uint index ) +

                    + +

                    Returns a pointer to the item at position index in the list, or +0 if the index is out of range. +

                    Sets the current list item to this item if index is valid. The +valid range is 0..(count() - 1) inclusive. +

                    This function is very efficient. It starts scanning from the first +item, last item, or current item, whichever is closest to index. +

                    See also current(). + +

                    Examples: customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. +

                    int TQPtrList::at () const +

                    + +

                    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

                    Returns the index of the current list item. The returned value is +-1 if the current item is 0. +

                    See also current(). + +

                    bool TQPtrCollection::autoDelete () const +

                    + +

                    Returns the setting of the auto-delete option. The default is FALSE. +

                    See also setAutoDelete(). + +

                    void TQPtrList::clear () [virtual] +

                    + +

                    Removes all items from the list. +

                    The removed items are deleted if auto-deletion is enabled. +

                    All list iterators that access this list will be reset. +

                    See also remove(), take(), and setAutoDelete(). + +

                    Reimplemented from TQPtrCollection. +

                    int TQPtrList::compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 ) [virtual protected] +

                    + +

                    This virtual function compares two list items. +

                    Returns: +

                      +
                    • zero if item1 == item2 +
                    • nonzero if item1 != item2 +
                    +

                    This function returns int rather than bool so that +reimplementations can return three values and use it to sort by: +

                      +
                    • 0 if item1 == item2 +
                    • > 0 (positive integer) if item1 > item2 +
                    • < 0 (negative integer) if item1 < item2 +
                    +

                    inSort() requires that compareItems() is implemented as described +here. +

                    This function should not modify the list because some const +functions call compareItems(). +

                    The default implementation compares the pointers. + +

                    uint TQPtrList::contains ( const type * item ) const +

                    + +

                    Returns the number of occurrences of item in the list. +

                    The compareItems() function is called when looking for the item +in the list. If compareItems() is not reimplemented, it is more +efficient to call containsRef(). +

                    This function does not affect the current list item. +

                    See also containsRef() and compareItems(). + +

                    uint TQPtrList::containsRef ( const type * item ) const +

                    + +

                    Returns the number of occurrences of item in the list. +

                    Calling this function is much faster than contains() because +contains() compares item with each list item using +compareItems(), whereas his function only compares the pointers. +

                    This function does not affect the current list item. +

                    See also contains(). + +

                    uint TQPtrList::count () const [virtual] +

                    + +

                    Returns the number of items in the list. +

                    See also isEmpty(). + +

                    Examples: customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, grapher/grapher.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. +

                    Reimplemented from TQPtrCollection. +

                    type * TQPtrList::current () const +

                    + +

                    Returns a pointer to the current list item. The current item may +be 0 (implies that the current index is -1). +

                    See also at(). + +

                    TQLNode * TQPtrList::currentNode () const +

                    + +

                    Returns a pointer to the current list node. +

                    The node can be kept and removed later using removeNode(). The +advantage is that the item can be removed directly without +searching the list. +

                    Warning: Do not call this function unless you are an expert. +

                    See also removeNode(), takeNode(), and current(). + +

                    int TQPtrList::find ( const type * item ) +

                    + +

                    Finds the first occurrence of item in the list. +

                    If the item is found, the list sets the current item to point to +the found item and returns the index of this item. If the item is +not found, the list sets the current item to 0, the current +index to -1, and returns -1. +

                    The compareItems() function is called when searching for the item +in the list. If compareItems() is not reimplemented, it is more +efficient to call findRef(). +

                    See also findNext(), findRef(), compareItems(), and current(). + +

                    int TQPtrList::findNext ( const type * item ) +

                    + +

                    Finds the next occurrence of item in the list, starting from +the current list item. +

                    If the item is found, the list sets the current item to point to +the found item and returns the index of this item. If the item is +not found, the list sets the current item to 0, the current +index to -1, and returns -1. +

                    The compareItems() function is called when searching for the item +in the list. If compareItems() is not reimplemented, it is more +efficient to call findNextRef(). +

                    See also find(), findNextRef(), compareItems(), and current(). + +

                    int TQPtrList::findNextRef ( const type * item ) +

                    + +

                    Finds the next occurrence of item in the list, starting from +the current list item. +

                    If the item is found, the list sets the current item to point to +the found item and returns the index of this item. If the item is +not found, the list sets the current item to 0, the current +index to -1, and returns -1. +

                    Calling this function is much faster than findNext() because +findNext() compares item with each list item using +compareItems(), whereas this function only compares the pointers. +

                    See also findRef(), findNext(), and current(). + +

                    int TQPtrList::findRef ( const type * item ) +

                    + +

                    Finds the first occurrence of item in the list. +

                    If the item is found, the list sets the current item to point to +the found item and returns the index of this item. If the item is +not found, the list sets the current item to 0, the current +index to -1, and returns -1. +

                    Calling this function is much faster than find() because find() +compares item with each list item using compareItems(), whereas +this function only compares the pointers. +

                    See also findNextRef(), find(), and current(). + +

                    type * TQPtrList::first () +

                    + +

                    Returns a pointer to the first item in the list and makes this the +current list item; returns 0 if the list is empty. +

                    See also getFirst(), last(), next(), prev(), and current(). + +

                    Examples: grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. +

                    type * TQPtrList::getFirst () const +

                    + +

                    Returns a pointer to the first item in the list, or 0 if the list +is empty. +

                    This function does not affect the current list item. +

                    See also first() and getLast(). + +

                    type * TQPtrList::getLast () const +

                    + +

                    Returns a pointer to the last item in the list, or 0 if the list +is empty. +

                    This function does not affect the current list item. +

                    See also last() and getFirst(). + +

                    void TQPtrList::inSort ( const type * item ) +

                    + +

                    Inserts the item at its sorted position in the list. +

                    The sort order depends on the virtual compareItems() function. All +items must be inserted with inSort() to maintain the sorting +order. +

                    The inserted item becomes the current list item. +

                    item must not be 0. +

                    Warning: Using inSort() is slow. An alternative, especially if you +have lots of items, is to simply append() or insert() them and +then use sort(). inSort() takes up to O(n) compares. That means +inserting n items in your list will need O(n^2) compares whereas +sort() only needs O(n*log n) for the same task. So use inSort() +only if you already have a presorted list and want to insert just +a few additional items. +

                    See also insert(), compareItems(), current(), and sort(). + +

                    bool TQPtrList::insert ( uint index, const type * item ) +

                    + +

                    Inserts the item at position index in the list. +

                    Returns TRUE if successful, i.e. if index is in range; +otherwise returns FALSE. The valid range is 0 to count() +(inclusively). The item is appended if index == count(). +

                    The inserted item becomes the current list item. +

                    item must not be 0. +

                    See also append(), current(), and replace(). + +

                    bool TQPtrList::isEmpty () const +

                    + +

                    Returns TRUE if the list is empty; otherwise returns FALSE. +

                    See also count(). + +

                    type * TQPtrList::last () +

                    + +

                    Returns a pointer to the last item in the list and makes this the +current list item; returns 0 if the list is empty. +

                    See also getLast(), first(), next(), prev(), and current(). + +

                    type * TQPtrList::next () +

                    + +

                    Returns a pointer to the item succeeding the current item. Returns +0 if the current item is 0 or equal to the last item. +

                    Makes the succeeding item current. If the current item before this +function call was the last item, the current item will be set to +0. If the current item was 0, this function does nothing. +

                    See also first(), last(), prev(), and current(). + +

                    Examples: grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. +

                    bool TQPtrList::operator!= ( const TQPtrList<type> & list ) const +

                    + +

                    Compares this list with list. Returns TRUE if the lists contain +different data; otherwise returns FALSE. + +

                    TQPtrList<type> & TQPtrList::operator= ( const TQPtrList<type> & list ) +

                    + +

                    Assigns list to this list and returns a reference to this list. +

                    This list is first cleared and then each item in list is appended to this list. Only the pointers are +copied (shallow copy) unless newItem() has been reimplemented. + +

                    bool TQPtrList::operator== ( const TQPtrList<type> & list ) const +

                    + +

                    Compares this list with list. Returns TRUE if the lists contain +the same data; otherwise returns FALSE. + +

                    void TQPtrList::prepend ( const type * item ) +

                    + +

                    Inserts the item at the start of the list. +

                    The inserted item becomes the current list item. This is +equivalent to insert( 0, item ). +

                    item must not be 0. +

                    See also append(), insert(), and current(). + +

                    type * TQPtrList::prev () +

                    + +

                    Returns a pointer to the item preceding the current item. Returns +0 if the current item is 0 or equal to the first item. +

                    Makes the preceding item current. If the current item before this +function call was the first item, the current item will be set to +0. If the current item was 0, this function does nothing. +

                    See also first(), last(), next(), and current(). + +

                    TQDataStream & TQPtrList::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

                    + +

                    Reads a list item from the stream s and returns a reference to +the stream. +

                    The default implementation sets item to 0. +

                    See also write(). + +

                    bool TQPtrList::remove ( uint index ) +

                    + +

                    Removes the item at position index in the list. +

                    Returns TRUE if successful, i.e. if index is in range; +otherwise returns FALSE. The valid range is 0..(count() - 1) +inclusive. +

                    The removed item is deleted if auto-deletion is enabled. +

                    The item after the removed item becomes the new current list item +if the removed item is not the last item in the list. If the last +item is removed, the new last item becomes the current item. +

                    All list iterators that refer to the removed item will be set to +point to the new current item. +

                    See also take(), clear(), setAutoDelete(), current(), and removeRef(). + +

                    bool TQPtrList::remove () +

                    + +

                    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

                    Removes the current list item. +

                    Returns TRUE if successful, i.e. if the current item isn't 0; +otherwise returns FALSE. +

                    The removed item is deleted if auto-deletion is enabled. +

                    The item after the removed item becomes the new current list item +if the removed item is not the last item in the list. If the last +item is removed, the new last item becomes the current item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the removed item will be set to +point to the new current item. +

                    See also take(), clear(), setAutoDelete(), current(), and removeRef(). + +

                    bool TQPtrList::remove ( const type * item ) +

                    + +

                    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

                    Removes the first occurrence of item from the list. +

                    Returns TRUE if successful, i.e. if item is in the list; +otherwise returns FALSE. +

                    The removed item is deleted if auto-deletion is enabled. +

                    The compareItems() function is called when searching for the item +in the list. If compareItems() is not reimplemented, it is more +efficient to call removeRef(). +

                    If item is NULL then the current item is removed from the list. +

                    The item after the removed item becomes the new current list item +if the removed item is not the last item in the list. If the last +item is removed, the new last item becomes the current item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the removed item will be set to +point to the new current item. +

                    See also removeRef(), take(), clear(), setAutoDelete(), compareItems(), and current(). + +

                    bool TQPtrList::removeFirst () +

                    + +

                    Removes the first item from the list. Returns TRUE if successful, +i.e. if the list isn't empty; otherwise returns FALSE. +

                    The removed item is deleted if auto-deletion is enabled. +

                    The first item in the list becomes the new current list item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the removed item will be set to +point to the new current item. +

                    See also removeLast(), setAutoDelete(), current(), and remove(). + +

                    bool TQPtrList::removeLast () +

                    + +

                    Removes the last item from the list. Returns TRUE if successful, +i.e. if the list isn't empty; otherwise returns FALSE. +

                    The removed item is deleted if auto-deletion is enabled. +

                    The last item in the list becomes the new current list item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the removed item will be set to +point to the new current item. +

                    See also removeFirst(), setAutoDelete(), and current(). + +

                    void TQPtrList::removeNode ( TQLNode * node ) +

                    + +

                    Removes the node from the list. +

                    This node must exist in the list, otherwise the program may crash. +

                    The removed item is deleted if auto-deletion is enabled. +

                    The first item in the list will become the new current list item. +The current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the removed item will be set to +point to the item succeeding this item or to the preceding item if +the removed item was the last item. +

                    Warning: Do not call this function unless you are an expert. +

                    See also takeNode(), currentNode(), remove(), and removeRef(). + +

                    bool TQPtrList::removeRef ( const type * item ) +

                    + +

                    Removes the first occurrence of item from the list. +

                    Returns TRUE if successful, i.e. if item is in the list; +otherwise returns FALSE. +

                    The removed item is deleted if auto-deletion is enabled. +

                    Equivalent to: +

                    +        if ( list.findRef( item ) != -1 )
                    +            list.remove();
                    +    
                    + +

                    The item after the removed item becomes the new current list item +if the removed item is not the last item in the list. If the last +item is removed, the new last item becomes the current item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the removed item will be set to +point to the new current item. +

                    See also remove(), clear(), setAutoDelete(), and current(). + +

                    bool TQPtrList::replace ( uint index, const type * item ) +

                    + +

                    Replaces the item at position index with the new item. +

                    Returns TRUE if successful, i.e. index is in the range 0 to +count()-1. +

                    See also append(), current(), and insert(). + +

                    void TQPtrCollection::setAutoDelete ( bool enable ) +

                    + +

                    Sets the collection to auto-delete its contents if enable is +TRUE and to never delete them if enable is FALSE. +

                    If auto-deleting is turned on, all the items in a collection are +deleted when the collection itself is deleted. This is convenient +if the collection has the only pointer to the items. +

                    The default setting is FALSE, for safety. If you turn it on, be +careful about copying the collection - you might find yourself +with two collections deleting the same items. +

                    Note that the auto-delete setting may also affect other functions +in subclasses. For example, a subclass that has a remove() +function will remove the item from its data structure, and if +auto-delete is enabled, will also delete the item. +

                    See also autoDelete(). + +

                    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

                    void TQPtrList::sort () +

                    + +

                    Sorts the list by the result of the virtual compareItems() +function. +

                    The heap sort algorithm is used for sorting. It sorts n items with +O(n*log n) comparisons. This is the asymptotic optimal solution of +the sorting problem. +

                    See also inSort(). + +

                    type * TQPtrList::take ( uint index ) +

                    + +

                    Takes the item at position index out of the list without +deleting it (even if auto-deletion +is enabled). +

                    Returns a pointer to the item taken out of the list, or 0 if the +index is out of range. The valid range is 0..(count() - 1) +inclusive. +

                    The item after the removed item becomes the new current list item +if the removed item is not the last item in the list. If the last +item is removed, the new last item becomes the current item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the taken item will be set to +point to the new current item. +

                    See also remove(), clear(), and current(). + +

                    Examples: customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp. +

                    type * TQPtrList::take () +

                    + +

                    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

                    Takes the current item out of the list without deleting it (even +if auto-deletion is enabled). +

                    Returns a pointer to the item taken out of the list, or 0 if +the current item is 0. +

                    The item after the removed item becomes the new current list item +if the removed item is not the last item in the list. If the last +item is removed, the new last item becomes the current item. The +current item is set to 0 if the list becomes empty. +

                    All list iterators that refer to the taken item will be set to +point to the new current item. +

                    See also remove(), clear(), and current(). + +

                    type * TQPtrList::takeNode ( TQLNode * node ) +

                    + +

                    Takes the node out of the list without deleting its item (even +if auto-deletion is enabled). +Returns a pointer to the item taken out of the list. +

                    This node must exist in the list, otherwise the program may crash. +

                    The first item in the list becomes the new current list item. +

                    All list iterators that refer to the taken item will be set to +point to the item succeeding this item or to the preceding item if +the taken item was the last item. +

                    Warning: Do not call this function unless you are an expert. +

                    See also removeNode() and currentNode(). + +

                    void TQPtrList::toVector ( TQGVector * vec ) const +

                    + +

                    Stores all list items in the vector vec. +

                    The vector must be of the same item type, otherwise the result +will be undefined. + +

                    TQDataStream & TQPtrList::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] +

                    + +

                    Writes a list item, item to the stream s and returns a +reference to the stream. +

                    The default implementation does nothing. +

                    See also read(). + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrlistiterator-members.html b/doc/html/tqptrlistiterator-members.html new file mode 100644 index 000000000..cc693c1c0 --- /dev/null +++ b/doc/html/tqptrlistiterator-members.html @@ -0,0 +1,63 @@ + + + + + +TQPtrListIterator Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrListIterator

                    + +

                    This is the complete list of member functions for +TQPtrListIterator, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrlistiterator.html b/doc/html/tqptrlistiterator.html new file mode 100644 index 000000000..555aa4d88 --- /dev/null +++ b/doc/html/tqptrlistiterator.html @@ -0,0 +1,234 @@ + + + + + +TQPtrListIterator Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrListIterator Class Reference

                    + +

                    The TQPtrListIterator class provides an iterator for +TQPtrList collections. +More... +

                    #include <tqptrlist.h> +

                    Inherited by TQObjectListIterator and TQStrListIterator. +

                    List of all member functions. +

                    Public Members

                    + +

                    Detailed Description

                    + + +The TQPtrListIterator class provides an iterator for +TQPtrList collections. +

                    + +

                    Define a template instance TQPtrListIterator<X> to create a list +iterator that operates on TQPtrList<X> (list of X*). +

                    The following example is similar to the example in the TQPtrList class documentation, but it uses TQPtrListIterator. The class Employee is +defined there. +

                    +    TQPtrList<Employee> list;
                    +
                    +    list.append( new Employee("John", "Doe", 50000) );
                    +    list.append( new Employee("Jane", "Williams", 80000) );
                    +    list.append( new Employee("Tom", "Jones", 60000) );
                    +
                    +    TQPtrListIterator<Employee> it( list );
                    +    Employee *employee;
                    +    while ( (employee = it.current()) != 0 ) {
                    +        ++it;
                    +        cout << employee->surname().latin1() << ", " <<
                    +                employee->forename().latin1() << " earns " <<
                    +                employee->salary() << endl;
                    +    }
                    +    
                    + +

                    The output is +

                    +    Doe, John earns 50000
                    +    Williams, Jane earns 80000
                    +    Jones, Tom earns 60000
                    +    
                    + +

                    Using a list iterator is a more robust way of traversing the list +than using the TQPtrList member functions first(), next(), current(), etc., as many iterators can +traverse the same list independently. +

                    An iterator has its own current list item and can get the next and +previous list items. It doesn't modify the list in any way. +

                    When an item is removed from the list, all iterators that point to +that item are updated to point to TQPtrList::current() instead to +avoid dangling references. +

                    See also TQPtrList, Collection Classes, and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrListIterator::TQPtrListIterator ( const TQPtrList<type> & list ) +

                    + +

                    Constructs an iterator for list. The current iterator item is +set to point on the first item in the list. + +

                    TQPtrListIterator::~TQPtrListIterator () +

                    + +

                    Destroys the iterator. + +

                    bool TQPtrListIterator::atFirst () const +

                    + +

                    Returns TRUE if the current iterator item is the first list item; +otherwise returns FALSE. +

                    See also toFirst() and atLast(). + +

                    bool TQPtrListIterator::atLast () const +

                    + +

                    Returns TRUE if the current iterator item is the last list item; +otherwise returns FALSE. +

                    See also toLast() and atFirst(). + +

                    uint TQPtrListIterator::count () const +

                    + +

                    Returns the number of items in the list this iterator operates on. +

                    See also isEmpty(). + +

                    Example: customlayout/card.cpp. +

                    type * TQPtrListIterator::current () const +

                    + +

                    Returns a pointer to the current iterator item. If the iterator is +positioned before the first item in the list or after the last +item in the list, 0 is returned. + +

                    Examples: canvas/canvas.cpp, customlayout/card.cpp, and customlayout/flow.cpp. +

                    bool TQPtrListIterator::isEmpty () const +

                    + +

                    Returns TRUE if the list is empty; otherwise returns FALSE. +

                    See also count(). + +

                    TQPtrListIterator::operator type * () const +

                    + +

                    Cast operator. Returns a pointer to the current iterator item. +Same as current(). + +

                    type * TQPtrListIterator::operator() () +

                    + +

                    Makes the succeeding item current and returns the original current +item. +

                    If the current iterator item was the last item in the list or if +it was 0, 0 is returned. + +

                    type * TQPtrListIterator::operator* () +

                    + +

                    Asterisk operator. Returns a pointer to the current iterator item. +Same as current(). + +

                    type * TQPtrListIterator::operator++ () +

                    + +

                    Prefix ++ makes the succeeding item current and returns the new +current item. +

                    If the current iterator item was the last item in the list or if +it was 0, 0 is returned. + +

                    type * TQPtrListIterator::operator+= ( uint jump ) +

                    + +

                    Sets the current item to the item jump positions after the +current item and returns a pointer to that item. +

                    If that item is beyond the last item or if the list is empty, it +sets the current item to 0 and returns 0 + +

                    type * TQPtrListIterator::operator-- () +

                    + +

                    Prefix - makes the preceding item current and returns the new +current item. +

                    If the current iterator item was the first item in the list or if +it was 0, 0 is returned. + +

                    type * TQPtrListIterator::operator-= ( uint jump ) +

                    + +

                    Returns the item jump positions before the current item or 0 +if it is beyond the first item. Makes this the current item. + +

                    TQPtrListIterator<type> & TQPtrListIterator::operator= ( const TQPtrListIterator<type> & it ) +

                    + +

                    Assignment. Makes a copy of the iterator it and returns a +reference to this iterator. + +

                    type * TQPtrListIterator::toFirst () +

                    + +

                    Sets the current iterator item to point to the first list item and +returns a pointer to the item. Sets the current item to 0 and +returns 0 if the list is empty. +

                    See also toLast() and atFirst(). + +

                    type * TQPtrListIterator::toLast () +

                    + +

                    Sets the current iterator item to point to the last list item and +returns a pointer to the item. Sets the current item to 0 and +returns 0 if the list is empty. +

                    See also toFirst() and atLast(). + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrqueue-h.html b/doc/html/tqptrqueue-h.html new file mode 100644 index 000000000..8bc2e1302 --- /dev/null +++ b/doc/html/tqptrqueue-h.html @@ -0,0 +1,135 @@ + + + + + +tqptrqueue.h Include File + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    tqptrqueue.h

                    + +

                    This is the verbatim text of the tqptrqueue.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


                    +
                    +/****************************************************************************
                    +** $Id: qt/tqptrqueue.h   3.3.8   edited Jan 11 14:38 $
                    +**
                    +** Definition of TQPtrQueue template/macro class
                    +**
                    +** Created : 920917
                    +**
                    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                    +**
                    +** This file is part of the tools module of the TQt GUI Toolkit.
                    +**
                    +** This file may be used under the terms of the GNU General Public
                    +** License versions 2.0 or 3.0 as published by the Free Software
                    +** Foundation and appearing in the file LICENSE.GPL included in the
                    +** packaging of this file. Alternatively you may (at your option) use any
                    +** later version of the GNU General Public License if such license has
                    +** been publicly approved by Trolltech ASA (or its successors, if any)
                    +** and the KDE Free TQt Foundation.
                    +**
                    +** Please review the following information to ensure GNU General
                    +** Public Licensing requirements will be met:
                    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                    +** If you are unsure which license is appropriate for your use, please
                    +** review the following information:
                    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                    +** or contact the sales department at sales@trolltech.com.
                    +**
                    +** This file may be used under the terms of the Q Public License as
                    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                    +** included in the packaging of this file.  Licensees holding valid TQt
                    +** Commercial licenses may use this file in accordance with the TQt
                    +** Commercial License Agreement provided with the Software.
                    +**
                    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                    +** herein.
                    +**
                    +**********************************************************************/
                    +
                    +#ifndef TQPTRQUEUE_H
                    +#define TQPTRQUEUE_H
                    +
                    +#ifndef QT_H
                    +#include "ntqglist.h"
                    +#endif // QT_H
                    +
                    +template<class type>
                    +class TQPtrQueue : protected TQGList
                    +{
                    +public:
                    +    TQPtrQueue()				{}
                    +    TQPtrQueue( const TQPtrQueue<type> &q ) : TQGList(q) {}
                    +    ~TQPtrQueue()			{ clear(); }
                    +    TQPtrQueue<type>& operator=(const TQPtrQueue<type> &q)
                    +			{ return (TQPtrQueue<type>&)TQGList::operator=(q); }
                    +    bool  autoDelete() const		{ return TQPtrCollection::autoDelete(); }
                    +    void  setAutoDelete( bool del )	{ TQPtrCollection::setAutoDelete(del); }
                    +    uint  count()   const		{ return TQGList::count(); }
                    +    bool  isEmpty() const		{ return TQGList::count() == 0; }
                    +    void  enqueue( const type *d )	{ TQGList::append(Item(d)); }
                    +    type *dequeue()			{ return (type *)TQGList::takeFirst();}
                    +    bool  remove()			{ return TQGList::removeFirst(); }
                    +    void  clear()			{ TQGList::clear(); }
                    +    type *head()    const		{ return (type *)TQGList::cfirst(); }
                    +	  operator type *() const	{ return (type *)TQGList::cfirst(); }
                    +    type *current() const		{ return (type *)TQGList::cfirst(); }
                    +
                    +#ifdef Q_QDOC
                    +protected:
                    +    virtual TQDataStream& read( TQDataStream&, TQPtrCollection::Item& );
                    +    virtual TQDataStream& write( TQDataStream&, TQPtrCollection::Item ) const;
                    +#endif
                    +
                    +private:
                    +    void  deleteItem( Item d );
                    +};
                    +
                    +#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                    +template<> inline void TQPtrQueue<void>::deleteItem( TQPtrCollection::Item )
                    +{
                    +}
                    +#endif
                    +
                    +template<class type> inline void TQPtrQueue<type>::deleteItem( TQPtrCollection::Item d )
                    +{
                    +    if ( del_item ) delete (type *)d;
                    +}
                    +
                    +#endif // TQPTRQUEUE_H
                    +
                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrqueue-members.html b/doc/html/tqptrqueue-members.html new file mode 100644 index 000000000..23d8331e8 --- /dev/null +++ b/doc/html/tqptrqueue-members.html @@ -0,0 +1,62 @@ + + + + + +TQPtrQueue Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrQueue

                    + +

                    This is the complete list of member functions for +TQPtrQueue, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrqueue.html b/doc/html/tqptrqueue.html new file mode 100644 index 000000000..58a98046b --- /dev/null +++ b/doc/html/tqptrqueue.html @@ -0,0 +1,216 @@ + + + + + +TQPtrQueue Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrQueue Class Reference

                    + +

                    The TQPtrQueue class is a template class that provides a queue. +More... +

                    #include <tqptrqueue.h> +

                    List of all member functions. +

                    Public Members

                    + +

                    Protected Members

                    +
                      +
                    • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                    • +
                    • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                    • +
                    +

                    Detailed Description

                    + + +The TQPtrQueue class is a template class that provides a queue. +

                    + +

                    TQValueVector can be used as an STL-compatible alternative to this +class. +

                    A template instance TQPtrQueue<X> is a queue that operates on +pointers to X (X*). +

                    A queue is a first in, first out structure. Items are added to the +tail of the queue with enqueue() and retrieved from the head with +dequeue(). You can peek at the head item without dequeing it using +head(). +

                    You can control the queue's deletion policy with setAutoDelete(). +

                    For compatibility with the TQPtrCollection classes, current() and +remove() are provided; both operate on the head(). +

                    See also TQPtrList, TQPtrStack, Collection Classes, and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrQueue::TQPtrQueue () +

                    + +

                    Creates an empty queue with autoDelete() set to FALSE. + +

                    TQPtrQueue::TQPtrQueue ( const TQPtrQueue<type> & queue ) +

                    + +

                    Creates a queue from queue. +

                    Only the pointers are copied; the items are not. The autoDelete() +flag is set to FALSE. + +

                    TQPtrQueue::~TQPtrQueue () +

                    + +

                    Destroys the queue. Items in the queue are deleted if autoDelete() +is TRUE. + +

                    bool TQPtrQueue::autoDelete () const +

                    + +

                    Returns the setting of the auto-delete option. The default is +FALSE. +

                    See also setAutoDelete(). + +

                    void TQPtrQueue::clear () +

                    + +

                    Removes all items from the queue, and deletes them if autoDelete() +is TRUE. +

                    See also remove(). + +

                    uint TQPtrQueue::count () const +

                    + +

                    Returns the number of items in the queue. +

                    See also isEmpty(). + +

                    type * TQPtrQueue::current () const +

                    + +

                    Returns a pointer to the head item in the queue. The queue is not +changed. Returns 0 if the queue is empty. +

                    See also dequeue() and isEmpty(). + +

                    type * TQPtrQueue::dequeue () +

                    + +

                    Takes the head item from the queue and returns a pointer to it. +Returns 0 if the queue is empty. +

                    See also enqueue() and count(). + +

                    void TQPtrQueue::enqueue ( const type * d ) +

                    + +

                    Adds item d to the tail of the queue. +

                    See also count() and dequeue(). + +

                    type * TQPtrQueue::head () const +

                    + +

                    Returns a pointer to the head item in the queue. The queue is not +changed. Returns 0 if the queue is empty. +

                    See also dequeue() and isEmpty(). + +

                    bool TQPtrQueue::isEmpty () const +

                    + +

                    Returns TRUE if the queue is empty; otherwise returns FALSE. +

                    See also count(), dequeue(), and head(). + +

                    TQPtrQueue::operator type * () const +

                    + +

                    Returns a pointer to the head item in the queue. The queue is not +changed. Returns 0 if the queue is empty. +

                    See also dequeue() and isEmpty(). + +

                    TQPtrQueue<type> & TQPtrQueue::operator= ( const TQPtrQueue<type> & queue ) +

                    + +

                    Assigns queue to this queue and returns a reference to this +queue. +

                    This queue is first cleared and then each item in queue is +enqueued to this queue. Only the pointers are copied. +

                    Warning: The autoDelete() flag is not modified. If it it TRUE for +both queue and this queue, deleting the two lists will cause double-deletion of the items. + +

                    TQDataStream & TQPtrQueue::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

                    + +

                    Reads a queue item, item, from the stream s and returns a +reference to the stream. +

                    The default implementation sets item to 0. +

                    See also write(). + +

                    bool TQPtrQueue::remove () +

                    + +

                    Removes the head item from the queue, and returns TRUE if there +was an item, i.e. the queue wasn't empty; otherwise returns FALSE. +

                    The item is deleted if autoDelete() is TRUE. +

                    See also head(), isEmpty(), and dequeue(). + +

                    void TQPtrQueue::setAutoDelete ( bool enable ) +

                    + +

                    Sets the queue to auto-delete its contents if enable is TRUE +and not to delete them if enable is FALSE. +

                    If auto-deleting is turned on, all the items in a queue are +deleted when the queue itself is deleted. This can be quite +convenient if the queue has the only pointer to the items. +

                    The default setting is FALSE, for safety. If you turn it on, be +careful about copying the queue: you might find yourself with two +queues deleting the same items. +

                    See also autoDelete(). + +

                    TQDataStream & TQPtrQueue::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] +

                    + +

                    Writes a queue item, item, to the stream s and returns a +reference to the stream. +

                    The default implementation does nothing. +

                    See also read(). + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrstack-h.html b/doc/html/tqptrstack-h.html new file mode 100644 index 000000000..19f0029c9 --- /dev/null +++ b/doc/html/tqptrstack-h.html @@ -0,0 +1,135 @@ + + + + + +tqptrstack.h Include File + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    tqptrstack.h

                    + +

                    This is the verbatim text of the tqptrstack.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


                    +
                    +/****************************************************************************
                    +** $Id: qt/tqptrstack.h   3.3.8   edited Jan 11 14:38 $
                    +**
                    +** Definition of TQPtrStack pointer based template class
                    +**
                    +** Created : 920917
                    +**
                    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                    +**
                    +** This file is part of the tools module of the TQt GUI Toolkit.
                    +**
                    +** This file may be used under the terms of the GNU General Public
                    +** License versions 2.0 or 3.0 as published by the Free Software
                    +** Foundation and appearing in the file LICENSE.GPL included in the
                    +** packaging of this file. Alternatively you may (at your option) use any
                    +** later version of the GNU General Public License if such license has
                    +** been publicly approved by Trolltech ASA (or its successors, if any)
                    +** and the KDE Free TQt Foundation.
                    +**
                    +** Please review the following information to ensure GNU General
                    +** Public Licensing requirements will be met:
                    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                    +** If you are unsure which license is appropriate for your use, please
                    +** review the following information:
                    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                    +** or contact the sales department at sales@trolltech.com.
                    +**
                    +** This file may be used under the terms of the Q Public License as
                    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                    +** included in the packaging of this file.  Licensees holding valid TQt
                    +** Commercial licenses may use this file in accordance with the TQt
                    +** Commercial License Agreement provided with the Software.
                    +**
                    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                    +** herein.
                    +**
                    +**********************************************************************/
                    +
                    +#ifndef TQPTRSTACK_H
                    +#define TQPTRSTACK_H
                    +
                    +#ifndef QT_H
                    +#include "ntqglist.h"
                    +#endif // QT_H
                    +
                    +template<class type>
                    +class TQPtrStack : protected TQGList
                    +{
                    +public:
                    +    TQPtrStack()				{ }
                    +    TQPtrStack( const TQPtrStack<type> &s ) : TQGList( s ) { }
                    +    ~TQPtrStack()			{ clear(); }
                    +    TQPtrStack<type> &operator=(const TQPtrStack<type> &s)
                    +			{ return (TQPtrStack<type>&)TQGList::operator=(s); }
                    +    bool  autoDelete() const		{ return TQPtrCollection::autoDelete(); }
                    +    void  setAutoDelete( bool del )	{ TQPtrCollection::setAutoDelete(del); }
                    +    uint  count()   const		{ return TQGList::count(); }
                    +    bool  isEmpty() const		{ return TQGList::count() == 0; }
                    +    void  push( const type *d )		{ TQGList::insertAt(0,Item(d)); }
                    +    type *pop()				{ return (type *)TQGList::takeFirst(); }
                    +    bool  remove()			{ return TQGList::removeFirst(); }
                    +    void  clear()			{ TQGList::clear(); }
                    +    type *top()	    const		{ return (type *)TQGList::cfirst(); }
                    +	  operator type *() const	{ return (type *)TQGList::cfirst(); }
                    +    type *current() const		{ return (type *)TQGList::cfirst(); }
                    +
                    +#ifdef Q_QDOC
                    +protected:
                    +    virtual TQDataStream& read( TQDataStream&, TQPtrCollection::Item& );
                    +    virtual TQDataStream& write( TQDataStream&, TQPtrCollection::Item ) const;
                    +#endif
                    +
                    +private:
                    +    void  deleteItem( Item d );
                    +};
                    +
                    +#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                    +template<> inline void TQPtrStack<void>::deleteItem( TQPtrCollection::Item )
                    +{
                    +}
                    +#endif
                    +
                    +template<class type> inline void TQPtrStack<type>::deleteItem( TQPtrCollection::Item d )
                    +{
                    +    if ( del_item ) delete (type *)d;
                    +}
                    +
                    +#endif // TQPTRSTACK_H
                    +
                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrstack-members.html b/doc/html/tqptrstack-members.html new file mode 100644 index 000000000..63f99ea38 --- /dev/null +++ b/doc/html/tqptrstack-members.html @@ -0,0 +1,62 @@ + + + + + +TQPtrStack Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrStack

                    + +

                    This is the complete list of member functions for +TQPtrStack, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrstack.html b/doc/html/tqptrstack.html new file mode 100644 index 000000000..2a30d66e0 --- /dev/null +++ b/doc/html/tqptrstack.html @@ -0,0 +1,201 @@ + + + + + +TQPtrStack Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrStack Class Reference

                    + +

                    The TQPtrStack class is a template class that provides a stack. +More... +

                    #include <tqptrstack.h> +

                    List of all member functions. +

                    Public Members

                    + +

                    Protected Members

                    +
                      +
                    • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                    • +
                    • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                    • +
                    +

                    Detailed Description

                    + + +The TQPtrStack class is a template class that provides a stack. +

                    +

                    TQValueStack is an STL-compatible alternative to this class. +

                    Define a template instance TQPtrStack<X> to create a stack that +operates on pointers to X, (X*). +

                    A stack is a last in, first out (LIFO) structure. Items are added +to the top of the stack with push() and retrieved from the top +with pop(). Use top() to get a reference to the top element +without changing the stack. +

                    You can control the stack's deletion policy with setAutoDelete(). +

                    For compatibility with the TQPtrCollection classes current() and +remove() are provided; they both operate on the top(). +

                    See also TQPtrList, TQPtrQueue, and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrStack::TQPtrStack () +

                    + +

                    Creates an empty stack. + +

                    TQPtrStack::TQPtrStack ( const TQPtrStack<type> & s ) +

                    + +

                    Creates a stack by making a shallow copy of another stack s. + +

                    TQPtrStack::~TQPtrStack () +

                    + +

                    Destroys the stack. All items will be deleted if autoDelete() is +TRUE. + +

                    bool TQPtrStack::autoDelete () const +

                    + +

                    The same as TQPtrCollection::autoDelete(). +

                    See also setAutoDelete(). + +

                    void TQPtrStack::clear () +

                    + +

                    Removes all items from the stack, deleting them if autoDelete() is +TRUE. +

                    See also remove(). + +

                    uint TQPtrStack::count () const +

                    + +

                    Returns the number of items in the stack. +

                    See also isEmpty(). + +

                    type * TQPtrStack::current () const +

                    + +

                    Returns a pointer to the top item on the stack (most recently +pushed). The stack is not changed. Returns 0 if the stack is +empty. + +

                    bool TQPtrStack::isEmpty () const +

                    + +

                    Returns TRUE if the stack contains no elements; otherwise returns +FALSE. + +

                    TQPtrStack::operator type * () const +

                    + +

                    Returns a pointer to the top item on the stack (most recently +pushed). The stack is not changed. Returns 0 if the stack is +empty. + +

                    TQPtrStack<type> & TQPtrStack::operator= ( const TQPtrStack<type> & s ) +

                    + +

                    Sets the contents of this stack by making a shallow copy of +another stack s. Elements currently in this stack will be +deleted if autoDelete() is TRUE. + +

                    type * TQPtrStack::pop () +

                    + +

                    Removes the top item from the stack and returns it. The stack must +not be empty. + +

                    void TQPtrStack::push ( const type * d ) +

                    + +

                    Adds an element d to the top of the stack. Last in, first out. + +

                    TQDataStream & TQPtrStack::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

                    + +

                    Reads a stack item, item, from the stream s and returns a +reference to the stream. +

                    The default implementation sets item to 0. +

                    See also write(). + +

                    bool TQPtrStack::remove () +

                    + +

                    Removes the top item from the stack and deletes it if autoDelete() +is TRUE. Returns TRUE if there was an item to pop; otherwise +returns FALSE. +

                    See also clear(). + +

                    void TQPtrStack::setAutoDelete ( bool enable ) +

                    + +

                    Defines whether this stack auto-deletes its contents. The same as +TQPtrCollection::setAutoDelete(). +

                    If enable is TRUE the stack auto-deletes its contents; if enable is FALSE the stack does not delete its contents. +

                    See also autoDelete(). + +

                    type * TQPtrStack::top () const +

                    + +

                    Returns a pointer to the top item on the stack (most recently +pushed). The stack is not changed. Returns 0 if the stack is +empty. + +

                    TQDataStream & TQPtrStack::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] +

                    + +

                    Writes a stack item, item, to the stream s and returns a +reference to the stream. +

                    The default implementation does nothing. +

                    See also read(). + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrvector-h.html b/doc/html/tqptrvector-h.html new file mode 100644 index 000000000..ceeaf48ff --- /dev/null +++ b/doc/html/tqptrvector-h.html @@ -0,0 +1,159 @@ + + + + + +tqptrvector.h Include File + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    tqptrvector.h

                    + +

                    This is the verbatim text of the tqptrvector.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


                    +
                    +/****************************************************************************
                    +** $Id: qt/tqptrvector.h   3.3.8   edited Jan 11 14:38 $
                    +**
                    +** Definition of TQPtrVector pointer based template class
                    +**
                    +** Created : 930907
                    +**
                    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
                    +**
                    +** This file is part of the tools module of the TQt GUI Toolkit.
                    +**
                    +** This file may be used under the terms of the GNU General Public
                    +** License versions 2.0 or 3.0 as published by the Free Software
                    +** Foundation and appearing in the file LICENSE.GPL included in the
                    +** packaging of this file. Alternatively you may (at your option) use any
                    +** later version of the GNU General Public License if such license has
                    +** been publicly approved by Trolltech ASA (or its successors, if any)
                    +** and the KDE Free TQt Foundation.
                    +**
                    +** Please review the following information to ensure GNU General
                    +** Public Licensing requirements will be met:
                    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
                    +** If you are unsure which license is appropriate for your use, please
                    +** review the following information:
                    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
                    +** or contact the sales department at sales@trolltech.com.
                    +**
                    +** This file may be used under the terms of the Q Public License as
                    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
                    +** included in the packaging of this file.  Licensees holding valid TQt
                    +** Commercial licenses may use this file in accordance with the TQt
                    +** Commercial License Agreement provided with the Software.
                    +**
                    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
                    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
                    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
                    +** herein.
                    +**
                    +**********************************************************************/
                    +
                    +#ifndef TQPTRVECTOR_H
                    +#define TQPTRVECTOR_H
                    +
                    +#ifndef QT_H
                    +#include "ntqgvector.h"
                    +#endif // QT_H
                    +
                    +template<class type>
                    +class TQPtrVector
                    +#ifdef Q_QDOC
                    +	: public TQPtrCollection
                    +#else
                    +	: public TQGVector
                    +#endif
                    +{
                    +public:
                    +    TQPtrVector()				{ }
                    +    TQPtrVector( uint size ) : TQGVector(size) { }
                    +    TQPtrVector( const TQPtrVector<type> &v ) : TQGVector( v ) { }
                    +    ~TQPtrVector()				{ clear(); }
                    +    TQPtrVector<type> &operator=(const TQPtrVector<type> &v)
                    +			{ return (TQPtrVector<type>&)TQGVector::operator=(v); }
                    +    bool operator==( const TQPtrVector<type> &v ) const { return TQGVector::operator==(v); }
                    +    type **data()   const		{ return (type **)TQGVector::data(); }
                    +    uint  size()    const		{ return TQGVector::size(); }
                    +    uint  count()   const		{ return TQGVector::count(); }
                    +    bool  isEmpty() const		{ return TQGVector::count() == 0; }
                    +    bool  isNull()  const		{ return TQGVector::size() == 0; }
                    +    bool  resize( uint size )		{ return TQGVector::resize(size); }
                    +    bool  insert( uint i, const type *d){ return TQGVector::insert(i,(Item)d); }
                    +    bool  remove( uint i )		{ return TQGVector::remove(i); }
                    +    type *take( uint i )		{ return (type *)TQGVector::take(i); }
                    +    void  clear()			{ TQGVector::clear(); }
                    +    bool  fill( const type *d, int size=-1 )
                    +					{ return TQGVector::fill((Item)d,size);}
                    +    void  sort()			{ TQGVector::sort(); }
                    +    int	  bsearch( const type *d ) const{ return TQGVector::bsearch((Item)d); }
                    +    int	  findRef( const type *d, uint i=0 ) const
                    +					{ return TQGVector::findRef((Item)d,i);}
                    +    int	  find( const type *d, uint i= 0 ) const
                    +					{ return TQGVector::find((Item)d,i); }
                    +    uint  containsRef( const type *d ) const
                    +				{ return TQGVector::containsRef((Item)d); }
                    +    uint  contains( const type *d ) const
                    +					{ return TQGVector::contains((Item)d); }
                    +    type *operator[]( int i ) const	{ return (type *)TQGVector::at(i); }
                    +    type *at( uint i ) const		{ return (type *)TQGVector::at(i); }
                    +    void  toList( TQGList *list ) const	{ TQGVector::toList(list); }
                    +
                    +#ifdef Q_QDOC
                    +protected:
                    +    virtual int compareItems( TQPtrCollection::Item d1, TQPtrCollection::Item d2 );
                    +    virtual TQDataStream& read( TQDataStream &s, TQPtrCollection::Item &d );
                    +    virtual TQDataStream& write( TQDataStream &s, TQPtrCollection::Item d ) const;
                    +#endif
                    +
                    +private:
                    +    void  deleteItem( Item d );
                    +};
                    +
                    +#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
                    +template<> inline void TQPtrVector<void>::deleteItem( TQPtrCollection::Item )
                    +{
                    +}
                    +#endif
                    +
                    +template<class type> inline void TQPtrVector<type>::deleteItem( TQPtrCollection::Item d )
                    +{
                    +    if ( del_item ) delete (type *)d;
                    +}
                    +
                    +#define Q_DEFINED_QPTRVECTOR
                    +#include "ntqwinexport.h"
                    +#endif // TQPTRVECTOR_H
                    +
                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrvector-members.html b/doc/html/tqptrvector-members.html new file mode 100644 index 000000000..7d20134e0 --- /dev/null +++ b/doc/html/tqptrvector-members.html @@ -0,0 +1,76 @@ + + + + + +TQPtrVector Member List + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    Complete Member List for TQPtrVector

                    + +

                    This is the complete list of member functions for +TQPtrVector, including inherited members. + +

                    + +


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqptrvector.html b/doc/html/tqptrvector.html new file mode 100644 index 000000000..44e4cdcee --- /dev/null +++ b/doc/html/tqptrvector.html @@ -0,0 +1,393 @@ + + + + + +TQPtrVector Class + + + + + + + +
                    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

                    TQPtrVector Class Reference

                    + +

                    The TQPtrVector class is a template collection class that +provides a vector (array). +More... +

                    #include <tqptrvector.h> +

                    Inherits TQPtrCollection. +

                    List of all member functions. +

                    Public Members

                    + +

                    Important Inherited Members

                    + +

                    Protected Members

                    +
                      +
                    • virtual int compareItems ( TQPtrCollection::Item d1, TQPtrCollection::Item d2 )
                    • +
                    • virtual TQDataStream & read ( TQDataStream & s, TQPtrCollection::Item & item )
                    • +
                    • virtual TQDataStream & write ( TQDataStream & s, TQPtrCollection::Item item ) const
                    • +
                    +

                    Detailed Description

                    + + +The TQPtrVector class is a template collection class that +provides a vector (array). +

                    +

                    +

                    TQValueVector is an STL-compatible alternative to this class. +

                    TQPtrVector is implemented as a template class. Defines a template +instance TQPtrVector<X> to create a vector that contains pointers +to X (X*). +

                    A vector is the same as an array. The main difference between +TQPtrVector and TQMemArray is that TQPtrVector stores pointers to the +elements, whereas TQMemArray stores the elements themselves (i.e. +TQMemArray is value-based and TQPtrVector is pointer-based). +

                    Items are added to the vector using insert() or fill(). Items are +removed with remove(). You can get a pointer to an item at a +particular index position using at(). +

                    Unless otherwise stated, all functions that remove items from the +vector will also delete the element pointed to if auto-deletion is enabled. By default, +auto-deletion is disabled; see setAutoDelete(). This behaviour can +be changed in a subclass by reimplementing the virtual function +deleteItem(). +

                    Functions that compare items (find() and sort() for example) will +do so using the virtual function compareItems(). The default +implementation of this function only compares the pointer values. +Reimplement compareItems() in a subclass to get searching and +sorting based on the item contents. You can perform a linear +search for a pointer in the vector using findRef(), or a binary +search (of a sorted vector) using bsearch(). You can count the +number of times an item appears in the vector with contains() or +containsRef(). +

                    See also TQMemArray and Non-GUI Classes. + +


                    Member Function Documentation

                    +

                    TQPtrVector::TQPtrVector () +

                    + +

                    Constructs a null vector. +

                    See also isNull(). + +

                    TQPtrVector::TQPtrVector ( uint size ) +

                    + +

                    Constructs an vector with room for size items. Makes a null +vector if size == 0. +

                    All size positions in the vector are initialized to 0. +

                    See also size(), resize(), and isNull(). + +

                    TQPtrVector::TQPtrVector ( const TQPtrVector<type> & v ) +

                    + +

                    Constructs a copy of v. Only the pointers are copied (i.e. +shallow copy). + +

                    TQPtrVector::~TQPtrVector () +

                    + +

                    Removes all items from the vector, and destroys the vector itself. +

                    See also clear(). + +

                    type * TQPtrVector::at ( uint i ) const +

                    + +

                    Returns the item at position i, or 0 if there is no item at +that position. i must be less than size(). + +

                    bool TQPtrCollection::autoDelete () const +

                    + +

                    Returns the setting of the auto-delete option. The default is FALSE. +

                    See also setAutoDelete(). + +

                    int TQPtrVector::bsearch ( const type * d ) const +

                    + +

                    In a sorted array, finds the first occurrence of d using a +binary search. For a sorted array, this is generally much faster +than find(), which performs a linear search. +

                    Returns the position of d, or -1 if d could not be found. d must not be 0. +

                    Compares items using the virtual function compareItems(). +

                    See also sort() and find(). + +

                    void TQPtrVector::clear () [virtual] +

                    + +

                    Removes all items from the vector, and destroys the vector itself. +

                    The vector becomes a null vector. +

                    See also isNull(). + +

                    Reimplemented from TQPtrCollection. +

                    int TQPtrVector::compareItems ( TQPtrCollection::Item d1, TQPtrCollection::Item d2 ) [virtual protected] +

                    + +

                    This virtual function compares two list items. +

                    Returns: +

                      +
                    • zero if d1 == d2 +
                    • nonzero if d1 != d2 +
                    +

                    This function returns int rather than bool so that +reimplementations can return one of three values and use it to +sort by: +

                      +
                    • 0 if d1 == d2 +
                    • > 0 (positive integer) if d1 > d2 +
                    • < 0 (negative integer) if d1 < d2 +
                    +

                    The sort() and bsearch() functions require compareItems() to be +implemented as described here. +

                    This function should not modify the vector because some const +functions call compareItems(). + +

                    uint TQPtrVector::contains ( const type * d ) const +

                    + +

                    Returns the number of occurrences of item d in the vector. +

                    Compares items using the virtual function compareItems(). +

                    See also containsRef(). + +

                    uint TQPtrVector::containsRef ( const type * d ) const +

                    + +

                    Returns the number of occurrences of the item pointer d in the +vector. +

                    This function does not use compareItems() to compare items. +

                    See also findRef(). + +

                    uint TQPtrVector::count () const [virtual] +

                    + +

                    Returns the number of items in the vector. The vector is empty if +count() == 0. +

                    See also isEmpty(), size(), and isNull(). + +

                    Reimplemented from TQPtrCollection. +

                    type ** TQPtrVector::data () const +

                    + +

                    Returns a pointer to the actual vector data, which is an array of +type*. +

                    The vector is a null vector if data() == 0 (null pointer). +

                    See also isNull(). + +

                    bool TQPtrVector::fill ( const type * d, int size = -1 ) +

                    + +

                    Inserts item d in all positions in the vector. Any existing +items are removed. If d is 0, the vector becomes empty. +

                    If size >= 0, the vector is first resized to size. By +default, size is -1. +

                    Returns TRUE if successful, i.e. size is the same as the +current size, or size is larger and the memory has successfully +been allocated; otherwise returns FALSE. +

                    See also resize(), insert(), and isEmpty(). + +

                    int TQPtrVector::find ( const type * d, uint i = 0 ) const +

                    + +

                    Finds the first occurrence of item d in the vector using a +linear search. The search starts at position i, which must be +less than size(). i is by default 0; i.e. the search starts at +the start of the vector. +

                    Returns the position of d, or -1 if d could not be found. +

                    Compares items using the virtual function compareItems(). +

                    Use the much faster bsearch() to search a sorted vector. +

                    See also findRef() and bsearch(). + +

                    int TQPtrVector::findRef ( const type * d, uint i = 0 ) const +

                    + +

                    Finds the first occurrence of the item pointer d in the vector +using a linear search. The search starts at position i, which +must be less than size(). i is by default 0; i.e. the search +starts at the start of the vector. +

                    Returns the position of d, or -1 if d could not be found. +

                    This function does not use compareItems() to compare items. +

                    Use the much faster bsearch() to search a sorted vector. +

                    See also find() and bsearch(). + +

                    bool TQPtrVector::insert ( uint i, const type * d ) +

                    + +

                    Sets position i in the vector to contain the item d. i +must be less than size(). Any previous element in position i is +removed. +

                    See also at(). + +

                    bool TQPtrVector::isEmpty () const +

                    + +

                    Returns TRUE if the vector is empty; otherwise returns FALSE. +

                    See also count(). + +

                    bool TQPtrVector::isNull () const +

                    + +

                    Returns TRUE if the vector is null; otherwise returns FALSE. +

                    A null vector has size() == 0 and data() == 0. +

                    See also size(). + +

                    TQPtrVector<type> & TQPtrVector::operator= ( const TQPtrVector<type> & v ) +

                    + +

                    Assigns v to this vector and returns a reference to this +vector. +

                    This vector is first cleared and then all the items from v are +copied into the vector. Only the pointers are copied (i.e. shallow copy). +

                    See also clear(). + +

                    bool TQPtrVector::operator== ( const TQPtrVector<type> & v ) const +

                    + +

                    Returns TRUE if this vector and v are equal; otherwise returns +FALSE. + +

                    type * TQPtrVector::operator[] ( int i ) const +

                    + +

                    Returns the item at position i, or 0 if there is no item at +that position. i must be less than size(). +

                    Equivalent to at( i ). +

                    See also at(). + +

                    TQDataStream & TQPtrVector::read ( TQDataStream & s, TQPtrCollection::Item & item ) [virtual protected] +

                    + +

                    Reads a vector item, item, from the stream s and returns a +reference to the stream. +

                    The default implementation sets item to 0. +

                    See also write(). + +

                    bool TQPtrVector::remove ( uint i ) +

                    + +

                    Removes the item at position i in the vector, if there is one. +i must be less than size(). +

                    Returns TRUE if i is within range; otherwise returns FALSE. +

                    See also take() and at(). + +

                    bool TQPtrVector::resize ( uint size ) +

                    + +

                    Resizes (expands or shrinks) the vector to size elements. The +vector becomes a null vector if size == 0. +

                    Any items at position size or beyond in the vector are removed. +New positions are initialized to 0. +

                    Returns TRUE if successful, i.e. if the memory was successfully +allocated; otherwise returns FALSE. +

                    See also size() and isNull(). + +

                    void TQPtrCollection::setAutoDelete ( bool enable ) +

                    + +

                    Sets the collection to auto-delete its contents if enable is +TRUE and to never delete them if enable is FALSE. +

                    If auto-deleting is turned on, all the items in a collection are +deleted when the collection itself is deleted. This is convenient +if the collection has the only pointer to the items. +

                    The default setting is FALSE, for safety. If you turn it on, be +careful about copying the collection - you might find yourself +with two collections deleting the same items. +

                    Note that the auto-delete setting may also affect other functions +in subclasses. For example, a subclass that has a remove() +function will remove the item from its data structure, and if +auto-delete is enabled, will also delete the item. +

                    See also autoDelete(). + +

                    Examples: grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. +

                    uint TQPtrVector::size () const +

                    + +

                    Returns the size of the vector, i.e. the number of vector +positions. This is also the maximum number of items the vector can +hold. +

                    The vector is a null vector if size() == 0. +

                    See also isNull(), resize(), and count(). + +

                    void TQPtrVector::sort () +

                    + +

                    Sorts the items in ascending order. Any empty positions will be +put last. +

                    Compares items using the virtual function compareItems(). +

                    See also bsearch(). + +

                    type * TQPtrVector::take ( uint i ) +

                    + +

                    Returns the item at position i in the vector, and removes that +item from the vector. i must be less than size(). If there is +no item at position i, 0 is returned. +

                    Unlike remove(), this function does not call deleteItem() for +the removed item. +

                    See also remove() and at(). + +

                    TQDataStream & TQPtrVector::write ( TQDataStream & s, TQPtrCollection::Item item ) const [virtual protected] +

                    + +

                    Writes a vector item, item, to the stream s and returns a +reference to the stream. +

                    The default implementation does nothing. +

                    See also read(). + + +


                    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


                    + +
                    Copyright © 2007 +TrolltechTrademarks +
                    TQt 3.3.8
                    +
                    + diff --git a/doc/html/tqsqldriver-h.html b/doc/html/tqsqldriver-h.html index de499fb11..0c9242d1b 100644 --- a/doc/html/tqsqldriver-h.html +++ b/doc/html/tqsqldriver-h.html @@ -78,7 +78,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "tqobject.h" -#include "ntqptrdict.h" +#include "tqptrdict.h" #include "ntqstring.h" #include "tqsqlerror.h" #include "tqsqlquery.h" diff --git a/doc/html/tqvaluelist.html b/doc/html/tqvaluelist.html index e375b1943..bd899893b 100644 --- a/doc/html/tqvaluelist.html +++ b/doc/html/tqvaluelist.html @@ -130,11 +130,11 @@ available for your target platform(s). TQValueList is part of the values that all have the class T. Note that TQValueList does not store pointers to the members of the list; it holds a copy of every member. This is why these kinds of classes are called "value -based"; TQPtrList and TQDict are "pointer based". +based"; TQPtrList and TQDict are "pointer based".

                    TQValueList contains and manages a collection of objects of type T and provides iterators that allow the contained objects to be addressed. TQValueList owns the contained items. For more relaxed -ownership semantics, see TQPtrCollection and friends which are +ownership semantics, see TQPtrCollection and friends which are pointer-based containers.

                    Some classes cannot be used within a TQValueList, for example, all classes derived from TQObject and thus all classes that implement diff --git a/doc/html/tqvaluestack.html b/doc/html/tqvaluestack.html index 114dcc59f..86ed01bb8 100644 --- a/doc/html/tqvaluestack.html +++ b/doc/html/tqvaluestack.html @@ -59,7 +59,7 @@ The TQValueStack class is a value-based template class that provides a stack. values that all have the class X. TQValueStack is part of the TQt Template Library.

                    Note that TQValueStack does not store pointers to the members of the stack; it holds a copy of every member. That is why these -kinds of classes are called "value based"; TQPtrStack, TQPtrList, +kinds of classes are called "value based"; TQPtrStack, TQPtrList, TQDict, etc., are "pointer based".

                    A stack is a last in, first out (LIFO) structure. Items are added to the top of the stack with push() and retrieved from the top @@ -81,7 +81,7 @@ without removing it.

            TQValueStack is a specialized TQValueList provided for convenience. -All of TQValueList's functionality also applies to TQPtrStack, for +All of TQValueList's functionality also applies to TQPtrStack, for example the facility to iterate over all elements using TQValueStack::Iterator. See TQValueListIterator for further details. diff --git a/doc/html/tqvaluevector.html b/doc/html/tqvaluevector.html index 5930a8cd7..a8a28bdf6 100644 --- a/doc/html/tqvaluevector.html +++ b/doc/html/tqvaluevector.html @@ -110,11 +110,11 @@ part of the TQt Template Library. of values that all have the class T. TQValueVector does not store pointers to the members of the vector; it holds a copy of every member. TQValueVector is said to be value based; in contrast, -TQPtrList and TQDict are pointer based. +TQPtrList and TQDict are pointer based.

            TQValueVector contains and manages a collection of objects of type T and provides random access iterators that allow the contained objects to be addressed. TQValueVector owns the contained -elements. For more relaxed ownership semantics, see TQPtrCollection +elements. For more relaxed ownership semantics, see TQPtrCollection and friends, which are pointer-based containers.

            TQValueVector provides good performance if you append or remove elements from the end of the vector. If you insert or remove diff --git a/doc/html/tqwidgetfactory-h.html b/doc/html/tqwidgetfactory-h.html index 78e8155db..47a6e40da 100644 --- a/doc/html/tqwidgetfactory-h.html +++ b/doc/html/tqwidgetfactory-h.html @@ -71,7 +71,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include <ntqstring.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> #include <ntqimage.h> #include <ntqpixmap.h> #include <tqvaluelist.h> diff --git a/doc/html/tqwidgetstack-h.html b/doc/html/tqwidgetstack-h.html index 1ad40bfcc..275bd3186 100644 --- a/doc/html/tqwidgetstack-h.html +++ b/doc/html/tqwidgetstack-h.html @@ -80,7 +80,7 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqframe.h" #include "ntqintdict.h" -#include "ntqptrdict.h" +#include "tqptrdict.h" #endif // QT_H #ifndef TQT_NO_WIDGETSTACK diff --git a/doc/html/whatsthis b/doc/html/whatsthis index 6a529e32c..df2ed25fd 100644 --- a/doc/html/whatsthis +++ b/doc/html/whatsthis @@ -209,8 +209,8 @@ Iterator for QIntDict collections. | QIntDictIterator Iterator for TQMap. | TQMapConstIterator Iterator for TQMap. | TQMapIterator Iterator for TQObjectLists. | TQObjectListIterator -Iterator for QPtrDict collections. | QPtrDictIterator -Iterator for QPtrList collections. | QPtrListIterator +Iterator for TQPtrDict collections. | TQPtrDictIterator +Iterator for TQPtrList collections. | TQPtrListIterator Iterator for TQValueList. | TQValueListIterator Iterator for collections of QListViewItems. | QListViewItemIterator Iterator for the QStrList and QStrIList classes. | QStrListIterator @@ -285,7 +285,7 @@ Popup menu widget. | QPopupMenu Powerful single-page rich text editor. | QTextEdit TQObject that is a web browser plugin. | QNPInstance TQObject that wraps a COM object. | QAxObject -QPtrList of TQObjects. | TQObjectList +TQPtrList of TQObjects. | TQObjectList TQWidget that is a web browser plugin window. | QNPWidget TQWidget that wraps an ActiveX control. | QAxWidget Quick-access button to commands or options, usually used inside a QToolBar. | QToolButton @@ -348,14 +348,14 @@ Template class that provides a cache based on long keys. | QIntCache Template class that provides a dictionary based on TQString keys. | QDict Template class that provides a dictionary based on char* keys. | QAsciiDict Template class that provides a dictionary based on long keys. | QIntDict -Template class that provides a dictionary based on void* keys. | QPtrDict -Template class that provides a list. | QPtrList -Template class that provides a queue. | QPtrQueue -Template class that provides a stack. | QPtrStack +Template class that provides a dictionary based on void* keys. | TQPtrDict +Template class that provides a list. | TQPtrList +Template class that provides a queue. | TQPtrQueue +Template class that provides a stack. | TQPtrStack Template class that provides arrays of simple types. | QMemArray Template class that provides guarded pointers to TQObjects. | QGuardedPtr Template class which ensures that implicitly shared and explicitly shared classes reference unique data. | QDeepCopy -Template collection class that provides a vector (array). | QPtrVector +Template collection class that provides a vector (array). | TQPtrVector Text object on a TQCanvas. | TQCanvasText Text or image display. | QLabel The QDialog API for Motif-based dialogs. | QMotifDialog @@ -370,7 +370,7 @@ The base class of all list box items. | QListBoxItem The base class of all user interface objects. | TQWidget The base class of dialog windows. | QDialog The base class of geometry managers. | QLayout -The base class of most pointer-based TQt collections. | QPtrCollection +The base class of most pointer-based TQt collections. | TQPtrCollection The base class of objects that can be painted. | QPaintDevice The base class of widgets that can have a frame. | QFrame The basis of the Motif Extension. | QMotif diff --git a/doc/html/xml-sax-features-walkthrough.html b/doc/html/xml-sax-features-walkthrough.html index 826b70bdd..be7e63f95 100644 --- a/doc/html/xml-sax-features-walkthrough.html +++ b/doc/html/xml-sax-features-walkthrough.html @@ -191,7 +191,7 @@ the GUI's event loop.

                #include <tqxml.h>
            -    #include <ntqptrstack.h>
            +    #include <tqptrstack.h>
             
                 class TQListView;
                 class TQListViewItem;
            @@ -222,7 +222,7 @@ takes a TQListView as an argument,
             

            In addition we have a function that selects a listview for the output.

                private:
            -        TQPtrStack<TQListViewItem> stack;
            +        TQPtrStack<TQListViewItem> stack;
             

            Keep in mind that we write a SAX2 parser that doesn't have an object model to keep all elements and attributes -- cgit v1.2.3