diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 12:20:38 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 12:20:38 +0900 |
commit | 0881ed5059c46ce73e8241e6260b82b92f6d0e55 (patch) | |
tree | 6d1d4883cc07ad22b11017d0714d4c26e1ce1b94 /doc/man | |
parent | 1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (diff) | |
download | tqt3-0881ed5059c46ce73e8241e6260b82b92f6d0e55.tar.gz tqt3-0881ed5059c46ce73e8241e6260b82b92f6d0e55.zip |
Rename ptr nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man')
38 files changed, 408 insertions, 408 deletions
diff --git a/doc/man/man3/tqapplication.3qt b/doc/man/man3/tqapplication.3qt index 7cb94cc41..bf39cc926 100644 --- a/doc/man/man3/tqapplication.3qt +++ b/doc/man/man3/tqapplication.3qt @@ -667,7 +667,7 @@ Returns a list of all the widgets in the application. .PP The list is created using \fCnew\fR and must be deleted by the caller. .PP -The list is empty (QPtrList::isEmpty()) if there are no widgets. +The list is empty (TQPtrList::isEmpty()) if there are no widgets. .PP Note that some of the widgets may be hidden. .PP @@ -697,7 +697,7 @@ The TQWidgetList class is defined in the \fCtqwidgetlist.h\fR header file. .PP \fBWarning:\fR 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. .PP -See also topLevelWidgets(), TQWidget::visible, and QPtrList::isEmpty(). +See also topLevelWidgets(), TQWidget::visible, and TQPtrList::isEmpty(). .SH "TQString QApplication::applicationDirPath ()" Returns the directory that contains the application executable. .PP @@ -1549,7 +1549,7 @@ Returns a list of the top level widgets in the application. .PP The list is created using \fCnew\fR and must be deleted by the caller. .PP -The list is empty (QPtrList::isEmpty()) if there are no top level widgets. +The list is empty (TQPtrList::isEmpty()) if there are no top level widgets. .PP Note that some of the top level widgets may be hidden, for example the tooltip if no tooltip is currently shown. .PP @@ -1581,7 +1581,7 @@ Example: .PP \fBWarning:\fR Delete the list as soon you have finished using it. The widgets in the list may be deleted by someone else at any time. .PP -See also allWidgets(), TQWidget::isTopLevel, TQWidget::visible, and QPtrList::isEmpty(). +See also allWidgets(), TQWidget::isTopLevel, TQWidget::visible, and TQPtrList::isEmpty(). .SH "TQString QApplication::translate ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const" \fBNote:\fR This function is reentrant when TQt is built with thread support.</p> Returns the translation text for \fIsourceText\fR, by querying the installed messages files. The message files are searched from the most recently installed message file back to the first installed message file. .PP diff --git a/doc/man/man3/tqasciicache.3qt b/doc/man/man3/tqasciicache.3qt index 9b1dadd68..7c6c7eff7 100644 --- a/doc/man/man3/tqasciicache.3qt +++ b/doc/man/man3/tqasciicache.3qt @@ -11,7 +11,7 @@ QAsciiCache \- Template class that provides a cache based on char* keys .SH SYNOPSIS \fC#include <ntqasciicache.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c @@ -74,9 +74,9 @@ Apart from insert(), by far the most important function is find() (which also ex .PP There are also methods to remove() or take() an object from the 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). .PP -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 QPtrCollection::newItem() for the item to be inserted. Inherit a cache and reimplement newItem() if you want deep copies. +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. .PP -When removing a cache item the virtual function QPtrCollection::deleteItem() is called. Its default implementation in QAsciiCache is to delete the item if auto-deletion is enabled. +When removing a cache item the virtual function TQPtrCollection::deleteItem() is called. Its default implementation in QAsciiCache is to delete the item if auto-deletion is enabled. .PP There is a QAsciiCacheIterator which may be used to traverse the items in the cache in arbitrary order. .PP @@ -99,13 +99,13 @@ All cache iterators that operate on this cache are reset. .PP See also remove() and take(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "uint QAsciiCache::count () const\fC [virtual]\fR" Returns the number of items in the cache. .PP See also totalCost() and size(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "type * QAsciiCache::find ( const char * k, bool ref = TRUE ) const" Returns the item with key \fIk\fR, or 0 if the key does not exist in the cache. If \fIref\fR is TRUE (the default), the item is moved to the front of the least recently used list. .PP diff --git a/doc/man/man3/tqasciidict.3qt b/doc/man/man3/tqasciidict.3qt index 734e53094..9b6d47eb1 100644 --- a/doc/man/man3/tqasciidict.3qt +++ b/doc/man/man3/tqasciidict.3qt @@ -11,7 +11,7 @@ QAsciiDict \- Template class that provides a dictionary based on char* keys .SH SYNOPSIS \fC#include <ntqasciidict.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c @@ -76,10 +76,10 @@ Inherits QPtrCollection. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item ) const" .br .in -1c .SH DESCRIPTION @@ -131,11 +131,11 @@ Example: cout << "forename is not in the dictionary" << endl; .br .fi -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 QPtrDict, QIntDict and QDict. +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, QIntDict and QDict. .PP See QDict for full details, including the choice of dictionary size, and how deletions are handled. .PP -See also QAsciiDictIterator, QDict, QIntDict, QPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. +See also QAsciiDictIterator, QDict, QIntDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QAsciiDict::QAsciiDict ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" Constructs a dictionary optimized for less than \fIsize\fR entries. @@ -157,7 +157,7 @@ The items are deleted if auto-delete is enabled. All iterators that access this dictionary will be reset. .PP See also setAutoDelete(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). @@ -170,13 +170,13 @@ All dictionary iterators that operate on dictionary are reset. .PP See also remove(), take(), and setAutoDelete(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "uint QAsciiDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "type * QAsciiDict::find ( const char * key ) const" Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP @@ -213,7 +213,7 @@ If there are two or more items with equal keys, then the item that was most rece Equivalent to the find() function. .PP See also find(). -.SH "QDataStream & QAsciiDict::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & QAsciiDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a dictionary item from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. @@ -257,7 +257,7 @@ If there are two or more items with equal keys, then the most recently inserted See also insert(). .SH "void QAsciiDict::resize ( uint newsize )" Changes the size of the hashtable to \fInewsize\fR. The contents of the dictionary are preserved but all iterators on the dictionary become invalid. -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -286,7 +286,7 @@ Returns a pointer to the item taken out, or 0 if the key does not exist in the d All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order. .PP See also remove(), clear(), and setAutoDelete(). -.SH "QDataStream & QAsciiDict::write ( QDataStream & s, QPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & QAsciiDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR" Writes a dictionary item to the stream \fIs\fR and returns a reference to the stream. .PP See also read(). diff --git a/doc/man/man3/tqcache.3qt b/doc/man/man3/tqcache.3qt index fd473a730..a37868537 100644 --- a/doc/man/man3/tqcache.3qt +++ b/doc/man/man3/tqcache.3qt @@ -11,7 +11,7 @@ QCache \- Template class that provides a cache based on TQString keys .SH SYNOPSIS \fC#include <ntqcache.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c @@ -81,9 +81,9 @@ Apart from insert(), by far the most important function is find() (which also ex .PP There are also methods to remove() or take() an object from the 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). .PP -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 QPtrCollection::newItem() for the item to be inserted. Inherit a cache and reimplement newItem() if you want deep copies. +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. .PP -When removing a cache item, the virtual function QPtrCollection::deleteItem() is called. The default implementation deletes the item if auto-deletion is enabled, and does nothing otherwise. +When removing a cache item, the virtual function TQPtrCollection::deleteItem() is called. The default implementation deletes the item if auto-deletion is enabled, and does nothing otherwise. .PP There is a QCacheIterator that can be used to traverse the items in the cache in arbitrary order. .PP @@ -101,7 +101,7 @@ Each inserted item has an associated cost. When inserting a new item, if the tot If \fIcaseSensitive\fR is TRUE (the default), the cache keys are case sensitive; if it is FALSE, they are case-insensitive. Case-insensitive comparison considers all Unicode letters. .SH "QCache::~QCache ()" Removes all items from the cache and destroys it. All iterators that access this cache will be reset. -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). @@ -112,13 +112,13 @@ All cache iterators that operate this on cache are reset. .PP See also remove() and take(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "uint QCache::count () const\fC [virtual]\fR" Returns the number of items in the cache. .PP See also totalCost(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "type * QCache::find ( const TQString & k, bool ref = TRUE ) const" Returns the item associated with key \fIk\fR, or 0 if the key does not exist in the cache. If \fIref\fR is TRUE (the default), the item is moved to the front of the least recently used list. .PP @@ -155,7 +155,7 @@ If there are two or more items with equal keys, the one that was inserted last i All iterators that refer to the removed item are set to point to the next item in the cache's traversal order. .PP See also take() and clear(). -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. diff --git a/doc/man/man3/tqcanvaspixmaparray.3qt b/doc/man/man3/tqcanvaspixmaparray.3qt index 5c3369c40..9bdc9e105 100644 --- a/doc/man/man3/tqcanvaspixmaparray.3qt +++ b/doc/man/man3/tqcanvaspixmaparray.3qt @@ -20,7 +20,7 @@ TQCanvasPixmapArray \- Array of TQCanvasPixmaps .BI "\fBTQCanvasPixmapArray\fR ( const TQString & datafilenamepattern, int fc = 0 )" .br .ti -1c -.BI "TQCanvasPixmapArray ( QPtrList<QPixmap> list, QPtrList<QPoint> hotspots ) \fI(obsolete)\fR" +.BI "TQCanvasPixmapArray ( TQPtrList<QPixmap> list, TQPtrList<QPoint> hotspots ) \fI(obsolete)\fR" .br .ti -1c .BI "\fBTQCanvasPixmapArray\fR ( TQValueList<QPixmap> list, QPointArray hotspots = QPointArray ( ) )" @@ -75,7 +75,7 @@ If \fIfc\fR is not 0, \fIdatafilenamepattern\fR should contain "%1", e.g. "foo%1 If \fIfc\fR is 0, \fIdatafilenamepattern\fR is asssumed to be a filename, and the image contained in this file will be loaded as the first (and only) frame. .PP If \fIdatafilenamepattern\fR does not exist, is not readable, isn't an image, or some other error occurs, the array ends up empty and isValid() returns FALSE. -.SH "TQCanvasPixmapArray::TQCanvasPixmapArray ( QPtrList<QPixmap> list, QPtrList<QPoint> hotspots )" +.SH "TQCanvasPixmapArray::TQCanvasPixmapArray ( TQPtrList<QPixmap> list, TQPtrList<QPoint> hotspots )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Use TQCanvasPixmapArray::TQCanvasPixmapArray( TQValueList<QPixmap>, QPointArray ) instead. diff --git a/doc/man/man3/tqdict.3qt b/doc/man/man3/tqdict.3qt index e5e051efc..ad391b99c 100644 --- a/doc/man/man3/tqdict.3qt +++ b/doc/man/man3/tqdict.3qt @@ -11,7 +11,7 @@ QDict \- Template class that provides a dictionary based on TQString keys .SH SYNOPSIS \fC#include <ntqdict.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c @@ -76,10 +76,10 @@ Inherits QPtrCollection. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item ) const" .br .in -1c .SH DESCRIPTION @@ -105,9 +105,9 @@ Items with equal keys are allowed. When inserting two items with the same key, o .PP The QDictIterator class can traverse the dictionary, but only in an arbitrary order. Multiple iterators may independently traverse the same dictionary. .PP -When inserting an item into a dictionary, only the pointer is 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 QPtrCollection::newItem() for the item to be inserted. Inherit a dictionary and reimplement newItem() if you want deep copies. +When inserting an item into a dictionary, only the pointer is 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 copies. .PP -When removing a dictionary item, the virtual function QPtrCollection::deleteItem() is called. QDict's default implementation is to delete the item if auto-deletion is enabled. +When removing a dictionary item, the virtual function TQPtrCollection::deleteItem() is called. QDict's default implementation is to delete the item if auto-deletion is enabled. .PP Example #1: .PP @@ -200,7 +200,7 @@ In the example we are using the dictionary to provide fast random access to the .PP We first obtain the list of available styles, then sort them so that the menu items will be ordered alphabetically. Next we create a dictionary of int pointers. The keys in the dictionary are each one character long, representing letters that have been used for accelerators. We iterate through our list of style names. If the first letter of the style name is in the dictionary, i.e. has been used, we iterate over all the characters in the style name to see if we can find a letter that hasn't been used. If we find an unused letter we put the accelerator ampersand (&) in front of it and add that letter to the dictionary. If we can't find an unused 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 QAction for each style. .PP -See also QDictIterator, QAsciiDict, QIntDict, QPtrDict, Collection Classes, and Non-GUI Classes. +See also QDictIterator, QAsciiDict, QIntDict, TQPtrDict, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QDict::QDict ( int size = 17, bool caseSensitive = TRUE )" Constructs a dictionary optimized for less than \fIsize\fR entries. @@ -216,7 +216,7 @@ Each item in \fIdict\fR is inserted into this dictionary. Only the pointers are Removes all items from the dictionary and destroys it. If setAutoDelete() is TRUE, each value is deleted. All iterators that access this dictionary will be reset. .PP See also setAutoDelete(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). @@ -229,13 +229,13 @@ All dictionary iterators that operate on the dictionary are reset. .PP See also remove(), take(), and setAutoDelete(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "uint QDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "type * QDict::find ( const TQString & key ) const" Returns the item with key \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP @@ -270,7 +270,7 @@ If there are two or more items with equal keys, then the most recently inserted Equivalent to the find() function. .PP See also find(). -.SH "QDataStream & QDict::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & QDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a dictionary item from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. @@ -314,7 +314,7 @@ If there are two or more items with equal keys, then the last item that was inse See also insert(). .SH "void QDict::resize ( uint newsize )" Changes the size of the hash table to \fInewsize\fR. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid. -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -343,7 +343,7 @@ Returns a pointer to the item taken out, or 0 if the key does not exist in the d All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order. .PP See also remove(), clear(), and setAutoDelete(). -.SH "QDataStream & QDict::write ( QDataStream & s, QPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & QDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR" Writes a dictionary item to the stream \fIs\fR and returns a reference to the stream. .PP See also read(). diff --git a/doc/man/man3/tqdir.3qt b/doc/man/man3/tqdir.3qt index c4a783abf..e28daa8f9 100644 --- a/doc/man/man3/tqdir.3qt +++ b/doc/man/man3/tqdir.3qt @@ -511,7 +511,7 @@ Returns 0 if the directory is unreadable or does not exist. .PP The returned pointer is a const pointer to a QFileInfoList. The list is owned by the QDir object and will be reused on the next call to entryInfoList() for the same QDir instance. If you want to keep the entries of the list after a subsequent call to this function you must copy them. .PP -Note: QFileInfoList is really a QPtrList<QFileInfo>. +Note: QFileInfoList is really a TQPtrList<QFileInfo>. .PP See also entryList(), setNameFilter(), setSorting(), and setFilter(). .PP @@ -528,7 +528,7 @@ Returns 0 if the directory is unreadable or does not exist. .PP The returned pointer is a const pointer to a QFileInfoList. The list is owned by the QDir object and will be reused on the next call to entryInfoList() for the same QDir instance. If you want to keep the entries of the list after a subsequent call to this function you must copy them. .PP -Note: QFileInfoList is really a QPtrList<QFileInfo>. +Note: QFileInfoList is really a TQPtrList<QFileInfo>. .PP See also entryList(), setNameFilter(), setSorting(), and setFilter(). .SH "QStringList QDir::entryList ( const TQString & nameFilter, int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const\fC [virtual]\fR" diff --git a/doc/man/man3/tqdockarea.3qt b/doc/man/man3/tqdockarea.3qt index b7e746ab5..c799b50df 100644 --- a/doc/man/man3/tqdockarea.3qt +++ b/doc/man/man3/tqdockarea.3qt @@ -49,7 +49,7 @@ Inherits TQWidget. .BI "int \fBcount\fR () const" .br .ti -1c -.BI "QPtrList<QDockWindow> \fBdockWindowList\fR () const" +.BI "TQPtrList<QDockWindow> \fBdockWindowList\fR () const" .br .ti -1c .BI "bool \fBisDockWindowAccepted\fR ( QDockWindow * dw )" @@ -144,7 +144,7 @@ Destroys the dock area and all the dock windows docked in the dock area. Does not affect any floating dock windows or dock windows in other dock areas, even if they first appeared in this dock area. Floating dock windows are effectively top level windows and are not child windows of the dock area. When a floating dock window is docked (dragged into a dock area) its parent becomes the dock area. .SH "int QDockArea::count () const" Returns the number of dock windows in the dock area. See the "count" property for details. -.SH "QPtrList<QDockWindow> QDockArea::dockWindowList () const" +.SH "TQPtrList<QDockWindow> QDockArea::dockWindowList () const" Returns a list of the dock windows in the dock area. .SH "HandlePosition QDockArea::handlePosition () const" Returns where the dock window splitter handle is placed in the dock area. See the "handlePosition" property for details. diff --git a/doc/man/man3/tqintcache.3qt b/doc/man/man3/tqintcache.3qt index 6b16b4e09..458b82178 100644 --- a/doc/man/man3/tqintcache.3qt +++ b/doc/man/man3/tqintcache.3qt @@ -11,7 +11,7 @@ QIntCache \- Template class that provides a cache based on long keys .SH SYNOPSIS \fC#include <ntqintcache.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c @@ -72,7 +72,7 @@ Apart from insert(), by far the most important function is find() (which also ex .PP There are also methods to remove() or take() an object from the 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). .PP -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 QPtrCollection::newItem() for the item to be inserted. Inherit a dictionary and reimplement newItem() if you want deep copies. +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 copies. .PP When removing a cache item, the item will be automatically deleted if auto-deletion is enabled. .PP @@ -95,13 +95,13 @@ All cache iterators that operate this on cache are reset. .PP See also remove() and take(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "uint QIntCache::count () const\fC [virtual]\fR" Returns the number of items in the cache. .PP See also totalCost(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "type * QIntCache::find ( long k, bool ref = TRUE ) const" Returns the item associated with \fIk\fR, or 0 if the key does not exist in the cache. If \fIref\fR is TRUE (the default), the item is moved to the front of the least recently used list. .PP diff --git a/doc/man/man3/tqintdict.3qt b/doc/man/man3/tqintdict.3qt index 2b91b9839..936ca6cd0 100644 --- a/doc/man/man3/tqintdict.3qt +++ b/doc/man/man3/tqintdict.3qt @@ -11,7 +11,7 @@ QIntDict \- Template class that provides a dictionary based on long keys .SH SYNOPSIS \fC#include <ntqintdict.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c @@ -76,10 +76,10 @@ Inherits QPtrCollection. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item ) const" .br .in -1c .SH DESCRIPTION @@ -135,7 +135,7 @@ Example: .PP See QDict for full details, including the choice of dictionary size, and how deletions are handled. .PP -See also QIntDictIterator, QDict, QAsciiDict, QPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. +See also QIntDictIterator, QDict, QAsciiDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QIntDict::QIntDict ( int size = 17 )" Constructs a dictionary using an internal hash array of size \fIsize\fR. @@ -151,7 +151,7 @@ Removes all items from the dictionary and destroys it. All iterators that access this dictionary will be reset. .PP See also setAutoDelete(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). @@ -164,13 +164,13 @@ All dictionary iterators that access this dictionary will be reset. .PP See also remove(), take(), and setAutoDelete(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "uint QIntDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP -Reimplemented from QPtrCollection. +Reimplemented from TQPtrCollection. .SH "type * QIntDict::find ( long key ) const" Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP @@ -207,7 +207,7 @@ If there are two or more items with equal keys, then the most recently inserted Equivalent to the find() function. .PP See also find(). -.SH "QDataStream & QIntDict::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & QIntDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a dictionary item from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. @@ -253,7 +253,7 @@ See also insert(). Example: table/bigtable/main.cpp. .SH "void QIntDict::resize ( uint newsize )" Changes the size of the hashtable to \fInewsize\fR. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid. -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -284,7 +284,7 @@ All dictionary iterators that refer to the taken item will be set to point to th See also remove(), clear(), and setAutoDelete(). .PP Example: table/bigtable/main.cpp. -.SH "QDataStream & QIntDict::write ( QDataStream & s, QPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & QIntDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR" Writes a dictionary item to the stream \fIs\fR and returns a reference to the stream. .PP See also read(). diff --git a/doc/man/man3/tqlistviewitemiterator.3qt b/doc/man/man3/tqlistviewitemiterator.3qt index 013d26136..473df9747 100644 --- a/doc/man/man3/tqlistviewitemiterator.3qt +++ b/doc/man/man3/tqlistviewitemiterator.3qt @@ -72,11 +72,11 @@ Construct an instance of a QListViewItemIterator, with either a QListView* or a .PP A QListViewItemIterator iterates over all the items from its starting point. This means that it always makes the first child of the current item the new current item. If there is no child, the next sibling becomes the new current item; and if there is no next sibling, the next sibling of the parent becomes current. .PP -The following example creates a list of all the items that have been selected by the user, storing pointers to the items in a QPtrList: +The following example creates a list of all the items that have been selected by the user, storing pointers to the items in a TQPtrList: .PP .nf .br - QPtrList<QListViewItem> lst; + TQPtrList<QListViewItem> lst; .br QListViewItemIterator it( myListView ); .br @@ -96,7 +96,7 @@ An alternative approach is to use an IteratorFlag: .PP .nf .br - QPtrList<QListViewItem> lst; + TQPtrList<QListViewItem> lst; .br QListViewItemIterator it( myListView, QListViewItemIterator::Selected ); .br diff --git a/doc/man/man3/tqmacmime.3qt b/doc/man/man3/tqmacmime.3qt index 4166efc3c..76ffb3e65 100644 --- a/doc/man/man3/tqmacmime.3qt +++ b/doc/man/man3/tqmacmime.3qt @@ -47,7 +47,7 @@ QMacMime \- Maps open-standard MIME to Mac flavors .SS "Static Public Members" .in +1c .ti -1c -.BI "QPtrList<QMacMime> \fBall\fR ( QMacMimeType t )" +.BI "TQPtrList<QMacMime> \fBall\fR ( QMacMimeType t )" .br .ti -1c .BI "QMacMime * \fBconvertor\fR ( QMacMimeType t, const char * mime, int flav )" @@ -81,7 +81,7 @@ See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous C Constructs a new conversion object of type \fIt\fR, adding it to the globally accessed list of available convertors. .SH "QMacMime::~QMacMime ()\fC [virtual]\fR" Destroys a conversion object, removing it from the global list of available convertors. -.SH "QPtrList<QMacMime> QMacMime::all ( QMacMimeType t )\fC [static]\fR" +.SH "TQPtrList<QMacMime> QMacMime::all ( QMacMimeType t )\fC [static]\fR" Returns a list of all currently defined QMacMime objects of type \fIt\fR. .SH "bool QMacMime::canConvert ( const char * mime, int flav )\fC [pure virtual]\fR" Returns TRUE if the convertor can convert (both ways) between \fImime\fR and \fIflav\fR; otherwise returns FALSE. diff --git a/doc/man/man3/tqmainwindow.3qt b/doc/man/man3/tqmainwindow.3qt index 0d5dda868..244760e10 100644 --- a/doc/man/man3/tqmainwindow.3qt +++ b/doc/man/man3/tqmainwindow.3qt @@ -88,10 +88,10 @@ Inherits TQWidget. .BI "bool \fBgetLocation\fR ( QDockWindow * dw, Dock & dock, int & index, bool & nl, int & extraOffset ) const" .br .ti -1c -.BI "QPtrList<QDockWindow> \fBdockWindows\fR ( Dock dock ) const" +.BI "TQPtrList<QDockWindow> \fBdockWindows\fR ( Dock dock ) const" .br .ti -1c -.BI "QPtrList<QDockWindow> \fBdockWindows\fR () const" +.BI "TQPtrList<QDockWindow> \fBdockWindows\fR () const" .br .ti -1c .BI "void \fBlineUpDockWindows\fR ( bool keepNewLines = FALSE )" @@ -121,7 +121,7 @@ Inherits TQWidget. .BI "bool toolBarsMovable () const \fI(obsolete)\fR" .br .ti -1c -.BI "QPtrList<QToolBar> \fBtoolBars\fR ( Dock dock ) const" +.BI "TQPtrList<QToolBar> \fBtoolBars\fR ( Dock dock ) const" .br .ti -1c .BI "void lineUpToolBars ( bool keepNewLines = FALSE ) \fI(obsolete)\fR" @@ -554,11 +554,11 @@ See also isCustomizable(). This signal is emitted when the \fIdockWindow\fR has changed its position. A change in position occurs when a dock window is moved within its dock area or moved to another dock area (including the Minimized and \fCTearOff\fR dock areas). .PP See also getLocation(). -.SH "QPtrList<QDockWindow> QMainWindow::dockWindows ( Dock dock ) const" +.SH "TQPtrList<QDockWindow> QMainWindow::dockWindows ( Dock dock ) const" Returns a list of all the dock windows which are in the \fIdock\fR dock area, regardless of their state. .PP For example, the DockTornOff dock area may contain closed dock windows but these are returned along with the visible dock windows. -.SH "QPtrList<QDockWindow> QMainWindow::dockWindows () const" +.SH "TQPtrList<QDockWindow> QMainWindow::dockWindows () const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the list of dock windows which belong to this main window, regardless of which dock area they are in or what their state is, (e.g. irrespective of whether they are visible or not). @@ -720,7 +720,7 @@ See also menuBar() and toolTipGroup(). Example: qfd/qfd.cpp. .SH "void QMainWindow::toolBarPositionChanged ( QToolBar * )\fC [signal]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. -.SH "QPtrList<QToolBar> QMainWindow::toolBars ( Dock dock ) const" +.SH "TQPtrList<QToolBar> QMainWindow::toolBars ( Dock dock ) const" Returns a list of all the toolbars which are in the \fIdock\fR dock area, regardless of their state. .PP For example, the TornOff dock area may contain closed toolbars but these are returned along with the visible toolbars. diff --git a/doc/man/man3/tqmap.3qt b/doc/man/man3/tqmap.3qt index 04b53cb7a..ca3bbdba7 100644 --- a/doc/man/man3/tqmap.3qt +++ b/doc/man/man3/tqmap.3qt @@ -172,7 +172,7 @@ The TQMap class is a value-based template class that provides a dictionary. .PP TQMap is a TQt implementation of an STL-like map container. It can be used in your application if the standard \fCmap\fR is not available on all your target platforms. TQMap is part of the TQt Template Library. .PP -TQMap<Key, Data> defines a template instance to create a dictionary with keys of type Key and values of type Data. TQMap does not store pointers to the members of the map; instead, it holds a copy of every member. For this reason, TQMap is value-based, whereas QPtrList and QDict are pointer-based. +TQMap<Key, Data> defines a template instance to create a dictionary with keys of type Key and values of type Data. TQMap does not store pointers to the members of the map; instead, it holds a copy of every member. For this reason, TQMap is value-based, whereas TQPtrList and QDict are pointer-based. .PP 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 contained items. .PP diff --git a/doc/man/man3/tqmemarray.3qt b/doc/man/man3/tqmemarray.3qt index 207ef97f9..94ae8f85b 100644 --- a/doc/man/man3/tqmemarray.3qt +++ b/doc/man/man3/tqmemarray.3qt @@ -157,7 +157,7 @@ QMemArray is implemented as a template class. Define a template instance QMemArr .PP QMemArray stores the array elements directly in the array. It can only deal with simple types (i.e. C++ types, structs, and classes that have no constructors, destructors, or virtual functions). QMemArray uses bitwise operations to copy and compare array elements. .PP -The QPtrVector collection class is also a kind of array. Like most collection classes, it uses pointers to the contained items. +The TQPtrVector collection class is also a kind of array. Like most collection classes, it uses pointers to the contained items. .PP QMemArray uses explicit sharing with a reference count. If more than one array shares common data and one of the arrays is modified, all the arrays are modified. .PP diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt index 08a22236f..b741deaf1 100644 --- a/doc/man/man3/tqobject.3qt +++ b/doc/man/man3/tqobject.3qt @@ -213,7 +213,7 @@ Notice that the TQ_OBJECT macro is mandatory for any object that implements sign .PP All TQt widgets inherit TQObject. The convenience function isWidgetType() returns whether an object is actually a widget. It is much faster than inherits( "TQWidget" ). .PP -Some TQObject functions, e.g. children(), objectTrees() and queryList() return a TQObjectList. A TQObjectList is a QPtrList of TQObjects. TQObjectLists support the same operations as QPtrLists and have an iterator class, TQObjectListIt. +Some TQObject functions, e.g. children(), objectTrees() and queryList() return a TQObjectList. A TQObjectList is a TQPtrList of TQObjects. TQObjectLists support the same operations as TQPtrLists and have an iterator class, TQObjectListIt. .PP See also Object Model. .SH MEMBER FUNCTION DOCUMENTATION diff --git a/doc/man/man3/tqobjectlist.3qt b/doc/man/man3/tqobjectlist.3qt index f196e35bc..a7c792292 100644 --- a/doc/man/man3/tqobjectlist.3qt +++ b/doc/man/man3/tqobjectlist.3qt @@ -7,11 +7,11 @@ .ad l .nh .SH NAME -TQObjectList \- QPtrList of TQObjects +TQObjectList \- TQPtrList of TQObjects .SH SYNOPSIS \fC#include <tqobjectlist.h>\fR .PP -Inherits QPtrList<TQObject>. +Inherits TQPtrList<TQObject>. .PP .SS "Public Members" .in +1c @@ -29,9 +29,9 @@ Inherits QPtrList<TQObject>. .br .in -1c .SH DESCRIPTION -The TQObjectList class is a QPtrList of TQObjects. +The TQObjectList class is a TQPtrList of TQObjects. .PP -A TQObjectList is a QPtrList<TQObject>. The list can be traversed using inherited functions, e.g. getFirst(), next(), etc., or using a TQObjectListIterator iterator. +A TQObjectList is a TQPtrList<TQObject>. The list can be traversed using inherited functions, e.g. getFirst(), next(), etc., or using a TQObjectListIterator iterator. .PP See TQObject::queryList() for an example of use. .PP diff --git a/doc/man/man3/tqobjectlistiterator.3qt b/doc/man/man3/tqobjectlistiterator.3qt index 67238755f..77d62fb30 100644 --- a/doc/man/man3/tqobjectlistiterator.3qt +++ b/doc/man/man3/tqobjectlistiterator.3qt @@ -11,7 +11,7 @@ TQObjectListIterator \- Iterator for TQObjectLists .SH SYNOPSIS \fC#include <tqobjectlist.h>\fR .PP -Inherits QPtrListIterator<TQObject>. +Inherits TQPtrListIterator<TQObject>. .PP .SS "Public Members" .in +1c @@ -25,7 +25,7 @@ Inherits QPtrListIterator<TQObject>. .SH DESCRIPTION The TQObjectListIterator class provides an iterator for TQObjectLists. .PP -A TQObjectListIterator iterator is a QPtrListIterator<TQObject>. +A TQObjectListIterator iterator is a TQPtrListIterator<TQObject>. .PP See TQObject::queryList() for an example of use. .PP diff --git a/doc/man/man3/tqpair.3qt b/doc/man/man3/tqpair.3qt index 00f83cdbf..63bc71687 100644 --- a/doc/man/man3/tqpair.3qt +++ b/doc/man/man3/tqpair.3qt @@ -40,9 +40,9 @@ The TQPair class is a value-based template class that provides a pair of element .PP TQPair is a TQt implementation of an STL-like pair. It can be used in your application if the standard pair<> is not available on your target platforms. .PP -TQPair<T1, T2> defines a template instance to create a pair of 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 \fIvalue based\fR. If you're interested in \fIpointer based\fR classes see, for example, QPtrList and QDict. +TQPair<T1, T2> defines a template instance to create a pair of 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 \fIvalue based\fR. If you're interested in \fIpointer based\fR classes see, for example, TQPtrList and QDict. .PP -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 (\fCfirst\fR and \fCsecond\fR) are public member variables of the pair. TQPair owns the contained elements. For more relaxed ownership semantics, see QPtrCollection and friends which are pointer-based containers. +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 (\fCfirst\fR and \fCsecond\fR) are public member variables of the pair. TQPair owns the contained elements. For more relaxed ownership semantics, see TQPtrCollection and friends which are pointer-based containers. .PP Some classes cannot be used within a TQPair: for example, all classes derived from TQObject and thus all classes that implement widgets. Only "values" can be used in a TQPair. To qualify as a value the class must provide: .TP diff --git a/doc/man/man3/tqptrcollection.3qt b/doc/man/man3/tqptrcollection.3qt index 101c81cb3..3932c2b58 100644 --- a/doc/man/man3/tqptrcollection.3qt +++ b/doc/man/man3/tqptrcollection.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrCollection 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrCollection 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,13 +7,13 @@ .ad l .nh .SH NAME -QPtrCollection \- The base class of most pointer-based TQt collections +TQPtrCollection \- The base class of most pointer-based TQt collections .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqptrcollection.h>\fR +\fC#include <tqptrcollection.h>\fR .PP -Inherited by QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, QPtrList, QPtrDict, and QPtrVector. +Inherited by QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, TQPtrList, TQPtrDict, and TQPtrVector. .PP .SS "Public Members" .in +1c @@ -36,13 +36,13 @@ Inherited by QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, QPtrLi .SS "Protected Members" .in +1c .ti -1c -.BI "\fBQPtrCollection\fR ()" +.BI "\fBTQPtrCollection\fR ()" .br .ti -1c -.BI "\fBQPtrCollection\fR ( const QPtrCollection & source )" +.BI "\fBTQPtrCollection\fR ( const TQPtrCollection & source )" .br .ti -1c -.BI "virtual \fB~QPtrCollection\fR ()" +.BI "virtual \fB~TQPtrCollection\fR ()" .br .ti -1c .BI "virtual Item \fBnewItem\fR ( Item d )" @@ -52,42 +52,42 @@ Inherited by QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, QPtrLi .br .in -1c .SH DESCRIPTION -The QPtrCollection class is the base class of most pointer-based TQt collections. +The TQPtrCollection class is the base class of most pointer-based TQt collections. .PP -The QPtrCollection class is an abstract base class for the TQt collection classes QDict, QPtrList, etc. TQt also includes value based collections, e.g. TQValueList, TQMap, etc. +The TQPtrCollection class is an abstract base class for the TQt collection classes QDict, TQPtrList, etc. TQt also includes value based collections, e.g. TQValueList, TQMap, etc. .PP -A QPtrCollection only knows about the number of objects in the collection and the deletion strategy (see setAutoDelete()). +A TQPtrCollection only knows about the number of objects in the collection and the deletion strategy (see setAutoDelete()). .PP A collection is implemented using the Item (generic collection item) type, which is a \fCvoid*\fR. The template classes that create the real collections cast the Item to the required type. .PP See also Collection Classes and Non-GUI Classes. .SS "Member Type Documentation" -.SH "QPtrCollection::Item" -This type is the generic "item" in a QPtrCollection. +.SH "TQPtrCollection::Item" +This type is the generic "item" in a TQPtrCollection. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrCollection::QPtrCollection ()\fC [protected]\fR" -Constructs a collection. The constructor is protected because QPtrCollection is an abstract class. -.SH "QPtrCollection::QPtrCollection ( const QPtrCollection & source )\fC [protected]\fR" -Constructs a copy of \fIsource\fR with autoDelete() set to FALSE. The constructor is protected because QPtrCollection is an abstract class. +.SH "TQPtrCollection::TQPtrCollection ()\fC [protected]\fR" +Constructs a collection. The constructor is protected because TQPtrCollection is an abstract class. +.SH "TQPtrCollection::TQPtrCollection ( const TQPtrCollection & source )\fC [protected]\fR" +Constructs a copy of \fIsource\fR with autoDelete() set to FALSE. The constructor is protected because TQPtrCollection is an abstract class. .PP Note that if \fIsource\fR has autoDelete turned on, copying it will risk memory leaks, reading freed memory, or both. -.SH "QPtrCollection::~QPtrCollection ()\fC [virtual protected]\fR" -Destroys the collection. The destructor is protected because QPtrCollection is an abstract class. -.SH "bool QPtrCollection::autoDelete () const" +.SH "TQPtrCollection::~TQPtrCollection ()\fC [virtual protected]\fR" +Destroys the collection. The destructor is protected because TQPtrCollection is an abstract class. +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QPtrCollection::clear ()\fC [pure virtual]\fR" +.SH "void TQPtrCollection::clear ()\fC [pure virtual]\fR" Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled. .PP See also setAutoDelete(). .PP -Reimplemented in QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, QPtrList, QPtrDict, and QPtrVector. -.SH "uint QPtrCollection::count () const\fC [pure virtual]\fR" +Reimplemented in QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +.SH "uint TQPtrCollection::count () const\fC [pure virtual]\fR" Returns the number of objects in the collection. .PP -Reimplemented in QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, QPtrList, QPtrDict, and QPtrVector. -.SH "void QPtrCollection::deleteItem ( Item d )\fC [pure virtual protected]\fR" +Reimplemented in QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +.SH "void TQPtrCollection::deleteItem ( Item d )\fC [pure virtual protected]\fR" Reimplement this function if you want to be able to delete items. .PP Deletes an item that is about to be removed from the collection. @@ -97,7 +97,7 @@ This function has to reimplemented in the collection template classes, and shoul \fBWarning:\fR 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. .PP See also newItem() and setAutoDelete(). -.SH "Item QPtrCollection::newItem ( Item d )\fC [virtual protected]\fR" +.SH "Item TQPtrCollection::newItem ( Item d )\fC [virtual protected]\fR" Virtual function that creates a copy of an object that is about to be inserted into the collection. .PP The default implementation returns the \fId\fR pointer, i.e. no copy is made. @@ -105,7 +105,7 @@ The default implementation returns the \fId\fR 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. .PP See also deleteItem(). -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -120,7 +120,7 @@ Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrcollection.html +.BR http://doc.trolltech.com/tqptrcollection.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrdict.3qt b/doc/man/man3/tqptrdict.3qt index 8a8d1df7c..2adccce20 100644 --- a/doc/man/man3/tqptrdict.3qt +++ b/doc/man/man3/tqptrdict.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,25 +7,25 @@ .ad l .nh .SH NAME -QPtrDict \- Template class that provides a dictionary based on void* keys +TQPtrDict \- Template class that provides a dictionary based on void* keys .SH SYNOPSIS -\fC#include <ntqptrdict.h>\fR +\fC#include <tqptrdict.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrDict\fR ( int size = 17 )" +.BI "\fBTQPtrDict\fR ( int size = 17 )" .br .ti -1c -.BI "\fBQPtrDict\fR ( const QPtrDict<type> & dict )" +.BI "\fBTQPtrDict\fR ( const TQPtrDict<type> & dict )" .br .ti -1c -.BI "\fB~QPtrDict\fR ()" +.BI "\fB~TQPtrDict\fR ()" .br .ti -1c -.BI "QPtrDict<type> & \fBoperator=\fR ( const QPtrDict<type> & dict )" +.BI "TQPtrDict<type> & \fBoperator=\fR ( const TQPtrDict<type> & dict )" .br .ti -1c .BI "virtual uint \fBcount\fR () const" @@ -76,16 +76,16 @@ Inherits QPtrCollection. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item ) const" .br .in -1c .SH DESCRIPTION -The QPtrDict class is a template class that provides a dictionary based on void* keys. +The TQPtrDict class is a template class that provides a dictionary based on void* keys. .PP -QPtrDict is implemented as a template class. Define a template instance QPtrDict<X> to create a dictionary that operates on pointers to X (X*). +TQPtrDict is implemented as a template class. Define a template instance TQPtrDict<X> to create a dictionary that operates on pointers to X (X*). .PP 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. .PP @@ -93,7 +93,7 @@ Example: .PP .nf .br - QPtrDict<char> fields; // void* keys, char* values + TQPtrDict<char> fields; // void* keys, char* values .br .br QLineEdit *le1 = new QLineEdit( this ); @@ -116,7 +116,7 @@ Example: fields.insert( le3, "Age" ); .br .br - QPtrDictIterator<char> it( fields ); + TQPtrDictIterator<char> it( fields ); .br for( ; it.current(); ++it ) .br @@ -145,27 +145,27 @@ In this example we use a dictionary to add an extra property (a char*) to the li .PP See QDict for full details, including the choice of dictionary size, and how deletions are handled. .PP -See also QPtrDictIterator, QDict, QAsciiDict, QIntDict, Collection Classes, Collection Classes, and Non-GUI Classes. +See also TQPtrDictIterator, QDict, QAsciiDict, QIntDict, Collection Classes, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrDict::QPtrDict ( int size = 17 )" +.SH "TQPtrDict::TQPtrDict ( int size = 17 )" Constructs a dictionary using an internal hash array with the size \fIsize\fR. .PP Setting \fIsize\fR 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. -.SH "QPtrDict::QPtrDict ( const QPtrDict<type> & dict )" +.SH "TQPtrDict::TQPtrDict ( const TQPtrDict<type> & dict )" Constructs a copy of \fIdict\fR. .PP Each item in \fIdict\fR is inserted into this dictionary. Only the pointers are copied (shallow copy). -.SH "QPtrDict::~QPtrDict ()" +.SH "TQPtrDict::~TQPtrDict ()" Removes all items from the dictionary and destroys it. .PP All iterators that access this dictionary will be reset. .PP See also setAutoDelete(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QPtrDict::clear ()\fC [virtual]\fR" +.SH "void TQPtrDict::clear ()\fC [virtual]\fR" Removes all items from the dictionary. .PP The removed items are deleted if auto-deletion is enabled. @@ -174,14 +174,14 @@ All dictionary iterators that access this dictionary will be reset. .PP See also remove(), take(), and setAutoDelete(). .PP -Reimplemented from QPtrCollection. -.SH "uint QPtrDict::count () const\fC [virtual]\fR" +Reimplemented from TQPtrCollection. +.SH "uint TQPtrDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP -Reimplemented from QPtrCollection. -.SH "type * QPtrDict::find ( void * key ) const" +Reimplemented from TQPtrCollection. +.SH "type * TQPtrDict::find ( void * key ) const" Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP If there are two or more items with equal keys, then the most recently inserted item will be found. @@ -189,7 +189,7 @@ If there are two or more items with equal keys, then the most recently inserted Equivalent to operator[]. .PP See also operator[](). -.SH "void QPtrDict::insert ( void * key, const type * item )" +.SH "void TQPtrDict::insert ( void * key, const type * item )" Inserts the \fIkey\fR with the \fIitem\fR into the dictionary. .PP Multiple items can have the same key, in which case only the last item will be accessible using operator[](). @@ -197,15 +197,15 @@ Multiple items can have the same key, in which case only the last item will be a \fIitem\fR may not be 0. .PP See also replace(). -.SH "bool QPtrDict::isEmpty () const" +.SH "bool TQPtrDict::isEmpty () const" Returns TRUE if the dictionary is empty; otherwise returns FALSE. .PP See also count(). -.SH "QPtrDict<type> & QPtrDict::operator= ( const QPtrDict<type> & dict )" +.SH "TQPtrDict<type> & TQPtrDict::operator= ( const TQPtrDict<type> & dict )" Assigns \fIdict\fR to this dictionary and returns a reference to this dictionary. .PP This dictionary is first cleared and then each item in \fIdict\fR is inserted into the dictionary. Only the pointers are copied (shallow copy), unless newItem() has been reimplemented. -.SH "type * QPtrDict::operator[] ( void * key ) const" +.SH "type * TQPtrDict::operator[] ( void * key ) const" Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP If there are two or more items with equal keys, then the most recently inserted item will be found. @@ -213,13 +213,13 @@ If there are two or more items with equal keys, then the most recently inserted Equivalent to the find() function. .PP See also find(). -.SH "QDataStream & QPtrDict::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a dictionary item from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. .PP See also write(). -.SH "bool QPtrDict::remove ( void * key )" +.SH "bool TQPtrDict::remove ( void * key )" Removes the item associated with \fIkey\fR from the dictionary. Returns TRUE if successful, i.e. if \fIkey\fR is in the dictionary; otherwise returns FALSE. .PP If there are two or more items with equal keys, then the most recently inserted item will be removed. @@ -229,7 +229,7 @@ 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. .PP See also take(), clear(), and setAutoDelete(). -.SH "void QPtrDict::replace ( void * key, const type * item )" +.SH "void TQPtrDict::replace ( void * key, const type * item )" If the dictionary has key \fIkey\fR, this key's item is replaced with \fIitem\fR. If the dictionary doesn't contain key \fIkey\fR, \fIitem\fR is inserted into the dictionary using key \fIkey\fR. .PP \fIitem\fR may not be 0. @@ -238,7 +238,7 @@ Equivalent to .PP .nf .br - QPtrDict<ItemType> dict; + TQPtrDict<ItemType> dict; .br ... .br @@ -253,9 +253,9 @@ Equivalent to If there are two or more items with equal keys, then the most recently inserted item will be replaced. .PP See also insert(). -.SH "void QPtrDict::resize ( uint newsize )" +.SH "void TQPtrDict::resize ( uint newsize )" Changes the size of the hash table to \fInewsize\fR. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid. -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -268,13 +268,13 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "uint QPtrDict::size () const" +.SH "uint TQPtrDict::size () const" Returns the size of the internal hash table (as specified in the constructor). .PP See also count(). -.SH "void QPtrDict::statistics () const" +.SH "void TQPtrDict::statistics () const" Debugging-only function that prints out the dictionary distribution using tqDebug(). -.SH "type * QPtrDict::take ( void * key )" +.SH "type * TQPtrDict::take ( void * key )" Takes the item associated with \fIkey\fR out of the dictionary without deleting it (even if auto-deletion is enabled). .PP If there are two or more items with equal keys, then the most recently inserted item will be removed. @@ -284,13 +284,13 @@ Returns a pointer to the item taken out, or 0 if the key does not exist in the d All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order. .PP See also remove(), clear(), and setAutoDelete(). -.SH "QDataStream & QPtrDict::write ( QDataStream & s, QPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR" Writes a dictionary item to the stream \fIs\fR and returns a reference to the stream. .PP See also read(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrdict.html +.BR http://doc.trolltech.com/tqptrdict.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrdictiterator.3qt b/doc/man/man3/tqptrdictiterator.3qt index 88861979a..e5a8e7448 100644 --- a/doc/man/man3/tqptrdictiterator.3qt +++ b/doc/man/man3/tqptrdictiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrDictIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrDictIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,17 +7,17 @@ .ad l .nh .SH NAME -QPtrDictIterator \- Iterator for QPtrDict collections +TQPtrDictIterator \- Iterator for TQPtrDict collections .SH SYNOPSIS -\fC#include <ntqptrdict.h>\fR +\fC#include <tqptrdict.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrDictIterator\fR ( const QPtrDict<type> & dict )" +.BI "\fBTQPtrDictIterator\fR ( const TQPtrDict<type> & dict )" .br .ti -1c -.BI "\fB~QPtrDictIterator\fR ()" +.BI "\fB~TQPtrDictIterator\fR ()" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -48,15 +48,15 @@ QPtrDictIterator \- Iterator for QPtrDict collections .br .in -1c .SH DESCRIPTION -The QPtrDictIterator class provides an iterator for QPtrDict collections. +The TQPtrDictIterator class provides an iterator for TQPtrDict collections. .PP -QPtrDictIterator is implemented as a template class. Define a template instance QPtrDictIterator<X> to create a dictionary iterator that operates on QPtrDict<X> (dictionary of X*). +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*). .PP Example: .PP .nf .br - QPtrDict<char> fields; + TQPtrDict<char> fields; .br .br QLineEdit *le1 = new QLineEdit( this ); @@ -79,7 +79,7 @@ Example: fields.insert( le3, "Age" ); .br .br - QPtrDictIterator<char> it( fields ); + TQPtrDictIterator<char> it( fields ); .br for( ; it.current(); ++it ) { .br @@ -103,47 +103,47 @@ Example: .fi 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. .PP -Multiple iterators may independently traverse the same dictionary. A QPtrDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, QPtrDict updates all iterators that refer the removed item to point to the next item in the traversing order. +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. .PP -See also QPtrDict, Collection Classes, and Non-GUI Classes. +See also TQPtrDict, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrDictIterator::QPtrDictIterator ( const QPtrDict<type> & dict )" +.SH "TQPtrDictIterator::TQPtrDictIterator ( const TQPtrDict<type> & dict )" Constructs an iterator for \fIdict\fR. The current iterator item is set to point on the first item in the \fIdict\fR. -.SH "QPtrDictIterator::~QPtrDictIterator ()" +.SH "TQPtrDictIterator::~TQPtrDictIterator ()" Destroys the iterator. -.SH "uint QPtrDictIterator::count () const" +.SH "uint TQPtrDictIterator::count () const" Returns the number of items in the dictionary this iterator operates on. .PP See also isEmpty(). -.SH "type * QPtrDictIterator::current () const" +.SH "type * TQPtrDictIterator::current () const" Returns a pointer to the current iterator item's value. -.SH "void * QPtrDictIterator::currentKey () const" +.SH "void * TQPtrDictIterator::currentKey () const" Returns the current iterator item's key. -.SH "bool QPtrDictIterator::isEmpty () const" +.SH "bool TQPtrDictIterator::isEmpty () const" Returns TRUE if the dictionary is empty; otherwise returns FALSE. .PP See also count(). -.SH "QPtrDictIterator::operator type * () const" +.SH "TQPtrDictIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QPtrDictIterator::operator() ()" +.SH "type * TQPtrDictIterator::operator() ()" Makes the succeeding item current and returns the original current item. .PP If the current iterator item was the last item in the dictionary or if it was 0, 0 is returned. -.SH "type * QPtrDictIterator::operator++ ()" +.SH "type * TQPtrDictIterator::operator++ ()" Prefix ++ makes the succeeding item current and returns the new current item. .PP If the current iterator item was the last item in the dictionary or if it was 0, 0 is returned. -.SH "type * QPtrDictIterator::operator+= ( uint jump )" +.SH "type * TQPtrDictIterator::operator+= ( uint jump )" Sets the current item to the item \fIjump\fR positions after the current item and returns a pointer to that item. .PP If that item is beyond the last item or if the dictionary is empty, it sets the current item to 0 and returns 0. -.SH "type * QPtrDictIterator::toFirst ()" +.SH "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. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qptrdictiterator.html +.BR http://doc.trolltech.com/tqptrdictiterator.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrlist.3qt b/doc/man/man3/tqptrlist.3qt index 2b40eccc6..62f86d03d 100644 --- a/doc/man/man3/tqptrlist.3qt +++ b/doc/man/man3/tqptrlist.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrList 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrList 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,33 +7,33 @@ .ad l .nh .SH NAME -QPtrList \- Template class that provides a list +TQPtrList \- Template class that provides a list .SH SYNOPSIS -\fC#include <ntqptrlist.h>\fR +\fC#include <tqptrlist.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP Inherited by TQObjectList and QStrList. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrList\fR ()" +.BI "\fBTQPtrList\fR ()" .br .ti -1c -.BI "\fBQPtrList\fR ( const QPtrList<type> & list )" +.BI "\fBTQPtrList\fR ( const TQPtrList<type> & list )" .br .ti -1c -.BI "\fB~QPtrList\fR ()" +.BI "\fB~TQPtrList\fR ()" .br .ti -1c -.BI "QPtrList<type> & \fBoperator=\fR ( const QPtrList<type> & list )" +.BI "TQPtrList<type> & \fBoperator=\fR ( const TQPtrList<type> & list )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QPtrList<type> & list ) const" +.BI "bool \fBoperator==\fR ( const TQPtrList<type> & list ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QPtrList<type> & list ) const" +.BI "bool \fBoperator!=\fR ( const TQPtrList<type> & list ) const" .br .ti -1c .BI "virtual uint \fBcount\fR () const" @@ -156,21 +156,21 @@ Inherited by TQObjectList and QStrList. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual int \fBcompareItems\fR ( QPtrCollection::Item item1, QPtrCollection::Item item2 )" +.BI "virtual int \fBcompareItems\fR ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )" .br .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item item ) const" .br .in -1c .SH DESCRIPTION -The QPtrList class is a template class that provides a list. +The TQPtrList class is a template class that provides a list. .PP TQValueList is an STL-compatible alternative to this class. .PP -Define a template instance QPtrList<X> to create a list that operates on pointers to X (X*). +Define a template instance TQPtrList<X> to create a list that operates on pointers to X (X*). .PP 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. .PP @@ -216,7 +216,7 @@ Example: }; .br .br - QPtrList<Employee> list; + TQPtrList<Employee> list; .br list.setAutoDelete( TRUE ); // the list owns the objects .br @@ -270,13 +270,13 @@ The output is .br .fi .PP -QPtrList has several member functions for traversing the list, but using a QPtrListIterator can be more practical. Multiple list iterators may traverse the same list, independently of each other and of the current list item. +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. .PP 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. .PP -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 QPtrCollection::newItem() for the item to be inserted. Inherit a list and reimplement newItem() to have deep copies. +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. .PP -When removing an item from a list, the virtual function QPtrCollection::deleteItem() is called. QPtrList's default implementation is to delete the item if auto-deletion is enabled. +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. .PP 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(). .PP @@ -284,21 +284,21 @@ List items are stored as \fCvoid*\fR in an internal QLNode, which also holds poi .PP The QStrList class defined in ntqstrlist.h is a list of \fCchar*\fR. It reimplements newItem(), deleteItem() and compareItems(). (But see QStringList for a list of Unicode QStrings.) .PP -See also QPtrListIterator, Collection Classes, and Non-GUI Classes. +See also TQPtrListIterator, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrList::QPtrList ()" +.SH "TQPtrList::TQPtrList ()" Constructs an empty list. -.SH "QPtrList::QPtrList ( const QPtrList<type> & list )" +.SH "TQPtrList::TQPtrList ( const TQPtrList<type> & list )" Constructs a copy of \fIlist\fR. .PP Each item in \fIlist\fR is appended to this list. Only the pointers are copied (shallow copy). -.SH "QPtrList::~QPtrList ()" +.SH "TQPtrList::~TQPtrList ()" Removes all items from the list and destroys the list. .PP All list iterators that access this list will be reset. .PP See also setAutoDelete(). -.SH "void QPtrList::append ( const type * item )" +.SH "void TQPtrList::append ( const type * item )" Inserts the \fIitem\fR at the end of the list. .PP The inserted item becomes the current list item. This is equivalent to \fCinsert( count(), item )\fR. @@ -309,7 +309,7 @@ See also insert(), current(), and prepend(). .PP Examples: .)l customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, grapher/grapher.cpp, listviews/listviews.cpp, listviews/listviews.h, and qwerty/qwerty.cpp. -.SH "type * QPtrList::at ( uint index )" +.SH "type * TQPtrList::at ( uint index )" Returns a pointer to the item at position \fIindex\fR in the list, or 0 if the index is out of range. .PP Sets the current list item to this item if \fIindex\fR is valid. The valid range is \fC0..(count() - 1)\fR inclusive. @@ -320,17 +320,17 @@ See also current(). .PP Examples: .)l customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. -.SH "int QPtrList::at () const" +.SH "int TQPtrList::at () const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the index of the current list item. The returned value is -1 if the current item is 0. .PP See also current(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QPtrList::clear ()\fC [virtual]\fR" +.SH "void TQPtrList::clear ()\fC [virtual]\fR" Removes all items from the list. .PP The removed items are deleted if auto-deletion is enabled. @@ -339,8 +339,8 @@ All list iterators that access this list will be reset. .PP See also remove(), take(), and setAutoDelete(). .PP -Reimplemented from QPtrCollection. -.SH "int QPtrList::compareItems ( QPtrCollection::Item item1, QPtrCollection::Item item2 )\fC [virtual protected]\fR" +Reimplemented from TQPtrCollection. +.SH "int TQPtrList::compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )\fC [virtual protected]\fR" This virtual function compares two list items. .PP Returns: @@ -362,7 +362,7 @@ inSort() requires that compareItems() is implemented as described here. This function should not modify the list because some const functions call compareItems(). .PP The default implementation compares the pointers. -.SH "uint QPtrList::contains ( const type * item ) const" +.SH "uint TQPtrList::contains ( const type * item ) const" Returns the number of occurrences of \fIitem\fR in the list. .PP The compareItems() function is called when looking for the \fIitem\fR in the list. If compareItems() is not reimplemented, it is more efficient to call containsRef(). @@ -370,7 +370,7 @@ The compareItems() function is called when looking for the \fIitem\fR in the lis This function does not affect the current list item. .PP See also containsRef() and compareItems(). -.SH "uint QPtrList::containsRef ( const type * item ) const" +.SH "uint TQPtrList::containsRef ( const type * item ) const" Returns the number of occurrences of \fIitem\fR in the list. .PP Calling this function is much faster than contains() because contains() compares \fIitem\fR with each list item using compareItems(), whereas his function only compares the pointers. @@ -378,7 +378,7 @@ Calling this function is much faster than contains() because contains() compares This function does not affect the current list item. .PP See also contains(). -.SH "uint QPtrList::count () const\fC [virtual]\fR" +.SH "uint TQPtrList::count () const\fC [virtual]\fR" Returns the number of items in the list. .PP See also isEmpty(). @@ -386,12 +386,12 @@ See also isEmpty(). Examples: .)l customlayout/border.cpp, customlayout/card.cpp, customlayout/flow.cpp, dirview/dirview.cpp, grapher/grapher.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. .PP -Reimplemented from QPtrCollection. -.SH "type * QPtrList::current () const" +Reimplemented from TQPtrCollection. +.SH "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). .PP See also at(). -.SH "QLNode * QPtrList::currentNode () const" +.SH "QLNode * TQPtrList::currentNode () const" Returns a pointer to the current list node. .PP The node can be kept and removed later using removeNode(). The advantage is that the item can be removed directly without searching the list. @@ -399,7 +399,7 @@ The node can be kept and removed later using removeNode(). The advantage is that \fBWarning:\fR Do not call this function unless you are an expert. .PP See also removeNode(), takeNode(), and current(). -.SH "int QPtrList::find ( const type * item )" +.SH "int TQPtrList::find ( const type * item )" Finds the first occurrence of \fIitem\fR in the list. .PP 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. @@ -407,7 +407,7 @@ If the item is found, the list sets the current item to point to the found item 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(). .PP See also findNext(), findRef(), compareItems(), and current(). -.SH "int QPtrList::findNext ( const type * item )" +.SH "int TQPtrList::findNext ( const type * item )" Finds the next occurrence of \fIitem\fR in the list, starting from the current list item. .PP 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. @@ -415,7 +415,7 @@ If the item is found, the list sets the current item to point to the found item 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(). .PP See also find(), findNextRef(), compareItems(), and current(). -.SH "int QPtrList::findNextRef ( const type * item )" +.SH "int TQPtrList::findNextRef ( const type * item )" Finds the next occurrence of \fIitem\fR in the list, starting from the current list item. .PP 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. @@ -423,7 +423,7 @@ If the item is found, the list sets the current item to point to the found item Calling this function is much faster than findNext() because findNext() compares \fIitem\fR with each list item using compareItems(), whereas this function only compares the pointers. .PP See also findRef(), findNext(), and current(). -.SH "int QPtrList::findRef ( const type * item )" +.SH "int TQPtrList::findRef ( const type * item )" Finds the first occurrence of \fIitem\fR in the list. .PP 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. @@ -431,26 +431,26 @@ If the item is found, the list sets the current item to point to the found item Calling this function is much faster than find() because find() compares \fIitem\fR with each list item using compareItems(), whereas this function only compares the pointers. .PP See also findNextRef(), find(), and current(). -.SH "type * QPtrList::first ()" +.SH "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. .PP See also getFirst(), last(), next(), prev(), and current(). .PP Examples: .)l grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. -.SH "type * QPtrList::getFirst () const" +.SH "type * TQPtrList::getFirst () const" Returns a pointer to the first item in the list, or 0 if the list is empty. .PP This function does not affect the current list item. .PP See also first() and getLast(). -.SH "type * QPtrList::getLast () const" +.SH "type * TQPtrList::getLast () const" Returns a pointer to the last item in the list, or 0 if the list is empty. .PP This function does not affect the current list item. .PP See also last() and getFirst(). -.SH "void QPtrList::inSort ( const type * item )" +.SH "void TQPtrList::inSort ( const type * item )" Inserts the \fIitem\fR at its sorted position in the list. .PP The sort order depends on the virtual compareItems() function. All items must be inserted with inSort() to maintain the sorting order. @@ -462,7 +462,7 @@ The inserted item becomes the current list item. \fBWarning:\fR 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. .PP See also insert(), compareItems(), current(), and sort(). -.SH "bool QPtrList::insert ( uint index, const type * item )" +.SH "bool TQPtrList::insert ( uint index, const type * item )" Inserts the \fIitem\fR at position \fIindex\fR in the list. .PP Returns TRUE if successful, i.e. if \fIindex\fR is in range; otherwise returns FALSE. The valid range is 0 to count() (inclusively). The item is appended if \fIindex\fR == count(). @@ -472,15 +472,15 @@ The inserted item becomes the current list item. \fIitem\fR must not be 0. .PP See also append(), current(), and replace(). -.SH "bool QPtrList::isEmpty () const" +.SH "bool TQPtrList::isEmpty () const" Returns TRUE if the list is empty; otherwise returns FALSE. .PP See also count(). -.SH "type * QPtrList::last ()" +.SH "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. .PP See also getLast(), first(), next(), prev(), and current(). -.SH "type * QPtrList::next ()" +.SH "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. .PP 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. @@ -489,15 +489,15 @@ See also first(), last(), prev(), and current(). .PP Examples: .)l grapher/grapher.cpp, listviews/listviews.h, and showimg/showimg.cpp. -.SH "bool QPtrList::operator!= ( const QPtrList<type> & list ) const" +.SH "bool TQPtrList::operator!= ( const TQPtrList<type> & list ) const" Compares this list with \fIlist\fR. Returns TRUE if the lists contain different data; otherwise returns FALSE. -.SH "QPtrList<type> & QPtrList::operator= ( const QPtrList<type> & list )" +.SH "TQPtrList<type> & TQPtrList::operator= ( const TQPtrList<type> & list )" Assigns \fIlist\fR to this list and returns a reference to this list. .PP This list is first cleared and then each item in \fIlist\fR is appended to this list. Only the pointers are copied (shallow copy) unless newItem() has been reimplemented. -.SH "bool QPtrList::operator== ( const QPtrList<type> & list ) const" +.SH "bool TQPtrList::operator== ( const TQPtrList<type> & list ) const" Compares this list with \fIlist\fR. Returns TRUE if the lists contain the same data; otherwise returns FALSE. -.SH "void QPtrList::prepend ( const type * item )" +.SH "void TQPtrList::prepend ( const type * item )" Inserts the \fIitem\fR at the start of the list. .PP The inserted item becomes the current list item. This is equivalent to \fCinsert( 0, item )\fR. @@ -505,19 +505,19 @@ The inserted item becomes the current list item. This is equivalent to \fCinsert \fIitem\fR must not be 0. .PP See also append(), insert(), and current(). -.SH "type * QPtrList::prev ()" +.SH "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. .PP 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. .PP See also first(), last(), next(), and current(). -.SH "QDataStream & QPtrList::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrList::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a list item from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. .PP See also write(). -.SH "bool QPtrList::remove ( uint index )" +.SH "bool TQPtrList::remove ( uint index )" Removes the item at position \fIindex\fR in the list. .PP Returns TRUE if successful, i.e. if \fIindex\fR is in range; otherwise returns FALSE. The valid range is \fC0..(count() - 1)\fR inclusive. @@ -529,7 +529,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also take(), clear(), setAutoDelete(), current(), and removeRef(). -.SH "bool QPtrList::remove ()" +.SH "bool TQPtrList::remove ()" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Removes the current list item. @@ -543,7 +543,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also take(), clear(), setAutoDelete(), current(), and removeRef(). -.SH "bool QPtrList::remove ( const type * item )" +.SH "bool TQPtrList::remove ( const type * item )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Removes the first occurrence of \fIitem\fR from the list. @@ -561,7 +561,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also removeRef(), take(), clear(), setAutoDelete(), compareItems(), and current(). -.SH "bool QPtrList::removeFirst ()" +.SH "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. .PP The removed item is deleted if auto-deletion is enabled. @@ -571,7 +571,7 @@ The first item in the list becomes the new current list item. The current item i All list iterators that refer to the removed item will be set to point to the new current item. .PP See also removeLast(), setAutoDelete(), current(), and remove(). -.SH "bool QPtrList::removeLast ()" +.SH "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. .PP The removed item is deleted if auto-deletion is enabled. @@ -581,7 +581,7 @@ The last item in the list becomes the new current list item. The current item is All list iterators that refer to the removed item will be set to point to the new current item. .PP See also removeFirst(), setAutoDelete(), and current(). -.SH "void QPtrList::removeNode ( QLNode * node )" +.SH "void TQPtrList::removeNode ( QLNode * node )" Removes the \fInode\fR from the list. .PP This node must exist in the list, otherwise the program may crash. @@ -595,7 +595,7 @@ All list iterators that refer to the removed item will be set to point to the it \fBWarning:\fR Do not call this function unless you are an expert. .PP See also takeNode(), currentNode(), remove(), and removeRef(). -.SH "bool QPtrList::removeRef ( const type * item )" +.SH "bool TQPtrList::removeRef ( const type * item )" Removes the first occurrence of \fIitem\fR from the list. .PP Returns TRUE if successful, i.e. if \fIitem\fR is in the list; otherwise returns FALSE. @@ -617,13 +617,13 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the removed item will be set to point to the new current item. .PP See also remove(), clear(), setAutoDelete(), and current(). -.SH "bool QPtrList::replace ( uint index, const type * item )" +.SH "bool TQPtrList::replace ( uint index, const type * item )" Replaces the item at position \fIindex\fR with the new \fIitem\fR. .PP Returns TRUE if successful, i.e. \fIindex\fR is in the range 0 to count()-1. .PP See also append(), current(), and insert(). -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -636,13 +636,13 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "void QPtrList::sort ()" +.SH "void TQPtrList::sort ()" Sorts the list by the result of the virtual compareItems() function. .PP 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. .PP See also inSort(). -.SH "type * QPtrList::take ( uint index )" +.SH "type * TQPtrList::take ( uint index )" Takes the item at position \fIindex\fR out of the list without deleting it (even if auto-deletion is enabled). .PP Returns a pointer to the item taken out of the list, or 0 if the index is out of range. The valid range is \fC0..(count() - 1)\fR inclusive. @@ -655,7 +655,7 @@ See also remove(), clear(), and current(). .PP Examples: .)l customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp. -.SH "type * QPtrList::take ()" +.SH "type * TQPtrList::take ()" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Takes the current item out of the list without deleting it (even if auto-deletion is enabled). @@ -667,7 +667,7 @@ The item after the removed item becomes the new current list item if the removed All list iterators that refer to the taken item will be set to point to the new current item. .PP See also remove(), clear(), and current(). -.SH "type * QPtrList::takeNode ( QLNode * node )" +.SH "type * TQPtrList::takeNode ( QLNode * node )" Takes the \fInode\fR 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. .PP This node must exist in the list, otherwise the program may crash. @@ -679,11 +679,11 @@ All list iterators that refer to the taken item will be set to point to the item \fBWarning:\fR Do not call this function unless you are an expert. .PP See also removeNode() and currentNode(). -.SH "void QPtrList::toVector ( QGVector * vec ) const" +.SH "void TQPtrList::toVector ( QGVector * vec ) const" Stores all list items in the vector \fIvec\fR. .PP The vector must be of the same item type, otherwise the result will be undefined. -.SH "QDataStream & QPtrList::write ( QDataStream & s, QPtrCollection::Item item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrList::write ( QDataStream & s, TQPtrCollection::Item item ) const\fC [virtual protected]\fR" Writes a list item, \fIitem\fR to the stream \fIs\fR and returns a reference to the stream. .PP The default implementation does nothing. @@ -691,7 +691,7 @@ The default implementation does nothing. See also read(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrlist.html +.BR http://doc.trolltech.com/tqptrlist.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrlistiterator.3qt b/doc/man/man3/tqptrlistiterator.3qt index 8a06d3216..d9a4cefe5 100644 --- a/doc/man/man3/tqptrlistiterator.3qt +++ b/doc/man/man3/tqptrlistiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrListIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrListIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,19 +7,19 @@ .ad l .nh .SH NAME -QPtrListIterator \- Iterator for QPtrList collections +TQPtrListIterator \- Iterator for TQPtrList collections .SH SYNOPSIS -\fC#include <ntqptrlist.h>\fR +\fC#include <tqptrlist.h>\fR .PP Inherited by TQObjectListIterator and QStrListIterator. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrListIterator\fR ( const QPtrList<type> & list )" +.BI "\fBTQPtrListIterator\fR ( const TQPtrList<type> & list )" .br .ti -1c -.BI "\fB~QPtrListIterator\fR ()" +.BI "\fB~TQPtrListIterator\fR ()" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -64,19 +64,19 @@ Inherited by TQObjectListIterator and QStrListIterator. .BI "type * \fBoperator-=\fR ( uint jump )" .br .ti -1c -.BI "QPtrListIterator<type> & \fBoperator=\fR ( const QPtrListIterator<type> & it )" +.BI "TQPtrListIterator<type> & \fBoperator=\fR ( const TQPtrListIterator<type> & it )" .br .in -1c .SH DESCRIPTION -The QPtrListIterator class provides an iterator for QPtrList collections. +The TQPtrListIterator class provides an iterator for TQPtrList collections. .PP -Define a template instance QPtrListIterator<X> to create a list iterator that operates on QPtrList<X> (list of X*). +Define a template instance TQPtrListIterator<X> to create a list iterator that operates on TQPtrList<X> (list of X*). .PP -The following example is similar to the example in the QPtrList class documentation, but it uses QPtrListIterator. The class Employee is defined there. +The following example is similar to the example in the TQPtrList class documentation, but it uses TQPtrListIterator. The class Employee is defined there. .PP .nf .br - QPtrList<Employee> list; + TQPtrList<Employee> list; .br .br list.append( new Employee("John", "Doe", 50000) ); @@ -86,7 +86,7 @@ The following example is similar to the example in the QPtrList class documentat list.append( new Employee("Tom", "Jones", 60000) ); .br .br - QPtrListIterator<Employee> it( list ); + TQPtrListIterator<Employee> it( list ); .br Employee *employee; .br @@ -116,76 +116,76 @@ The output is .br .fi .PP -Using a list iterator is a more robust way of traversing the list than using the QPtrList member functions first(), next(), current(), etc., as many iterators can traverse the same list independently. +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. .PP 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. .PP -When an item is removed from the list, all iterators that point to that item are updated to point to QPtrList::current() instead to avoid dangling references. +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. .PP -See also QPtrList, Collection Classes, and Non-GUI Classes. +See also TQPtrList, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrListIterator::QPtrListIterator ( const QPtrList<type> & list )" +.SH "TQPtrListIterator::TQPtrListIterator ( const TQPtrList<type> & list )" Constructs an iterator for \fIlist\fR. The current iterator item is set to point on the first item in the \fIlist\fR. -.SH "QPtrListIterator::~QPtrListIterator ()" +.SH "TQPtrListIterator::~TQPtrListIterator ()" Destroys the iterator. -.SH "bool QPtrListIterator::atFirst () const" +.SH "bool TQPtrListIterator::atFirst () const" Returns TRUE if the current iterator item is the first list item; otherwise returns FALSE. .PP See also toFirst() and atLast(). -.SH "bool QPtrListIterator::atLast () const" +.SH "bool TQPtrListIterator::atLast () const" Returns TRUE if the current iterator item is the last list item; otherwise returns FALSE. .PP See also toLast() and atFirst(). -.SH "uint QPtrListIterator::count () const" +.SH "uint TQPtrListIterator::count () const" Returns the number of items in the list this iterator operates on. .PP See also isEmpty(). .PP Example: customlayout/card.cpp. -.SH "type * QPtrListIterator::current () const" +.SH "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. .PP Examples: .)l canvas/canvas.cpp, customlayout/card.cpp, and customlayout/flow.cpp. -.SH "bool QPtrListIterator::isEmpty () const" +.SH "bool TQPtrListIterator::isEmpty () const" Returns TRUE if the list is empty; otherwise returns FALSE. .PP See also count(). -.SH "QPtrListIterator::operator type * () const" +.SH "TQPtrListIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QPtrListIterator::operator() ()" +.SH "type * TQPtrListIterator::operator() ()" Makes the succeeding item current and returns the original current item. .PP If the current iterator item was the last item in the list or if it was 0, 0 is returned. -.SH "type * QPtrListIterator::operator* ()" +.SH "type * TQPtrListIterator::operator* ()" Asterisk operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QPtrListIterator::operator++ ()" +.SH "type * TQPtrListIterator::operator++ ()" Prefix ++ makes the succeeding item current and returns the new current item. .PP If the current iterator item was the last item in the list or if it was 0, 0 is returned. -.SH "type * QPtrListIterator::operator+= ( uint jump )" +.SH "type * TQPtrListIterator::operator+= ( uint jump )" Sets the current item to the item \fIjump\fR positions after the current item and returns a pointer to that item. .PP If that item is beyond the last item or if the list is empty, it sets the current item to 0 and returns 0 -.SH "type * QPtrListIterator::operator-- ()" +.SH "type * TQPtrListIterator::operator-- ()" Prefix - makes the preceding item current and returns the new current item. .PP If the current iterator item was the first item in the list or if it was 0, 0 is returned. -.SH "type * QPtrListIterator::operator-= ( uint jump )" +.SH "type * TQPtrListIterator::operator-= ( uint jump )" Returns the item \fIjump\fR positions before the current item or 0 if it is beyond the first item. Makes this the current item. -.SH "QPtrListIterator<type> & QPtrListIterator::operator= ( const QPtrListIterator<type> & it )" +.SH "TQPtrListIterator<type> & TQPtrListIterator::operator= ( const TQPtrListIterator<type> & it )" Assignment. Makes a copy of the iterator \fIit\fR and returns a reference to this iterator. -.SH "type * QPtrListIterator::toFirst ()" +.SH "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. .PP See also toLast() and atFirst(). -.SH "type * QPtrListIterator::toLast ()" +.SH "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. .PP See also toFirst() and atLast(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qptrlistiterator.html +.BR http://doc.trolltech.com/tqptrlistiterator.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrqueue.3qt b/doc/man/man3/tqptrqueue.3qt index 98c8e0e93..9eb1bd189 100644 --- a/doc/man/man3/tqptrqueue.3qt +++ b/doc/man/man3/tqptrqueue.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrQueue 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrQueue 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,23 +7,23 @@ .ad l .nh .SH NAME -QPtrQueue \- Template class that provides a queue +TQPtrQueue \- Template class that provides a queue .SH SYNOPSIS -\fC#include <ntqptrqueue.h>\fR +\fC#include <tqptrqueue.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrQueue\fR ()" +.BI "\fBTQPtrQueue\fR ()" .br .ti -1c -.BI "\fBQPtrQueue\fR ( const QPtrQueue<type> & queue )" +.BI "\fBTQPtrQueue\fR ( const TQPtrQueue<type> & queue )" .br .ti -1c -.BI "\fB~QPtrQueue\fR ()" +.BI "\fB~TQPtrQueue\fR ()" .br .ti -1c -.BI "QPtrQueue<type> & \fBoperator=\fR ( const QPtrQueue<type> & queue )" +.BI "TQPtrQueue<type> & \fBoperator=\fR ( const TQPtrQueue<type> & queue )" .br .ti -1c .BI "bool \fBautoDelete\fR () const" @@ -62,90 +62,90 @@ QPtrQueue \- Template class that provides a queue .SS "Protected Members" .in +1c .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item item ) const" .br .in -1c .SH DESCRIPTION -The QPtrQueue class is a template class that provides a queue. +The TQPtrQueue class is a template class that provides a queue. .PP TQValueVector can be used as an STL-compatible alternative to this class. .PP -A template instance QPtrQueue<X> is a queue that operates on pointers to X (X*). +A template instance TQPtrQueue<X> is a queue that operates on pointers to X (X*). .PP 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(). .PP You can control the queue's deletion policy with setAutoDelete(). .PP -For compatibility with the QPtrCollection classes, current() and remove() are provided; both operate on the head(). +For compatibility with the TQPtrCollection classes, current() and remove() are provided; both operate on the head(). .PP -See also QPtrList, QPtrStack, Collection Classes, and Non-GUI Classes. +See also TQPtrList, TQPtrStack, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrQueue::QPtrQueue ()" +.SH "TQPtrQueue::TQPtrQueue ()" Creates an empty queue with autoDelete() set to FALSE. -.SH "QPtrQueue::QPtrQueue ( const QPtrQueue<type> & queue )" +.SH "TQPtrQueue::TQPtrQueue ( const TQPtrQueue<type> & queue )" Creates a queue from \fIqueue\fR. .PP Only the pointers are copied; the items are not. The autoDelete() flag is set to FALSE. -.SH "QPtrQueue::~QPtrQueue ()" +.SH "TQPtrQueue::~TQPtrQueue ()" Destroys the queue. Items in the queue are deleted if autoDelete() is TRUE. -.SH "bool QPtrQueue::autoDelete () const" +.SH "bool TQPtrQueue::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QPtrQueue::clear ()" +.SH "void TQPtrQueue::clear ()" Removes all items from the queue, and deletes them if autoDelete() is TRUE. .PP See also remove(). -.SH "uint QPtrQueue::count () const" +.SH "uint TQPtrQueue::count () const" Returns the number of items in the queue. .PP See also isEmpty(). -.SH "type * QPtrQueue::current () const" +.SH "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. .PP See also dequeue() and isEmpty(). -.SH "type * QPtrQueue::dequeue ()" +.SH "type * TQPtrQueue::dequeue ()" Takes the head item from the queue and returns a pointer to it. Returns 0 if the queue is empty. .PP See also enqueue() and count(). -.SH "void QPtrQueue::enqueue ( const type * d )" +.SH "void TQPtrQueue::enqueue ( const type * d )" Adds item \fId\fR to the tail of the queue. .PP See also count() and dequeue(). -.SH "type * QPtrQueue::head () const" +.SH "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. .PP See also dequeue() and isEmpty(). -.SH "bool QPtrQueue::isEmpty () const" +.SH "bool TQPtrQueue::isEmpty () const" Returns TRUE if the queue is empty; otherwise returns FALSE. .PP See also count(), dequeue(), and head(). -.SH "QPtrQueue::operator type * () const" +.SH "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. .PP See also dequeue() and isEmpty(). -.SH "QPtrQueue<type> & QPtrQueue::operator= ( const QPtrQueue<type> & queue )" +.SH "TQPtrQueue<type> & TQPtrQueue::operator= ( const TQPtrQueue<type> & queue )" Assigns \fIqueue\fR to this queue and returns a reference to this queue. .PP This queue is first cleared and then each item in \fIqueue\fR is enqueued to this queue. Only the pointers are copied. .PP \fBWarning:\fR The autoDelete() flag is not modified. If it it TRUE for both \fIqueue\fR and this queue, deleting the two lists will cause \fIdouble-deletion\fR of the items. -.SH "QDataStream & QPtrQueue::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrQueue::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a queue item, \fIitem\fR, from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. .PP See also write(). -.SH "bool QPtrQueue::remove ()" +.SH "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. .PP The item is deleted if autoDelete() is TRUE. .PP See also head(), isEmpty(), and dequeue(). -.SH "void QPtrQueue::setAutoDelete ( bool enable )" +.SH "void TQPtrQueue::setAutoDelete ( bool enable )" Sets the queue to auto-delete its contents if \fIenable\fR is TRUE and not to delete them if \fIenable\fR is FALSE. .PP 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. @@ -153,7 +153,7 @@ If auto-deleting is turned on, all the items in a queue are deleted when the que 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. .PP See also autoDelete(). -.SH "QDataStream & QPtrQueue::write ( QDataStream & s, QPtrCollection::Item item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrQueue::write ( QDataStream & s, TQPtrCollection::Item item ) const\fC [virtual protected]\fR" Writes a queue item, \fIitem\fR, to the stream \fIs\fR and returns a reference to the stream. .PP The default implementation does nothing. @@ -161,7 +161,7 @@ The default implementation does nothing. See also read(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrqueue.html +.BR http://doc.trolltech.com/tqptrqueue.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrstack.3qt b/doc/man/man3/tqptrstack.3qt index e6607756a..53c9769f5 100644 --- a/doc/man/man3/tqptrstack.3qt +++ b/doc/man/man3/tqptrstack.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrStack 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrStack 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,23 +7,23 @@ .ad l .nh .SH NAME -QPtrStack \- Template class that provides a stack +TQPtrStack \- Template class that provides a stack .SH SYNOPSIS -\fC#include <ntqptrstack.h>\fR +\fC#include <tqptrstack.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrStack\fR ()" +.BI "\fBTQPtrStack\fR ()" .br .ti -1c -.BI "\fBQPtrStack\fR ( const QPtrStack<type> & s )" +.BI "\fBTQPtrStack\fR ( const TQPtrStack<type> & s )" .br .ti -1c -.BI "\fB~QPtrStack\fR ()" +.BI "\fB~TQPtrStack\fR ()" .br .ti -1c -.BI "QPtrStack<type> & \fBoperator=\fR ( const QPtrStack<type> & s )" +.BI "TQPtrStack<type> & \fBoperator=\fR ( const TQPtrStack<type> & s )" .br .ti -1c .BI "bool \fBautoDelete\fR () const" @@ -62,76 +62,76 @@ QPtrStack \- Template class that provides a stack .SS "Protected Members" .in +1c .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item item ) const" .br .in -1c .SH DESCRIPTION -The QPtrStack class is a template class that provides a stack. +The TQPtrStack class is a template class that provides a stack. .PP TQValueStack is an STL-compatible alternative to this class. .PP -Define a template instance QPtrStack<X> to create a stack that operates on pointers to X, (X*). +Define a template instance TQPtrStack<X> to create a stack that operates on pointers to X, (X*). .PP 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. .PP You can control the stack's deletion policy with setAutoDelete(). .PP -For compatibility with the QPtrCollection classes current() and remove() are provided; they both operate on the top(). +For compatibility with the TQPtrCollection classes current() and remove() are provided; they both operate on the top(). .PP -See also QPtrList, QPtrQueue, and Non-GUI Classes. +See also TQPtrList, TQPtrQueue, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrStack::QPtrStack ()" +.SH "TQPtrStack::TQPtrStack ()" Creates an empty stack. -.SH "QPtrStack::QPtrStack ( const QPtrStack<type> & s )" +.SH "TQPtrStack::TQPtrStack ( const TQPtrStack<type> & s )" Creates a stack by making a shallow copy of another stack \fIs\fR. -.SH "QPtrStack::~QPtrStack ()" +.SH "TQPtrStack::~TQPtrStack ()" Destroys the stack. All items will be deleted if autoDelete() is TRUE. -.SH "bool QPtrStack::autoDelete () const" -The same as QPtrCollection::autoDelete(). +.SH "bool TQPtrStack::autoDelete () const" +The same as TQPtrCollection::autoDelete(). .PP See also setAutoDelete(). -.SH "void QPtrStack::clear ()" +.SH "void TQPtrStack::clear ()" Removes all items from the stack, deleting them if autoDelete() is TRUE. .PP See also remove(). -.SH "uint QPtrStack::count () const" +.SH "uint TQPtrStack::count () const" Returns the number of items in the stack. .PP See also isEmpty(). -.SH "type * QPtrStack::current () const" +.SH "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. -.SH "bool QPtrStack::isEmpty () const" +.SH "bool TQPtrStack::isEmpty () const" Returns TRUE if the stack contains no elements; otherwise returns FALSE. -.SH "QPtrStack::operator type * () const" +.SH "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. -.SH "QPtrStack<type> & QPtrStack::operator= ( const QPtrStack<type> & s )" +.SH "TQPtrStack<type> & TQPtrStack::operator= ( const TQPtrStack<type> & s )" Sets the contents of this stack by making a shallow copy of another stack \fIs\fR. Elements currently in this stack will be deleted if autoDelete() is TRUE. -.SH "type * QPtrStack::pop ()" +.SH "type * TQPtrStack::pop ()" Removes the top item from the stack and returns it. The stack must not be empty. -.SH "void QPtrStack::push ( const type * d )" +.SH "void TQPtrStack::push ( const type * d )" Adds an element \fId\fR to the top of the stack. Last in, first out. -.SH "QDataStream & QPtrStack::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrStack::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a stack item, \fIitem\fR, from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. .PP See also write(). -.SH "bool QPtrStack::remove ()" +.SH "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. .PP See also clear(). -.SH "void QPtrStack::setAutoDelete ( bool enable )" -Defines whether this stack auto-deletes its contents. The same as QPtrCollection::setAutoDelete(). +.SH "void TQPtrStack::setAutoDelete ( bool enable )" +Defines whether this stack auto-deletes its contents. The same as TQPtrCollection::setAutoDelete(). .PP If \fIenable\fR is TRUE the stack auto-deletes its contents; if \fIenable\fR is FALSE the stack does not delete its contents. .PP See also autoDelete(). -.SH "type * QPtrStack::top () const" +.SH "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. -.SH "QDataStream & QPtrStack::write ( QDataStream & s, QPtrCollection::Item item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrStack::write ( QDataStream & s, TQPtrCollection::Item item ) const\fC [virtual protected]\fR" Writes a stack item, \fIitem\fR, to the stream \fIs\fR and returns a reference to the stream. .PP The default implementation does nothing. @@ -139,7 +139,7 @@ The default implementation does nothing. See also read(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrstack.html +.BR http://doc.trolltech.com/tqptrstack.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqptrvector.3qt b/doc/man/man3/tqptrvector.3qt index e2aaeede6..630cb0bd4 100644 --- a/doc/man/man3/tqptrvector.3qt +++ b/doc/man/man3/tqptrvector.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPtrVector 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPtrVector 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,31 +7,31 @@ .ad l .nh .SH NAME -QPtrVector \- Template collection class that provides a vector (array) +TQPtrVector \- Template collection class that provides a vector (array) .SH SYNOPSIS -\fC#include <ntqptrvector.h>\fR +\fC#include <tqptrvector.h>\fR .PP -Inherits QPtrCollection. +Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPtrVector\fR ()" +.BI "\fBTQPtrVector\fR ()" .br .ti -1c -.BI "\fBQPtrVector\fR ( uint size )" +.BI "\fBTQPtrVector\fR ( uint size )" .br .ti -1c -.BI "\fBQPtrVector\fR ( const QPtrVector<type> & v )" +.BI "\fBTQPtrVector\fR ( const TQPtrVector<type> & v )" .br .ti -1c -.BI "\fB~QPtrVector\fR ()" +.BI "\fB~TQPtrVector\fR ()" .br .ti -1c -.BI "QPtrVector<type> & \fBoperator=\fR ( const QPtrVector<type> & v )" +.BI "TQPtrVector<type> & \fBoperator=\fR ( const TQPtrVector<type> & v )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QPtrVector<type> & v ) const" +.BI "bool \fBoperator==\fR ( const TQPtrVector<type> & v ) const" .br .ti -1c .BI "type ** \fBdata\fR () const" @@ -103,23 +103,23 @@ Inherits QPtrCollection. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual int \fBcompareItems\fR ( QPtrCollection::Item d1, QPtrCollection::Item d2 )" +.BI "virtual int \fBcompareItems\fR ( TQPtrCollection::Item d1, TQPtrCollection::Item d2 )" .br .ti -1c -.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )" +.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )" .br .ti -1c -.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item item ) const" +.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item item ) const" .br .in -1c .SH DESCRIPTION -The QPtrVector class is a template collection class that provides a vector (array). +The TQPtrVector class is a template collection class that provides a vector (array). .PP TQValueVector is an STL-compatible alternative to this class. .PP -QPtrVector is implemented as a template class. Defines a template instance QPtrVector<X> to create a vector that contains pointers to X (X*). +TQPtrVector is implemented as a template class. Defines a template instance TQPtrVector<X> to create a vector that contains pointers to X (X*). .PP -A vector is the same as an array. The main difference between QPtrVector and QMemArray is that QPtrVector stores pointers to the elements, whereas QMemArray stores the elements themselves (i.e. QMemArray is value-based and QPtrVector is pointer-based). +A vector is the same as an array. The main difference between TQPtrVector and QMemArray is that TQPtrVector stores pointers to the elements, whereas QMemArray stores the elements themselves (i.e. QMemArray is value-based and TQPtrVector is pointer-based). .PP 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(). .PP @@ -129,29 +129,29 @@ Functions that compare items (find() and sort() for example) will do so using th .PP See also QMemArray and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPtrVector::QPtrVector ()" +.SH "TQPtrVector::TQPtrVector ()" Constructs a null vector. .PP See also isNull(). -.SH "QPtrVector::QPtrVector ( uint size )" +.SH "TQPtrVector::TQPtrVector ( uint size )" Constructs an vector with room for \fIsize\fR items. Makes a null vector if \fIsize\fR == 0. .PP All \fIsize\fR positions in the vector are initialized to 0. .PP See also size(), resize(), and isNull(). -.SH "QPtrVector::QPtrVector ( const QPtrVector<type> & v )" +.SH "TQPtrVector::TQPtrVector ( const TQPtrVector<type> & v )" Constructs a copy of \fIv\fR. Only the pointers are copied (i.e. shallow copy). -.SH "QPtrVector::~QPtrVector ()" +.SH "TQPtrVector::~TQPtrVector ()" Removes all items from the vector, and destroys the vector itself. .PP See also clear(). -.SH "type * QPtrVector::at ( uint i ) const" +.SH "type * TQPtrVector::at ( uint i ) const" Returns the item at position \fIi\fR, or 0 if there is no item at that position. \fIi\fR must be less than size(). -.SH "bool QPtrCollection::autoDelete () const" +.SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "int QPtrVector::bsearch ( const type * d ) const" +.SH "int TQPtrVector::bsearch ( const type * d ) const" In a sorted array, finds the first occurrence of \fId\fR using a binary search. For a sorted array, this is generally much faster than find(), which performs a linear search. .PP Returns the position of \fId\fR, or -1 if \fId\fR could not be found. \fId\fR must not be 0. @@ -159,15 +159,15 @@ Returns the position of \fId\fR, or -1 if \fId\fR could not be found. \fId\fR mu Compares items using the virtual function compareItems(). .PP See also sort() and find(). -.SH "void QPtrVector::clear ()\fC [virtual]\fR" +.SH "void TQPtrVector::clear ()\fC [virtual]\fR" Removes all items from the vector, and destroys the vector itself. .PP The vector becomes a null vector. .PP See also isNull(). .PP -Reimplemented from QPtrCollection. -.SH "int QPtrVector::compareItems ( QPtrCollection::Item d1, QPtrCollection::Item d2 )\fC [virtual protected]\fR" +Reimplemented from TQPtrCollection. +.SH "int TQPtrVector::compareItems ( TQPtrCollection::Item d1, TQPtrCollection::Item d2 )\fC [virtual protected]\fR" This virtual function compares two list items. .PP Returns: @@ -187,31 +187,31 @@ This function returns \fIint\fR rather than \fIbool\fR so that reimplementations The sort() and bsearch() functions require compareItems() to be implemented as described here. .PP This function should not modify the vector because some const functions call compareItems(). -.SH "uint QPtrVector::contains ( const type * d ) const" +.SH "uint TQPtrVector::contains ( const type * d ) const" Returns the number of occurrences of item \fId\fR in the vector. .PP Compares items using the virtual function compareItems(). .PP See also containsRef(). -.SH "uint QPtrVector::containsRef ( const type * d ) const" +.SH "uint TQPtrVector::containsRef ( const type * d ) const" Returns the number of occurrences of the item pointer \fId\fR in the vector. .PP This function does \fInot\fR use compareItems() to compare items. .PP See also findRef(). -.SH "uint QPtrVector::count () const\fC [virtual]\fR" +.SH "uint TQPtrVector::count () const\fC [virtual]\fR" Returns the number of items in the vector. The vector is empty if count() == 0. .PP See also isEmpty(), size(), and isNull(). .PP -Reimplemented from QPtrCollection. -.SH "type ** QPtrVector::data () const" +Reimplemented from TQPtrCollection. +.SH "type ** TQPtrVector::data () const" Returns a pointer to the actual vector data, which is an array of type*. .PP The vector is a null vector if data() == 0 (null pointer). .PP See also isNull(). -.SH "bool QPtrVector::fill ( const type * d, int size = -1 )" +.SH "bool TQPtrVector::fill ( const type * d, int size = -1 )" Inserts item \fId\fR in all positions in the vector. Any existing items are removed. If \fId\fR is 0, the vector becomes empty. .PP If \fIsize\fR >= 0, the vector is first resized to \fIsize\fR. By default, \fIsize\fR is -1. @@ -219,7 +219,7 @@ If \fIsize\fR >= 0, the vector is first resized to \fIsize\fR. By default, \fIsi Returns TRUE if successful, i.e. \fIsize\fR is the same as the current size, or \fIsize\fR is larger and the memory has successfully been allocated; otherwise returns FALSE. .PP See also resize(), insert(), and isEmpty(). -.SH "int QPtrVector::find ( const type * d, uint i = 0 ) const" +.SH "int TQPtrVector::find ( const type * d, uint i = 0 ) const" Finds the first occurrence of item \fId\fR in the vector using a linear search. The search starts at position \fIi\fR, which must be less than size(). \fIi\fR is by default 0; i.e. the search starts at the start of the vector. .PP Returns the position of \fId\fR, or -1 if \fId\fR could not be found. @@ -229,7 +229,7 @@ Compares items using the virtual function compareItems(). Use the much faster bsearch() to search a sorted vector. .PP See also findRef() and bsearch(). -.SH "int QPtrVector::findRef ( const type * d, uint i = 0 ) const" +.SH "int TQPtrVector::findRef ( const type * d, uint i = 0 ) const" Finds the first occurrence of the item pointer \fId\fR in the vector using a linear search. The search starts at position \fIi\fR, which must be less than size(). \fIi\fR is by default 0; i.e. the search starts at the start of the vector. .PP Returns the position of \fId\fR, or -1 if \fId\fR could not be found. @@ -239,47 +239,47 @@ This function does \fInot\fR use compareItems() to compare items. Use the much faster bsearch() to search a sorted vector. .PP See also find() and bsearch(). -.SH "bool QPtrVector::insert ( uint i, const type * d )" +.SH "bool TQPtrVector::insert ( uint i, const type * d )" Sets position \fIi\fR in the vector to contain the item \fId\fR. \fIi\fR must be less than size(). Any previous element in position \fIi\fR is removed. .PP See also at(). -.SH "bool QPtrVector::isEmpty () const" +.SH "bool TQPtrVector::isEmpty () const" Returns TRUE if the vector is empty; otherwise returns FALSE. .PP See also count(). -.SH "bool QPtrVector::isNull () const" +.SH "bool TQPtrVector::isNull () const" Returns TRUE if the vector is null; otherwise returns FALSE. .PP A null vector has size() == 0 and data() == 0. .PP See also size(). -.SH "QPtrVector<type> & QPtrVector::operator= ( const QPtrVector<type> & v )" +.SH "TQPtrVector<type> & TQPtrVector::operator= ( const TQPtrVector<type> & v )" Assigns \fIv\fR to this vector and returns a reference to this vector. .PP This vector is first cleared and then all the items from \fIv\fR are copied into the vector. Only the pointers are copied (i.e. shallow copy). .PP See also clear(). -.SH "bool QPtrVector::operator== ( const QPtrVector<type> & v ) const" +.SH "bool TQPtrVector::operator== ( const TQPtrVector<type> & v ) const" Returns TRUE if this vector and \fIv\fR are equal; otherwise returns FALSE. -.SH "type * QPtrVector::operator[] ( int i ) const" +.SH "type * TQPtrVector::operator[] ( int i ) const" Returns the item at position \fIi\fR, or 0 if there is no item at that position. \fIi\fR must be less than size(). .PP Equivalent to at( \fIi\fR ). .PP See also at(). -.SH "QDataStream & QPtrVector::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrVector::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" Reads a vector item, \fIitem\fR, from the stream \fIs\fR and returns a reference to the stream. .PP The default implementation sets \fIitem\fR to 0. .PP See also write(). -.SH "bool QPtrVector::remove ( uint i )" +.SH "bool TQPtrVector::remove ( uint i )" Removes the item at position \fIi\fR in the vector, if there is one. \fIi\fR must be less than size(). .PP Returns TRUE if \fIi\fR is within range; otherwise returns FALSE. .PP See also take() and at(). -.SH "bool QPtrVector::resize ( uint size )" +.SH "bool TQPtrVector::resize ( uint size )" Resizes (expands or shrinks) the vector to \fIsize\fR elements. The vector becomes a null vector if \fIsize\fR == 0. .PP Any items at position \fIsize\fR or beyond in the vector are removed. New positions are initialized to 0. @@ -287,7 +287,7 @@ Any items at position \fIsize\fR or beyond in the vector are removed. New positi Returns TRUE if successful, i.e. if the memory was successfully allocated; otherwise returns FALSE. .PP See also size() and isNull(). -.SH "void QPtrCollection::setAutoDelete ( bool enable )" +.SH "void TQPtrCollection::setAutoDelete ( bool enable )" Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE. .PP 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. @@ -300,25 +300,25 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "uint QPtrVector::size () const" +.SH "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. .PP The vector is a null vector if size() == 0. .PP See also isNull(), resize(), and count(). -.SH "void QPtrVector::sort ()" +.SH "void TQPtrVector::sort ()" Sorts the items in ascending order. Any empty positions will be put last. .PP Compares items using the virtual function compareItems(). .PP See also bsearch(). -.SH "type * QPtrVector::take ( uint i )" +.SH "type * TQPtrVector::take ( uint i )" Returns the item at position \fIi\fR in the vector, and removes that item from the vector. \fIi\fR must be less than size(). If there is no item at position \fIi\fR, 0 is returned. .PP Unlike remove(), this function does \fInot\fR call deleteItem() for the removed item. .PP See also remove() and at(). -.SH "QDataStream & QPtrVector::write ( QDataStream & s, QPtrCollection::Item item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQPtrVector::write ( QDataStream & s, TQPtrCollection::Item item ) const\fC [virtual protected]\fR" Writes a vector item, \fIitem\fR, to the stream \fIs\fR and returns a reference to the stream. .PP The default implementation does nothing. @@ -326,7 +326,7 @@ The default implementation does nothing. See also read(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqptrvector.html +.BR http://doc.trolltech.com/tqptrvector.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the diff --git a/doc/man/man3/tqstrilist.3qt b/doc/man/man3/tqstrilist.3qt index 50134bd25..923f99957 100644 --- a/doc/man/man3/tqstrilist.3qt +++ b/doc/man/man3/tqstrilist.3qt @@ -25,7 +25,7 @@ Inherits QStrList. .SH DESCRIPTION The QStrIList class provides a doubly-linked list of char* with case-insensitive comparison. .PP -This class is a QPtrList<char> instance (a list of char*). +This class is a TQPtrList<char> instance (a list of char*). .PP QStrIList is identical to QStrList except that the virtual 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 have to add a few extra strings to an already sorted list. .PP diff --git a/doc/man/man3/tqstrlist.3qt b/doc/man/man3/tqstrlist.3qt index 7e8dbb816..2a7928964 100644 --- a/doc/man/man3/tqstrlist.3qt +++ b/doc/man/man3/tqstrlist.3qt @@ -11,7 +11,7 @@ QStrList \- Doubly-linked list of char* .SH SYNOPSIS \fC#include <ntqstrlist.h>\fR .PP -Inherits QPtrList<char>. +Inherits TQPtrList<char>. .PP Inherited by QStrIList. .PP @@ -35,7 +35,7 @@ The QStrList class provides a doubly-linked list of char*. .PP If you want a string list of QStrings use QStringList. .PP -This class is a QPtrList<char> instance (a list of char*). +This class is a TQPtrList<char> instance (a list of char*). .PP QStrList can make deep or shallow copies of the strings that are inserted. .PP diff --git a/doc/man/man3/tqstrlistiterator.3qt b/doc/man/man3/tqstrlistiterator.3qt index 8727bd1ba..68724fd5d 100644 --- a/doc/man/man3/tqstrlistiterator.3qt +++ b/doc/man/man3/tqstrlistiterator.3qt @@ -11,12 +11,12 @@ QStrListIterator \- Iterator for the QStrList and QStrIList classes .SH SYNOPSIS \fC#include <ntqstrlist.h>\fR .PP -Inherits QPtrListIterator<char>. +Inherits TQPtrListIterator<char>. .PP .SH DESCRIPTION The QStrListIterator class is an iterator for the QStrList and QStrIList classes. .PP -This class is a QPtrListIterator<char> instance. It can traverse the strings in the QStrList and QStrIList classes. +This class is a TQPtrListIterator<char> instance. It can traverse the strings in the QStrList and QStrIList classes. .PP See also Non-GUI Classes. diff --git a/doc/man/man3/tqtabbar.3qt b/doc/man/man3/tqtabbar.3qt index 35b01c984..288976e96 100644 --- a/doc/man/man3/tqtabbar.3qt +++ b/doc/man/man3/tqtabbar.3qt @@ -124,7 +124,7 @@ Inherits TQWidget. .BI "virtual void \fBpaintEvent\fR ( QPaintEvent * e )" .br .ti -1c -.BI "QPtrList<QTab> * \fBtabList\fR ()" +.BI "TQPtrList<QTab> * \fBtabList\fR ()" .br .in -1c .SH DESCRIPTION @@ -256,7 +256,7 @@ See also count. Returns the tab at position \fIindex\fR. .PP See also indexOf(). -.SH "QPtrList<QTab> * QTabBar::tabList ()\fC [protected]\fR" +.SH "TQPtrList<QTab> * QTabBar::tabList ()\fC [protected]\fR" The list of QTab objects in the tab bar. .PP This list is unlikely to be in the order that the QTab elements appear visually. One way of iterating over the tabs is like this: diff --git a/doc/man/man3/tqurloperator.3qt b/doc/man/man3/tqurloperator.3qt index 6e2f17b8a..23d5e38c3 100644 --- a/doc/man/man3/tqurloperator.3qt +++ b/doc/man/man3/tqurloperator.3qt @@ -49,7 +49,7 @@ Inherits TQObject and QUrl. .BI "virtual const QNetworkOperation * \fBput\fR ( const QByteArray & data, const TQString & location = TQString::null )" .br .ti -1c -.BI "virtual QPtrList<QNetworkOperation> \fBcopy\fR ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )" +.BI "virtual TQPtrList<QNetworkOperation> \fBcopy\fR ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )" .br .ti -1c .BI "virtual void \fBcopy\fR ( const QStringList & files, const TQString & dest, bool move = FALSE )" @@ -97,7 +97,7 @@ Inherits TQObject and QUrl. .BI "void \fBdataTransferProgress\fR ( int bytesDone, int bytesTotal, QNetworkOperation * op )" .br .ti -1c -.BI "void \fBstartedNextCopy\fR ( const QPtrList<QNetworkOperation> & lst )" +.BI "void \fBstartedNextCopy\fR ( const TQPtrList<QNetworkOperation> & lst )" .br .ti -1c .BI "void \fBconnectionStateChanged\fR ( int state, const TQString & data )" @@ -179,7 +179,7 @@ Clears the cache of children. This signal is emitted whenever the URL operator's connection state changes. \fIstate\fR describes the new state, which is a QNetworkProtocol::ConnectionState value. .PP \fIdata\fR is a string that describes the change of the connection. This can be used to display a message to the user. -.SH "QPtrList<QNetworkOperation> QUrlOperator::copy ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )\fC [virtual]\fR" +.SH "TQPtrList<QNetworkOperation> QUrlOperator::copy ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )\fC [virtual]\fR" Copies the file \fIfrom\fR to \fIto\fR. If \fImove\fR is TRUE, the file is moved (copied and removed). \fIfrom\fR must point to a file and \fIto\fR must point to a directory (into which \fIfrom\fR is copied) unless \fItoPath\fR is set to FALSE. If \fItoPath\fR is set to FALSE then the \fIto\fR variable is assumed to be the absolute file path (destination file path + file name). The copying is done using the get() and put() operations. If you want to be notified about the progress of the operation, connect to the dataTransferProgress() signal. Bear in mind that the get() and put() operations emit this signal through the QUrlOperator. The number of transferred bytes and the total bytes that you receive as arguments in this signal do not relate to the the whole copy operation; they relate first to the get() and then to the put() operation. Always check what type of operation the signal comes from; this is given in the signal's last argument. .PP At the end, finished() (with success or failure) is emitted, so check the state of the network operation object to see whether or not the operation was successful. @@ -341,7 +341,7 @@ See also QDir::setNameFilter(). Some operations (such as listChildren()) emit this signal when they start processing the operation. \fIop\fR is a pointer to the operation object which contains all the information about the operation, including the state. .PP See also QNetworkOperation and QNetworkProtocol. -.SH "void QUrlOperator::startedNextCopy ( const QPtrList<QNetworkOperation> & lst )\fC [signal]\fR" +.SH "void QUrlOperator::startedNextCopy ( const TQPtrList<QNetworkOperation> & lst )\fC [signal]\fR" This signal is emitted if copy() starts a new copy operation. \fIlst\fR contains all QNetworkOperations related to this copy operation. .PP See also copy(). diff --git a/doc/man/man3/tqvaluelist.3qt b/doc/man/man3/tqvaluelist.3qt index a01a41ce6..4b320eac9 100644 --- a/doc/man/man3/tqvaluelist.3qt +++ b/doc/man/man3/tqvaluelist.3qt @@ -230,9 +230,9 @@ The TQValueList class is a value-based template class that provides lists. .PP TQValueList is a TQt implementation of an STL-like list container. It can be used in your application if the standard \fClist\fR is not available for your target platform(s). TQValueList is part of the TQt Template Library. .PP -TQValueList<T> defines a template instance to create a list of 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"; QPtrList and QDict are "pointer based". +TQValueList<T> defines a template instance to create a list of 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 QDict are "pointer based". .PP -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 QPtrCollection and friends which are pointer-based containers. +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 pointer-based containers. .PP Some classes cannot be used within a TQValueList, for example, all classes derived from TQObject and thus all classes that implement widgets. Only values can be used in a TQValueList. To qualify as a value the class must provide: .TP diff --git a/doc/man/man3/tqvaluestack.3qt b/doc/man/man3/tqvaluestack.3qt index ba24f2b80..19c7ba41a 100644 --- a/doc/man/man3/tqvaluestack.3qt +++ b/doc/man/man3/tqvaluestack.3qt @@ -41,7 +41,7 @@ The TQValueStack class is a value-based template class that provides a stack. .PP Define a template instance TQValueStack<X> to create a stack of values that all have the class X. TQValueStack is part of the TQt Template Library. .PP -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"; QPtrStack, QPtrList, QDict, etc., are "pointer based". +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, QDict, etc., are "pointer based". .PP 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(). The top() function provides access to the topmost item without removing it. .PP @@ -72,7 +72,7 @@ Example: .br .fi .PP -TQValueStack is a specialized TQValueList provided for convenience. All of TQValueList's functionality also applies to QPtrStack, for example the facility to iterate over all elements using TQValueStack<T>::Iterator. See TQValueListIterator for further details. +TQValueStack is a specialized TQValueList provided for convenience. All of TQValueList's functionality also applies to TQPtrStack, for example the facility to iterate over all elements using TQValueStack<T>::Iterator. See TQValueListIterator for further details. .PP Some classes cannot be used within a TQValueStack, for example everything derived from TQObject and thus all classes that implement widgets. Only values can be used in a TQValueStack. To qualify as a value, the class must provide .TP diff --git a/doc/man/man3/tqvaluevector.3qt b/doc/man/man3/tqvaluevector.3qt index 2e8dba809..fa8ec1dc3 100644 --- a/doc/man/man3/tqvaluevector.3qt +++ b/doc/man/man3/tqvaluevector.3qt @@ -186,9 +186,9 @@ The TQValueVector class is a value-based template class that provides a dynamic .PP TQValueVector is a TQt implementation of an STL-like vector container. It can be used in your application if the standard \fCvector\fR is not available for your target platforms. TQValueVector is part of the TQt Template Library. .PP -TQValueVector<T> defines a template instance to create a vector 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, QPtrList and QDict are pointer based. +TQValueVector<T> defines a template instance to create a vector 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 QDict are pointer based. .PP -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 QPtrCollection and friends, which are pointer-based containers. +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 and friends, which are pointer-based containers. .PP TQValueVector provides good performance if you append or remove elements from the end of the vector. If you insert or remove elements from anywhere but the end, performance is very bad. The reason for this is that elements must to be copied into new positions. .PP diff --git a/doc/man/man3/tqwindowsmime.3qt b/doc/man/man3/tqwindowsmime.3qt index 68ac7f763..b0ef199f2 100644 --- a/doc/man/man3/tqwindowsmime.3qt +++ b/doc/man/man3/tqwindowsmime.3qt @@ -50,7 +50,7 @@ QWindowsMime \- Maps open-standard MIME to Window Clipboard formats .BI "void \fBinitialize\fR ()" .br .ti -1c -.BI "QPtrList<QWindowsMime> \fBall\fR ()" +.BI "TQPtrList<QWindowsMime> \fBall\fR ()" .br .ti -1c .BI "QWindowsMime * \fBconvertor\fR ( const char * mime, int cf )" @@ -86,7 +86,7 @@ See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous C Constructs a new conversion object, adding it to the globally accessed list of available convertors. .SH "QWindowsMime::~QWindowsMime ()\fC [virtual]\fR" Destroys a conversion object, removing it from the global list of available convertors. -.SH "QPtrList<QWindowsMime> QWindowsMime::all ()\fC [static]\fR" +.SH "TQPtrList<QWindowsMime> QWindowsMime::all ()\fC [static]\fR" Returns a list of all currently defined QWindowsMime objects. .SH "bool QWindowsMime::canConvert ( const char * mime, int cf )\fC [pure virtual]\fR" Returns TRUE if the convertor can convert (both ways) between \fImime\fR and \fIcf\fR; otherwise returns FALSE. diff --git a/doc/man/man3/tqworkspace.3qt b/doc/man/man3/tqworkspace.3qt index 89de0dda2..49d152636 100644 --- a/doc/man/man3/tqworkspace.3qt +++ b/doc/man/man3/tqworkspace.3qt @@ -152,9 +152,9 @@ See also activeWindow() and windowList(). .SH "TQWidgetList QWorkspace::windowList ( WindowOrder order ) const" Returns a list of all windows. If \fIorder\fR is CreationOrder (the default) the windows are listed in the order in which they had been inserted into the workspace. If \fIorder\fR is StackingOrder the windows are listed in their stacking order, with the topmost window being the last window in the list. .PP -TQWidgetList is the same as QPtrList<TQWidget>. +TQWidgetList is the same as TQPtrList<TQWidget>. .PP -See also QPtrList. +See also TQPtrList. .PP Example: mdi/application.cpp. .SH "TQWidgetList QWorkspace::windowList () const" diff --git a/doc/man/man3/tqwsserver.3qt b/doc/man/man3/tqwsserver.3qt index 161a40ebc..c9c625af9 100644 --- a/doc/man/man3/tqwsserver.3qt +++ b/doc/man/man3/tqwsserver.3qt @@ -41,7 +41,7 @@ QWSServer \- Server-specific functionality in Qt/Embedded .BI "QWSWindow * \fBwindowAt\fR ( const QPoint & pos )" .br .ti -1c -.BI "const QPtrList<QWSWindow> & \fBclientWindows\fR ()" +.BI "const TQPtrList<QWSWindow> & \fBclientWindows\fR ()" .br .ti -1c .BI "void \fBopenMouse\fR ()" @@ -206,7 +206,7 @@ Construct a QWSServer object. The \fIflags\fR are used for keyboard and mouse setting. The server's parent is \fIparent\fR and it is called \fIname\fR. .SH "QWSServer::~QWSServer ()" Destruct QWSServer -.SH "const QPtrList<QWSWindow> & QWSServer::clientWindows ()" +.SH "const TQPtrList<QWSWindow> & QWSServer::clientWindows ()" Returns the list of top-level windows. This list will change as applications add and remove wigdets so it should not be stored for future use. The windows are sorted in stacking order from top-most to bottom-most. .SH "void QWSServer::closeKeyboard ()" Closes keyboard device(s). |