diff options
Diffstat (limited to 'doc/man/man3')
86 files changed, 1224 insertions, 1223 deletions
diff --git a/doc/man/man3/tqaccessibleinterface.3qt b/doc/man/man3/tqaccessibleinterface.3qt index 1ec4406d0..4dc7aa798 100644 --- a/doc/man/man3/tqaccessibleinterface.3qt +++ b/doc/man/man3/tqaccessibleinterface.3qt @@ -51,7 +51,7 @@ Inherited by QAccessibleObject. .BI "virtual State \fBstate\fR ( int control ) const = 0" .br .ti -1c -.BI "virtual QMemArray<int> \fBselection\fR () const = 0" +.BI "virtual TQMemArray<int> \fBselection\fR () const = 0" .br .ti -1c .BI "virtual bool \fBdoDefaultAction\fR ( int control ) = 0" @@ -115,7 +115,7 @@ All visual objects provide this information. Returns the role of the object if \fIcontrol\fR is 0, or the role of the object's sub-element with ID \fIcontrol\fR. The role of an object is usually static. All accessible objects have a role. .PP See also text(), state(), and selection(). -.SH "QMemArray<int> QAccessibleInterface::selection () const\fC [pure virtual]\fR" +.SH "TQMemArray<int> QAccessibleInterface::selection () const\fC [pure virtual]\fR" Returns the list of all the element IDs that are selected. .PP See also text(), role(), and state(). diff --git a/doc/man/man3/tqasciicache.3qt b/doc/man/man3/tqasciicache.3qt index 7c6c7eff7..c03f1e74a 100644 --- a/doc/man/man3/tqasciicache.3qt +++ b/doc/man/man3/tqasciicache.3qt @@ -1,5 +1,5 @@ '\" t -.TH QAsciiCache 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQAsciiCache 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 -QAsciiCache \- Template class that provides a cache based on char* keys +TQAsciiCache \- Template class that provides a cache based on char* keys .SH SYNOPSIS -\fC#include <ntqasciicache.h>\fR +\fC#include <tqasciicache.h>\fR .PP Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQAsciiCache\fR ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" +.BI "\fBTQAsciiCache\fR ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" .br .ti -1c -.BI "\fB~QAsciiCache\fR ()" +.BI "\fB~TQAsciiCache\fR ()" .br .ti -1c .BI "int \fBmaxCost\fR () const" @@ -62,11 +62,11 @@ Inherits TQPtrCollection. .br .in -1c .SH DESCRIPTION -The QAsciiCache class is a template class that provides a cache based on char* keys. +The TQAsciiCache class is a template class that provides a cache based on char* keys. .PP -QAsciiCache is implemented as a template class. Define a template instance QAsciiCache<X> to create a cache that operates on pointers to X (X*). +TQAsciiCache is implemented as a template class. Define a template instance TQAsciiCache<X> to create a cache that operates on pointers to X (X*). .PP -A cache is a least recently used (LRU) list of cache items. The cache items are accessed via \fCchar*\fR keys. For Unicode keys use the QCache template instead, which uses TQString keys. A QCache has the same performace as a QAsciiCache. +A cache is a least recently used (LRU) list of cache items. The cache items are accessed via \fCchar*\fR keys. For Unicode keys use the TQCache template instead, which uses TQString keys. A TQCache has the same performace as a TQAsciiCache. .PP Each cache item has a cost. The sum of item costs, totalCost(), will not exceed the maximum cache cost, maxCost(). If inserting a new item would cause the total cost to exceed the maximum cost, the least recently used items in the cache are removed. .PP @@ -76,23 +76,23 @@ There are also methods to remove() or take() an object from the cache. Calling s .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 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 TQPtrCollection::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 TQAsciiCache 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. +There is a TQAsciiCacheIterator which may be used to traverse the items in the cache in arbitrary order. .PP -See also QAsciiCacheIterator, QCache, QIntCache, Collection Classes, and Non-GUI Classes. +See also TQAsciiCacheIterator, TQCache, TQIntCache, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QAsciiCache::QAsciiCache ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" +.SH "TQAsciiCache::TQAsciiCache ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" Constructs a cache whose contents will never have a total cost greater than \fImaxCost\fR and which is expected to contain less than \fIsize\fR items. .PP \fIsize\fR is actually the size of an internal hash array; it's usually best to make it prime and at least 50% bigger than the largest expected number of items in the cache. .PP Each inserted item has an associated cost. When inserting a new item, if the total cost of all items in the cache will exceed \fImaxCost\fR, the cache will start throwing out the older (least recently used) items until there is enough room for the new item to be inserted. .PP -If \fIcaseSensitive\fR is TRUE (the default), the cache keys are case sensitive; if it is FALSE, they are case-insensitive. Case-insensitive comparison only affects the 26 letters in US-ASCII. If \fIcopyKeys\fR is TRUE (the default), QAsciiCache makes a copy of the cache keys, otherwise it copies just the const char * pointer - slightly faster if you can guarantee that the keys will never change, but very risky. -.SH "QAsciiCache::~QAsciiCache ()" +If \fIcaseSensitive\fR is TRUE (the default), the cache keys are case sensitive; if it is FALSE, they are case-insensitive. Case-insensitive comparison only affects the 26 letters in US-ASCII. If \fIcopyKeys\fR is TRUE (the default), TQAsciiCache makes a copy of the cache keys, otherwise it copies just the const char * pointer - slightly faster if you can guarantee that the keys will never change, but very risky. +.SH "TQAsciiCache::~TQAsciiCache ()" Removes all items from the cache and destroys it. All iterators that access this cache will be reset. -.SH "void QAsciiCache::clear ()\fC [virtual]\fR" +.SH "void TQAsciiCache::clear ()\fC [virtual]\fR" Removes all items from the cache, and deletes them if auto-deletion has been enabled. .PP All cache iterators that operate on this cache are reset. @@ -100,33 +100,33 @@ All cache iterators that operate on this cache are reset. See also remove() and take(). .PP Reimplemented from TQPtrCollection. -.SH "uint QAsciiCache::count () const\fC [virtual]\fR" +.SH "uint TQAsciiCache::count () const\fC [virtual]\fR" Returns the number of items in the cache. .PP See also totalCost() and size(). .PP Reimplemented from TQPtrCollection. -.SH "type * QAsciiCache::find ( const char * k, bool ref = TRUE ) const" +.SH "type * TQAsciiCache::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 If there are two or more items with equal keys, the one that was inserted last is returned. -.SH "bool QAsciiCache::insert ( const char * k, const type * d, int c = 1, int p = 0 )" +.SH "bool TQAsciiCache::insert ( const char * k, const type * d, int c = 1, int p = 0 )" Inserts the item \fId\fR into the cache using key \fIk\fR, and with an associated cost of \fIc\fR. Returns TRUE if the item is successfully inserted. Returns FALSE if the item is not inserted, for example, if the cost of the item exceeds maxCost(). .PP -The cache's size is limited, and if the total cost is too high, QAsciiCache will remove old, least recently used items until there is room for this new item. +The cache's size is limited, and if the total cost is too high, TQAsciiCache will remove old, least recently used items until there is room for this new item. .PP Items with duplicate keys can be inserted. .PP The parameter \fIp\fR is internal and should be left at the default value (0). .PP \fBWarning:\fR If this function returns FALSE, you must delete \fId\fR yourself. Additionally, be very careful about using \fId\fR after calling this function, because any other insertions into the cache, from anywhere in the application or within TQt itself, could cause the object to be discarded from the cache and the pointer to become invalid. -.SH "bool QAsciiCache::isEmpty () const" +.SH "bool TQAsciiCache::isEmpty () const" Returns TRUE if the cache is empty; otherwise returns FALSE. -.SH "int QAsciiCache::maxCost () const" +.SH "int TQAsciiCache::maxCost () const" Returns the maximum allowed total cost of the cache. .PP See also setMaxCost() and totalCost(). -.SH "type * QAsciiCache::operator[] ( const char * k ) const" +.SH "type * TQAsciiCache::operator[] ( const char * k ) const" Returns the item with key \fIk\fR, or 0 if \fIk\fR does not exist in the cache, and moves the item to the front of the least recently used list. .PP If there are two or more items with equal keys, the one that was inserted last is returned. @@ -134,7 +134,7 @@ If there are two or more items with equal keys, the one that was inserted last i This is the same as find( k, TRUE ). .PP See also find(). -.SH "bool QAsciiCache::remove ( const char * k )" +.SH "bool TQAsciiCache::remove ( const char * k )" Removes the item with key \fIk\fR and returns TRUE if the item was present in the cache; otherwise returns FALSE. .PP The item is deleted if auto-deletion has been enabled, i.e., if you have called setAutoDelete(TRUE). @@ -144,15 +144,15 @@ 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 QAsciiCache::setMaxCost ( int m )" +.SH "void TQAsciiCache::setMaxCost ( int m )" Sets the maximum allowed total cost of the cache to \fIm\fR. If the current total cost is greater than \fIm\fR, some items are removed immediately. .PP See also maxCost() and totalCost(). -.SH "uint QAsciiCache::size () const" +.SH "uint TQAsciiCache::size () const" Returns the size of the hash array used to implement the cache. This should be a bit bigger than count() is likely to be. -.SH "void QAsciiCache::statistics () const" +.SH "void TQAsciiCache::statistics () const" A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using tqDebug(). This function does nothing in the release library. -.SH "type * QAsciiCache::take ( const char * k )" +.SH "type * TQAsciiCache::take ( const char * k )" Takes the item associated with \fIk\fR out of the cache without deleting it and returns a pointer to the item taken out, or 0 if the key does not exist in the cache. .PP If there are two or more items with equal keys, the one that was inserted last is taken. @@ -160,13 +160,13 @@ If there are two or more items with equal keys, the one that was inserted last i All iterators that refer to the taken item are set to point to the next item in the cache's traversal order. .PP See also remove() and clear(). -.SH "int QAsciiCache::totalCost () const" +.SH "int TQAsciiCache::totalCost () const" Returns the total cost of the items in the cache. This is an integer in the range 0 to maxCost(). .PP See also setMaxCost(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqasciicache.html +.BR http://doc.trolltech.com/tqasciicache.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/tqasciicacheiterator.3qt b/doc/man/man3/tqasciicacheiterator.3qt index a6c84f643..a0ab8dc29 100644 --- a/doc/man/man3/tqasciicacheiterator.3qt +++ b/doc/man/man3/tqasciicacheiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QAsciiCacheIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQAsciiCacheIterator 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,20 +7,20 @@ .ad l .nh .SH NAME -QAsciiCacheIterator \- Iterator for QAsciiCache collections +TQAsciiCacheIterator \- Iterator for TQAsciiCache collections .SH SYNOPSIS -\fC#include <ntqasciicache.h>\fR +\fC#include <tqasciicache.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQAsciiCacheIterator\fR ( const QAsciiCache<type> & cache )" +.BI "\fBTQAsciiCacheIterator\fR ( const TQAsciiCache<type> & cache )" .br .ti -1c -.BI "\fBQAsciiCacheIterator\fR ( const QAsciiCacheIterator<type> & ci )" +.BI "\fBTQAsciiCacheIterator\fR ( const TQAsciiCacheIterator<type> & ci )" .br .ti -1c -.BI "QAsciiCacheIterator<type> & \fBoperator=\fR ( const QAsciiCacheIterator<type> & ci )" +.BI "TQAsciiCacheIterator<type> & \fBoperator=\fR ( const TQAsciiCacheIterator<type> & ci )" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -66,65 +66,65 @@ QAsciiCacheIterator \- Iterator for QAsciiCache collections .br .in -1c .SH DESCRIPTION -The QAsciiCacheIterator class provides an iterator for QAsciiCache collections. +The TQAsciiCacheIterator class provides an iterator for TQAsciiCache collections. .PP Note that the traversal order is arbitrary; you are not guaranteed any particular order. If new objects are inserted into the cache while the iterator is active, the iterator may or may not see them. .PP -Multiple iterators are completely independent, even when they operate on the same QAsciiCache. QAsciiCache updates all iterators that refer an item when that item is removed. +Multiple iterators are completely independent, even when they operate on the same TQAsciiCache. TQAsciiCache updates all iterators that refer an item when that item is removed. .PP -QAsciiCacheIterator provides an operator++() and an operator+=() to traverse the cache; current() and currentKey() to access the current cache item and its key. It also provides atFirst() and atLast(), which return TRUE if the iterator points to the first or last item in the cache respectively. The isEmpty() function returns TRUE if the cache is empty; and count() returns the number of items in the cache. +TQAsciiCacheIterator provides an operator++() and an operator+=() to traverse the cache; current() and currentKey() to access the current cache item and its key. It also provides atFirst() and atLast(), which return TRUE if the iterator points to the first or last item in the cache respectively. The isEmpty() function returns TRUE if the cache is empty; and count() returns the number of items in the cache. .PP Note that atFirst() and atLast() refer to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP -See also QAsciiCache, Collection Classes, and Non-GUI Classes. +See also TQAsciiCache, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QAsciiCacheIterator::QAsciiCacheIterator ( const QAsciiCache<type> & cache )" +.SH "TQAsciiCacheIterator::TQAsciiCacheIterator ( const TQAsciiCache<type> & cache )" Constructs an iterator for \fIcache\fR. The current iterator item is set to point to the first item in the \fIcache\fR. -.SH "QAsciiCacheIterator::QAsciiCacheIterator ( const QAsciiCacheIterator<type> & ci )" +.SH "TQAsciiCacheIterator::TQAsciiCacheIterator ( const TQAsciiCacheIterator<type> & ci )" Constructs an iterator for the same cache as \fIci\fR. The new iterator starts at the same item as ci.current() but moves independently from there on. -.SH "bool QAsciiCacheIterator::atFirst () const" +.SH "bool TQAsciiCacheIterator::atFirst () const" Returns TRUE if the iterator points to the first item in the cache; otherwise returns FALSE. Note that this refers to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP See also toFirst() and atLast(). -.SH "bool QAsciiCacheIterator::atLast () const" +.SH "bool TQAsciiCacheIterator::atLast () const" Returns TRUE if the iterator points to the last item in the cache; otherwise returns FALSE. Note that this refers to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP See also toLast() and atFirst(). -.SH "uint QAsciiCacheIterator::count () const" +.SH "uint TQAsciiCacheIterator::count () const" Returns the number of items in the cache over which this iterator operates. .PP See also isEmpty(). -.SH "type * QAsciiCacheIterator::current () const" +.SH "type * TQAsciiCacheIterator::current () const" Returns a pointer to the current iterator item. -.SH "const char * QAsciiCacheIterator::currentKey () const" +.SH "const char * TQAsciiCacheIterator::currentKey () const" Returns the key for the current iterator item. -.SH "bool QAsciiCacheIterator::isEmpty () const" +.SH "bool TQAsciiCacheIterator::isEmpty () const" Returns TRUE if the cache is empty, i.e. count() == 0; otherwise returns FALSE. .PP See also count(). -.SH "QAsciiCacheIterator::operator type * () const" +.SH "TQAsciiCacheIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QAsciiCacheIterator::operator() ()" +.SH "type * TQAsciiCacheIterator::operator() ()" Makes the succeeding item current and returns the original current item. .PP If the current iterator item was the last item in the cache or if it was 0, 0 is returned. -.SH "type * QAsciiCacheIterator::operator++ ()" +.SH "type * TQAsciiCacheIterator::operator++ ()" Prefix ++ makes the iterator point to the item just after current(), and makes that the new current item for the iterator. If current() was the last item, operator++() returns 0. -.SH "type * QAsciiCacheIterator::operator+= ( uint jump )" +.SH "type * TQAsciiCacheIterator::operator+= ( uint jump )" Returns the item \fIjump\fR positions after the current item, or 0 if it is beyond the last item. Makes this the current item. -.SH "type * QAsciiCacheIterator::operator-- ()" +.SH "type * TQAsciiCacheIterator::operator-- ()" Prefix -- makes the iterator point to the item just before current(), and makes that the new current item for the iterator. If current() was the first item, operator--() returns 0. -.SH "type * QAsciiCacheIterator::operator-= ( uint jump )" +.SH "type * TQAsciiCacheIterator::operator-= ( uint jump )" Returns the item \fIjump\fR positions before the current item, or 0 if it is before the first item. Makes this the current item. -.SH "QAsciiCacheIterator<type> & QAsciiCacheIterator::operator= ( const QAsciiCacheIterator<type> & ci )" +.SH "TQAsciiCacheIterator<type> & TQAsciiCacheIterator::operator= ( const TQAsciiCacheIterator<type> & ci )" Makes this an iterator for the same cache as \fIci\fR. The new iterator starts at the same item as ci.current(), but moves independently thereafter. -.SH "type * QAsciiCacheIterator::toFirst ()" +.SH "type * TQAsciiCacheIterator::toFirst ()" Sets the iterator to point to the first item in the cache and returns a pointer to the item. .PP Sets the iterator to 0 and returns 0 if the cache is empty. .PP See also toLast() and isEmpty(). -.SH "type * QAsciiCacheIterator::toLast ()" +.SH "type * TQAsciiCacheIterator::toLast ()" Sets the iterator to point to the last item in the cache and returns a pointer to the item. .PP Sets the iterator to 0 and returns 0 if the cache is empty. @@ -132,7 +132,7 @@ Sets the iterator to 0 and returns 0 if the cache is empty. See also isEmpty(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qasciicacheiterator.html +.BR http://doc.trolltech.com/tqasciicacheiterator.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/tqasciidict.3qt b/doc/man/man3/tqasciidict.3qt index 9b6d47eb1..23d0a52cf 100644 --- a/doc/man/man3/tqasciidict.3qt +++ b/doc/man/man3/tqasciidict.3qt @@ -1,5 +1,5 @@ '\" t -.TH QAsciiDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQAsciiDict 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 -QAsciiDict \- Template class that provides a dictionary based on char* keys +TQAsciiDict \- Template class that provides a dictionary based on char* keys .SH SYNOPSIS -\fC#include <ntqasciidict.h>\fR +\fC#include <tqasciidict.h>\fR .PP Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQAsciiDict\fR ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" +.BI "\fBTQAsciiDict\fR ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" .br .ti -1c -.BI "\fBQAsciiDict\fR ( const QAsciiDict<type> & dict )" +.BI "\fBTQAsciiDict\fR ( const TQAsciiDict<type> & dict )" .br .ti -1c -.BI "\fB~QAsciiDict\fR ()" +.BI "\fB~TQAsciiDict\fR ()" .br .ti -1c -.BI "QAsciiDict<type> & \fBoperator=\fR ( const QAsciiDict<type> & dict )" +.BI "TQAsciiDict<type> & \fBoperator=\fR ( const TQAsciiDict<type> & dict )" .br .ti -1c .BI "virtual uint \fBcount\fR () const" @@ -83,19 +83,19 @@ Inherits TQPtrCollection. .br .in -1c .SH DESCRIPTION -The QAsciiDict class is a template class that provides a dictionary based on char* keys. +The TQAsciiDict class is a template class that provides a dictionary based on char* keys. .PP -QAsciiDict is implemented as a template class. Define a template instance QAsciiDict<X> to create a dictionary that operates on pointers to X (X*). +TQAsciiDict is implemented as a template class. Define a template instance TQAsciiDict<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 char* used for insertion, removal and lookup. The value is a pointer. Dictionaries provide very fast insertion and lookup. .PP -QAsciiDict cannot handle Unicode keys; use the QDict template instead, which uses TQString keys. A QDict has the same performace as a QAsciiDict. +TQAsciiDict cannot handle Unicode keys; use the TQDict template instead, which uses TQString keys. A TQDict has the same performace as a TQAsciiDict. .PP Example: .PP .nf .br - QAsciiDict<QLineEdit> fields; // char* keys, QLineEdit* values + TQAsciiDict<QLineEdit> fields; // char* keys, QLineEdit* values .br fields.insert( "forename", new QLineEdit( this ) ); .br @@ -107,7 +107,7 @@ Example: fields["surname"]->setText( "Simpson" ); .br .br - QAsciiDictIterator<QLineEdit> it( fields ); // See QAsciiDictIterator + TQAsciiDictIterator<QLineEdit> it( fields ); // See TQAsciiDictIterator .br for( ; it.current(); ++it ) .br @@ -131,25 +131,25 @@ 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 TQPtrDict, 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, TQIntDict and TQDict. .PP -See QDict for full details, including the choice of dictionary size, and how deletions are handled. +See TQDict for full details, including the choice of dictionary size, and how deletions are handled. .PP -See also QAsciiDictIterator, QDict, QIntDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. +See also TQAsciiDictIterator, TQDict, TQIntDict, 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 )" +.SH "TQAsciiDict::TQAsciiDict ( int size = 17, bool caseSensitive = TRUE, bool copyKeys = TRUE )" Constructs a dictionary optimized for less than \fIsize\fR entries. .PP We recommend setting \fIsize\fR to a suitably large prime number (a bit larger than the expected number of entries). This makes the hash distribution better and will improve lookup performance. .PP -When \fIcaseSensitive\fR is TRUE (the default) QAsciiDict treats" abc" and "Abc" as different keys; when it is FALSE "abc" and" Abc" are the same. Case-insensitive comparison only considers the 26 letters in US-ASCII. +When \fIcaseSensitive\fR is TRUE (the default) TQAsciiDict treats" abc" and "Abc" as different keys; when it is FALSE "abc" and" Abc" are the same. Case-insensitive comparison only considers the 26 letters in US-ASCII. .PP If \fIcopyKeys\fR is TRUE (the default), the dictionary copies keys using strcpy(); if it is FALSE, the dictionary just copies the pointers. -.SH "QAsciiDict::QAsciiDict ( const QAsciiDict<type> & dict )" +.SH "TQAsciiDict::TQAsciiDict ( const TQAsciiDict<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 "QAsciiDict::~QAsciiDict ()" +.SH "TQAsciiDict::~TQAsciiDict ()" Removes all items from the dictionary and destroys it. .PP The items are deleted if auto-delete is enabled. @@ -161,7 +161,7 @@ See also setAutoDelete(). Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QAsciiDict::clear ()\fC [virtual]\fR" +.SH "void TQAsciiDict::clear ()\fC [virtual]\fR" Removes all items from the dictionary. .PP The removed items are deleted if auto-deletion is enabled. @@ -171,13 +171,13 @@ All dictionary iterators that operate on dictionary are reset. See also remove(), take(), and setAutoDelete(). .PP Reimplemented from TQPtrCollection. -.SH "uint QAsciiDict::count () const\fC [virtual]\fR" +.SH "uint TQAsciiDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP Reimplemented from TQPtrCollection. -.SH "type * QAsciiDict::find ( const char * key ) const" +.SH "type * TQAsciiDict::find ( const char * key ) const" Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP This function uses an internal hashing algorithm to optimize lookup. @@ -187,7 +187,7 @@ If there are two or more items with equal keys, then the item that was most rece Equivalent to the [] operator. .PP See also operator[](). -.SH "void QAsciiDict::insert ( const char * key, const type * item )" +.SH "void TQAsciiDict::insert ( const char * 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[](). @@ -195,15 +195,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 QAsciiDict::isEmpty () const" +.SH "bool TQAsciiDict::isEmpty () const" Returns TRUE if the dictionary is empty, i.e. count() == 0; otherwise it returns FALSE. .PP See also count(). -.SH "QAsciiDict<type> & QAsciiDict::operator= ( const QAsciiDict<type> & dict )" +.SH "TQAsciiDict<type> & TQAsciiDict::operator= ( const TQAsciiDict<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 this dictionary. Only the pointers are copied (shallow copy) unless newItem() has been reimplemented(). -.SH "type * QAsciiDict::operator[] ( const char * key ) const" +.SH "type * TQAsciiDict::operator[] ( const char * key ) const" Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary. .PP This function uses an internal hashing algorithm to optimize lookup. @@ -213,13 +213,13 @@ 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, TQPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQAsciiDict::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 QAsciiDict::remove ( const char * key )" +.SH "bool TQAsciiDict::remove ( const char * key )" Removes the item associated with \fIkey\fR from the dictionary. Returns TRUE if successful, i.e. if the key existed 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 QAsciiDict::replace ( const char * key, const type * item )" +.SH "void TQAsciiDict::replace ( const char * key, const type * item )" Replaces an item that has a key equal to \fIkey\fR with \fIitem\fR. .PP If the item does not already exist, it will be inserted. @@ -240,7 +240,7 @@ Equivalent to: .PP .nf .br - QAsciiDict<char> dict; + TQAsciiDict<char> dict; .br ... .br @@ -255,7 +255,7 @@ 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 QAsciiDict::resize ( uint newsize )" +.SH "void TQAsciiDict::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 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. @@ -270,13 +270,13 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "uint QAsciiDict::size () const" +.SH "uint TQAsciiDict::size () const" Returns the size of the internal hash array (as specified in the constructor). .PP See also count(). -.SH "void QAsciiDict::statistics () const" +.SH "void TQAsciiDict::statistics () const" Debugging-only function that prints out the dictionary distribution using tqDebug(). -.SH "type * QAsciiDict::take ( const char * key )" +.SH "type * TQAsciiDict::take ( const char * 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 taken. @@ -286,13 +286,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 & QAsciiDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQAsciiDict::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/ntqasciidict.html +.BR http://doc.trolltech.com/tqasciidict.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/tqasciidictiterator.3qt b/doc/man/man3/tqasciidictiterator.3qt index 4ebafa3b6..2ce41d233 100644 --- a/doc/man/man3/tqasciidictiterator.3qt +++ b/doc/man/man3/tqasciidictiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QAsciiDictIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQAsciiDictIterator 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 -QAsciiDictIterator \- Iterator for QAsciiDict collections +TQAsciiDictIterator \- Iterator for TQAsciiDict collections .SH SYNOPSIS -\fC#include <ntqasciidict.h>\fR +\fC#include <tqasciidict.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQAsciiDictIterator\fR ( const QAsciiDict<type> & dict )" +.BI "\fBTQAsciiDictIterator\fR ( const TQAsciiDict<type> & dict )" .br .ti -1c -.BI "\fB~QAsciiDictIterator\fR ()" +.BI "\fB~TQAsciiDictIterator\fR ()" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -48,15 +48,15 @@ QAsciiDictIterator \- Iterator for QAsciiDict collections .br .in -1c .SH DESCRIPTION -The QAsciiDictIterator class provides an iterator for QAsciiDict collections. +The TQAsciiDictIterator class provides an iterator for TQAsciiDict collections. .PP -QAsciiDictIterator is implemented as a template class. Define a template instance QAsciiDictIterator<X> to create a dictionary iterator that operates on QAsciiDict<X> (dictionary of X*). +TQAsciiDictIterator is implemented as a template class. Define a template instance TQAsciiDictIterator<X> to create a dictionary iterator that operates on TQAsciiDict<X> (dictionary of X*). .PP Example: .PP .nf .br - QAsciiDict<QLineEdit> fields; + TQAsciiDict<QLineEdit> fields; .br fields.insert( "forename", new QLineEdit( this ) ); .br @@ -72,7 +72,7 @@ Example: fields["age"]->setText( "45" ); .br .br - QAsciiDictIterator<QLineEdit> it( fields ); + TQAsciiDictIterator<QLineEdit> it( fields ); .br for( ; it.current(); ++it ) .br @@ -94,47 +94,47 @@ In the example we insert some line edits into a dictionary, then iterate over th .PP Note that the traversal order is arbitrary; you are not guaranteed any particular order. .PP -Multiple iterators may independently traverse the same dictionary. A QAsciiDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, QAsciiDict updates all the iterators that are referring to the removed item to point to the next item in the (arbitrary) traversal order. +Multiple iterators may independently traverse the same dictionary. A TQAsciiDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, TQAsciiDict updates all the iterators that are referring to the removed item to point to the next item in the (arbitrary) traversal order. .PP -See also QAsciiDict, Collection Classes, and Non-GUI Classes. +See also TQAsciiDict, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QAsciiDictIterator::QAsciiDictIterator ( const QAsciiDict<type> & dict )" +.SH "TQAsciiDictIterator::TQAsciiDictIterator ( const TQAsciiDict<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 "QAsciiDictIterator::~QAsciiDictIterator ()" +.SH "TQAsciiDictIterator::~TQAsciiDictIterator ()" Destroys the iterator. -.SH "uint QAsciiDictIterator::count () const" +.SH "uint TQAsciiDictIterator::count () const" Returns the number of items in the dictionary this iterator operates over. .PP See also isEmpty(). -.SH "type * QAsciiDictIterator::current () const" +.SH "type * TQAsciiDictIterator::current () const" Returns a pointer to the current iterator item. -.SH "const char * QAsciiDictIterator::currentKey () const" +.SH "const char * TQAsciiDictIterator::currentKey () const" Returns a pointer to the key for the current iterator item. -.SH "bool QAsciiDictIterator::isEmpty () const" +.SH "bool TQAsciiDictIterator::isEmpty () const" Returns TRUE if the dictionary is empty, i.e. count() == 0, otherwise returns FALSE. .PP See also count(). -.SH "QAsciiDictIterator::operator type * () const" +.SH "TQAsciiDictIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QAsciiDictIterator::operator() ()" +.SH "type * TQAsciiDictIterator::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 * QAsciiDictIterator::operator++ ()" +.SH "type * TQAsciiDictIterator::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 * QAsciiDictIterator::operator+= ( uint jump )" +.SH "type * TQAsciiDictIterator::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 * QAsciiDictIterator::toFirst ()" +.SH "type * TQAsciiDictIterator::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/qasciidictiterator.html +.BR http://doc.trolltech.com/tqasciidictiterator.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/tqbitarray.3qt b/doc/man/man3/tqbitarray.3qt index 8276c7d9b..498f6edd0 100644 --- a/doc/man/man3/tqbitarray.3qt +++ b/doc/man/man3/tqbitarray.3qt @@ -1,5 +1,5 @@ '\" t -.TH QBitArray 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQBitArray 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,27 +7,27 @@ .ad l .nh .SH NAME -QBitArray \- Array of bits +TQBitArray \- Array of bits .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqbitarray.h>\fR +\fC#include <tqbitarray.h>\fR .PP -Inherits QByteArray. +Inherits TQByteArray. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQBitArray\fR ()" +.BI "\fBTQBitArray\fR ()" .br .ti -1c -.BI "\fBQBitArray\fR ( uint size )" +.BI "\fBTQBitArray\fR ( uint size )" .br .ti -1c -.BI "\fBQBitArray\fR ( const QBitArray & a )" +.BI "\fBTQBitArray\fR ( const TQBitArray & a )" .br .ti -1c -.BI "QBitArray & \fBoperator=\fR ( const QBitArray & a )" +.BI "TQBitArray & \fBoperator=\fR ( const TQBitArray & a )" .br .ti -1c .BI "uint \fBsize\fR () const" @@ -42,7 +42,7 @@ Inherits QByteArray. .BI "virtual void \fBdetach\fR ()" .br .ti -1c -.BI "QBitArray \fBcopy\fR () const" +.BI "TQBitArray \fBcopy\fR () const" .br .ti -1c .BI "bool \fBtestBit\fR ( uint index ) const" @@ -63,48 +63,48 @@ Inherits QByteArray. .BI "bool \fBat\fR ( uint index ) const" .br .ti -1c -.BI "QBitVal \fBoperator[]\fR ( int index )" +.BI "TQBitVal \fBoperator[]\fR ( int index )" .br .ti -1c .BI "bool \fBoperator[]\fR ( int index ) const" .br .ti -1c -.BI "QBitArray & \fBoperator&=\fR ( const QBitArray & a )" +.BI "TQBitArray & \fBoperator&=\fR ( const TQBitArray & a )" .br .ti -1c -.BI "QBitArray & \fBoperator|=\fR ( const QBitArray & a )" +.BI "TQBitArray & \fBoperator|=\fR ( const TQBitArray & a )" .br .ti -1c -.BI "QBitArray & \fBoperator^=\fR ( const QBitArray & a )" +.BI "TQBitArray & \fBoperator^=\fR ( const TQBitArray & a )" .br .ti -1c -.BI "QBitArray \fBoperator~\fR () const" +.BI "TQBitArray \fBoperator~\fR () const" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QBitArray \fBoperator&\fR ( const QBitArray & a1, const QBitArray & a2 )" +.BI "TQBitArray \fBoperator&\fR ( const TQBitArray & a1, const TQBitArray & a2 )" .br .ti -1c -.BI "QBitArray \fBoperator|\fR ( const QBitArray & a1, const QBitArray & a2 )" +.BI "TQBitArray \fBoperator|\fR ( const TQBitArray & a1, const TQBitArray & a2 )" .br .ti -1c -.BI "QBitArray \fBoperator^\fR ( const QBitArray & a1, const QBitArray & a2 )" +.BI "TQBitArray \fBoperator^\fR ( const TQBitArray & a1, const TQBitArray & a2 )" .br .ti -1c -.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const QBitArray & a )" +.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const TQBitArray & a )" .br .ti -1c -.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, QBitArray & a )" +.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, TQBitArray & a )" .br .in -1c .SH DESCRIPTION -The QBitArray class provides an array of bits. +The TQBitArray class provides an array of bits. .PP -Because QBitArray is a QMemArray, it uses explicit sharing with a reference count. +Because TQBitArray is a TQMemArray, it uses explicit sharing with a reference count. .PP -A QBitArray is a special byte array that can access individual bits and perform bit-operations (AND, OR, XOR and NOT) on entire arrays or bits. +A TQBitArray is a special byte array that can access individual bits and perform bit-operations (AND, OR, XOR and NOT) on entire arrays or bits. .PP Bits can be manipulated by the setBit() and clearBit() functions, but it is also possible to use the indexing [] operator to test and set individual bits. The [] operator is a little slower than setBit() and clearBit() because some tricks are required to implement single-bit assignments. .PP @@ -112,7 +112,7 @@ Example: .PP .nf .br - QBitArray a(3); + TQBitArray a(3); .br a.setBit( 0 ); .br @@ -121,7 +121,7 @@ Example: a.setBit( 2 ); // a = [1 0 1] .br .br - QBitArray b(3); + TQBitArray b(3); .br b[0] = 1; .br @@ -130,47 +130,47 @@ Example: b[2] = 0; // b = [1 1 0] .br .br - QBitArray c; + TQBitArray c; .br c = ~a & b; // c = [0 1 0] .br .fi .PP -When a QBitArray is constructed the bits are uninitialized. Use fill() to set all the bits to 0 or 1. The array can be resized with resize() and copied with copy(). Bits can be set with setBit() and cleared with clearBit(). Bits can be toggled with toggleBit(). A bit's value can be obtained with testBit() and with at(). +When a TQBitArray is constructed the bits are uninitialized. Use fill() to set all the bits to 0 or 1. The array can be resized with resize() and copied with copy(). Bits can be set with setBit() and cleared with clearBit(). Bits can be toggled with toggleBit(). A bit's value can be obtained with testBit() and with at(). .PP -QBitArray supports the & (AND), | (OR), ^ (XOR) and ~ (NOT) operators. +TQBitArray supports the & (AND), | (OR), ^ (XOR) and ~ (NOT) operators. .PP See also Collection Classes, Implicitly and Explicitly Shared Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QBitArray::QBitArray ()" +.SH "TQBitArray::TQBitArray ()" Constructs an empty bit array. -.SH "QBitArray::QBitArray ( uint size )" +.SH "TQBitArray::TQBitArray ( uint size )" Constructs a bit array of \fIsize\fR bits. The bits are uninitialized. .PP See also fill(). -.SH "QBitArray::QBitArray ( const QBitArray & a )" +.SH "TQBitArray::TQBitArray ( const TQBitArray & a )" Constructs a shallow copy of \fIa\fR. -.SH "bool QBitArray::at ( uint index ) const" +.SH "bool TQBitArray::at ( uint index ) const" Returns the value (0 or 1) of the bit at position \fIindex\fR. .PP See also operator[](). -.SH "void QBitArray::clearBit ( uint index )" +.SH "void TQBitArray::clearBit ( uint index )" Clears the bit at position \fIindex\fR, i.e. sets it to 0. .PP See also setBit() and toggleBit(). -.SH "QBitArray QBitArray::copy () const" +.SH "TQBitArray TQBitArray::copy () const" Returns a deep copy of the bit array. .PP See also detach(). -.SH "void QBitArray::detach ()\fC [virtual]\fR" +.SH "void TQBitArray::detach ()\fC [virtual]\fR" Detaches from shared bit array data and makes sure that this bit array is the only one referring to the data. .PP If multiple bit arrays share common data, this bit array dereferences the data and gets a copy of the data. Nothing happens if there is only a single reference. .PP See also copy(). .PP -Reimplemented from QMemArray. -.SH "bool QBitArray::fill ( bool v, int size = -1 )" +Reimplemented from TQMemArray. +.SH "bool TQBitArray::fill ( bool v, int size = -1 )" Fills the bit array with \fIv\fR (1's if \fIv\fR is TRUE, or 0's if \fIv\fR is FALSE). .PP fill() resizes the bit array to \fIsize\fR bits if \fIsize\fR is nonnegative. @@ -178,14 +178,14 @@ fill() resizes the bit array to \fIsize\fR bits if \fIsize\fR is nonnegative. Returns FALSE if a nonnegative \fIsize\fR was specified and the bit array could not be resized; otherwise returns TRUE. .PP See also resize(). -.SH "QBitArray & QBitArray::operator&= ( const QBitArray & a )" +.SH "TQBitArray & TQBitArray::operator&= ( const TQBitArray & a )" Performs the AND operation between all bits in this bit array and \fIa\fR. Returns a reference to this bit array. .PP The result has the length of the longest of the two bit arrays, with any missing bits (i.e. if one array is shorter than the other), taken to be 0. .PP .nf .br - QBitArray a( 3 ), b( 2 ); + TQBitArray a( 3 ), b( 2 ); .br a[0] = 1; a[1] = 0; a[2] = 1; // a = [1 0 1] .br @@ -196,18 +196,18 @@ The result has the length of the longest of the two bit arrays, with any missing .fi .PP See also operator|=(), operator^=(), and operator~(). -.SH "QBitArray & QBitArray::operator= ( const QBitArray & a )" +.SH "TQBitArray & TQBitArray::operator= ( const TQBitArray & a )" Assigns a shallow copy of \fIa\fR to this bit array and returns a reference to this array. -.SH "QBitVal QBitArray::operator[] ( int index )" +.SH "TQBitVal TQBitArray::operator[] ( int index )" Implements the [] operator for bit arrays. .PP -The returned QBitVal is a context object. It makes it possible to get and set a single bit value by its \fIindex\fR position. +The returned TQBitVal is a context object. It makes it possible to get and set a single bit value by its \fIindex\fR position. .PP Example: .PP .nf .br - QBitArray a( 3 ); + TQBitArray a( 3 ); .br a[0] = 0; .br @@ -220,18 +220,18 @@ Example: The functions testBit(), setBit() and clearBit() are faster. .PP See also at(). -.SH "bool QBitArray::operator[] ( int index ) const" +.SH "bool TQBitArray::operator[] ( int index ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Implements the [] operator for constant bit arrays. -.SH "QBitArray & QBitArray::operator^= ( const QBitArray & a )" +.SH "TQBitArray & TQBitArray::operator^= ( const TQBitArray & a )" Performs the XOR operation between all bits in this bit array and \fIa\fR. Returns a reference to this bit array. .PP The result has the length of the longest of the two bit arrays, with any missing bits (i.e. if one array is shorter than the other), taken to be 0. .PP .nf .br - QBitArray a( 3 ), b( 2 ); + TQBitArray a( 3 ), b( 2 ); .br a[0] = 1; a[1] = 0; a[2] = 1; // a = [1 0 1] .br @@ -242,14 +242,14 @@ The result has the length of the longest of the two bit arrays, with any missing .fi .PP See also operator&=(), operator|=(), and operator~(). -.SH "QBitArray & QBitArray::operator|= ( const QBitArray & a )" +.SH "TQBitArray & TQBitArray::operator|= ( const TQBitArray & a )" Performs the OR operation between all bits in this bit array and \fIa\fR. Returns a reference to this bit array. .PP The result has the length of the longest of the two bit arrays, with any missing bits (i.e. if one array is shorter than the other), taken to be 0. .PP .nf .br - QBitArray a( 3 ), b( 2 ); + TQBitArray a( 3 ), b( 2 ); .br a[0] = 1; a[1] = 0; a[2] = 1; // a = [1 0 1] .br @@ -260,27 +260,27 @@ The result has the length of the longest of the two bit arrays, with any missing .fi .PP See also operator&=(), operator^=(), and operator~(). -.SH "QBitArray QBitArray::operator~ () const" +.SH "TQBitArray TQBitArray::operator~ () const" Returns a bit array that contains the inverted bits of this bit array. .PP Example: .PP .nf .br - QBitArray a( 3 ), b; + TQBitArray a( 3 ), b; .br a[0] = 1; a[1] = 0; a[2] = 1; // a = [1 0 1] .br b = ~a; // b = [0 1 0] .br .fi -.SH "bool QBitArray::resize ( uint size )" +.SH "bool TQBitArray::resize ( uint size )" Resizes the bit array to \fIsize\fR bits and returns TRUE if the bit array could be resized; otherwise returns FALSE. The array becomes a null array if \fIsize\fR == 0. .PP If the array is expanded, the new bits are set to 0. .PP See also size(). -.SH "void QBitArray::setBit ( uint index, bool value )" +.SH "void TQBitArray::setBit ( uint index, bool value )" Sets the bit at position \fIindex\fR to \fIvalue\fR. .PP Equivalent to: @@ -298,56 +298,56 @@ Equivalent to: .fi .PP See also clearBit() and toggleBit(). -.SH "void QBitArray::setBit ( uint index )" +.SH "void TQBitArray::setBit ( uint index )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the bit at position \fIindex\fR to 1. .PP See also clearBit() and toggleBit(). -.SH "uint QBitArray::size () const" +.SH "uint TQBitArray::size () const" Returns the bit array's size (number of bits). .PP See also resize(). -.SH "bool QBitArray::testBit ( uint index ) const" +.SH "bool TQBitArray::testBit ( uint index ) const" Returns TRUE if the bit at position \fIindex\fR is set, i.e. is 1; otherwise returns FALSE. .PP See also setBit() and clearBit(). -.SH "bool QBitArray::toggleBit ( uint index )" +.SH "bool TQBitArray::toggleBit ( uint index )" Toggles the bit at position \fIindex\fR. .PP If the previous value was 0, the new value will be 1. If the previous value was 1, the new value will be 0. .PP See also setBit() and clearBit(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QBitArray operator& ( const QBitArray & a1, const QBitArray & a2 )" +.SH "TQBitArray operator& ( const TQBitArray & a1, const TQBitArray & a2 )" Returns the AND result between the bit arrays \fIa1\fR and \fIa2\fR. .PP The result has the length of the longest of the two bit arrays, with any missing bits (i.e. if one array is shorter than the other), taken to be 0. .PP -See also QBitArray::operator&=(). -.SH "QDataStream & operator<< ( QDataStream & s, const QBitArray & a )" +See also TQBitArray::operator&=(). +.SH "QDataStream & operator<< ( QDataStream & s, const TQBitArray & a )" Writes bit array \fIa\fR to stream \fIs\fR. .PP See also Format of the QDataStream operators. -.SH "QDataStream & operator>> ( QDataStream & s, QBitArray & a )" +.SH "QDataStream & operator>> ( QDataStream & s, TQBitArray & a )" Reads a bit array into \fIa\fR from stream \fIs\fR. .PP See also Format of the QDataStream operators. -.SH "QBitArray operator^ ( const QBitArray & a1, const QBitArray & a2 )" +.SH "TQBitArray operator^ ( const TQBitArray & a1, const TQBitArray & a2 )" Returns the XOR result between the bit arrays \fIa1\fR and \fIa2\fR. .PP The result has the length of the longest of the two bit arrays, with any missing bits (i.e. if one array is shorter than the other), taken to be 0. .PP -See also QBitArray::operator^(). -.SH "QBitArray operator| ( const QBitArray & a1, const QBitArray & a2 )" +See also TQBitArray::operator^(). +.SH "TQBitArray operator| ( const TQBitArray & a1, const TQBitArray & a2 )" Returns the OR result between the bit arrays \fIa1\fR and \fIa2\fR. .PP The result has the length of the longest of the two bit arrays, with any missing bits (i.e. if one array is shorter than the other), taken to be 0. .PP -See also QBitArray::operator|=(). +See also TQBitArray::operator|=(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqbitarray.html +.BR http://doc.trolltech.com/tqbitarray.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/tqbitmap.3qt b/doc/man/man3/tqbitmap.3qt index 392a66e9c..c6a58773d 100644 --- a/doc/man/man3/tqbitmap.3qt +++ b/doc/man/man3/tqbitmap.3qt @@ -1,5 +1,5 @@ '\" t -.TH QBitmap 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQBitmap 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,68 +7,68 @@ .ad l .nh .SH NAME -QBitmap \- Monochrome (1-bit depth) pixmaps +TQBitmap \- Monochrome (1-bit depth) pixmaps .SH SYNOPSIS -\fC#include <ntqbitmap.h>\fR +\fC#include <tqbitmap.h>\fR .PP Inherits QPixmap. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQBitmap\fR ()" +.BI "\fBTQBitmap\fR ()" .br .ti -1c -.BI "\fBQBitmap\fR ( int w, int h, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.BI "\fBTQBitmap\fR ( int w, int h, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" .br .ti -1c -.BI "\fBQBitmap\fR ( const TQSize & size, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.BI "\fBTQBitmap\fR ( const TQSize & size, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" .br .ti -1c -.BI "\fBQBitmap\fR ( int w, int h, const uchar * bits, bool isXbitmap = FALSE )" +.BI "\fBTQBitmap\fR ( int w, int h, const uchar * bits, bool isXbitmap = FALSE )" .br .ti -1c -.BI "\fBQBitmap\fR ( const TQSize & size, const uchar * bits, bool isXbitmap = FALSE )" +.BI "\fBTQBitmap\fR ( const TQSize & size, const uchar * bits, bool isXbitmap = FALSE )" .br .ti -1c -.BI "\fBQBitmap\fR ( const QBitmap & bitmap )" +.BI "\fBTQBitmap\fR ( const TQBitmap & bitmap )" .br .ti -1c -.BI "\fBQBitmap\fR ( const TQString & fileName, const char * format = 0 )" +.BI "\fBTQBitmap\fR ( const TQString & fileName, const char * format = 0 )" .br .ti -1c -.BI "QBitmap & \fBoperator=\fR ( const QBitmap & bitmap )" +.BI "TQBitmap & \fBoperator=\fR ( const TQBitmap & bitmap )" .br .ti -1c -.BI "QBitmap & \fBoperator=\fR ( const QPixmap & pixmap )" +.BI "TQBitmap & \fBoperator=\fR ( const QPixmap & pixmap )" .br .ti -1c -.BI "QBitmap & \fBoperator=\fR ( const TQImage & image )" +.BI "TQBitmap & \fBoperator=\fR ( const TQImage & image )" .br .ti -1c -.BI "QBitmap \fBxForm\fR ( const QWMatrix & matrix ) const" +.BI "TQBitmap \fBxForm\fR ( const QWMatrix & matrix ) const" .br .in -1c .SH DESCRIPTION -The QBitmap class provides monochrome (1-bit depth) pixmaps. +The TQBitmap class provides monochrome (1-bit depth) pixmaps. .PP -The QBitmap class is a monochrome off-screen paint device used mainly for creating custom QCursor and QBrush objects, in QPixmap::setMask() and for QRegion. +The TQBitmap class is a monochrome off-screen paint device used mainly for creating custom QCursor and QBrush objects, in QPixmap::setMask() and for QRegion. .PP -A QBitmap is a QPixmap with a depth of 1. If a pixmap with a depth greater than 1 is assigned to a bitmap, the bitmap will be dithered automatically. A QBitmap is guaranteed to always have the depth 1, unless it is QPixmap::isNull() which has depth 0. +A TQBitmap is a QPixmap with a depth of 1. If a pixmap with a depth greater than 1 is assigned to a bitmap, the bitmap will be dithered automatically. A TQBitmap is guaranteed to always have the depth 1, unless it is QPixmap::isNull() which has depth 0. .PP -When drawing in a QBitmap (or QPixmap with depth 1), we recommend using the TQColor objects \fCQt::color0\fR and \fCQt::color1\fR. Painting with \fCcolor0\fR sets the bitmap bits to 0, and painting with \fCcolor1\fR sets the bits to 1. For a bitmap, 0-bits indicate background (or transparent) and 1-bits indicate foreground (or opaque). Using the \fCblack\fR and \fCwhite\fR TQColor objects make no sense because the TQColor::pixel() value is not necessarily 0 for black and 1 for white. +When drawing in a TQBitmap (or QPixmap with depth 1), we recommend using the TQColor objects \fCQt::color0\fR and \fCQt::color1\fR. Painting with \fCcolor0\fR sets the bitmap bits to 0, and painting with \fCcolor1\fR sets the bits to 1. For a bitmap, 0-bits indicate background (or transparent) and 1-bits indicate foreground (or opaque). Using the \fCblack\fR and \fCwhite\fR TQColor objects make no sense because the TQColor::pixel() value is not necessarily 0 for black and 1 for white. .PP -The QBitmap can be transformed (translated, scaled, sheared or rotated) using xForm(). +The TQBitmap can be transformed (translated, scaled, sheared or rotated) using xForm(). .PP -Just like the QPixmap class, QBitmap is optimized by the use of implicit sharing, so it is very efficient to pass QBitmap objects as arguments. +Just like the QPixmap class, TQBitmap is optimized by the use of implicit sharing, so it is very efficient to pass TQBitmap objects as arguments. .PP See also QPixmap, QPainter::drawPixmap(), bitBlt(), Shared Classes, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QBitmap::QBitmap ()" +.SH "TQBitmap::TQBitmap ()" Constructs a null bitmap. .PP See also QPixmap::isNull(). -.SH "QBitmap::QBitmap ( int w, int h, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.SH "TQBitmap::TQBitmap ( int w, int h, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" Constructs a bitmap with width \fIw\fR and height \fIh\fR. .PP The contents of the bitmap is uninitialized if \fIclear\fR is FALSE; otherwise it is filled with pixel value 0 (the TQColor \fCQt::color0\fR). @@ -76,7 +76,7 @@ The contents of the bitmap is uninitialized if \fIclear\fR is FALSE; otherwise i The optional \fIoptimization\fR argument specifies the optimization setting for the bitmap. The default optimization should be used in most cases. Games and other pixmap-intensive applications may benefit from setting this argument; see QPixmap::Optimization. .PP See also QPixmap::setOptimization() and QPixmap::setDefaultOptimization(). -.SH "QBitmap::QBitmap ( const TQSize & size, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" +.SH "TQBitmap::TQBitmap ( const TQSize & size, bool clear = FALSE, QPixmap::Optimization optimization = QPixmap::DefaultOptim )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Constructs a bitmap with the size \fIsize\fR. @@ -84,7 +84,7 @@ Constructs a bitmap with the size \fIsize\fR. The contents of the bitmap is uninitialized if \fIclear\fR is FALSE; otherwise it is filled with pixel value 0 (the TQColor \fCQt::color0\fR). .PP The optional \fIoptimization\fR argument specifies the optimization setting for the bitmap. The default optimization should be used in most cases. Games and other pixmap-intensive applications may benefit from setting this argument; see QPixmap::Optimization. -.SH "QBitmap::QBitmap ( int w, int h, const uchar * bits, bool isXbitmap = FALSE )" +.SH "TQBitmap::TQBitmap ( int w, int h, const uchar * bits, bool isXbitmap = FALSE )" Constructs a bitmap with width \fIw\fR and height \fIh\fR and sets the contents to \fIbits\fR. .PP The \fIisXbitmap\fR flag should be TRUE if \fIbits\fR was generated by the X11 bitmap program. The X bitmap bit order is little endian. The TQImage documentation discusses bit order of monochrome images. @@ -95,46 +95,46 @@ Example (creates an arrow bitmap): .br uchar arrow_bits[] = { 0x3f, 0x1f, 0x0f, 0x1f, 0x3b, 0x71, 0xe0, 0xc0 }; .br - QBitmap bm( 8, 8, arrow_bits, TRUE ); + TQBitmap bm( 8, 8, arrow_bits, TRUE ); .br .fi -.SH "QBitmap::QBitmap ( const TQSize & size, const uchar * bits, bool isXbitmap = FALSE )" +.SH "TQBitmap::TQBitmap ( const TQSize & size, const uchar * bits, bool isXbitmap = FALSE )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Constructs a bitmap with the size \fIsize\fR and sets the contents to \fIbits\fR. .PP The \fIisXbitmap\fR flag should be TRUE if \fIbits\fR was generated by the X11 bitmap program. The X bitmap bit order is little endian. The TQImage documentation discusses bit order of monochrome images. -.SH "QBitmap::QBitmap ( const QBitmap & bitmap )" +.SH "TQBitmap::TQBitmap ( const TQBitmap & bitmap )" Constructs a bitmap that is a copy of \fIbitmap\fR. -.SH "QBitmap::QBitmap ( const TQString & fileName, const char * format = 0 )" +.SH "TQBitmap::TQBitmap ( const TQString & fileName, const char * format = 0 )" Constructs a bitmap from the file \fIfileName\fR. If the file does not exist or is of an unknown format, the bitmap becomes a null bitmap. .PP The parameters \fIfileName\fR and \fIformat\fR are passed on to QPixmap::load(). Dithering will be performed if the file format uses more than 1 bit per pixel. .PP See also QPixmap::isNull(), QPixmap::load(), QPixmap::loadFromData(), QPixmap::save(), and QPixmap::imageFormat(). -.SH "QBitmap & QBitmap::operator= ( const QBitmap & bitmap )" +.SH "TQBitmap & TQBitmap::operator= ( const TQBitmap & bitmap )" Assigns the bitmap \fIbitmap\fR to this bitmap and returns a reference to this bitmap. -.SH "QBitmap & QBitmap::operator= ( const QPixmap & pixmap )" +.SH "TQBitmap & TQBitmap::operator= ( const QPixmap & pixmap )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Assigns the pixmap \fIpixmap\fR to this bitmap and returns a reference to this bitmap. .PP Dithering will be performed if the pixmap has a QPixmap::depth() greater than 1. -.SH "QBitmap & QBitmap::operator= ( const TQImage & image )" +.SH "TQBitmap & TQBitmap::operator= ( const TQImage & image )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Converts the image \fIimage\fR to a bitmap and assigns the result to this bitmap. Returns a reference to the bitmap. .PP Dithering will be performed if the image has a TQImage::depth() greater than 1. -.SH "QBitmap QBitmap::xForm ( const QWMatrix & matrix ) const" +.SH "TQBitmap TQBitmap::xForm ( const QWMatrix & matrix ) const" Returns a transformed copy of this bitmap by using \fImatrix\fR. .PP -This function does exactly the same as QPixmap::xForm(), except that it returns a QBitmap instead of a QPixmap. +This function does exactly the same as QPixmap::xForm(), except that it returns a TQBitmap instead of a QPixmap. .PP See also QPixmap::xForm(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqbitmap.html +.BR http://doc.trolltech.com/tqbitmap.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/tqbitval.3qt b/doc/man/man3/tqbitval.3qt index 1f6904509..48902fd3b 100644 --- a/doc/man/man3/tqbitval.3qt +++ b/doc/man/man3/tqbitval.3qt @@ -1,5 +1,5 @@ '\" t -.TH QBitVal 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQBitVal 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,47 +7,47 @@ .ad l .nh .SH NAME -QBitVal \- Internal class, used with QBitArray +TQBitVal \- Internal class, used with TQBitArray .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqbitarray.h>\fR +\fC#include <tqbitarray.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQBitVal\fR ( QBitArray * a, uint i )" +.BI "\fBTQBitVal\fR ( TQBitArray * a, uint i )" .br .ti -1c .BI "\fBoperator int\fR ()" .br .ti -1c -.BI "QBitVal & \fBoperator=\fR ( const QBitVal & v )" +.BI "TQBitVal & \fBoperator=\fR ( const TQBitVal & v )" .br .ti -1c -.BI "QBitVal & \fBoperator=\fR ( bool v )" +.BI "TQBitVal & \fBoperator=\fR ( bool v )" .br .in -1c .SH DESCRIPTION -The QBitVal class is an internal class, used with QBitArray. +The TQBitVal class is an internal class, used with TQBitArray. .PP -The QBitVal is required by the indexing [] operator on bit arrays. It is not for use in any other context. +The TQBitVal is required by the indexing [] operator on bit arrays. It is not for use in any other context. .PP See also Collection Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QBitVal::QBitVal ( QBitArray * a, uint i )" -Constructs a reference to element \fIi\fR in the QBitArray \fIa\fR. This is what QBitArray::operator[] constructs its return value with. -.SH "QBitVal::operator int ()" -Returns the value referenced by the QBitVal. -.SH "QBitVal & QBitVal::operator= ( const QBitVal & v )" -Sets the value referenced by the QBitVal to that referenced by QBitVal \fIv\fR. -.SH "QBitVal & QBitVal::operator= ( bool v )" +.SH "TQBitVal::TQBitVal ( TQBitArray * a, uint i )" +Constructs a reference to element \fIi\fR in the TQBitArray \fIa\fR. This is what TQBitArray::operator[] constructs its return value with. +.SH "TQBitVal::operator int ()" +Returns the value referenced by the TQBitVal. +.SH "TQBitVal & TQBitVal::operator= ( const TQBitVal & v )" +Sets the value referenced by the TQBitVal to that referenced by TQBitVal \fIv\fR. +.SH "TQBitVal & TQBitVal::operator= ( bool v )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Sets the value referenced by the QBitVal to \fIv\fR. +Sets the value referenced by the TQBitVal to \fIv\fR. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qbitval.html +.BR http://doc.trolltech.com/tqbitval.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/tqbuffer.3qt b/doc/man/man3/tqbuffer.3qt index 150ee6243..cd6451e71 100644 --- a/doc/man/man3/tqbuffer.3qt +++ b/doc/man/man3/tqbuffer.3qt @@ -7,7 +7,7 @@ .ad l .nh .SH NAME -QBuffer \- I/O device that operates on a QByteArray +QBuffer \- I/O device that operates on a TQByteArray .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP @@ -21,44 +21,44 @@ Inherits TQIODevice. .BI "\fBQBuffer\fR ()" .br .ti -1c -.BI "\fBQBuffer\fR ( QByteArray buf )" +.BI "\fBQBuffer\fR ( TQByteArray buf )" .br .ti -1c .BI "\fB~QBuffer\fR ()" .br .ti -1c -.BI "QByteArray \fBbuffer\fR () const" +.BI "TQByteArray \fBbuffer\fR () const" .br .ti -1c -.BI "bool \fBsetBuffer\fR ( QByteArray buf )" +.BI "bool \fBsetBuffer\fR ( TQByteArray buf )" .br .ti -1c .BI "virtual TQ_LONG \fBwriteBlock\fR ( const char * p, TQ_ULONG len )" .br .ti -1c -.BI "TQ_LONG \fBwriteBlock\fR ( const QByteArray & data )" +.BI "TQ_LONG \fBwriteBlock\fR ( const TQByteArray & data )" .br .in -1c .SH DESCRIPTION -The QBuffer class is an I/O device that operates on a QByteArray. +The QBuffer class is an I/O device that operates on a TQByteArray. .PP -QBuffer is used to read and write to a memory buffer. It is normally used with a TQTextStream or a QDataStream. QBuffer has an associated QByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written. +QBuffer is used to read and write to a memory buffer. It is normally used with a TQTextStream or a QDataStream. QBuffer has an associated TQByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written. .PP -The constructor \fCQBuffer(QByteArray)\fR creates a QBuffer using an existing byte array. The byte array can also be set with setBuffer(). Writing to the QBuffer will modify the original byte array because QByteArray is explicitly shared. +The constructor \fCQBuffer(TQByteArray)\fR creates a QBuffer using an existing byte array. The byte array can also be set with setBuffer(). Writing to the QBuffer will modify the original byte array because TQByteArray is explicitly shared. .PP Use open() to open the buffer before use and to set the mode (read-only, write-only, etc.). close() closes the buffer. The buffer must be closed before reopening or calling setBuffer(). .PP -A common way to use QBuffer is through QDataStream or TQTextStream, which have constructors that take a QBuffer parameter. For convenience, there are also QDataStream and TQTextStream constructors that take a QByteArray parameter. These constructors create and open an internal QBuffer. +A common way to use QBuffer is through QDataStream or TQTextStream, which have constructors that take a QBuffer parameter. For convenience, there are also QDataStream and TQTextStream constructors that take a TQByteArray parameter. These constructors create and open an internal QBuffer. .PP Note that TQTextStream can also operate on a TQString (a Unicode string); a QBuffer cannot. .PP You can also use QBuffer directly through the standard TQIODevice functions readBlock(), writeBlock() readLine(), at(), getch(), putch() and ungetch(). .PP -See also QFile, QDataStream, TQTextStream, QByteArray, Shared Classes, Collection Classes, and Input/Output and Networking. +See also QFile, QDataStream, TQTextStream, TQByteArray, Shared Classes, Collection Classes, and Input/Output and Networking. .SH MEMBER FUNCTION DOCUMENTATION .SH "QBuffer::QBuffer ()" Constructs an empty buffer. -.SH "QBuffer::QBuffer ( QByteArray buf )" +.SH "QBuffer::QBuffer ( TQByteArray buf )" Constructs a buffer that operates on \fIbuf\fR. .PP If you open the buffer in write mode (<a href="ntqfile.html#open">IO_WriteOnly</a> or IO_ReadWrite) and write something into the buffer, \fIbuf\fR will be modified. @@ -67,7 +67,7 @@ Example: .PP .nf .br - QCString str = "abc"; + TQCString str = "abc"; .br QBuffer b( str ); .br @@ -86,16 +86,16 @@ Example: See also setBuffer(). .SH "QBuffer::~QBuffer ()" Destroys the buffer. -.SH "QByteArray QBuffer::buffer () const" +.SH "TQByteArray QBuffer::buffer () const" Returns this buffer's byte array. .PP See also setBuffer(). -.SH "bool QBuffer::setBuffer ( QByteArray buf )" +.SH "bool QBuffer::setBuffer ( TQByteArray buf )" Replaces the buffer's contents with \fIbuf\fR and returns TRUE. .PP Does nothing (and returns FALSE) if isOpen() is TRUE. .PP -Note that if you open the buffer in write mode (<a href="ntqfile.html#open">IO_WriteOnly</a> or IO_ReadWrite) and write something into the buffer, \fIbuf\fR is also modified because QByteArray is an explicitly shared class. +Note that if you open the buffer in write mode (<a href="ntqfile.html#open">IO_WriteOnly</a> or IO_ReadWrite) and write something into the buffer, \fIbuf\fR is also modified because TQByteArray is an explicitly shared class. .PP See also buffer(), open(), and close(). .SH "TQ_LONG QBuffer::writeBlock ( const char * p, TQ_ULONG len )\fC [virtual]\fR" @@ -106,7 +106,7 @@ Returns -1 if an error occurred. See also readBlock(). .PP Reimplemented from TQIODevice. -.SH "TQ_LONG QBuffer::writeBlock ( const QByteArray & data )" +.SH "TQ_LONG QBuffer::writeBlock ( const TQByteArray & data )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This convenience function is the same as calling diff --git a/doc/man/man3/tqbutton.3qt b/doc/man/man3/tqbutton.3qt index bdf6d44cf..4899612ce 100644 --- a/doc/man/man3/tqbutton.3qt +++ b/doc/man/man3/tqbutton.3qt @@ -409,7 +409,7 @@ Get this property's value with isOn(). .SH "QPixmap pixmap" This property holds the pixmap shown on the button. .PP -If the pixmap is monochrome (i.e. it is a QBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. +If the pixmap is monochrome (i.e. it is a TQBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. .PP pixmap() returns 0 if no pixmap was set. .PP diff --git a/doc/man/man3/tqbytearray.3qt b/doc/man/man3/tqbytearray.3qt index 388ab1afb..28c0e6a53 100644 --- a/doc/man/man3/tqbytearray.3qt +++ b/doc/man/man3/tqbytearray.3qt @@ -1,5 +1,5 @@ '\" t -.TH QByteArray 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQByteArray 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,74 +7,74 @@ .ad l .nh .SH NAME -QByteArray \- Array of bytes +TQByteArray \- Array of bytes .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqcstring.h>\fR +\fC#include <tqcstring.h>\fR .PP -Inherits QMemArray<char>. +Inherits TQMemArray<char>. .PP -Inherited by QBitArray and QCString. +Inherited by TQBitArray and TQCString. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQByteArray\fR ()" +.BI "\fBTQByteArray\fR ()" .br .ti -1c -.BI "\fBQByteArray\fR ( int size )" +.BI "\fBTQByteArray\fR ( int size )" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QByteArray \fBqCompress\fR ( const QByteArray & data )" +.BI "TQByteArray \fBqCompress\fR ( const TQByteArray & data )" .br .ti -1c -.BI "QByteArray \fBqCompress\fR ( const uchar * data, int nbytes )" +.BI "TQByteArray \fBqCompress\fR ( const uchar * data, int nbytes )" .br .ti -1c -.BI "QByteArray \fBqUncompress\fR ( const QByteArray & data )" +.BI "TQByteArray \fBqUncompress\fR ( const TQByteArray & data )" .br .ti -1c -.BI "QByteArray \fBqUncompress\fR ( const uchar * data, int nbytes )" +.BI "TQByteArray \fBqUncompress\fR ( const uchar * data, int nbytes )" .br .in -1c .SH DESCRIPTION -The QByteArray class provides an array of bytes. +The TQByteArray class provides an array of bytes. .PP -The QByteArray class provides an explicitly shared array of bytes. It is useful for manipulating memory areas with custom data. QByteArray is implemented as a QMemArray<char>. See the QMemArray documentation for further information. +The TQByteArray class provides an explicitly shared array of bytes. It is useful for manipulating memory areas with custom data. TQByteArray is implemented as a TQMemArray<char>. See the TQMemArray documentation for further information. .PP See also Collection Classes and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QByteArray::QByteArray ()" -Constructs an empty QByteArray. -.SH "QByteArray::QByteArray ( int size )" -Constructs a QByteArray of size \fIsize\fR. +.SH "TQByteArray::TQByteArray ()" +Constructs an empty TQByteArray. +.SH "TQByteArray::TQByteArray ( int size )" +Constructs a TQByteArray of size \fIsize\fR. .SH RELATED FUNCTION DOCUMENTATION -.SH "QByteArray tqCompress ( const QByteArray & data )" +.SH "TQByteArray tqCompress ( const TQByteArray & data )" Compresses the array \fIdata\fR and returns the compressed byte array using zlib. .PP See also tqUncompress(). -.SH "QByteArray tqCompress ( const uchar * data, int nbytes )" +.SH "TQByteArray tqCompress ( const uchar * data, int nbytes )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Compresses the array \fIdata\fR which is \fInbytes\fR long and returns the compressed byte array. -.SH "QByteArray tqUncompress ( const QByteArray & data )" +.SH "TQByteArray tqUncompress ( const TQByteArray & data )" Uncompresses the array \fIdata\fR and returns the uncompressed byte array. .PP -Returns an empty QByteArray if the input data was corrupt. +Returns an empty TQByteArray if the input data was corrupt. .PP See also tqCompress(). -.SH "QByteArray tqUncompress ( const uchar * data, int nbytes )" +.SH "TQByteArray tqUncompress ( const uchar * data, int nbytes )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Uncompresses the array \fIdata\fR which is \fInbytes\fR long and returns the uncompressed byte array. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qbytearray.html +.BR http://doc.trolltech.com/tqbytearray.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/tqcache.3qt b/doc/man/man3/tqcache.3qt index a37868537..56b1f3a3b 100644 --- a/doc/man/man3/tqcache.3qt +++ b/doc/man/man3/tqcache.3qt @@ -1,5 +1,5 @@ '\" t -.TH QCache 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQCache 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 -QCache \- Template class that provides a cache based on TQString keys +TQCache \- Template class that provides a cache based on TQString keys .SH SYNOPSIS -\fC#include <ntqcache.h>\fR +\fC#include <tqcache.h>\fR .PP Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQCache\fR ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE )" +.BI "\fBTQCache\fR ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE )" .br .ti -1c -.BI "\fB~QCache\fR ()" +.BI "\fB~TQCache\fR ()" .br .ti -1c .BI "int \fBmaxCost\fR () const" @@ -71,11 +71,11 @@ Inherits TQPtrCollection. .br .in -1c .SH DESCRIPTION -The QCache class is a template class that provides a cache based on TQString keys. +The TQCache class is a template class that provides a cache based on TQString keys. .PP A cache is a least recently used (LRU) list of cache items. Each cache item has a key and a certain cost. The sum of item costs, totalCost(), never exceeds the maximum cache cost, maxCost(). If inserting a new item would cause the total cost to exceed the maximum cost, the least recently used items in the cache are removed. .PP -QCache is a template class. QCache<X> defines a cache that operates on pointers to X, or X*. +TQCache is a template class. TQCache<X> defines a cache that operates on pointers to X, or X*. .PP Apart from insert(), by far the most important function is find() (which also exists as operator[]()). This function looks up an item, returns it, and by default marks it as being the most recently used item. .PP @@ -85,13 +85,13 @@ When inserting an item into the cache, only the pointer is copied, not the item .PP 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. +There is a TQCacheIterator that can be used to traverse the items in the cache in arbitrary order. .PP -In QCache, the cache items are accessed via TQString keys, which are Unicode strings. If you want to use non-Unicode, plain 8-bit \fCchar*\fR keys, use the QAsciiCache template. A QCache has the same performance as a QAsciiCache. +In TQCache, the cache items are accessed via TQString keys, which are Unicode strings. If you want to use non-Unicode, plain 8-bit \fCchar*\fR keys, use the TQAsciiCache template. A TQCache has the same performance as a TQAsciiCache. .PP -See also QCacheIterator, QAsciiCache, QIntCache, Collection Classes, and Non-GUI Classes. +See also TQCacheIterator, TQAsciiCache, TQIntCache, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QCache::QCache ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE )" +.SH "TQCache::TQCache ( int maxCost = 100, int size = 17, bool caseSensitive = TRUE )" Constructs a cache whose contents will never have a total cost greater than \fImaxCost\fR and which is expected to contain less than \fIsize\fR items. .PP \fIsize\fR is actually the size of an internal hash array; it's usually best to make it a prime number and at least 50% bigger than the largest expected number of items in the cache. @@ -99,13 +99,13 @@ Constructs a cache whose contents will never have a total cost greater than \fIm Each inserted item has an associated cost. When inserting a new item, if the total cost of all items in the cache will exceed \fImaxCost\fR, the cache will start throwing out the older (least recently used) items until there is enough room for the new item to be inserted. .PP 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 ()" +.SH "TQCache::~TQCache ()" Removes all items from the cache and destroys it. All iterators that access this cache will be reset. .SH "bool TQPtrCollection::autoDelete () const" Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QCache::clear ()\fC [virtual]\fR" +.SH "void TQCache::clear ()\fC [virtual]\fR" Removes all items from the cache and deletes them if auto-deletion has been enabled. .PP All cache iterators that operate this on cache are reset. @@ -113,31 +113,31 @@ All cache iterators that operate this on cache are reset. See also remove() and take(). .PP Reimplemented from TQPtrCollection. -.SH "uint QCache::count () const\fC [virtual]\fR" +.SH "uint TQCache::count () const\fC [virtual]\fR" Returns the number of items in the cache. .PP See also totalCost(). .PP Reimplemented from TQPtrCollection. -.SH "type * QCache::find ( const TQString & k, bool ref = TRUE ) const" +.SH "type * TQCache::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 If there are two or more items with equal keys, the one that was inserted last is returned. -.SH "bool QCache::insert ( const TQString & k, const type * d, int c = 1, int p = 0 )" +.SH "bool TQCache::insert ( const TQString & k, const type * d, int c = 1, int p = 0 )" Inserts the item \fId\fR into the cache with key \fIk\fR and associated cost, \fIc\fR. Returns TRUE if it is successfully inserted; otherwise returns FALSE. .PP -The cache's size is limited, and if the total cost is too high, QCache will remove old, least recently used items until there is room for this new item. +The cache's size is limited, and if the total cost is too high, TQCache will remove old, least recently used items until there is room for this new item. .PP The parameter \fIp\fR is internal and should be left at the default value (0). .PP \fBWarning:\fR If this function returns FALSE (which could happen, e.g. if the cost of this item alone exceeds maxCost()) you must delete \fId\fR yourself. Additionally, be very careful about using \fId\fR after calling this function because any other insertions into the cache, from anywhere in the application or within TQt itself, could cause the object to be discarded from the cache and the pointer to become invalid. -.SH "bool QCache::isEmpty () const" +.SH "bool TQCache::isEmpty () const" Returns TRUE if the cache is empty; otherwise returns FALSE. -.SH "int QCache::maxCost () const" +.SH "int TQCache::maxCost () const" Returns the maximum allowed total cost of the cache. .PP See also setMaxCost() and totalCost(). -.SH "type * QCache::operator[] ( const TQString & k ) const" +.SH "type * TQCache::operator[] ( const TQString & k ) const" Returns the item associated with key \fIk\fR, or 0 if \fIk\fR does not exist in the cache, and moves the item to the front of the least recently used list. .PP If there are two or more items with equal keys, the one that was inserted last is returned. @@ -145,7 +145,7 @@ If there are two or more items with equal keys, the one that was inserted last i This is the same as find( k, TRUE ). .PP See also find(). -.SH "bool QCache::remove ( const TQString & k )" +.SH "bool TQCache::remove ( const TQString & k )" Removes the item associated with \fIk\fR, and returns TRUE if the item was present in the cache; otherwise returns FALSE. .PP The item is deleted if auto-deletion has been enabled, i.e., if you have called setAutoDelete(TRUE). @@ -168,15 +168,15 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "void QCache::setMaxCost ( int m )" +.SH "void TQCache::setMaxCost ( int m )" Sets the maximum allowed total cost of the cache to \fIm\fR. If the current total cost is greater than \fIm\fR, some items are deleted immediately. .PP See also maxCost() and totalCost(). -.SH "uint QCache::size () const" +.SH "uint TQCache::size () const" Returns the size of the hash array used to implement the cache. This should be a bit bigger than count() is likely to be. -.SH "void QCache::statistics () const" +.SH "void TQCache::statistics () const" A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using tqDebug(). This function does nothing in the release library. -.SH "type * QCache::take ( const TQString & k )" +.SH "type * TQCache::take ( const TQString & k )" Takes the item associated with \fIk\fR out of the cache without deleting it, and returns a pointer to the item taken out, or 0 if the key does not exist in the cache. .PP If there are two or more items with equal keys, the one that was inserted last is taken. @@ -184,13 +184,13 @@ If there are two or more items with equal keys, the one that was inserted last i All iterators that refer to the taken item are set to point to the next item in the cache's traversal order. .PP See also remove() and clear(). -.SH "int QCache::totalCost () const" +.SH "int TQCache::totalCost () const" Returns the total cost of the items in the cache. This is an integer in the range 0 to maxCost(). .PP See also setMaxCost(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqcache.html +.BR http://doc.trolltech.com/tqcache.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/tqcacheiterator.3qt b/doc/man/man3/tqcacheiterator.3qt index 852bb4794..e44911883 100644 --- a/doc/man/man3/tqcacheiterator.3qt +++ b/doc/man/man3/tqcacheiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QCacheIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQCacheIterator 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,20 +7,20 @@ .ad l .nh .SH NAME -QCacheIterator \- Iterator for QCache collections +TQCacheIterator \- Iterator for TQCache collections .SH SYNOPSIS -\fC#include <ntqcache.h>\fR +\fC#include <tqcache.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQCacheIterator\fR ( const QCache<type> & cache )" +.BI "\fBTQCacheIterator\fR ( const TQCache<type> & cache )" .br .ti -1c -.BI "\fBQCacheIterator\fR ( const QCacheIterator<type> & ci )" +.BI "\fBTQCacheIterator\fR ( const TQCacheIterator<type> & ci )" .br .ti -1c -.BI "QCacheIterator<type> & \fBoperator=\fR ( const QCacheIterator<type> & ci )" +.BI "TQCacheIterator<type> & \fBoperator=\fR ( const TQCacheIterator<type> & ci )" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -66,65 +66,65 @@ QCacheIterator \- Iterator for QCache collections .br .in -1c .SH DESCRIPTION -The QCacheIterator class provides an iterator for QCache collections. +The TQCacheIterator class provides an iterator for TQCache collections. .PP Note that the traversal order is arbitrary; you are not guaranteed any particular order. If new objects are inserted into the cache while the iterator is active, the iterator may or may not see them. .PP -Multiple iterators are completely independent, even when they operate on the same QCache. QCache updates all iterators that refer an item when that item is removed. +Multiple iterators are completely independent, even when they operate on the same TQCache. TQCache updates all iterators that refer an item when that item is removed. .PP -QCacheIterator provides an operator++(), and an operator+=() to traverse the cache. The current() and currentKey() functions are used to access the current cache item and its key. The atFirst() and atLast() return TRUE if the iterator points to the first or last item in the cache respectively. The isEmpty() function returns TRUE if the cache is empty, and count() returns the number of items in the cache. +TQCacheIterator provides an operator++(), and an operator+=() to traverse the cache. The current() and currentKey() functions are used to access the current cache item and its key. The atFirst() and atLast() return TRUE if the iterator points to the first or last item in the cache respectively. The isEmpty() function returns TRUE if the cache is empty, and count() returns the number of items in the cache. .PP Note that atFirst() and atLast() refer to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP -See also QCache, Collection Classes, and Non-GUI Classes. +See also TQCache, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QCacheIterator::QCacheIterator ( const QCache<type> & cache )" +.SH "TQCacheIterator::TQCacheIterator ( const TQCache<type> & cache )" Constructs an iterator for \fIcache\fR. The current iterator item is set to point to the first item in the \fIcache\fR. -.SH "QCacheIterator::QCacheIterator ( const QCacheIterator<type> & ci )" +.SH "TQCacheIterator::TQCacheIterator ( const TQCacheIterator<type> & ci )" Constructs an iterator for the same cache as \fIci\fR. The new iterator starts at the same item as ci.current(), but moves independently from there on. -.SH "bool QCacheIterator::atFirst () const" +.SH "bool TQCacheIterator::atFirst () const" Returns TRUE if the iterator points to the first item in the cache; otherwise returns FALSE. Note that this refers to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP See also toFirst() and atLast(). -.SH "bool QCacheIterator::atLast () const" +.SH "bool TQCacheIterator::atLast () const" Returns TRUE if the iterator points to the last item in the cache; otherwise returns FALSE. Note that this refers to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP See also toLast() and atFirst(). -.SH "uint QCacheIterator::count () const" +.SH "uint TQCacheIterator::count () const" Returns the number of items in the cache on which this iterator operates. .PP See also isEmpty(). -.SH "type * QCacheIterator::current () const" +.SH "type * TQCacheIterator::current () const" Returns a pointer to the current iterator item. -.SH "TQString QCacheIterator::currentKey () const" +.SH "TQString TQCacheIterator::currentKey () const" Returns the key for the current iterator item. -.SH "bool QCacheIterator::isEmpty () const" +.SH "bool TQCacheIterator::isEmpty () const" Returns TRUE if the cache is empty, i.e. count() == 0; otherwise it returns FALSE. .PP See also count(). -.SH "QCacheIterator::operator type * () const" +.SH "TQCacheIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QCacheIterator::operator() ()" +.SH "type * TQCacheIterator::operator() ()" Makes the succeeding item current and returns the original current item. .PP If the current iterator item was the last item in the cache or if it was 0, 0 is returned. -.SH "type * QCacheIterator::operator++ ()" +.SH "type * TQCacheIterator::operator++ ()" Prefix++ makes the iterator point to the item just after current() and makes that the new current item for the iterator. If current() was the last item, operator++() returns 0. -.SH "type * QCacheIterator::operator+= ( uint jump )" +.SH "type * TQCacheIterator::operator+= ( uint jump )" Returns the item \fIjump\fR positions after the current item, or 0 if it is beyond the last item. Makes this the current item. -.SH "type * QCacheIterator::operator-- ()" +.SH "type * TQCacheIterator::operator-- ()" Prefix-- makes the iterator point to the item just before current() and makes that the new current item for the iterator. If current() was the first item, operator--() returns 0. -.SH "type * QCacheIterator::operator-= ( uint jump )" +.SH "type * TQCacheIterator::operator-= ( uint jump )" Returns the item \fIjump\fR positions before the current item, or 0 if it is before the first item. Makes this the current item. -.SH "QCacheIterator<type> & QCacheIterator::operator= ( const QCacheIterator<type> & ci )" +.SH "TQCacheIterator<type> & TQCacheIterator::operator= ( const TQCacheIterator<type> & ci )" Makes this an iterator for the same cache as \fIci\fR. The new iterator starts at the same item as ci.current(), but moves independently thereafter. -.SH "type * QCacheIterator::toFirst ()" +.SH "type * TQCacheIterator::toFirst ()" Sets the iterator to point to the first item in the cache and returns a pointer to the item. .PP Sets the iterator to 0 and returns 0 if the cache is empty. .PP See also toLast() and isEmpty(). -.SH "type * QCacheIterator::toLast ()" +.SH "type * TQCacheIterator::toLast ()" Sets the iterator to point to the last item in the cache and returns a pointer to the item. .PP Sets the iterator to 0 and returns 0 if the cache is empty. @@ -132,7 +132,7 @@ Sets the iterator to 0 and returns 0 if the cache is empty. See also toFirst() and isEmpty(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qcacheiterator.html +.BR http://doc.trolltech.com/tqcacheiterator.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/tqcheckbox.3qt b/doc/man/man3/tqcheckbox.3qt index 96d680715..73fdd767c 100644 --- a/doc/man/man3/tqcheckbox.3qt +++ b/doc/man/man3/tqcheckbox.3qt @@ -262,7 +262,7 @@ Set this property's value with setChecked() and get this property's value with i .SH "QPixmap pixmap" This property holds the pixmap shown on the button. .PP -If the pixmap is monochrome (i.e. it is a QBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. +If the pixmap is monochrome (i.e. it is a TQBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. .PP pixmap() returns 0 if no pixmap was set. .PP diff --git a/doc/man/man3/tqclipboard.3qt b/doc/man/man3/tqclipboard.3qt index 62bcbaed1..fba1aacf7 100644 --- a/doc/man/man3/tqclipboard.3qt +++ b/doc/man/man3/tqclipboard.3qt @@ -43,7 +43,7 @@ Inherits TQObject. .BI "TQString \fBtext\fR ( Mode mode ) const" .br .ti -1c -.BI "TQString \fBtext\fR ( QCString & subtype, Mode mode ) const" +.BI "TQString \fBtext\fR ( TQCString & subtype, Mode mode ) const" .br .ti -1c .BI "void \fBsetText\fR ( const TQString & text, Mode mode )" @@ -70,7 +70,7 @@ Inherits TQObject. .BI "TQString \fBtext\fR () const" .br .ti -1c -.BI "TQString \fBtext\fR ( QCString & subtype ) const" +.BI "TQString \fBtext\fR ( TQCString & subtype ) const" .br .ti -1c .BI "void \fBsetText\fR ( const TQString & text )" @@ -306,7 +306,7 @@ Returns the clipboard text as plain text, or a null string if the clipboard does The \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the text is retrieved from the global clipboard. If \fImode\fR is QClipboard::Selection, the text is retrieved from the global mouse selection. .PP See also setText(), data(), and TQString::operator!(). -.SH "TQString QClipboard::text ( QCString & subtype, Mode mode ) const" +.SH "TQString QClipboard::text ( TQCString & subtype, Mode mode ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the clipboard text in subtype \fIsubtype\fR, or a null string if the clipboard does not contain any text. If \fIsubtype\fR is null, any subtype is acceptable, and \fIsubtype\fR is set to the chosen subtype. @@ -320,7 +320,7 @@ See also setText(), data(), and TQString::operator!(). This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function uses the QClipboard::text() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard. -.SH "TQString QClipboard::text ( QCString & subtype ) const" +.SH "TQString QClipboard::text ( TQCString & subtype ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the clipboard text in subtype \fIsubtype\fR, or a null string diff --git a/doc/man/man3/tqcstring.3qt b/doc/man/man3/tqcstring.3qt index 151345889..0ba70bce6 100644 --- a/doc/man/man3/tqcstring.3qt +++ b/doc/man/man3/tqcstring.3qt @@ -1,5 +1,5 @@ '\" t -.TH QCString 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQCString 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,36 +7,36 @@ .ad l .nh .SH NAME -QCString \- Abstraction of the classic C zero-terminated char array (char *) +TQCString \- Abstraction of the classic C zero-terminated char array (char *) .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqcstring.h>\fR +\fC#include <tqcstring.h>\fR .PP -Inherits QByteArray. +Inherits TQByteArray. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQCString\fR ()" +.BI "\fBTQCString\fR ()" .br .ti -1c -.BI "\fBQCString\fR ( int size )" +.BI "\fBTQCString\fR ( int size )" .br .ti -1c -.BI "\fBQCString\fR ( const QCString & s )" +.BI "\fBTQCString\fR ( const TQCString & s )" .br .ti -1c -.BI "\fBQCString\fR ( const char * str )" +.BI "\fBTQCString\fR ( const char * str )" .br .ti -1c -.BI "\fBQCString\fR ( const char * str, uint maxsize )" +.BI "\fBTQCString\fR ( const char * str, uint maxsize )" .br .ti -1c -.BI "QCString & \fBoperator=\fR ( const QCString & s )" +.BI "TQCString & \fBoperator=\fR ( const TQCString & s )" .br .ti -1c -.BI "QCString & \fBoperator=\fR ( const char * str )" +.BI "TQCString & \fBoperator=\fR ( const char * str )" .br .ti -1c .BI "bool \fBisNull\fR () const" @@ -57,10 +57,10 @@ Inherits QByteArray. .BI "bool \fBfill\fR ( char c, int len = -1 )" .br .ti -1c -.BI "QCString \fBcopy\fR () const" +.BI "TQCString \fBcopy\fR () const" .br .ti -1c -.BI "QCString & \fBsprintf\fR ( const char * format, ... )" +.BI "TQCString & \fBsprintf\fR ( const char * format, ... )" .br .ti -1c .BI "int \fBfind\fR ( char c, int index = 0, bool cs = TRUE ) const" @@ -69,7 +69,7 @@ Inherits QByteArray. .BI "int \fBfind\fR ( const char * str, int index = 0, bool cs = TRUE ) const" .br .ti -1c -.BI "int \fBfind\fR ( const QRegExp & rx, int index = 0 ) const" +.BI "int \fBfind\fR ( const TQRegExp & rx, int index = 0 ) const" .br .ti -1c .BI "int \fBfindRev\fR ( char c, int index = -1, bool cs = TRUE ) const" @@ -78,7 +78,7 @@ Inherits QByteArray. .BI "int \fBfindRev\fR ( const char * str, int index = -1, bool cs = TRUE ) const" .br .ti -1c -.BI "int \fBfindRev\fR ( const QRegExp & rx, int index = -1 ) const" +.BI "int \fBfindRev\fR ( const TQRegExp & rx, int index = -1 ) const" .br .ti -1c .BI "int \fBcontains\fR ( char c, bool cs = TRUE ) const" @@ -87,64 +87,64 @@ Inherits QByteArray. .BI "int \fBcontains\fR ( const char * str, bool cs = TRUE ) const" .br .ti -1c -.BI "int \fBcontains\fR ( const QRegExp & rx ) const" +.BI "int \fBcontains\fR ( const TQRegExp & rx ) const" .br .ti -1c -.BI "QCString \fBleft\fR ( uint len ) const" +.BI "TQCString \fBleft\fR ( uint len ) const" .br .ti -1c -.BI "QCString \fBright\fR ( uint len ) const" +.BI "TQCString \fBright\fR ( uint len ) const" .br .ti -1c -.BI "QCString \fBmid\fR ( uint index, uint len = 0xffffffff ) const" +.BI "TQCString \fBmid\fR ( uint index, uint len = 0xffffffff ) const" .br .ti -1c -.BI "QCString \fBleftJustify\fR ( uint width, char fill = ' ', bool truncate = FALSE ) const" +.BI "TQCString \fBleftJustify\fR ( uint width, char fill = ' ', bool truncate = FALSE ) const" .br .ti -1c -.BI "QCString \fBrightJustify\fR ( uint width, char fill = ' ', bool truncate = FALSE ) const" +.BI "TQCString \fBrightJustify\fR ( uint width, char fill = ' ', bool truncate = FALSE ) const" .br .ti -1c -.BI "QCString \fBlower\fR () const" +.BI "TQCString \fBlower\fR () const" .br .ti -1c -.BI "QCString \fBupper\fR () const" +.BI "TQCString \fBupper\fR () const" .br .ti -1c -.BI "QCString \fBstripWhiteSpace\fR () const" +.BI "TQCString \fBstripWhiteSpace\fR () const" .br .ti -1c -.BI "QCString \fBsimplifyWhiteSpace\fR () const" +.BI "TQCString \fBsimplifyWhiteSpace\fR () const" .br .ti -1c -.BI "QCString & \fBinsert\fR ( uint index, const char * s )" +.BI "TQCString & \fBinsert\fR ( uint index, const char * s )" .br .ti -1c -.BI "QCString & \fBinsert\fR ( uint index, char c )" +.BI "TQCString & \fBinsert\fR ( uint index, char c )" .br .ti -1c -.BI "QCString & \fBappend\fR ( const char * str )" +.BI "TQCString & \fBappend\fR ( const char * str )" .br .ti -1c -.BI "QCString & \fBprepend\fR ( const char * s )" +.BI "TQCString & \fBprepend\fR ( const char * s )" .br .ti -1c -.BI "QCString & \fBremove\fR ( uint index, uint len )" +.BI "TQCString & \fBremove\fR ( uint index, uint len )" .br .ti -1c -.BI "QCString & \fBreplace\fR ( uint index, uint len, const char * str )" +.BI "TQCString & \fBreplace\fR ( uint index, uint len, const char * str )" .br .ti -1c -.BI "QCString & \fBreplace\fR ( const QRegExp & rx, const char * str )" +.BI "TQCString & \fBreplace\fR ( const TQRegExp & rx, const char * str )" .br .ti -1c -.BI "QCString & \fBreplace\fR ( char c, const char * after )" +.BI "TQCString & \fBreplace\fR ( char c, const char * after )" .br .ti -1c -.BI "QCString & \fBreplace\fR ( const char * before, const char * after )" +.BI "TQCString & \fBreplace\fR ( const char * before, const char * after )" .br .ti -1c -.BI "QCString & \fBreplace\fR ( char c1, char c2 )" +.BI "TQCString & \fBreplace\fR ( char c1, char c2 )" .br .ti -1c .BI "short \fBtoShort\fR ( bool * ok = 0 ) const" @@ -171,31 +171,31 @@ Inherits QByteArray. .BI "double \fBtoDouble\fR ( bool * ok = 0 ) const" .br .ti -1c -.BI "QCString & \fBsetStr\fR ( const char * str )" +.BI "TQCString & \fBsetStr\fR ( const char * str )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( short n )" +.BI "TQCString & \fBsetNum\fR ( short n )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( ushort n )" +.BI "TQCString & \fBsetNum\fR ( ushort n )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( int n )" +.BI "TQCString & \fBsetNum\fR ( int n )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( uint n )" +.BI "TQCString & \fBsetNum\fR ( uint n )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( long n )" +.BI "TQCString & \fBsetNum\fR ( long n )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( ulong n )" +.BI "TQCString & \fBsetNum\fR ( ulong n )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( float n, char f = 'g', int prec = 6 )" +.BI "TQCString & \fBsetNum\fR ( float n, char f = 'g', int prec = 6 )" .br .ti -1c -.BI "QCString & \fBsetNum\fR ( double n, char f = 'g', int prec = 6 )" +.BI "TQCString & \fBsetNum\fR ( double n, char f = 'g', int prec = 6 )" .br .ti -1c .BI "bool \fBsetExpand\fR ( uint index, char c )" @@ -204,10 +204,10 @@ Inherits QByteArray. .BI "\fBoperator const char *\fR () const" .br .ti -1c -.BI "QCString & \fBoperator+=\fR ( const char * str )" +.BI "TQCString & \fBoperator+=\fR ( const char * str )" .br .ti -1c -.BI "QCString & \fBoperator+=\fR ( char c )" +.BI "TQCString & \fBoperator+=\fR ( char c )" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION @@ -240,79 +240,79 @@ Inherits QByteArray. .BI "int \fBqstrnicmp\fR ( const char * str1, const char * str2, uint len )" .br .ti -1c -.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const QCString & str )" +.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const TQCString & str )" .br .ti -1c -.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, QCString & str )" +.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, TQCString & str )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QCString & s1, const QCString & s2 )" +.BI "bool \fBoperator==\fR ( const TQCString & s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QCString & s1, const char * s2 )" +.BI "bool \fBoperator==\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const char * s1, const QCString & s2 )" +.BI "bool \fBoperator==\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QCString & s1, const QCString & s2 )" +.BI "bool \fBoperator!=\fR ( const TQCString & s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QCString & s1, const char * s2 )" +.BI "bool \fBoperator!=\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const char * s1, const QCString & s2 )" +.BI "bool \fBoperator!=\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator<\fR ( const QCString & s1, const char * s2 )" +.BI "bool \fBoperator<\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "bool \fBoperator<\fR ( const char * s1, const QCString & s2 )" +.BI "bool \fBoperator<\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator<=\fR ( const QCString & s1, const char * s2 )" +.BI "bool \fBoperator<=\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "bool \fBoperator<=\fR ( const char * s1, const QCString & s2 )" +.BI "bool \fBoperator<=\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator>\fR ( const QCString & s1, const char * s2 )" +.BI "bool \fBoperator>\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "bool \fBoperator>\fR ( const char * s1, const QCString & s2 )" +.BI "bool \fBoperator>\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "bool \fBoperator>=\fR ( const QCString & s1, const char * s2 )" +.BI "bool \fBoperator>=\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "bool \fBoperator>=\fR ( const char * s1, const QCString & s2 )" +.BI "bool \fBoperator>=\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "const QCString \fBoperator+\fR ( const QCString & s1, const QCString & s2 )" +.BI "const TQCString \fBoperator+\fR ( const TQCString & s1, const TQCString & s2 )" .br .ti -1c -.BI "const QCString \fBoperator+\fR ( const QCString & s1, const char * s2 )" +.BI "const TQCString \fBoperator+\fR ( const TQCString & s1, const char * s2 )" .br .ti -1c -.BI "const QCString \fBoperator+\fR ( const char * s1, const QCString & s2 )" +.BI "const TQCString \fBoperator+\fR ( const char * s1, const TQCString & s2 )" .br .ti -1c -.BI "const QCString \fBoperator+\fR ( const QCString & s, char c )" +.BI "const TQCString \fBoperator+\fR ( const TQCString & s, char c )" .br .ti -1c -.BI "const QCString \fBoperator+\fR ( char c, const QCString & s )" +.BI "const TQCString \fBoperator+\fR ( char c, const TQCString & s )" .br .in -1c .SH DESCRIPTION -The QCString class provides an abstraction of the classic C zero-terminated char array (char *). +The TQCString class provides an abstraction of the classic C zero-terminated char array (char *). .PP -QCString inherits QByteArray, which is defined as QMemArray<char>. Since QCString is a QMemArray, it uses explicit sharing with a reference count. +TQCString inherits TQByteArray, which is defined as TQMemArray<char>. Since TQCString is a TQMemArray, it uses explicit sharing with a reference count. .PP -QCString tries to behave like a more convenient \fCconst char *\fR. The price of doing this is that some algorithms will perform badly. For example, append() is O(length()) since it scans for a null terminator. Although you might use QCString for text that is never exposed to the user, for most purposes, and especially for user-visible text, you should use TQString. TQString provides implicit sharing, Unicode and other internationalization support, and is well optimized. +TQCString tries to behave like a more convenient \fCconst char *\fR. The price of doing this is that some algorithms will perform badly. For example, append() is O(length()) since it scans for a null terminator. Although you might use TQCString for text that is never exposed to the user, for most purposes, and especially for user-visible text, you should use TQString. TQString provides implicit sharing, Unicode and other internationalization support, and is well optimized. .PP -Note that for the QCString methods that take a \fCconst char *\fR parameter the \fCconst char *\fR must either be 0 (null) or not-null and '\0' (NUL byte) terminated; otherwise the results are undefined. +Note that for the TQCString methods that take a \fCconst char *\fR parameter the \fCconst char *\fR must either be 0 (null) or not-null and '\0' (NUL byte) terminated; otherwise the results are undefined. .PP -A QCString that has not been assigned to anything is \fInull\fR, i.e. both the length and the data pointer is 0. A QCString that references the empty string ("", a single '\0' char) is \fIempty\fR. Both null and empty QCStrings are legal parameters to the methods. Assigning \fCconst char *\fR 0 to QCString produces a null QCString. +A TQCString that has not been assigned to anything is \fInull\fR, i.e. both the length and the data pointer is 0. A TQCString that references the empty string ("", a single '\0' char) is \fIempty\fR. Both null and empty TQCStrings are legal parameters to the methods. Assigning \fCconst char *\fR 0 to TQCString produces a null TQCString. .PP The length() function returns the length of the string; resize() resizes the string and truncate() truncates the string. A string can be filled with a character using fill(). Strings can be left or right padded with characters using leftJustify() and rightJustify(). Characters, strings and regular expressions can be searched for using find() and findRev(), and counted using contains(). .PP @@ -322,61 +322,61 @@ Portions of a string can be extracted using left(), right() and mid(). Whitespac .PP Strings that contain numbers can be converted to numbers with toShort(), toInt(), toLong(), toULong(), toFloat() and toDouble(). Numbers can be converted to strings with setNum(). .PP -Many operators are overloaded to work with QCStrings. QCString also supports some more obscure functions, e.g. sprintf(), setStr() and setExpand(). +Many operators are overloaded to work with TQCStrings. TQCString also supports some more obscure functions, e.g. sprintf(), setStr() and setExpand(). .PP <blockquote><p align="center">\fB Note on Character Comparisons \fR .PP -In QCString the notion of uppercase and lowercase and of which character is greater than or less than another character is locale dependent. This affects functions which support a case insensitive option or which compare or lowercase or uppercase their arguments. Case insensitive operations and comparisons will be accurate if both strings contain only ASCII characters. (If \fC$LC_CTYPE\fR is set, most Unix systems do "the right thing".) Functions that this affects include contains(), find(), findRev(), operator<(), operator<=(), operator>(), operator>=(), lower() and upper(). +In TQCString the notion of uppercase and lowercase and of which character is greater than or less than another character is locale dependent. This affects functions which support a case insensitive option or which compare or lowercase or uppercase their arguments. Case insensitive operations and comparisons will be accurate if both strings contain only ASCII characters. (If \fC$LC_CTYPE\fR is set, most Unix systems do "the right thing".) Functions that this affects include contains(), find(), findRev(), operator<(), operator<=(), operator>(), operator>=(), lower() and upper(). .PP This issue does not apply to TQStrings since they represent characters using Unicode. </blockquote> .PP -Performance note: The QCString methods for QRegExp searching are implemented by converting the QCString to a TQString and performing the search on that. This implies a deep copy of the QCString data. If you are going to perform many QRegExp searches on a large QCString, you will get better performance by converting the QCString to a TQString yourself, and then searching in the TQString. +Performance note: The TQCString methods for TQRegExp searching are implemented by converting the TQCString to a TQString and performing the search on that. This implies a deep copy of the TQCString data. If you are going to perform many TQRegExp searches on a large TQCString, you will get better performance by converting the TQCString to a TQString yourself, and then searching in the TQString. .PP See also Collection Classes, Implicitly and Explicitly Shared Classes, Text Related Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QCString::QCString ()" +.SH "TQCString::TQCString ()" Constructs a null string. .PP See also isNull(). -.SH "QCString::QCString ( int size )" +.SH "TQCString::TQCString ( int size )" Constructs a string with room for \fIsize\fR characters, including the '\0'-terminator. Makes a null string if \fIsize\fR == 0. .PP If \fIsize\fR > 0, then the first and last characters in the string are initialized to '\0'. All other characters are uninitialized. .PP See also resize() and isNull(). -.SH "QCString::QCString ( const QCString & s )" +.SH "TQCString::TQCString ( const TQCString & s )" Constructs a shallow copy \fIs\fR. .PP See also assign(). -.SH "QCString::QCString ( const char * str )" +.SH "TQCString::TQCString ( const char * str )" Constructs a string that is a deep copy of \fIstr\fR. .PP If \fIstr\fR is 0 a null string is created. .PP See also isNull(). -.SH "QCString::QCString ( const char * str, uint maxsize )" +.SH "TQCString::TQCString ( const char * str, uint maxsize )" Constructs a string that is a deep copy of \fIstr\fR. The copy will be at most \fImaxsize\fR bytes long including the '\0'-terminator. .PP Example: .PP .nf .br - QCString str( "helloworld", 6 ); // assigns "hello" to str + TQCString str( "helloworld", 6 ); // assigns "hello" to str .br .fi .PP -If \fIstr\fR contains a 0 byte within the first \fImaxsize\fR bytes, the resulting QCString will be terminated by this 0. If \fIstr\fR is 0 a null string is created. +If \fIstr\fR contains a 0 byte within the first \fImaxsize\fR bytes, the resulting TQCString will be terminated by this 0. If \fIstr\fR is 0 a null string is created. .PP See also isNull(). -.SH "QCString & QCString::append ( const char * str )" +.SH "TQCString & TQCString::append ( const char * str )" Appends string \fIstr\fR to the string and returns a reference to the string. Equivalent to operator+=(). -.SH "int QCString::contains ( char c, bool cs = TRUE ) const" +.SH "int TQCString::contains ( char c, bool cs = TRUE ) const" Returns the number of times the character \fIc\fR occurs in the string. .PP The match is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\fR if FALSE. .PP See also Note on character comparisons. -.SH "int QCString::contains ( const char * str, bool cs = TRUE ) const" +.SH "int TQCString::contains ( const char * str, bool cs = TRUE ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the number of times \fIstr\fR occurs in the string. @@ -386,7 +386,7 @@ The match is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\fR This function counts overlapping substrings, for example, "banana" contains two occurrences of "ana". .PP See also findRev() and Note on character comparisons. -.SH "int QCString::contains ( const QRegExp & rx ) const" +.SH "int TQCString::contains ( const TQRegExp & rx ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Counts the number of overlapping occurrences of \fIrx\fR in the string. @@ -397,7 +397,7 @@ Example: .br TQString s = "banana and panama"; .br - QRegExp r = QRegExp( "a[nm]a", TRUE, FALSE ); + TQRegExp r = TQRegExp( "a[nm]a", TRUE, FALSE ); .br s.contains( r ); // 4 matches .br @@ -406,17 +406,17 @@ Example: See also find() and findRev(). .PP \fBWarning:\fR If you want to apply this function repeatedly to the same string it is more efficient to convert the string to a TQString and apply the function to that. -.SH "QCString QCString::copy () const" +.SH "TQCString TQCString::copy () const" Returns a deep copy of this string. .PP See also detach(). -.SH "bool QCString::fill ( char c, int len = -1 )" +.SH "bool TQCString::fill ( char c, int len = -1 )" Fills the string with \fIlen\fR bytes of character \fIc\fR, followed by a '\0'-terminator. .PP If \fIlen\fR is negative, then the current string length is used. .PP Returns FALSE is \fIlen\fR is nonnegative and there is not enough memory to resize the string; otherwise returns TRUE. -.SH "int QCString::find ( char c, int index = 0, bool cs = TRUE ) const" +.SH "int TQCString::find ( char c, int index = 0, bool cs = TRUE ) const" Finds the first occurrence of the character \fIc\fR, starting at position \fIindex\fR. .PP The search is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\fR is FALSE. @@ -426,7 +426,7 @@ Returns the position of \fIc\fR, or -1 if \fIc\fR could not be found. See also Note on character comparisons. .PP Example: network/networkprotocol/nntp.cpp. -.SH "int QCString::find ( const char * str, int index = 0, bool cs = TRUE ) const" +.SH "int TQCString::find ( const char * str, int index = 0, bool cs = TRUE ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Finds the first occurrence of the string \fIstr\fR, starting at position \fIindex\fR. @@ -436,7 +436,7 @@ The search is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\f Returns the position of \fIstr\fR, or -1 if \fIstr\fR could not be found. .PP See also Note on character comparisons. -.SH "int QCString::find ( const QRegExp & rx, int index = 0 ) const" +.SH "int TQCString::find ( const TQRegExp & rx, int index = 0 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Finds the first occurrence of the regular expression \fIrx\fR, starting at position \fIindex\fR. @@ -444,7 +444,7 @@ Finds the first occurrence of the regular expression \fIrx\fR, starting at posit Returns the position of the next match, or -1 if \fIrx\fR was not found. .PP \fBWarning:\fR If you want to apply this function repeatedly to the same string it is more efficient to convert the string to a TQString and apply the function to that. -.SH "int QCString::findRev ( char c, int index = -1, bool cs = TRUE ) const" +.SH "int TQCString::findRev ( char c, int index = -1, bool cs = TRUE ) const" Finds the first occurrence of the character \fIc\fR, starting at position \fIindex\fR and searching backwards. .PP The search is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\fR is FALSE. @@ -452,7 +452,7 @@ The search is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\f Returns the position of \fIc\fR, or -1 if \fIc\fR could not be found. .PP See also Note on character comparisons. -.SH "int QCString::findRev ( const char * str, int index = -1, bool cs = TRUE ) const" +.SH "int TQCString::findRev ( const char * str, int index = -1, bool cs = TRUE ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Finds the first occurrence of the string \fIstr\fR, starting at position \fIindex\fR and searching backwards. @@ -462,7 +462,7 @@ The search is case sensitive if \fIcs\fR is TRUE, or case insensitive if \fIcs\f Returns the position of \fIstr\fR, or -1 if \fIstr\fR could not be found. .PP See also Note on character comparisons. -.SH "int QCString::findRev ( const QRegExp & rx, int index = -1 ) const" +.SH "int TQCString::findRev ( const TQRegExp & rx, int index = -1 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Finds the first occurrence of the regular expression \fIrx\fR, starting at position \fIindex\fR and searching backwards. @@ -470,7 +470,7 @@ Finds the first occurrence of the regular expression \fIrx\fR, starting at posit Returns the position of the next match (backwards), or -1 if \fIrx\fR was not found. .PP \fBWarning:\fR If you want to apply this function repeatedly to the same string it is more efficient to convert the string to a TQString and apply the function to that. -.SH "QCString & QCString::insert ( uint index, char c )" +.SH "TQCString & TQCString::insert ( uint index, char c )" Inserts character \fIc\fR into the string at position \fIindex\fR and returns a reference to the string. .PP If \fIindex\fR is beyond the end of the string, the string is padded with spaces (ASCII 32) to length \fIindex\fR and then \fIc\fR is appended. @@ -479,14 +479,14 @@ Example: .PP .nf .br - QCString s = "Yes"; + TQCString s = "Yes"; .br s.insert( 3, '!'); // s == "Yes!" .br .fi .PP See also remove() and replace(). -.SH "QCString & QCString::insert ( uint index, const char * s )" +.SH "TQCString & TQCString::insert ( uint index, const char * s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts string \fIs\fR into the string at position \fIindex\fR. @@ -495,7 +495,7 @@ If \fIindex\fR is beyond the end of the string, the string is padded with spaces .PP .nf .br - QCString s = "I like fish"; + TQCString s = "I like fish"; .br s.insert( 2, "don't "); // s == "I don't like fish" .br @@ -505,22 +505,22 @@ If \fIindex\fR is beyond the end of the string, the string is padded with spaces s.insert( 3, "yz" ); // s == "x yz" .br .fi -.SH "bool QCString::isEmpty () const" +.SH "bool TQCString::isEmpty () const" Returns TRUE if the string is empty, i.e. if length() == 0; otherwise returns FALSE. An empty string is not always a null string. .PP See example in isNull(). .PP See also isNull(), length(), and size(). -.SH "bool QCString::isNull () const" +.SH "bool TQCString::isNull () const" Returns TRUE if the string is null, i.e. if data() == 0; otherwise returns FALSE. A null string is also an empty string. .PP Example: .PP .nf .br - QCString a; // a.data() == 0, a.size() == 0, a.length() == 0 + TQCString a; // a.data() == 0, a.size() == 0, a.length() == 0 .br - QCString b == ""; // b.data() == "", b.size() == 1, b.length() == 0 + TQCString b == ""; // b.data() == "", b.size() == 1, b.length() == 0 .br a.isNull(); // TRUE because a.data() == 0 .br @@ -533,7 +533,7 @@ Example: .fi .PP See also isEmpty(), length(), and size(). -.SH "QCString QCString::left ( uint len ) const" +.SH "TQCString TQCString::left ( uint len ) const" Returns a substring that contains the \fIlen\fR leftmost characters of the string. .PP The whole string is returned if \fIlen\fR exceeds the length of the string. @@ -542,16 +542,16 @@ Example: .PP .nf .br - QCString s = "Pineapple"; + TQCString s = "Pineapple"; .br - QCString t = s.left( 4 ); // t == "Pine" + TQCString t = s.left( 4 ); // t == "Pine" .br .fi .PP See also right() and mid(). .PP Example: network/networkprotocol/nntp.cpp. -.SH "QCString QCString::leftJustify ( uint width, char fill = ' ', bool truncate = FALSE ) const" +.SH "TQCString TQCString::leftJustify ( uint width, char fill = ' ', bool truncate = FALSE ) const" Returns a string of length \fIwidth\fR (plus one for the terminating '\0') that contains this string padded with the \fIfill\fR character. .PP If the length of the string exceeds \fIwidth\fR and \fItruncate\fR is FALSE (the default), then the returned string is a copy of the string. If the length of the string exceeds \fIwidth\fR and \fItruncate\fR is TRUE, then the returned string is a left(\fIwidth\fR). @@ -560,14 +560,14 @@ Example: .PP .nf .br - QCString s("apple"); + TQCString s("apple"); .br - QCString t = s.leftJustify(8, '.'); // t == "apple..." + TQCString t = s.leftJustify(8, '.'); // t == "apple..." .br .fi .PP See also rightJustify(). -.SH "uint QCString::length () const" +.SH "uint TQCString::length () const" Returns the length of the string, excluding the '\0'-terminator. Equivalent to calling \fCstrlen(data())\fR. .PP Null strings and empty strings have zero length. @@ -575,21 +575,21 @@ Null strings and empty strings have zero length. See also size(), isNull(), and isEmpty(). .PP Example: network/networkprotocol/nntp.cpp. -.SH "QCString QCString::lower () const" +.SH "TQCString TQCString::lower () const" Returns a new string that is a copy of this string converted to lower case. .PP Example: .PP .nf .br - QCString s("Credit"); + TQCString s("Credit"); .br - QCString t = s.lower(); // t == "credit" + TQCString t = s.lower(); // t == "credit" .br .fi .PP See also upper() and Note on character comparisons. -.SH "QCString QCString::mid ( uint index, uint len = 0xffffffff ) const" +.SH "TQCString TQCString::mid ( uint index, uint len = 0xffffffff ) const" Returns a substring that contains at most \fIlen\fR characters from this string, starting at position \fIindex\fR. .PP Returns a null string if the string is empty or if \fIindex\fR is out of range. Returns the whole string from \fIindex\fR if \fIindex+len\fR exceeds the length of the string. @@ -598,26 +598,26 @@ Example: .PP .nf .br - QCString s = "Two pineapples"; + TQCString s = "Two pineapples"; .br - QCString t = s.mid( 4, 3 ); // t == "pin" + TQCString t = s.mid( 4, 3 ); // t == "pin" .br .fi .PP See also left() and right(). .PP Example: network/networkprotocol/nntp.cpp. -.SH "QCString::operator const char * () const" +.SH "TQCString::operator const char * () const" Returns the string data. -.SH "QCString & QCString::operator+= ( const char * str )" +.SH "TQCString & TQCString::operator+= ( const char * str )" Appends string \fIstr\fR to the string and returns a reference to the string. -.SH "QCString & QCString::operator+= ( char c )" +.SH "TQCString & TQCString::operator+= ( char c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Appends character \fIc\fR to the string and returns a reference to the string. -.SH "QCString & QCString::operator= ( const QCString & s )" +.SH "TQCString & TQCString::operator= ( const TQCString & s )" Assigns a shallow copy of \fIs\fR to this string and returns a reference to this string. -.SH "QCString & QCString::operator= ( const char * str )" +.SH "TQCString & TQCString::operator= ( const char * str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Assigns a deep copy of \fIstr\fR to this string and returns a reference to this string. @@ -625,18 +625,18 @@ Assigns a deep copy of \fIstr\fR to this string and returns a reference to this If \fIstr\fR is 0 a null string is created. .PP See also isNull(). -.SH "QCString & QCString::prepend ( const char * s )" +.SH "TQCString & TQCString::prepend ( const char * s )" Prepend \fIs\fR to the string. Equivalent to insert(0, s). .PP See also insert(). -.SH "QCString & QCString::remove ( uint index, uint len )" +.SH "TQCString & TQCString::remove ( uint index, uint len )" Removes \fIlen\fR characters from the string, starting at position \fIindex\fR, and returns a reference to the string. .PP If \fIindex\fR is out of range, nothing happens. If \fIindex\fR is valid, but \fIindex\fR + \fIlen\fR is larger than the length of the string, the string is truncated at position \fIindex\fR. .PP .nf .br - QCString s = "Montreal"; + TQCString s = "Montreal"; .br s.remove( 1, 4 ); // s == "Meal" .br @@ -645,21 +645,21 @@ If \fIindex\fR is out of range, nothing happens. If \fIindex\fR is valid, but \f See also insert() and replace(). .PP Example: network/networkprotocol/nntp.cpp. -.SH "QCString & QCString::replace ( uint index, uint len, const char * str )" +.SH "TQCString & TQCString::replace ( uint index, uint len, const char * str )" Replaces \fIlen\fR characters from the string, starting at position \fIindex\fR, with \fIstr\fR, and returns a reference to the string. .PP If \fIindex\fR is out of range, nothing is removed and \fIstr\fR is appended at the end of the string. If \fIindex\fR is valid, but \fIindex\fR + \fIlen\fR is larger than the length of the string, \fIstr\fR replaces the rest of the string from position \fIindex\fR. .PP .nf .br - QCString s = "Say yes!"; + TQCString s = "Say yes!"; .br s.replace( 4, 3, "NO" ); // s == "Say NO!" .br .fi .PP See also insert() and remove(). -.SH "QCString & QCString::replace ( const QRegExp & rx, const char * str )" +.SH "TQCString & TQCString::replace ( const TQRegExp & rx, const char * str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Replaces every occurrence of \fIrx\fR in the string with \fIstr\fR. Returns a reference to the string. @@ -670,22 +670,22 @@ Example: .br TQString s = "banana"; .br - s.replace( QRegExp("a.*a"), "" ); // becomes "b" + s.replace( TQRegExp("a.*a"), "" ); // becomes "b" .br .br s = "banana"; .br - s.replace( QRegExp("^[bn]a"), "X" ); // becomes "Xnana" + s.replace( TQRegExp("^[bn]a"), "X" ); // becomes "Xnana" .br .br s = "banana"; .br - s.replace( QRegExp("^[bn]a"), "" ); // becomes "nana" + s.replace( TQRegExp("^[bn]a"), "" ); // becomes "nana" .br .fi .PP \fBWarning:\fR If you want to apply this function repeatedly to the same string it is more efficient to convert the string to a TQString and apply the function to that. -.SH "QCString & QCString::replace ( char c, const char * after )" +.SH "TQCString & TQCString::replace ( char c, const char * after )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Replaces every occurrence of the character \fIc\fR in the string with \fIafter\fR. Returns a reference to the string. @@ -694,14 +694,14 @@ Example: .PP .nf .br - QCString s = "a,b,c"; + TQCString s = "a,b,c"; .br s.replace( ',', " or " ); .br // s == "a or b or c" .br .fi -.SH "QCString & QCString::replace ( const char * before, const char * after )" +.SH "TQCString & TQCString::replace ( const char * before, const char * after )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Replaces every occurrence of the string \fIbefore\fR in the string with the string \fIafter\fR. Returns a reference to the string. @@ -710,18 +710,18 @@ Example: .PP .nf .br - QCString s = "Greek is Greek"; + TQCString s = "Greek is Greek"; .br s.replace( "Greek", "English" ); .br // s == "English is English" .br .fi -.SH "QCString & QCString::replace ( char c1, char c2 )" +.SH "TQCString & TQCString::replace ( char c1, char c2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Replaces every occurrence of \fIc1\fR with the char \fIc2\fR. Returns a reference to the string. -.SH "bool QCString::resize ( uint len )" +.SH "bool TQCString::resize ( uint len )" Extends or shrinks the string to \fIlen\fR bytes, including the '\0'-terminator. .PP A '\0'-terminator is set at position \fClen - 1\fR unless \fClen == 0\fR. @@ -730,7 +730,7 @@ Example: .PP .nf .br - QCString s = "resize this string"; + TQCString s = "resize this string"; .br s.resize( 7 ); // s == "resize" .br @@ -739,7 +739,7 @@ Example: See also truncate(). .PP Example: network/networkprotocol/nntp.cpp. -.SH "QCString QCString::right ( uint len ) const" +.SH "TQCString TQCString::right ( uint len ) const" Returns a substring that contains the \fIlen\fR rightmost characters of the string. .PP The whole string is returned if \fIlen\fR exceeds the length of the string. @@ -748,16 +748,16 @@ Example: .PP .nf .br - QCString s = "Pineapple"; + TQCString s = "Pineapple"; .br - QCString t = s.right( 5 ); // t == "apple" + TQCString t = s.right( 5 ); // t == "apple" .br .fi .PP See also left() and mid(). .PP Example: network/networkprotocol/nntp.cpp. -.SH "QCString QCString::rightJustify ( uint width, char fill = ' ', bool truncate = FALSE ) const" +.SH "TQCString TQCString::rightJustify ( uint width, char fill = ' ', bool truncate = FALSE ) const" Returns a string of length \fIwidth\fR (plus one for the terminating '\0') that contains zero or more of the \fIfill\fR character followed by this string. .PP If the length of the string exceeds \fIwidth\fR and \fItruncate\fR is FALSE (the default), then the returned string is a copy of the string. If the length of the string exceeds \fIwidth\fR and \fItruncate\fR is TRUE, then the returned string is a left(\fIwidth\fR). @@ -766,66 +766,66 @@ Example: .PP .nf .br - QCString s("pie"); + TQCString s("pie"); .br - QCString t = s.rightJustify(8, '.'); // t == ".....pie" + TQCString t = s.rightJustify(8, '.'); // t == ".....pie" .br .fi .PP See also leftJustify(). -.SH "bool QCString::setExpand ( uint index, char c )" +.SH "bool TQCString::setExpand ( uint index, char c )" Sets the character at position \fIindex\fR to \fIc\fR and expands the string if necessary, padding with spaces. .PP Returns FALSE if \fIindex\fR was out of range and the string could not be expanded; otherwise returns TRUE. -.SH "QCString & QCString::setNum ( double n, char f = 'g', int prec = 6 )" +.SH "TQCString & TQCString::setNum ( double n, char f = 'g', int prec = 6 )" Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. .PP The format of the string representation is specified by the format character \fIf\fR, and the precision (number of digits after the decimal point) is specified with \fIprec\fR. .PP The valid formats for \fIf\fR are 'e', 'E', 'f', 'g' and 'G'. The formats are the same as for sprintf(); they are explained in TQString::arg(). -.SH "QCString & QCString::setNum ( short n )" +.SH "TQCString & TQCString::setNum ( short n )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. -.SH "QCString & QCString::setNum ( ushort n )" +.SH "TQCString & TQCString::setNum ( ushort n )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. -.SH "QCString & QCString::setNum ( int n )" +.SH "TQCString & TQCString::setNum ( int n )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. -.SH "QCString & QCString::setNum ( uint n )" +.SH "TQCString & TQCString::setNum ( uint n )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. -.SH "QCString & QCString::setNum ( long n )" +.SH "TQCString & TQCString::setNum ( long n )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. -.SH "QCString & QCString::setNum ( ulong n )" +.SH "TQCString & TQCString::setNum ( ulong n )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the string to the string representation of the number \fIn\fR and returns a reference to the string. -.SH "QCString & QCString::setNum ( float n, char f = 'g', int prec = 6 )" +.SH "TQCString & TQCString::setNum ( float n, char f = 'g', int prec = 6 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "QCString & QCString::setStr ( const char * str )" +.SH "TQCString & TQCString::setStr ( const char * str )" Makes a deep copy of \fIstr\fR. Returns a reference to the string. -.SH "QCString QCString::simplifyWhiteSpace () const" +.SH "TQCString TQCString::simplifyWhiteSpace () const" Returns a new string that has white space removed from the start and the end, plus any sequence of internal white space replaced with a single space (ASCII 32). .PP White space means the decimal ASCII codes 9, 10, 11, 12, 13 and 32. .PP .nf .br - QCString s = " lots\\t of\\nwhite space "; + TQCString s = " lots\\t of\\nwhite space "; .br - QCString t = s.simplifyWhiteSpace(); // t == "lots of white space" + TQCString t = s.simplifyWhiteSpace(); // t == "lots of white space" .br .fi .PP See also stripWhiteSpace(). -.SH "QCString & QCString::sprintf ( const char * format, ... )" +.SH "TQCString & TQCString::sprintf ( const char * format, ... )" Implemented as a call to the native vsprintf() (see the manual for your C library). .PP If the string is shorter than 256 characters, this sprintf() calls resize(256) to decrease the chance of memory corruption. The string is resized back to its actual length before sprintf() returns. @@ -834,12 +834,12 @@ Example: .PP .nf .br - QCString s; + TQCString s; .br s.sprintf( "%d - %s", 1, "first" ); // result < 256 chars .br .br - QCString big( 25000 ); // very long string + TQCString big( 25000 ); // very long string .br big.sprintf( "%d - %s", 2, longString ); // result < 25000 chars .br @@ -848,7 +848,7 @@ Example: \fBWarning:\fR All vsprintf() implementations will write past the end of the target string (*this) if the \fIformat\fR specification and arguments happen to be longer than the target string, and some will also fail if the target string is longer than some arbitrary implementation limit. .PP Giving user-supplied arguments to sprintf() is risky: Sooner or later someone will paste a huge line into your application. -.SH "QCString QCString::stripWhiteSpace () const" +.SH "TQCString TQCString::stripWhiteSpace () const" Returns a new string that has white space removed from the start and the end. .PP White space means the decimal ASCII codes 9, 10, 11, 12, 13 and 32. @@ -857,46 +857,46 @@ Example: .PP .nf .br - QCString s = " space "; + TQCString s = " space "; .br - QCString t = s.stripWhiteSpace(); // t == "space" + TQCString t = s.stripWhiteSpace(); // t == "space" .br .fi .PP See also simplifyWhiteSpace(). -.SH "double QCString::toDouble ( bool * ok = 0 ) const" +.SH "double TQCString::toDouble ( bool * ok = 0 ) const" Returns the string converted to a \fCdouble\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "float QCString::toFloat ( bool * ok = 0 ) const" +.SH "float TQCString::toFloat ( bool * ok = 0 ) const" Returns the string converted to a \fCfloat\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "int QCString::toInt ( bool * ok = 0 ) const" +.SH "int TQCString::toInt ( bool * ok = 0 ) const" Returns the string converted to a \fCint\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "long QCString::toLong ( bool * ok = 0 ) const" +.SH "long TQCString::toLong ( bool * ok = 0 ) const" Returns the string converted to a \fClong\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "short QCString::toShort ( bool * ok = 0 ) const" +.SH "short TQCString::toShort ( bool * ok = 0 ) const" Returns the string converted to a \fCshort\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, is out of range, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "uint QCString::toUInt ( bool * ok = 0 ) const" +.SH "uint TQCString::toUInt ( bool * ok = 0 ) const" Returns the string converted to an \fCunsigned int\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "ulong QCString::toULong ( bool * ok = 0 ) const" +.SH "ulong TQCString::toULong ( bool * ok = 0 ) const" Returns the string converted to an \fCunsigned long\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "ushort QCString::toUShort ( bool * ok = 0 ) const" +.SH "ushort TQCString::toUShort ( bool * ok = 0 ) const" Returns the string converted to an \fCunsigned short\fR value. .PP If \fIok\fR is not 0: \fI*ok\fR is set to FALSE if the string is not a number, is out of range, or if it has trailing garbage; otherwise \fI*ok\fR is set to TRUE. -.SH "bool QCString::truncate ( uint pos )" +.SH "bool TQCString::truncate ( uint pos )" Truncates the string at position \fIpos\fR. .PP Equivalent to calling \fCresize(pos+1)\fR. @@ -905,69 +905,69 @@ Example: .PP .nf .br - QCString s = "truncate this string"; + TQCString s = "truncate this string"; .br s.truncate( 5 ); // s == "trunc" .br .fi .PP See also resize(). -.SH "QCString QCString::upper () const" +.SH "TQCString TQCString::upper () const" Returns a new string that is a copy of this string converted to upper case. .PP Example: .PP .nf .br - QCString s( "Debit" ); + TQCString s( "Debit" ); .br - QCString t = s.upper(); // t == "DEBIT" + TQCString t = s.upper(); // t == "DEBIT" .br .fi .PP See also lower() and Note on character comparisons. .SH RELATED FUNCTION DOCUMENTATION -.SH "bool operator!= ( const QCString & s1, const QCString & s2 )" +.SH "bool operator!= ( const TQCString & s1, const TQCString & s2 )" Returns TRUE if \fIs1\fR and \fIs2\fR are different; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) != 0. -.SH "bool operator!= ( const QCString & s1, const char * s2 )" +.SH "bool operator!= ( const TQCString & s1, const char * s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR and \fIs2\fR are different; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) != 0. -.SH "bool operator!= ( const char * s1, const QCString & s2 )" +.SH "bool operator!= ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR and \fIs2\fR are different; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) != 0. -.SH "const QCString operator+ ( const QCString & s1, const QCString & s2 )" +.SH "const TQCString operator+ ( const TQCString & s1, const TQCString & s2 )" Returns a string which consists of the concatenation of \fIs1\fR and \fIs2\fR. -.SH "const QCString operator+ ( const QCString & s1, const char * s2 )" +.SH "const TQCString operator+ ( const TQCString & s1, const char * s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a string which consists of the concatenation of \fIs1\fR and \fIs2\fR. -.SH "const QCString operator+ ( const char * s1, const QCString & s2 )" +.SH "const TQCString operator+ ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a string which consists of the concatenation of \fIs1\fR and \fIs2\fR. -.SH "const QCString operator+ ( const QCString & s, char c )" +.SH "const TQCString operator+ ( const TQCString & s, char c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a string which consists of the concatenation of \fIs\fR and \fIc\fR. -.SH "const QCString operator+ ( char c, const QCString & s )" +.SH "const TQCString operator+ ( char c, const TQCString & s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a string which consists of the concatenation of \fIc\fR and \fIs\fR. -.SH "bool operator< ( const QCString & s1, const char * s2 )" +.SH "bool operator< ( const TQCString & s1, const char * s2 )" Returns TRUE if \fIs1\fR is less than \fIs2\fR; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) < 0. .PP See also Note on character comparisons. -.SH "bool operator< ( const char * s1, const QCString & s2 )" +.SH "bool operator< ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR is less than \fIs2\fR; otherwise returns FALSE. @@ -975,17 +975,17 @@ Returns TRUE if \fIs1\fR is less than \fIs2\fR; otherwise returns FALSE. Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) < 0. .PP See also Note on character comparisons. -.SH "QDataStream & operator<< ( QDataStream & s, const QCString & str )" +.SH "QDataStream & operator<< ( QDataStream & s, const TQCString & str )" Writes string \fIstr\fR to the stream \fIs\fR. .PP See also Format of the QDataStream operators. -.SH "bool operator<= ( const QCString & s1, const char * s2 )" +.SH "bool operator<= ( const TQCString & s1, const char * s2 )" Returns TRUE if \fIs1\fR is less than or equal to \fIs2\fR; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) <= 0. .PP See also Note on character comparisons. -.SH "bool operator<= ( const char * s1, const QCString & s2 )" +.SH "bool operator<= ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR is less than or equal to \fIs2\fR; otherwise returns FALSE. @@ -993,29 +993,29 @@ Returns TRUE if \fIs1\fR is less than or equal to \fIs2\fR; otherwise returns FA Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) <= 0. .PP See also Note on character comparisons. -.SH "bool operator== ( const QCString & s1, const QCString & s2 )" +.SH "bool operator== ( const TQCString & s1, const TQCString & s2 )" Returns TRUE if \fIs1\fR and \fIs2\fR are equal; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) == 0. -.SH "bool operator== ( const QCString & s1, const char * s2 )" +.SH "bool operator== ( const TQCString & s1, const char * s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR and \fIs2\fR are equal; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) == 0. -.SH "bool operator== ( const char * s1, const QCString & s2 )" +.SH "bool operator== ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR and \fIs2\fR are equal; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) == 0. -.SH "bool operator> ( const QCString & s1, const char * s2 )" +.SH "bool operator> ( const TQCString & s1, const char * s2 )" Returns TRUE if \fIs1\fR is greater than \fIs2\fR; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) > 0. .PP See also Note on character comparisons. -.SH "bool operator> ( const char * s1, const QCString & s2 )" +.SH "bool operator> ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR is greater than \fIs2\fR; otherwise returns FALSE. @@ -1023,13 +1023,13 @@ Returns TRUE if \fIs1\fR is greater than \fIs2\fR; otherwise returns FALSE. Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) > 0. .PP See also Note on character comparisons. -.SH "bool operator>= ( const QCString & s1, const char * s2 )" +.SH "bool operator>= ( const TQCString & s1, const char * s2 )" Returns TRUE if \fIs1\fR is greater than or equal to \fIs2\fR; otherwise returns FALSE. .PP Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) >= 0. .PP See also Note on character comparisons. -.SH "bool operator>= ( const char * s1, const QCString & s2 )" +.SH "bool operator>= ( const char * s1, const TQCString & s2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIs1\fR is greater than or equal to \fIs2\fR; otherwise returns FALSE. @@ -1037,7 +1037,7 @@ Returns TRUE if \fIs1\fR is greater than or equal to \fIs2\fR; otherwise returns Equivalent to qstrcmp(\fIs1\fR, \fIs2\fR) >= 0. .PP See also Note on character comparisons. -.SH "QDataStream & operator>> ( QDataStream & s, QCString & str )" +.SH "QDataStream & operator>> ( QDataStream & s, TQCString & str )" Reads a string into \fIstr\fR from the stream \fIs\fR. .PP See also Format of the QDataStream operators. @@ -1113,7 +1113,7 @@ Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR See also qstrcmp(), tqstrncmp(), tqstricmp(), and Note on character comparisons. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqcstring.html +.BR http://doc.trolltech.com/tqcstring.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/tqcursor.3qt b/doc/man/man3/tqcursor.3qt index 2cdb80b3b..c8c0b23ef 100644 --- a/doc/man/man3/tqcursor.3qt +++ b/doc/man/man3/tqcursor.3qt @@ -22,7 +22,7 @@ Inherits Qt. .BI "\fBQCursor\fR ( int shape )" .br .ti -1c -.BI "\fBQCursor\fR ( const QBitmap & bitmap, const QBitmap & mask, int hotX = -1, int hotY = -1 )" +.BI "\fBQCursor\fR ( const TQBitmap & bitmap, const TQBitmap & mask, int hotX = -1, int hotY = -1 )" .br .ti -1c .BI "\fBQCursor\fR ( const QPixmap & pixmap, int hotX = -1, int hotY = -1 )" @@ -43,10 +43,10 @@ Inherits Qt. .BI "void \fBsetShape\fR ( int shape )" .br .ti -1c -.BI "const QBitmap * \fBbitmap\fR () const" +.BI "const TQBitmap * \fBbitmap\fR () const" .br .ti -1c -.BI "const QBitmap * \fBmask\fR () const" +.BI "const TQBitmap * \fBmask\fR () const" .br .ti -1c .BI "QPoint \fBhotSpot\fR () const" @@ -93,7 +93,7 @@ The QCursor class provides a mouse cursor with an arbitrary shape. .PP This class is mainly used to create mouse cursors that are associated with particular widgets and to get and set the position of the mouse cursor. .PP -Qt has a number of standard cursor shapes, but you can also make custom cursor shapes based on a QBitmap, a mask and a hotspot. +Qt has a number of standard cursor shapes, but you can also make custom cursor shapes based on a TQBitmap, a mask and a hotspot. .PP To associate a cursor with a widget, use TQWidget::setCursor(). To associate a cursor with all widgets (normally for a short period of time), use QApplication::setOverrideCursor(). .PP @@ -128,7 +128,7 @@ Constructs a cursor with the specified \fIshape\fR. See CursorShape for a list of shapes. .PP See also setShape(). -.SH "QCursor::QCursor ( const QBitmap & bitmap, const QBitmap & mask, int hotX = -1, int hotY = -1 )" +.SH "QCursor::QCursor ( const TQBitmap & bitmap, const TQBitmap & mask, int hotX = -1, int hotY = -1 )" Constructs a custom bitmap cursor. .PP \fIbitmap\fR and \fImask\fR make up the bitmap. \fIhotX\fR and \fIhotY\fR define the cursor's hot spot. @@ -149,7 +149,7 @@ Use the global TQt color \fCcolor0\fR to draw 0-pixels and \fCcolor1\fR to draw .PP Valid cursor sizes depend on the display hardware (or the underlying window system). We recommend using 32x32 cursors, because this size is supported on all platforms. Some platforms also support 16x16, 48x48 and 64x64 cursors. .PP -See also QBitmap::QBitmap() and QBitmap::setMask(). +See also TQBitmap::TQBitmap() and TQBitmap::setMask(). .SH "QCursor::QCursor ( const QPixmap & pixmap, int hotX = -1, int hotY = -1 )" Constructs a custom pixmap cursor. .PP @@ -170,7 +170,7 @@ Creates a cursor with the specified window system handle \fIhandle\fR. \fBWarning:\fR Portable in principle, but if you use it you are probably about to do something non-portable. Be careful. .SH "QCursor::~QCursor ()" Destroys the cursor. -.SH "const QBitmap * QCursor::bitmap () const" +.SH "const TQBitmap * QCursor::bitmap () const" Returns the cursor bitmap, or 0 if it is one of the standard cursors. .SH "void QCursor::cleanup ()\fC [static]\fR" Internal function that deinitializes the predefined cursors. This function is called from the QApplication destructor. @@ -186,7 +186,7 @@ Returns the cursor hot spot, or (0, 0) if it is one of the standard cursors. Internal function that initializes the predefined cursors. This function is called from the QApplication constructor. .PP See also cleanup(). -.SH "const QBitmap * QCursor::mask () const" +.SH "const TQBitmap * QCursor::mask () const" Returns the cursor bitmap mask, or 0 if it is one of the standard cursors. .SH "QCursor & QCursor::operator= ( const QCursor & c )" Assigns \fIc\fR to this cursor and returns a reference to this cursor. diff --git a/doc/man/man3/tqdatastream.3qt b/doc/man/man3/tqdatastream.3qt index 9774e5f14..046771aae 100644 --- a/doc/man/man3/tqdatastream.3qt +++ b/doc/man/man3/tqdatastream.3qt @@ -22,7 +22,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "\fBQDataStream\fR ( TQIODevice * d )" .br .ti -1c -.BI "\fBQDataStream\fR ( QByteArray a, int mode )" +.BI "\fBQDataStream\fR ( TQByteArray a, int mode )" .br .ti -1c .BI "virtual \fB~QDataStream\fR ()" @@ -313,7 +313,7 @@ Constructs a data stream that uses the IO device \fId\fR. \fBWarning:\fR If you use QSocket or QSocketDevice as the IO device \fId\fR for reading data, you must make sure that enough data is available on the socket for the operation to successfully proceed; QDataStream does not have any means to handle or recover from short-reads. .PP See also setDevice() and device(). -.SH "QDataStream::QDataStream ( QByteArray a, int mode )" +.SH "QDataStream::QDataStream ( TQByteArray a, int mode )" Constructs a data stream that operates on a byte array, \fIa\fR, through an internal QBuffer device. The \fImode\fR is a TQIODevice::mode(), usually either IO_ReadOnly or IO_WriteOnly. .PP Example: @@ -322,7 +322,7 @@ Example: .br static char bindata[] = { 231, 1, 44, ... }; .br - QByteArray a; + TQByteArray a; .br a.setRawData( bindata, sizeof(bindata) ); // a points to bindata .br @@ -334,11 +334,11 @@ Example: .br .fi .PP -The QByteArray::setRawData() function is not for the inexperienced. +The TQByteArray::setRawData() function is not for the inexperienced. .SH "QDataStream::~QDataStream ()\fC [virtual]\fR" Destroys the data stream. .PP -The destructor will not affect the current IO device, unless it is an internal IO device processing a QByteArray passed in the \fIconstructor\fR, in which case the internal IO device is destroyed. +The destructor will not affect the current IO device, unless it is an internal IO device processing a TQByteArray passed in the \fIconstructor\fR, in which case the internal IO device is destroyed. .SH "bool QDataStream::atEnd () const" Returns TRUE if the IO device has reached the end position (end of the stream or file) or if there is no IO device set; otherwise returns FALSE, i.e. if the current position of the IO device is before the end position. .PP diff --git a/doc/man/man3/tqdeepcopy.3qt b/doc/man/man3/tqdeepcopy.3qt index afbd32ba9..d6b65569b 100644 --- a/doc/man/man3/tqdeepcopy.3qt +++ b/doc/man/man3/tqdeepcopy.3qt @@ -1,5 +1,5 @@ '\" t -.TH QDeepCopy 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQDeepCopy 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,29 +7,29 @@ .ad l .nh .SH NAME -QDeepCopy \- Template class which ensures that +TQDeepCopy \- Template class which ensures that .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqdeepcopy.h>\fR +\fC#include <tqdeepcopy.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQDeepCopy\fR ()" +.BI "\fBTQDeepCopy\fR ()" .br .ti -1c -.BI "\fBQDeepCopy\fR ( const T & t )" +.BI "\fBTQDeepCopy\fR ( const T & t )" .br .ti -1c -.BI "QDeepCopy<T> & \fBoperator=\fR ( const T & t )" +.BI "TQDeepCopy<T> & \fBoperator=\fR ( const T & t )" .br .ti -1c .BI "\fBoperator T\fR ()" .br .in -1c .SH DESCRIPTION -The QDeepCopy class is a template class which ensures that implicitly shared and explicitly shared classes reference unique data. +The TQDeepCopy class is a template class which ensures that implicitly shared and explicitly shared classes reference unique data. .PP Normally, shared copies reference the same data to optimize memory use and for maximum speed. In the example below, \fCs1\fR, \fCs2\fR, \fCs3\fR, \fCs4\fR and \fCs5\fR share data. .PP @@ -49,7 +49,7 @@ Normally, shared copies reference the same data to optimize memory use and for m .br .fi .PP -QDeepCopy can be used several ways to ensure that an object references unique, unshared data. In the example below, \fCs1\fR, \fCs2\fR and \fCs5\fR share data, while neither \fCs3\fR nor \fCs4\fR share data. +TQDeepCopy can be used several ways to ensure that an object references unique, unshared data. In the example below, \fCs1\fR, \fCs2\fR and \fCs5\fR share data, while neither \fCs3\fR nor \fCs4\fR share data. .PP .nf .br @@ -59,7 +59,7 @@ QDeepCopy can be used several ways to ensure that an object references unique, u .br TQString s2 = s1; .br - QDeepCopy<TQString> s3 = s2; // s3 is a deep copy of s2 + TQDeepCopy<TQString> s3 = s2; // s3 is a deep copy of s2 .br TQString s4 = s3; // s4 is a deep copy of s3 .br @@ -77,7 +77,7 @@ In the example below, \fCs1\fR, \fCs2\fR and \fCs5\fR share data, and \fCs3\fR a .br TQString s2 = s1; .br - TQString s3 = QDeepCopy<TQString>( s2 ); // s3 is a deep copy of s2 + TQString s3 = TQDeepCopy<TQString>( s2 ); // s3 is a deep copy of s2 .br TQString s4 = s3; // s4 is a shallow copy of s3 .br @@ -85,11 +85,11 @@ In the example below, \fCs1\fR, \fCs2\fR and \fCs5\fR share data, and \fCs3\fR a .br .fi .PP -QDeepCopy can also provide safety in multithreaded applications that use shared classes. In the example below, the variable \fCglobal_string\fR is used safely since the data contained in \fCglobal_string\fR is always a deep copy. This ensures that all threads get a unique copy of the data, and that any assignments to \fCglobal_string\fR will result in a deep copy. +TQDeepCopy can also provide safety in multithreaded applications that use shared classes. In the example below, the variable \fCglobal_string\fR is used safely since the data contained in \fCglobal_string\fR is always a deep copy. This ensures that all threads get a unique copy of the data, and that any assignments to \fCglobal_string\fR will result in a deep copy. .PP .nf .br - QDeepCopy<TQString> global_string; // global string data + TQDeepCopy<TQString> global_string; // global string data .br TQMutex global_mutex; // mutex to protext global_string .br @@ -139,11 +139,11 @@ QDeepCopy can also provide safety in multithreaded applications that use shared .PP \fBWarning:\fR It is the application developer's responsibility to protect the object shared across multiple threads. .PP -The examples above use TQString, which is an implicitly shared class. The behavior of QDeepCopy is the same when using explicitly shared classes like QByteArray. +The examples above use TQString, which is an implicitly shared class. The behavior of TQDeepCopy is the same when using explicitly shared classes like TQByteArray. .PP -Currently, QDeepCopy works with the following classes: +Currently, TQDeepCopy works with the following classes: .TP -QMemArray (including subclasses like QByteArray and QCString) +TQMemArray (including subclasses like TQByteArray and TQCString) .TP TQMap .TP @@ -155,17 +155,17 @@ TQValueVector .PP See also Thread Support in Qt, Implicitly and Explicitly Shared Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QDeepCopy::QDeepCopy ()" +.SH "TQDeepCopy::TQDeepCopy ()" Constructs an empty instance of type \fIT\fR. -.SH "QDeepCopy::QDeepCopy ( const T & t )" +.SH "TQDeepCopy::TQDeepCopy ( const T & t )" Constructs a deep copy of \fIt\fR. -.SH "QDeepCopy::operator T ()" +.SH "TQDeepCopy::operator T ()" Returns a deep copy of the encapsulated data. -.SH "QDeepCopy<T> & QDeepCopy::operator= ( const T & t )" +.SH "TQDeepCopy<T> & TQDeepCopy::operator= ( const T & t )" Assigns a deep copy of \fIt\fR. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqdeepcopy.html +.BR http://doc.trolltech.com/tqdeepcopy.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/tqdict.3qt b/doc/man/man3/tqdict.3qt index ae7e6eed3..677bf3df9 100644 --- a/doc/man/man3/tqdict.3qt +++ b/doc/man/man3/tqdict.3qt @@ -1,5 +1,5 @@ '\" t -.TH QDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQDict 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 -QDict \- Template class that provides a dictionary based on TQString keys +TQDict \- Template class that provides a dictionary based on TQString keys .SH SYNOPSIS -\fC#include <ntqdict.h>\fR +\fC#include <tqdict.h>\fR .PP Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQDict\fR ( int size = 17, bool caseSensitive = TRUE )" +.BI "\fBTQDict\fR ( int size = 17, bool caseSensitive = TRUE )" .br .ti -1c -.BI "\fBQDict\fR ( const QDict<type> & dict )" +.BI "\fBTQDict\fR ( const TQDict<type> & dict )" .br .ti -1c -.BI "\fB~QDict\fR ()" +.BI "\fB~TQDict\fR ()" .br .ti -1c -.BI "QDict<type> & \fBoperator=\fR ( const QDict<type> & dict )" +.BI "TQDict<type> & \fBoperator=\fR ( const TQDict<type> & dict )" .br .ti -1c .BI "virtual uint \fBcount\fR () const" @@ -83,15 +83,15 @@ Inherits TQPtrCollection. .br .in -1c .SH DESCRIPTION -The QDict class is a template class that provides a dictionary based on TQString keys. +The TQDict class is a template class that provides a dictionary based on TQString keys. .PP TQMap is an STL-compatible alternative to this class. .PP -QDict is implemented as a template class. Define a template instance QDict<X> to create a dictionary that operates on pointers to X (X *). +TQDict is implemented as a template class. Define a template instance TQDict<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 TQString used for insertion, removal and lookup. The value is a pointer. Dictionaries provide very fast insertion and lookup. .PP -If you want to use non-Unicode, plain 8-bit \fCchar*\fR keys, use the QAsciiDict template. A QDict has the same performance as a QAsciiDict. If you want to have a dictionary that maps TQStrings to TQStrings use TQMap. +If you want to use non-Unicode, plain 8-bit \fCchar*\fR keys, use the TQAsciiDict template. A TQDict has the same performance as a TQAsciiDict. If you want to have a dictionary that maps TQStrings to TQStrings use TQMap. .PP The size() of the dictionary is very important. In order to get good performance, you should use a suitably large prime number. Suitable means equal to or larger than the maximum expected number of dictionary items. Size is set in the constructor but may be changed with resize(). .PP @@ -103,17 +103,17 @@ When an item is inserted, the key is converted (hashed) to an integer index into .PP Items with equal keys are allowed. When inserting two items with the same key, only the last inserted item will be accessible (last in, first out) until it is removed. .PP -The QDictIterator class can traverse the dictionary, but only in an arbitrary order. Multiple iterators may independently traverse the same dictionary. +The TQDictIterator 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 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 TQPtrCollection::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. TQDict's default implementation is to delete the item if auto-deletion is enabled. .PP Example #1: .PP .nf .br - QDict<QLineEdit> fields; // TQString keys, QLineEdit* values + TQDict<QLineEdit> fields; // TQString keys, QLineEdit* values .br fields.insert( "forename", new QLineEdit( this ) ); .br @@ -125,7 +125,7 @@ Example #1: fields["surname"]->setText( "Simpson" ); .br .br - QDictIterator<QLineEdit> it( fields ); // See QDictIterator + TQDictIterator<QLineEdit> it( fields ); // See TQDictIterator .br for( ; it.current(); ++it ) .br @@ -159,7 +159,7 @@ Example #2: .br styleList.sort(); .br - QDict<int> letterDict( 17, FALSE ); + TQDict<int> letterDict( 17, FALSE ); .br for ( TQStringList::Iterator it = styleList.begin(); it != styleList.end(); ++it ) { .br @@ -200,19 +200,19 @@ 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 TQAction for each style. .PP -See also QDictIterator, QAsciiDict, QIntDict, TQPtrDict, Collection Classes, and Non-GUI Classes. +See also TQDictIterator, TQAsciiDict, TQIntDict, TQPtrDict, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QDict::QDict ( int size = 17, bool caseSensitive = TRUE )" +.SH "TQDict::TQDict ( int size = 17, bool caseSensitive = TRUE )" Constructs a dictionary optimized for less than \fIsize\fR entries. .PP We recommend setting \fIsize\fR to a suitably large prime number (e.g. a prime that's slightly larger than the expected number of entries). This makes the hash distribution better which will lead to faster lookup. .PP If \fIcaseSensitive\fR is TRUE (the default), keys which differ only by case are considered different. -.SH "QDict::QDict ( const QDict<type> & dict )" +.SH "TQDict::TQDict ( const TQDict<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 "QDict::~QDict ()" +.SH "TQDict::~TQDict ()" 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(). @@ -220,7 +220,7 @@ See also setAutoDelete(). Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QDict::clear ()\fC [virtual]\fR" +.SH "void TQDict::clear ()\fC [virtual]\fR" Removes all items from the dictionary. .PP The removed items are deleted if auto-deletion is enabled. @@ -230,13 +230,13 @@ All dictionary iterators that operate on the dictionary are reset. See also remove(), take(), and setAutoDelete(). .PP Reimplemented from TQPtrCollection. -.SH "uint QDict::count () const\fC [virtual]\fR" +.SH "uint TQDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP Reimplemented from TQPtrCollection. -.SH "type * QDict::find ( const TQString & key ) const" +.SH "type * TQDict::find ( const TQString & key ) const" Returns the item with key \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. @@ -244,7 +244,7 @@ If there are two or more items with equal keys, then the most recently inserted Equivalent to the [] operator. .PP See also operator[](). -.SH "void QDict::insert ( const TQString & key, const type * item )" +.SH "void TQDict::insert ( const TQString & key, const type * item )" Inserts the key \fIkey\fR with value \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[](). @@ -254,15 +254,15 @@ Multiple items can have the same key, in which case only the last item will be a See also replace(). .PP Example: themes/themes.cpp. -.SH "bool QDict::isEmpty () const" +.SH "bool TQDict::isEmpty () const" Returns TRUE if the dictionary is empty, i.e. count() == 0; otherwise returns FALSE. .PP See also count(). -.SH "QDict<type> & QDict::operator= ( const QDict<type> & dict )" +.SH "TQDict<type> & TQDict::operator= ( const TQDict<type> & dict )" Assigns \fIdict\fR to this dictionary and returns a reference to this dictionary. .PP This dictionary is first cleared, then each item in \fIdict\fR is inserted into this dictionary. Only the pointers are copied (shallow copy), unless newItem() has been reimplemented. -.SH "type * QDict::operator[] ( const TQString & key ) const" +.SH "type * TQDict::operator[] ( const TQString & key ) const" Returns the item with key \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. @@ -270,13 +270,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 & QDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQDict::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 QDict::remove ( const TQString & key )" +.SH "bool TQDict::remove ( const TQString & key )" Removes the item with \fIkey\fR from the dictionary. Returns TRUE if successful, i.e. if the item is in the dictionary; otherwise returns FALSE. .PP If there are two or more items with equal keys, then the last item that was inserted will be removed. @@ -286,7 +286,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's traversal order. .PP See also take(), clear(), and setAutoDelete(). -.SH "void QDict::replace ( const TQString & key, const type * item )" +.SH "void TQDict::replace ( const TQString & key, const type * item )" Replaces the value of the key, \fIkey\fR with \fIitem\fR. .PP If the item does not already exist, it will be inserted. @@ -297,7 +297,7 @@ Equivalent to: .PP .nf .br - QDict<char> dict; + TQDict<char> dict; .br ... .br @@ -312,7 +312,7 @@ Equivalent to: If there are two or more items with equal keys, then the last item that was inserted will be replaced. .PP See also insert(). -.SH "void QDict::resize ( uint newsize )" +.SH "void TQDict::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 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. @@ -327,13 +327,13 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "uint QDict::size () const" +.SH "uint TQDict::size () const" Returns the size of the internal hash array (as specified in the constructor). .PP See also count(). -.SH "void QDict::statistics () const" +.SH "void TQDict::statistics () const" Debugging-only function that prints out the dictionary distribution using tqDebug(). -.SH "type * QDict::take ( const TQString & key )" +.SH "type * TQDict::take ( const TQString & key )" Takes the item 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 last item that was inserted will be taken. @@ -343,13 +343,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 & QDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQDict::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/ntqdict.html +.BR http://doc.trolltech.com/tqdict.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/tqdictiterator.3qt b/doc/man/man3/tqdictiterator.3qt index 78a7fc768..e222a3a9d 100644 --- a/doc/man/man3/tqdictiterator.3qt +++ b/doc/man/man3/tqdictiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QDictIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQDictIterator 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 -QDictIterator \- Iterator for QDict collections +TQDictIterator \- Iterator for TQDict collections .SH SYNOPSIS -\fC#include <ntqdict.h>\fR +\fC#include <tqdict.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQDictIterator\fR ( const QDict<type> & dict )" +.BI "\fBTQDictIterator\fR ( const TQDict<type> & dict )" .br .ti -1c -.BI "\fB~QDictIterator\fR ()" +.BI "\fB~TQDictIterator\fR ()" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -45,19 +45,19 @@ QDictIterator \- Iterator for QDict collections .br .in -1c .SH DESCRIPTION -The QDictIterator class provides an iterator for QDict collections. +The TQDictIterator class provides an iterator for TQDict collections. .PP -QDictIterator is implemented as a template class. Define a template instance QDictIterator<X> to create a dictionary iterator that operates on QDict<X> (dictionary of X*). +TQDictIterator is implemented as a template class. Define a template instance TQDictIterator<X> to create a dictionary iterator that operates on TQDict<X> (dictionary of X*). .PP The traversal order is arbitrary; when we speak of the "first"," last" and "next" item we are talking in terms of this arbitrary order. .PP -Multiple iterators may independently traverse the same dictionary. A QDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, QDict updates all iterators that are referring to the removed item to point to the next item in the (arbitrary) traversal order. +Multiple iterators may independently traverse the same dictionary. A TQDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, TQDict updates all iterators that are referring to the removed item to point to the next item in the (arbitrary) traversal order. .PP Example: .PP .nf .br - QDict<QLineEdit> fields; + TQDict<QLineEdit> fields; .br fields.insert( "forename", new QLineEdit( this ) ); .br @@ -73,7 +73,7 @@ Example: fields["age"]->setText( "45" ); .br .br - QDictIterator<QLineEdit> it( fields ); + TQDictIterator<QLineEdit> it( fields ); .br for( ; it.current(); ++it ) .br @@ -93,42 +93,42 @@ Example: .fi In the example we insert some pointers to line edits into a dictionary, then iterate over the dictionary printing the strings associated with the line edits. .PP -See also QDict, Collection Classes, and Non-GUI Classes. +See also TQDict, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QDictIterator::QDictIterator ( const QDict<type> & dict )" +.SH "TQDictIterator::TQDictIterator ( const TQDict<type> & dict )" Constructs an iterator for \fIdict\fR. The current iterator item is set to point to the first item in the dictionary, \fIdict\fR. First in this context means first in the arbitrary traversal order. -.SH "QDictIterator::~QDictIterator ()" +.SH "TQDictIterator::~TQDictIterator ()" Destroys the iterator. -.SH "uint QDictIterator::count () const" +.SH "uint TQDictIterator::count () const" Returns the number of items in the dictionary over which the iterator is operating. .PP See also isEmpty(). -.SH "type * QDictIterator::current () const" +.SH "type * TQDictIterator::current () const" Returns a pointer to the current iterator item's value. -.SH "TQString QDictIterator::currentKey () const" +.SH "TQString TQDictIterator::currentKey () const" Returns the current iterator item's key. -.SH "bool QDictIterator::isEmpty () const" +.SH "bool TQDictIterator::isEmpty () const" Returns TRUE if the dictionary is empty, i.e. count() == 0; otherwise returns FALSE. .PP See also count(). -.SH "QDictIterator::operator type * () const" +.SH "TQDictIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QDictIterator::operator() ()" +.SH "type * TQDictIterator::operator() ()" Makes the next 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 * QDictIterator::operator++ ()" +.SH "type * TQDictIterator::operator++ ()" Prefix ++ makes the next 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 * QDictIterator::toFirst ()" +.SH "type * TQDictIterator::toFirst ()" Resets the iterator, making the first item the first current item. First in this context means first in the arbitrary traversal order. Returns a pointer to this item. .PP If the dictionary is empty it sets the current item to 0 and returns 0. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qdictiterator.html +.BR http://doc.trolltech.com/tqdictiterator.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/tqdir.3qt b/doc/man/man3/tqdir.3qt index 4ba6ebf20..9fca59162 100644 --- a/doc/man/man3/tqdir.3qt +++ b/doc/man/man3/tqdir.3qt @@ -623,17 +623,17 @@ See also root() and rootDirPath(). .SH "bool QDir::match ( const TQString & filter, const TQString & fileName )\fC [static]\fR" Returns TRUE if the \fIfileName\fR matches the wildcard (glob) pattern \fIfilter\fR; otherwise returns FALSE. The \fIfilter\fR may contain multiple patterns separated by spaces or semicolons. .PP -(See QRegExp wildcard matching.) +(See TQRegExp wildcard matching.) .PP -See also QRegExp::match(). +See also TQRegExp::match(). .SH "bool QDir::match ( const TQStringList & filters, const TQString & fileName )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the \fIfileName\fR matches any of the wildcard (glob) patterns in the list of \fIfilters\fR; otherwise returns FALSE. .PP -(See QRegExp wildcard matching.) +(See TQRegExp wildcard matching.) .PP -See also QRegExp::match(). +See also TQRegExp::match(). .SH "bool QDir::matchAllDirs () const" Returns the value set by setMatchAllDirs() .PP @@ -759,7 +759,7 @@ See also matchAllDirs(). .SH "void QDir::setNameFilter ( const TQString & nameFilter )\fC [virtual]\fR" Sets the name filter used by entryList() and entryInfoList() to \fInameFilter\fR. .PP -The \fInameFilter\fR is a wildcard (globbing) filter that understands" *" and "?" wildcards. (See QRegExp wildcard matching.) You may specify several filter entries all separated by a single space " " or by a semi-colon" ;". +The \fInameFilter\fR is a wildcard (globbing) filter that understands" *" and "?" wildcards. (See TQRegExp wildcard matching.) You may specify several filter entries all separated by a single space " " or by a semi-colon" ;". .PP For example, if you want entryList() and entryInfoList() to list all files ending with either ".cpp" or ".h", you would use either dir.setNameFilter("*.cpp *.h") or dir.setNameFilter("*.cpp;*.h"). .PP diff --git a/doc/man/man3/tqdomdocument.3qt b/doc/man/man3/tqdomdocument.3qt index 3151caccf..6a7e8e25c 100644 --- a/doc/man/man3/tqdomdocument.3qt +++ b/doc/man/man3/tqdomdocument.3qt @@ -87,10 +87,10 @@ Inherits TQDomNode. .BI "TQDomElement \fBdocumentElement\fR () const" .br .ti -1c -.BI "bool \fBsetContent\fR ( const QCString & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.BI "bool \fBsetContent\fR ( const TQCString & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" .br .ti -1c -.BI "bool \fBsetContent\fR ( const QByteArray & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.BI "bool \fBsetContent\fR ( const TQByteArray & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" .br .ti -1c .BI "bool \fBsetContent\fR ( const TQString & text, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" @@ -99,10 +99,10 @@ Inherits TQDomNode. .BI "bool \fBsetContent\fR ( TQIODevice * dev, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" .br .ti -1c -.BI "bool \fBsetContent\fR ( const QCString & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.BI "bool \fBsetContent\fR ( const TQCString & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" .br .ti -1c -.BI "bool \fBsetContent\fR ( const QByteArray & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.BI "bool \fBsetContent\fR ( const TQByteArray & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" .br .ti -1c .BI "bool \fBsetContent\fR ( const TQString & text, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" @@ -126,10 +126,10 @@ Inherits TQDomNode. .BI "TQString \fBtoString\fR ( int indent ) const" .br .ti -1c -.BI "QCString \fBtoCString\fR () const" +.BI "TQCString \fBtoCString\fR () const" .br .ti -1c -.BI "QCString \fBtoCString\fR ( int indent ) const" +.BI "TQCString \fBtoCString\fR ( int indent ) const" .br .in -1c .SH DESCRIPTION @@ -344,7 +344,7 @@ Reimplemented from TQDomNode. Assigns \fIx\fR to this DOM document. .PP The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode(). -.SH "bool TQDomDocument::setContent ( const QByteArray & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.SH "bool TQDomDocument::setContent ( const TQByteArray & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" This function parses the XML document from the byte array \fIbuffer\fR and sets it as the content of the document. It tries to detect the encoding of the document as required by the XML specification. .PP If \fInamespaceProcessing\fR is TRUE, the parser recognizes namespaces in the XML file and sets the prefix name, local name and namespace URI to appropriate values. If \fInamespaceProcessing\fR is FALSE, the parser does no namespace processing when it reads the XML file. @@ -356,7 +356,7 @@ If \fInamespaceProcessing\fR is TRUE, the function TQDomNode::prefix() returns a If \fInamespaceProcessing\fR is FALSE, the functions TQDomNode::prefix(), TQDomNode::localName() and TQDomNode::namespaceURI() return TQString::null. .PP See also TQDomNode::namespaceURI(), TQDomNode::localName(), TQDomNode::prefix(), TQString::isNull(), and TQString::isEmpty(). -.SH "bool TQDomDocument::setContent ( const QCString & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.SH "bool TQDomDocument::setContent ( const TQCString & buffer, bool namespaceProcessing, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function reads the XML document from the C string \fIbuffer\fR. @@ -370,7 +370,7 @@ This function reads the XML document from the string \fItext\fR. Since \fItext\f This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function reads the XML document from the IO device \fIdev\fR. -.SH "bool TQDomDocument::setContent ( const QCString & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.SH "bool TQDomDocument::setContent ( const TQCString & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function reads the XML document from the C string \fIbuffer\fR. @@ -378,7 +378,7 @@ This function reads the XML document from the C string \fIbuffer\fR. No namespace processing is performed. .PP \fBWarning:\fR This function does not try to detect the encoding: instead it assumes that the C string is UTF-8 encoded. -.SH "bool TQDomDocument::setContent ( const QByteArray & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" +.SH "bool TQDomDocument::setContent ( const TQByteArray & buffer, TQString * errorMsg = 0, int * errorLine = 0, int * errorColumn = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function reads the XML document from the byte array \fIbuffer\fR. @@ -404,11 +404,11 @@ This function reads the XML document from the TQXmlInputSource \fIsource\fR and This function doesn't change the features of the \fIreader\fR. If you want to use certain features for parsing you can use this function to set up the reader appropriate. .PP See also TQXmlSimpleReader. -.SH "QCString TQDomDocument::toCString () const" -Converts the parsed document back to its textual representation and returns a QCString for that is encoded in UTF-8. +.SH "TQCString TQDomDocument::toCString () const" +Converts the parsed document back to its textual representation and returns a TQCString for that is encoded in UTF-8. .PP See also toString(). -.SH "QCString TQDomDocument::toCString ( int indent ) const" +.SH "TQCString TQDomDocument::toCString ( int indent ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function uses \fIindent\fR as the amount of space to indent subelements. diff --git a/doc/man/man3/tqdoublevalidator.3qt b/doc/man/man3/tqdoublevalidator.3qt index 84cbb241a..7642d9944 100644 --- a/doc/man/man3/tqdoublevalidator.3qt +++ b/doc/man/man3/tqdoublevalidator.3qt @@ -68,7 +68,7 @@ QDoubleValidator provides an upper bound, a lower bound and a limit on the numbe .PP You can set the acceptable range in one call with setRange(), or with setBottom() and setTop(). Set the number of decimal places with setDecimals(). The validate() function returns the validation state. .PP -See also QIntValidator, QRegExpValidator, and Miscellaneous Classes. +See also QIntValidator, TQRegExpValidator, and Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QDoubleValidator::QDoubleValidator ( TQObject * parent, const char * name = 0 )" Constructs a validator object with parent \fIparent\fR, called \fIname\fR, which accepts any double. diff --git a/doc/man/man3/tqdropevent.3qt b/doc/man/man3/tqdropevent.3qt index 5f66e425e..b20cb9f02 100644 --- a/doc/man/man3/tqdropevent.3qt +++ b/doc/man/man3/tqdropevent.3qt @@ -54,13 +54,13 @@ Inherited by TQDragMoveEvent. .BI "virtual const char * \fBformat\fR ( int n = 0 ) const" .br .ti -1c -.BI "virtual QByteArray \fBencodedData\fR ( const char * format ) const" +.BI "virtual TQByteArray \fBencodedData\fR ( const char * format ) const" .br .ti -1c .BI "virtual bool \fBprovides\fR ( const char * mimeType ) const" .br .ti -1c -.BI "QByteArray data ( const char * f ) const \fI(obsolete)\fR" +.BI "TQByteArray data ( const char * f ) const \fI(obsolete)\fR" .br .ti -1c .BI "void \fBsetPoint\fR ( const QPoint & np )" @@ -108,18 +108,18 @@ Returns the Action which the target is requesting to be performed with the data. .PP Examples: .)l dirview/dirview.cpp and fileiconview/qfileiconview.cpp. -.SH "QByteArray TQDropEvent::data ( const char * f ) const" +.SH "TQByteArray TQDropEvent::data ( const char * f ) const" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Use TQDropEvent::encodedData(). -.SH "QByteArray TQDropEvent::encodedData ( const char * format ) const\fC [virtual]\fR" +.SH "TQByteArray TQDropEvent::encodedData ( const char * format ) const\fC [virtual]\fR" Returns a byte array containing the drag's data, in \fIformat\fR. .PP data() normally needs to get the data from the drag source, which is potentially very slow, so it's advisable to call this function only if you're sure that you will need the data in \fIformat\fR. .PP The resulting data will have a size of 0 if the format was not available. .PP -See also format() and QByteArray::size(). +See also format() and TQByteArray::size(). .PP Reimplemented from TQMimeSource. .SH "const char * TQDropEvent::format ( int n = 0 ) const\fC [virtual]\fR" diff --git a/doc/man/man3/tqfile.3qt b/doc/man/man3/tqfile.3qt index 46d8aaf54..96c3ed460 100644 --- a/doc/man/man3/tqfile.3qt +++ b/doc/man/man3/tqfile.3qt @@ -33,10 +33,10 @@ Inherits TQIODevice. .BI "void \fBsetName\fR ( const TQString & name )" .br .ti -1c -.BI "typedef QCString (* \fBEncoderFn\fR ) ( const TQString & fileName )" +.BI "typedef TQCString (* \fBEncoderFn\fR ) ( const TQString & fileName )" .br .ti -1c -.BI "typedef TQString (* \fBDecoderFn\fR ) ( const QCString & localfileName )" +.BI "typedef TQString (* \fBDecoderFn\fR ) ( const TQCString & localfileName )" .br .ti -1c .BI "bool \fBexists\fR () const" @@ -90,10 +90,10 @@ Inherits TQIODevice. .SS "Static Public Members" .in +1c .ti -1c -.BI "QCString \fBencodeName\fR ( const TQString & fileName )" +.BI "TQCString \fBencodeName\fR ( const TQString & fileName )" .br .ti -1c -.BI "TQString \fBdecodeName\fR ( const QCString & localFileName )" +.BI "TQString \fBdecodeName\fR ( const TQCString & localFileName )" .br .ti -1c .BI "void \fBsetEncodingFunction\fR ( EncoderFn f )" @@ -111,7 +111,7 @@ Inherits TQIODevice. .SS "Important Inherited Members" .in +1c .ti -1c -.BI "virtual QByteArray \fBreadAll\fR ()" +.BI "virtual TQByteArray \fBreadAll\fR ()" .br .in -1c .SS "Protected Members" @@ -225,13 +225,13 @@ Examples: .)l chart/chartform_files.cpp, distributor/distributor.ui.h, helpviewer/helpwindow.cpp, mdi/application.cpp, qdir/qdir.cpp, qwerty/qwerty.cpp, and xml/outliner/outlinetree.cpp. .PP Reimplemented from TQIODevice. -.SH "TQString QFile::decodeName ( const QCString & localFileName )\fC [static]\fR" +.SH "TQString QFile::decodeName ( const TQCString & localFileName )\fC [static]\fR" This does the reverse of QFile::encodeName() using \fIlocalFileName\fR. .PP See also setDecodingFunction(). .PP Example: distributor/distributor.ui.h. -.SH "QCString QFile::encodeName ( const TQString & fileName )\fC [static]\fR" +.SH "TQCString QFile::encodeName ( const TQString & fileName )\fC [static]\fR" When you use QFile, QFileInfo, and QDir to access the file system with Qt, you can use Unicode file names. On Unix, these file names are converted to an 8-bit encoding. If you want to do your own file I/O on Unix, you should convert the file name using this function. On Windows NT/2000, Unicode file names are supported directly in the file system and this function should be avoided. On Windows 95, non-Latin1 locales are not supported. .PP By default, this function converts \fIfileName\fR to the local 8-bit encoding determined by the user's locale. This is sufficient for file names that the user chooses. File names hard-coded into the application should only use 7-bit ASCII filename characters. @@ -405,7 +405,7 @@ Returns \fIch\fR, or -1 if some error occurred. See also getch() and ungetch(). .PP Reimplemented from TQIODevice. -.SH "QByteArray TQIODevice::readAll ()\fC [virtual]\fR" +.SH "TQByteArray TQIODevice::readAll ()\fC [virtual]\fR" This convenience function returns all of the remaining data in the device. .SH "TQ_LONG QFile::readLine ( char * p, TQ_ULONG maxlen )\fC [virtual]\fR" Reads a line of text. diff --git a/doc/man/man3/tqftp.3qt b/doc/man/man3/tqftp.3qt index 3ed98be4d..778cf38a3 100644 --- a/doc/man/man3/tqftp.3qt +++ b/doc/man/man3/tqftp.3qt @@ -52,7 +52,7 @@ Inherits QNetworkProtocol. .BI "int \fBget\fR ( const TQString & file, TQIODevice * dev = 0 )" .br .ti -1c -.BI "int \fBput\fR ( const QByteArray & data, const TQString & file )" +.BI "int \fBput\fR ( const TQByteArray & data, const TQString & file )" .br .ti -1c .BI "int \fBput\fR ( TQIODevice * dev, const TQString & file )" @@ -79,7 +79,7 @@ Inherits QNetworkProtocol. .BI "TQ_LONG \fBreadBlock\fR ( char * data, TQ_ULONG maxlen )" .br .ti -1c -.BI "QByteArray \fBreadAll\fR ()" +.BI "TQByteArray \fBreadAll\fR ()" .br .ti -1c .BI "int \fBcurrentId\fR () const" @@ -538,7 +538,7 @@ Reads the data from the IO device \fIdev\fR, and writes it to the file called \f Make sure that the \fIdev\fR pointer is valid for the duration of the operation (it is safe to delete it when the commandFinished() is emitted). .PP Example: network/ftpclient/ftpmainwindow.ui.h. -.SH "int QFtp::put ( const QByteArray & data, const TQString & file )" +.SH "int QFtp::put ( const TQByteArray & data, const TQString & file )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes the data \fIdata\fR to the file called \fIfile\fR on the server. The progress of the upload is reported by the dataTransferProgress() signal. @@ -564,7 +564,7 @@ This signal is emitted in response to the rawCommand() function. \fIreplyCode\fR See also rawCommand(). .PP Example: network/ftpclient/ftpmainwindow.ui.h. -.SH "QByteArray QFtp::readAll ()" +.SH "TQByteArray QFtp::readAll ()" Reads all the bytes available from the data socket and returns them. .PP See also get(), readyRead(), bytesAvailable(), and readBlock(). diff --git a/doc/man/man3/tqhebrewcodec.3qt b/doc/man/man3/tqhebrewcodec.3qt index 2091dc5d5..8ebd2f338 100644 --- a/doc/man/man3/tqhebrewcodec.3qt +++ b/doc/man/man3/tqhebrewcodec.3qt @@ -21,7 +21,7 @@ Inherits TQTextCodec. .BI "virtual const char * \fBmimeName\fR () const" .br .ti -1c -.BI "virtual QCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) const" +.BI "virtual TQCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) const" .br .in -1c .SH DESCRIPTION @@ -39,7 +39,7 @@ This codec has the name "iso8859-8". If you don't want any bidi reordering to ha .PP See also Internationalization with Qt. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QCString TQHebrewCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR" +.SH "TQCString TQHebrewCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR" Transforms the logically ordered TQString, \fIuc\fR, into a visually ordered string in the 8859-8 encoding. Qt's bidi algorithm is used to perform this task. Note that newline characters affect the reordering, since reordering is done on a line by line basis. .PP The algorithm is designed to work on whole paragraphs of text, so processing a line at a time may produce incorrect results. This approach is taken because the reordering of the contents of a particular line in a paragraph may depend on the previous line in the same paragraph. diff --git a/doc/man/man3/tqhttp.3qt b/doc/man/man3/tqhttp.3qt index f31d5fdee..7e1409741 100644 --- a/doc/man/man3/tqhttp.3qt +++ b/doc/man/man3/tqhttp.3qt @@ -43,7 +43,7 @@ Inherits QNetworkProtocol. .BI "int \fBpost\fR ( const TQString & path, TQIODevice * data, TQIODevice * to = 0 )" .br .ti -1c -.BI "int \fBpost\fR ( const TQString & path, const QByteArray & data, TQIODevice * to = 0 )" +.BI "int \fBpost\fR ( const TQString & path, const TQByteArray & data, TQIODevice * to = 0 )" .br .ti -1c .BI "int \fBhead\fR ( const TQString & path )" @@ -52,7 +52,7 @@ Inherits QNetworkProtocol. .BI "int \fBrequest\fR ( const QHttpRequestHeader & header, TQIODevice * data = 0, TQIODevice * to = 0 )" .br .ti -1c -.BI "int \fBrequest\fR ( const QHttpRequestHeader & header, const QByteArray & data, TQIODevice * to = 0 )" +.BI "int \fBrequest\fR ( const QHttpRequestHeader & header, const TQByteArray & data, TQIODevice * to = 0 )" .br .ti -1c .BI "int \fBcloseConnection\fR ()" @@ -64,7 +64,7 @@ Inherits QNetworkProtocol. .BI "TQ_LONG \fBreadBlock\fR ( char * data, TQ_ULONG maxlen )" .br .ti -1c -.BI "QByteArray \fBreadAll\fR ()" +.BI "TQByteArray \fBreadAll\fR ()" .br .ti -1c .BI "int \fBcurrentId\fR () const" @@ -443,11 +443,11 @@ The function does not block and returns immediately. The request is scheduled, a When the request is started the requestStarted() signal is emitted. When it is finished the requestFinished() signal is emitted. .PP See also setHost(), get(), head(), request(), requestStarted(), requestFinished(), and done(). -.SH "int QHttp::post ( const TQString & path, const QByteArray & data, TQIODevice * to = 0 )" +.SH "int QHttp::post ( const TQString & path, const TQByteArray & data, TQIODevice * to = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIdata\fR is used as the content data of the HTTP request. -.SH "QByteArray QHttp::readAll ()" +.SH "TQByteArray QHttp::readAll ()" Reads all the bytes from the response content and returns them. .PP See also get(), post(), request(), readyRead(), bytesAvailable(), and readBlock(). @@ -481,7 +481,7 @@ The function does not block and returns immediately. The request is scheduled, a When the request is started the requestStarted() signal is emitted. When it is finished the requestFinished() signal is emitted. .PP See also setHost(), get(), post(), head(), requestStarted(), requestFinished(), and done(). -.SH "int QHttp::request ( const QHttpRequestHeader & header, const QByteArray & data, TQIODevice * to = 0 )" +.SH "int QHttp::request ( const QHttpRequestHeader & header, const TQByteArray & data, TQIODevice * to = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIdata\fR is used as the content data of the HTTP request. diff --git a/doc/man/man3/tqicondrag.3qt b/doc/man/man3/tqicondrag.3qt index 203a15b4a..a6e25eb2e 100644 --- a/doc/man/man3/tqicondrag.3qt +++ b/doc/man/man3/tqicondrag.3qt @@ -25,7 +25,7 @@ Inherits TQDragObject. .BI "void \fBappend\fR ( const TQIconDragItem & i, const QRect & pr, const QRect & tr )" .br .ti -1c -.BI "virtual QByteArray \fBencodedData\fR ( const char * mime ) const" +.BI "virtual TQByteArray \fBencodedData\fR ( const char * mime ) const" .br .in -1c .SS "Static Public Members" @@ -41,7 +41,7 @@ A TQIconDrag object is used to maintain information about the positions of dragg .PP If you want to use the extended drag-and-drop functionality of TQIconView, create a TQIconDrag object in a reimplementation of TQIconView::dragObject(). Then create a TQIconDragItem for each item which should be dragged, set the data it represents with TQIconDragItem::setData(), and add each TQIconDragItem to the drag object using append(). .PP -The data in TQIconDragItems is stored in a QByteArray and is mime-typed (see TQMimeSource and the Drag and Drop overview). If you want to use your own mime-types derive a class from TQIconDrag and reimplement format(), encodedData() and canDecode(). +The data in TQIconDragItems is stored in a TQByteArray and is mime-typed (see TQMimeSource and the Drag and Drop overview). If you want to use your own mime-types derive a class from TQIconDrag and reimplement format(), encodedData() and canDecode(). .PP The fileiconview example program demonstrates the use of the TQIconDrag class including subclassing and reimplementing dragObject(), format(), encodedData() and canDecode(). See the files \fCqt/examples/fileiconview/qfileiconview.h\fR and \fCqt/examples/fileiconview/qfileiconview.cpp\fR. .PP @@ -63,7 +63,7 @@ Example: fileiconview/qfileiconview.cpp. Returns TRUE if \fIe\fR can be decoded by the TQIconDrag, otherwise return FALSE. .PP Example: fileiconview/qfileiconview.cpp. -.SH "QByteArray TQIconDrag::encodedData ( const char * mime ) const\fC [virtual]\fR" +.SH "TQByteArray TQIconDrag::encodedData ( const char * mime ) const\fC [virtual]\fR" Returns the encoded data of the drag object if \fImime\fR is application/x-qiconlist. .PP Example: fileiconview/qfileiconview.cpp. diff --git a/doc/man/man3/tqicondragitem.3qt b/doc/man/man3/tqicondragitem.3qt index 21a1b877c..b048ce797 100644 --- a/doc/man/man3/tqicondragitem.3qt +++ b/doc/man/man3/tqicondragitem.3qt @@ -20,10 +20,10 @@ TQIconDragItem \- Encapsulates a drag item .BI "virtual \fB~TQIconDragItem\fR ()" .br .ti -1c -.BI "virtual QByteArray \fBdata\fR () const" +.BI "virtual TQByteArray \fBdata\fR () const" .br .ti -1c -.BI "virtual void \fBsetData\fR ( const QByteArray & d )" +.BI "virtual void \fBsetData\fR ( const TQByteArray & d )" .br .in -1c .SH DESCRIPTION @@ -43,10 +43,10 @@ See also Drag And Drop Classes. Constructs a TQIconDragItem with no data. .SH "TQIconDragItem::~TQIconDragItem ()\fC [virtual]\fR" Destructor. -.SH "QByteArray TQIconDragItem::data () const\fC [virtual]\fR" +.SH "TQByteArray TQIconDragItem::data () const\fC [virtual]\fR" Returns the data contained in the TQIconDragItem. -.SH "void TQIconDragItem::setData ( const QByteArray & d )\fC [virtual]\fR" -Sets the data for the TQIconDragItem to the data stored in the QByteArray \fId\fR. +.SH "void TQIconDragItem::setData ( const TQByteArray & d )\fC [virtual]\fR" +Sets the data for the TQIconDragItem to the data stored in the TQByteArray \fId\fR. .PP Example: fileiconview/qfileiconview.cpp. diff --git a/doc/man/man3/tqimage.3qt b/doc/man/man3/tqimage.3qt index 2057a1b87..0923308da 100644 --- a/doc/man/man3/tqimage.3qt +++ b/doc/man/man3/tqimage.3qt @@ -32,7 +32,7 @@ TQImage \- Hardware-independent pixmap representation with direct access to the .BI "\fBTQImage\fR ( const char * const xpm[] )" .br .ti -1c -.BI "\fBTQImage\fR ( const QByteArray & array )" +.BI "\fBTQImage\fR ( const TQByteArray & array )" .br .ti -1c .BI "\fBTQImage\fR ( uchar * yourdata, int w, int h, int depth, TQRgb * colortable, int numColors, Endian bitOrder )" @@ -206,7 +206,7 @@ TQImage \- Hardware-independent pixmap representation with direct access to the .BI "bool \fBloadFromData\fR ( const uchar * buf, uint len, const char * format = 0 )" .br .ti -1c -.BI "bool \fBloadFromData\fR ( QByteArray buf, const char * format = 0 )" +.BI "bool \fBloadFromData\fR ( TQByteArray buf, const char * format = 0 )" .br .ti -1c .BI "bool \fBsave\fR ( const TQString & fileName, const char * format, int quality = -1 ) const" @@ -373,7 +373,7 @@ Images can be loaded and saved in the supported formats. Images are saved to a f .PP Strings of text may be added to images using setText(). .PP -The TQImage class uses explicit sharing, similar to that used by QMemArray. +The TQImage class uses explicit sharing, similar to that used by TQMemArray. .PP New image formats can be added as plugins. .PP @@ -448,7 +448,7 @@ Note that it's possible to squeeze the XPM variable a little bit by using an unu .fi .PP The extra \fCconst\fR makes the entire definition read-only, which is slightly more efficient (e.g. when the code is in a shared library) and ROMable when the application is to be stored in ROM. -.SH "TQImage::TQImage ( const QByteArray & array )" +.SH "TQImage::TQImage ( const TQByteArray & array )" Constructs an image from the binary data \fIarray\fR. It tries to guess the file format. .PP If the loading of the image failed, this object is a null image. @@ -709,10 +709,10 @@ If \fIformat\fR is specified, the loader attempts to read the image using the sp The TQImageIO documentation lists the supported image formats and explains how to add extra formats. .PP See also load(), save(), imageFormat(), QPixmap::loadFromData(), and TQImageIO. -.SH "bool TQImage::loadFromData ( QByteArray buf, const char * format = 0 )" +.SH "bool TQImage::loadFromData ( TQByteArray buf, const char * format = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Loads an image from the QByteArray \fIbuf\fR. +Loads an image from the TQByteArray \fIbuf\fR. .SH "TQImage TQImage::mirror () const" Returns a TQImage which is a vertically mirrored copy of this image. The original TQImage is not changed. .SH "TQImage TQImage::mirror ( bool horizontal, bool vertical ) const" @@ -813,13 +813,13 @@ See also load(), loadFromData(), imageFormat(), QPixmap::save(), and TQImageIO. .SH "bool TQImage::save ( TQIODevice * device, const char * format, int quality = -1 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -This function writes a TQImage to the TQIODevice, \fIdevice\fR. This can be used, for example, to save an image directly into a QByteArray: +This function writes a TQImage to the TQIODevice, \fIdevice\fR. This can be used, for example, to save an image directly into a TQByteArray: .PP .nf .br TQImage image; .br - QByteArray ba; + TQByteArray ba; .br QBuffer buffer( ba ); .br diff --git a/doc/man/man3/tqimageio.3qt b/doc/man/man3/tqimageio.3qt index 327ed5ffd..57befd609 100644 --- a/doc/man/man3/tqimageio.3qt +++ b/doc/man/man3/tqimageio.3qt @@ -177,7 +177,7 @@ Example: .br .fi .PP -Before the regex test, all the 0 bytes in the file header are converted to 1 bytes. This is done because when TQt was ASCII-based, QRegExp could not handle 0 bytes in strings. +Before the regex test, all the 0 bytes in the file header are converted to 1 bytes. This is done because when TQt was ASCII-based, TQRegExp could not handle 0 bytes in strings. .PP The regexp is only applied on the first 14 bytes of the file. .PP diff --git a/doc/man/man3/tqintcache.3qt b/doc/man/man3/tqintcache.3qt index 458b82178..f49d9274e 100644 --- a/doc/man/man3/tqintcache.3qt +++ b/doc/man/man3/tqintcache.3qt @@ -1,5 +1,5 @@ '\" t -.TH QIntCache 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQIntCache 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 -QIntCache \- Template class that provides a cache based on long keys +TQIntCache \- Template class that provides a cache based on long keys .SH SYNOPSIS -\fC#include <ntqintcache.h>\fR +\fC#include <tqintcache.h>\fR .PP Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQIntCache\fR ( int maxCost = 100, int size = 17 )" +.BI "\fBTQIntCache\fR ( int maxCost = 100, int size = 17 )" .br .ti -1c -.BI "\fB~QIntCache\fR ()" +.BI "\fB~TQIntCache\fR ()" .br .ti -1c .BI "int \fBmaxCost\fR () const" @@ -62,9 +62,9 @@ Inherits TQPtrCollection. .br .in -1c .SH DESCRIPTION -The QIntCache class is a template class that provides a cache based on long keys. +The TQIntCache class is a template class that provides a cache based on long keys. .PP -QIntCache is implemented as a template class. Define a template instance QIntCache<X> to create a cache that operates on pointers to X, or X*. +TQIntCache is implemented as a template class. Define a template instance TQIntCache<X> to create a cache that operates on pointers to X, or X*. .PP A cache is a least recently used (LRU) list of cache items, accessed via \fClong\fR keys. Each cache item has a cost. The sum of item costs, totalCost(), will not exceed the maximum cache cost, maxCost(). If inserting a new item would cause the total cost to exceed the maximum cost, the least recently used items in the cache are removed. .PP @@ -76,19 +76,19 @@ When inserting an item into the cache, only the pointer is copied, not the item .PP When removing a cache item, the item will be automatically deleted if auto-deletion is enabled. .PP -There is a QIntCacheIterator which may be used to traverse the items in the cache in arbitrary order. +There is a TQIntCacheIterator which may be used to traverse the items in the cache in arbitrary order. .PP -See also QIntCacheIterator, QCache, QAsciiCache, Collection Classes, and Non-GUI Classes. +See also TQIntCacheIterator, TQCache, TQAsciiCache, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QIntCache::QIntCache ( int maxCost = 100, int size = 17 )" +.SH "TQIntCache::TQIntCache ( int maxCost = 100, int size = 17 )" Constructs a cache whose contents will never have a total cost greater than \fImaxCost\fR and which is expected to contain less than \fIsize\fR items. .PP \fIsize\fR is actually the size of an internal hash array; it's usually best to make it prime and at least 50% bigger than the largest expected number of items in the cache. .PP Each inserted item is associated with a cost. When inserting a new item, if the total cost of all items in the cache will exceed \fImaxCost\fR, the cache will start throwing out the older (least recently used) items until there is enough room for the new item to be inserted. -.SH "QIntCache::~QIntCache ()" +.SH "TQIntCache::~TQIntCache ()" Removes all items from the cache and then destroys the int cache. If auto-deletion is enabled the cache's items are deleted. All iterators that access this cache will be reset. -.SH "void QIntCache::clear ()\fC [virtual]\fR" +.SH "void TQIntCache::clear ()\fC [virtual]\fR" Removes all items from the cache, and deletes them if auto-deletion has been enabled. .PP All cache iterators that operate this on cache are reset. @@ -96,31 +96,31 @@ All cache iterators that operate this on cache are reset. See also remove() and take(). .PP Reimplemented from TQPtrCollection. -.SH "uint QIntCache::count () const\fC [virtual]\fR" +.SH "uint TQIntCache::count () const\fC [virtual]\fR" Returns the number of items in the cache. .PP See also totalCost(). .PP Reimplemented from TQPtrCollection. -.SH "type * QIntCache::find ( long k, bool ref = TRUE ) const" +.SH "type * TQIntCache::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 If there are two or more items with equal keys, the one that was inserted most recently is returned. -.SH "bool QIntCache::insert ( long k, const type * d, int c = 1, int p = 0 )" +.SH "bool TQIntCache::insert ( long k, const type * d, int c = 1, int p = 0 )" Inserts the item \fId\fR into the cache with key \fIk\fR and assigns it a cost of \fIc\fR (default 1). Returns TRUE if it succeeds; otherwise returns FALSE. .PP -The cache's size is limited, and if the total cost is too high, QIntCache will remove old, least-used items until there is room for this new item. +The cache's size is limited, and if the total cost is too high, TQIntCache will remove old, least-used items until there is room for this new item. .PP The parameter \fIp\fR is internal and should be left at the default value (0). .PP \fBWarning:\fR If this function returns FALSE (for example, the cost \fC,\fR exceeds maxCost()), you must delete \fId\fR yourself. Additionally, be very careful about using \fId\fR after calling this function. Any other insertions into the cache, from anywhere in the application or within TQt itself, could cause the object to be discarded from the cache and the pointer to become invalid. -.SH "bool QIntCache::isEmpty () const" +.SH "bool TQIntCache::isEmpty () const" Returns TRUE if the cache is empty; otherwise returns FALSE. -.SH "int QIntCache::maxCost () const" +.SH "int TQIntCache::maxCost () const" Returns the maximum allowed total cost of the cache. .PP See also setMaxCost() and totalCost(). -.SH "type * QIntCache::operator[] ( long k ) const" +.SH "type * TQIntCache::operator[] ( long k ) const" Returns the item associated with \fIk\fR, or 0 if \fIk\fR does not exist in the cache, and moves the item to the front of the least recently used list. .PP If there are two or more items with equal keys, the one that was inserted most recently is returned. @@ -128,7 +128,7 @@ If there are two or more items with equal keys, the one that was inserted most r This is the same as find( k, TRUE ). .PP See also find(). -.SH "bool QIntCache::remove ( long k )" +.SH "bool TQIntCache::remove ( long k )" Removes the item associated with \fIk\fR, and returns TRUE if the item was present in the cache; otherwise returns FALSE. .PP The item is deleted if auto-deletion has been enabled, i.e. if you have called setAutoDelete(TRUE). @@ -138,15 +138,15 @@ If there are two or more items with equal keys, the one that was inserted most r 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 QIntCache::setMaxCost ( int m )" +.SH "void TQIntCache::setMaxCost ( int m )" Sets the maximum allowed total cost of the cache to \fIm\fR. If the current total cost is greater than \fIm\fR, some items are removed immediately. .PP See also maxCost() and totalCost(). -.SH "uint QIntCache::size () const" +.SH "uint TQIntCache::size () const" Returns the size of the hash array used to implement the cache. This should be a bit larger than count() is likely to be. -.SH "void QIntCache::statistics () const" +.SH "void TQIntCache::statistics () const" A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using tqDebug(). This function does nothing in the release library. -.SH "type * QIntCache::take ( long k )" +.SH "type * TQIntCache::take ( long k )" Takes the item associated with \fIk\fR out of the cache without deleting it, and returns a pointer to the item taken out or 0 if the key does not exist in the cache. .PP If there are two or more items with equal keys, the one that was inserted most recently is taken. @@ -154,13 +154,13 @@ If there are two or more items with equal keys, the one that was inserted most r All iterators that refer to the taken item are set to point to the next item in the cache's traversal order. .PP See also remove() and clear(). -.SH "int QIntCache::totalCost () const" +.SH "int TQIntCache::totalCost () const" Returns the total cost of the items in the cache. This is an integer in the range 0 to maxCost(). .PP See also setMaxCost(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqintcache.html +.BR http://doc.trolltech.com/tqintcache.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/tqintcacheiterator.3qt b/doc/man/man3/tqintcacheiterator.3qt index c45ef38a3..4f241cde3 100644 --- a/doc/man/man3/tqintcacheiterator.3qt +++ b/doc/man/man3/tqintcacheiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QIntCacheIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQIntCacheIterator 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,20 +7,20 @@ .ad l .nh .SH NAME -QIntCacheIterator \- Iterator for QIntCache collections +TQIntCacheIterator \- Iterator for TQIntCache collections .SH SYNOPSIS -\fC#include <ntqintcache.h>\fR +\fC#include <tqintcache.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQIntCacheIterator\fR ( const QIntCache<type> & cache )" +.BI "\fBTQIntCacheIterator\fR ( const TQIntCache<type> & cache )" .br .ti -1c -.BI "\fBQIntCacheIterator\fR ( const QIntCacheIterator<type> & ci )" +.BI "\fBTQIntCacheIterator\fR ( const TQIntCacheIterator<type> & ci )" .br .ti -1c -.BI "QIntCacheIterator<type> & \fBoperator=\fR ( const QIntCacheIterator<type> & ci )" +.BI "TQIntCacheIterator<type> & \fBoperator=\fR ( const TQIntCacheIterator<type> & ci )" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -66,65 +66,65 @@ QIntCacheIterator \- Iterator for QIntCache collections .br .in -1c .SH DESCRIPTION -The QIntCacheIterator class provides an iterator for QIntCache collections. +The TQIntCacheIterator class provides an iterator for TQIntCache collections. .PP Note that the traversal order is arbitrary; you are not guaranteed any particular order. If new objects are inserted into the cache while the iterator is active, the iterator may or may not see them. .PP -Multiple iterators are completely independent, even when they operate on the same QIntCache. QIntCache updates all iterators that refer an item when that item is removed. +Multiple iterators are completely independent, even when they operate on the same TQIntCache. TQIntCache updates all iterators that refer an item when that item is removed. .PP -QIntCacheIterator provides an operator++(), and an operator+=() to traverse the cache; current() and currentKey() to access the current cache item and its key; atFirst() atLast(), which return TRUE if the iterator points to the first/last item in the cache; isEmpty(), which returns TRUE if the cache is empty; and count(), which returns the number of items in the cache. +TQIntCacheIterator provides an operator++(), and an operator+=() to traverse the cache; current() and currentKey() to access the current cache item and its key; atFirst() atLast(), which return TRUE if the iterator points to the first/last item in the cache; isEmpty(), which returns TRUE if the cache is empty; and count(), which returns the number of items in the cache. .PP Note that atFirst() and atLast() refer to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP -See also QIntCache, Collection Classes, and Non-GUI Classes. +See also TQIntCache, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QIntCacheIterator::QIntCacheIterator ( const QIntCache<type> & cache )" +.SH "TQIntCacheIterator::TQIntCacheIterator ( const TQIntCache<type> & cache )" Constructs an iterator for \fIcache\fR. The current iterator item is set to point to the first item in the \fIcache\fR (or rather, the first item is defined to be the item at which this constructor sets the iterator to point). -.SH "QIntCacheIterator::QIntCacheIterator ( const QIntCacheIterator<type> & ci )" +.SH "TQIntCacheIterator::TQIntCacheIterator ( const TQIntCacheIterator<type> & ci )" Constructs an iterator for the same cache as \fIci\fR. The new iterator starts at the same item as ci.current(), but moves independently from there on. -.SH "bool QIntCacheIterator::atFirst () const" +.SH "bool TQIntCacheIterator::atFirst () const" Returns TRUE if the iterator points to the first item in the cache; otherwise returns FALSE. Note that this refers to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP See also toFirst() and atLast(). -.SH "bool QIntCacheIterator::atLast () const" +.SH "bool TQIntCacheIterator::atLast () const" Returns TRUE if the iterator points to the last item in the cache; otherwise returns FALSE. Note that this refers to the iterator's arbitrary ordering, not to the cache's internal least recently used list. .PP See also toLast() and atFirst(). -.SH "uint QIntCacheIterator::count () const" +.SH "uint TQIntCacheIterator::count () const" Returns the number of items in the cache on which this iterator operates. .PP See also isEmpty(). -.SH "type * QIntCacheIterator::current () const" +.SH "type * TQIntCacheIterator::current () const" Returns a pointer to the current iterator item. -.SH "long QIntCacheIterator::currentKey () const" +.SH "long TQIntCacheIterator::currentKey () const" Returns the key for the current iterator item. -.SH "bool QIntCacheIterator::isEmpty () const" +.SH "bool TQIntCacheIterator::isEmpty () const" Returns TRUE if the cache is empty; otherwise returns FALSE. .PP See also count(). -.SH "QIntCacheIterator::operator type * () const" +.SH "TQIntCacheIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QIntCacheIterator::operator() ()" +.SH "type * TQIntCacheIterator::operator() ()" Makes the succeeding item current and returns the original current item. .PP If the current iterator item was the last item in the cache or if it was 0, 0 is returned. -.SH "type * QIntCacheIterator::operator++ ()" +.SH "type * TQIntCacheIterator::operator++ ()" Prefix ++ makes the iterator point to the item just after current(), and makes it the new current item for the iterator. If current() was the last item, operator--() returns 0. -.SH "type * QIntCacheIterator::operator+= ( uint jump )" +.SH "type * TQIntCacheIterator::operator+= ( uint jump )" Returns the item \fIjump\fR positions after the current item, or 0 if it is beyond the last item. Makes this the current item. -.SH "type * QIntCacheIterator::operator-- ()" +.SH "type * TQIntCacheIterator::operator-- ()" Prefix -- makes the iterator point to the item just before current(), and makes it the new current item for the iterator. If current() was the first item, operator--() returns 0. -.SH "type * QIntCacheIterator::operator-= ( uint jump )" +.SH "type * TQIntCacheIterator::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 "QIntCacheIterator<type> & QIntCacheIterator::operator= ( const QIntCacheIterator<type> & ci )" +.SH "TQIntCacheIterator<type> & TQIntCacheIterator::operator= ( const TQIntCacheIterator<type> & ci )" Makes this an iterator for the same cache as \fIci\fR. The new iterator starts at the same item as ci.current(), but moves independently thereafter. -.SH "type * QIntCacheIterator::toFirst ()" +.SH "type * TQIntCacheIterator::toFirst ()" Sets the iterator to point to the first item in the cache and returns a pointer to the item. .PP Sets the iterator to 0, and returns 0, if the cache is empty. .PP See also toLast() and isEmpty(). -.SH "type * QIntCacheIterator::toLast ()" +.SH "type * TQIntCacheIterator::toLast ()" Sets the iterator to point to the last item in the cache and returns a pointer to the item. .PP Sets the iterator to 0, and returns 0, if the cache is empty. @@ -132,7 +132,7 @@ Sets the iterator to 0, and returns 0, if the cache is empty. See also toFirst() and isEmpty(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qintcacheiterator.html +.BR http://doc.trolltech.com/tqintcacheiterator.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/tqintdict.3qt b/doc/man/man3/tqintdict.3qt index 936ca6cd0..71d58c019 100644 --- a/doc/man/man3/tqintdict.3qt +++ b/doc/man/man3/tqintdict.3qt @@ -1,5 +1,5 @@ '\" t -.TH QIntDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQIntDict 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 -QIntDict \- Template class that provides a dictionary based on long keys +TQIntDict \- Template class that provides a dictionary based on long keys .SH SYNOPSIS -\fC#include <ntqintdict.h>\fR +\fC#include <tqintdict.h>\fR .PP Inherits TQPtrCollection. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQIntDict\fR ( int size = 17 )" +.BI "\fBTQIntDict\fR ( int size = 17 )" .br .ti -1c -.BI "\fBQIntDict\fR ( const QIntDict<type> & dict )" +.BI "\fBTQIntDict\fR ( const TQIntDict<type> & dict )" .br .ti -1c -.BI "\fB~QIntDict\fR ()" +.BI "\fB~TQIntDict\fR ()" .br .ti -1c -.BI "QIntDict<type> & \fBoperator=\fR ( const QIntDict<type> & dict )" +.BI "TQIntDict<type> & \fBoperator=\fR ( const TQIntDict<type> & dict )" .br .ti -1c .BI "virtual uint \fBcount\fR () const" @@ -83,11 +83,11 @@ Inherits TQPtrCollection. .br .in -1c .SH DESCRIPTION -The QIntDict class is a template class that provides a dictionary based on long keys. +The TQIntDict class is a template class that provides a dictionary based on long keys. .PP TQMap is an STL-compatible alternative to this class. .PP -QIntDict is implemented as a template class. Define a template instance QIntDict<X> to create a dictionary that operates on pointers to X (X*). +TQIntDict is implemented as a template class. Define a template instance TQIntDict<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 an \fClong\fR used for insertion, removal and lookup. The value is a pointer. Dictionaries provide very fast insertion and lookup. .PP @@ -95,7 +95,7 @@ Example: .PP .nf .br - QIntDict<QLineEdit> fields; // long int keys, QLineEdit* values + TQIntDict<QLineEdit> fields; // long int keys, QLineEdit* values .br for ( int i = 0; i < 3; i++ ) .br @@ -109,7 +109,7 @@ Example: fields[2]->setText( "45" ); .br .br - QIntDictIterator<QLineEdit> it( fields ); + TQIntDictIterator<QLineEdit> it( fields ); .br for ( ; it.current(); ++it ) .br @@ -133,19 +133,19 @@ Example: .br .fi .PP -See QDict for full details, including the choice of dictionary size, and how deletions are handled. +See TQDict for full details, including the choice of dictionary size, and how deletions are handled. .PP -See also QIntDictIterator, QDict, QAsciiDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. +See also TQIntDictIterator, TQDict, TQAsciiDict, TQPtrDict, Collection Classes, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QIntDict::QIntDict ( int size = 17 )" +.SH "TQIntDict::TQIntDict ( int size = 17 )" Constructs a dictionary using an internal hash array of 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 which leads to faster lookup. -.SH "QIntDict::QIntDict ( const QIntDict<type> & dict )" +.SH "TQIntDict::TQIntDict ( const TQIntDict<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 "QIntDict::~QIntDict ()" +.SH "TQIntDict::~TQIntDict ()" Removes all items from the dictionary and destroys it. .PP All iterators that access this dictionary will be reset. @@ -155,7 +155,7 @@ See also setAutoDelete(). Returns the setting of the auto-delete option. The default is FALSE. .PP See also setAutoDelete(). -.SH "void QIntDict::clear ()\fC [virtual]\fR" +.SH "void TQIntDict::clear ()\fC [virtual]\fR" Removes all items from the dictionary. .PP The removed items are deleted if auto-deletion is enabled. @@ -165,13 +165,13 @@ All dictionary iterators that access this dictionary will be reset. See also remove(), take(), and setAutoDelete(). .PP Reimplemented from TQPtrCollection. -.SH "uint QIntDict::count () const\fC [virtual]\fR" +.SH "uint TQIntDict::count () const\fC [virtual]\fR" Returns the number of items in the dictionary. .PP See also isEmpty(). .PP Reimplemented from TQPtrCollection. -.SH "type * QIntDict::find ( long key ) const" +.SH "type * TQIntDict::find ( long 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. @@ -181,7 +181,7 @@ Equivalent to operator[]. See also operator[](). .PP Example: table/bigtable/main.cpp. -.SH "void QIntDict::insert ( long key, const type * item )" +.SH "void TQIntDict::insert ( long key, const type * item )" Insert item \fIitem\fR into the dictionary using key \fIkey\fR. .PP Multiple items can have the same key, in which case only the last item will be accessible using operator[](). @@ -191,15 +191,15 @@ Multiple items can have the same key, in which case only the last item will be a See also replace(). .PP Example: scribble/scribble.cpp. -.SH "bool QIntDict::isEmpty () const" +.SH "bool TQIntDict::isEmpty () const" Returns TRUE if the dictionary is empty; otherwise returns FALSE. .PP See also count(). -.SH "QIntDict<type> & QIntDict::operator= ( const QIntDict<type> & dict )" +.SH "TQIntDict<type> & TQIntDict::operator= ( const TQIntDict<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 this dictionary. Only the pointers are copied (shallow copy), unless newItem() has been reimplemented. -.SH "type * QIntDict::operator[] ( long key ) const" +.SH "type * TQIntDict::operator[] ( long 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. @@ -207,13 +207,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 & QIntDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR" +.SH "QDataStream & TQIntDict::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 QIntDict::remove ( long key )" +.SH "bool TQIntDict::remove ( long key )" Removes the item associated with \fIkey\fR from the dictionary. Returns TRUE if successful, i.e. if the \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. @@ -225,7 +225,7 @@ All dictionary iterators that refer to the removed item will be set to point to See also take(), clear(), and setAutoDelete(). .PP Example: table/bigtable/main.cpp. -.SH "void QIntDict::replace ( long key, const type * item )" +.SH "void TQIntDict::replace ( long 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. @@ -234,7 +234,7 @@ Equivalent to: .PP .nf .br - QIntDict<char> dict; + TQIntDict<char> dict; .br // ... .br @@ -251,7 +251,7 @@ If there are two or more items with equal keys, then the most recently inserted See also insert(). .PP Example: table/bigtable/main.cpp. -.SH "void QIntDict::resize ( uint newsize )" +.SH "void TQIntDict::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 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. @@ -266,13 +266,13 @@ See also autoDelete(). .PP Examples: .)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp. -.SH "uint QIntDict::size () const" +.SH "uint TQIntDict::size () const" Returns the size of the internal hash array (as specified in the constructor). .PP See also count(). -.SH "void QIntDict::statistics () const" +.SH "void TQIntDict::statistics () const" Debugging-only function that prints out the dictionary distribution using tqDebug(). -.SH "type * QIntDict::take ( long key )" +.SH "type * TQIntDict::take ( long 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 taken. @@ -284,13 +284,13 @@ 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, TQPtrCollection::Item ) const\fC [virtual protected]\fR" +.SH "QDataStream & TQIntDict::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/ntqintdict.html +.BR http://doc.trolltech.com/tqintdict.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/tqintdictiterator.3qt b/doc/man/man3/tqintdictiterator.3qt index 0b36f19d2..71211a65c 100644 --- a/doc/man/man3/tqintdictiterator.3qt +++ b/doc/man/man3/tqintdictiterator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QIntDictIterator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQIntDictIterator 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 -QIntDictIterator \- Iterator for QIntDict collections +TQIntDictIterator \- Iterator for TQIntDict collections .SH SYNOPSIS -\fC#include <ntqintdict.h>\fR +\fC#include <tqintdict.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQIntDictIterator\fR ( const QIntDict<type> & dict )" +.BI "\fBTQIntDictIterator\fR ( const TQIntDict<type> & dict )" .br .ti -1c -.BI "\fB~QIntDictIterator\fR ()" +.BI "\fB~TQIntDictIterator\fR ()" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -48,15 +48,15 @@ QIntDictIterator \- Iterator for QIntDict collections .br .in -1c .SH DESCRIPTION -The QIntDictIterator class provides an iterator for QIntDict collections. +The TQIntDictIterator class provides an iterator for TQIntDict collections. .PP -QIntDictIterator is implemented as a template class. Define a template instance QIntDictIterator<X> to create a dictionary iterator that operates on QIntDict<X> (dictionary of X*). +TQIntDictIterator is implemented as a template class. Define a template instance TQIntDictIterator<X> to create a dictionary iterator that operates on TQIntDict<X> (dictionary of X*). .PP Example: .PP .nf .br - QIntDict<QLineEdit> fields; + TQIntDict<QLineEdit> fields; .br for ( int i = 0; i < 3; i++ ) .br @@ -70,7 +70,7 @@ Example: fields[2]->setText( "45" ); .br .br - QIntDictIterator<QLineEdit> it( fields ); + TQIntDictIterator<QLineEdit> it( fields ); .br .br for ( ; it.current(); ++it ) @@ -90,41 +90,41 @@ Example: .PP Note that the traversal order is arbitrary; you are not guaranteed the order shown above. .PP -Multiple iterators may independently traverse the same dictionary. A QIntDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, QIntDict updates all iterators that refer the removed item to point to the next item in the traversal order. +Multiple iterators may independently traverse the same dictionary. A TQIntDict knows about all the iterators that are operating on the dictionary. When an item is removed from the dictionary, TQIntDict updates all iterators that refer the removed item to point to the next item in the traversal order. .PP -See also QIntDict, Collection Classes, and Non-GUI Classes. +See also TQIntDict, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QIntDictIterator::QIntDictIterator ( const QIntDict<type> & dict )" +.SH "TQIntDictIterator::TQIntDictIterator ( const TQIntDict<type> & dict )" Constructs an iterator for \fIdict\fR. The current iterator item is set to point to the 'first' item in the \fIdict\fR. The first item refers to the first item in the dictionary's arbitrary internal ordering. -.SH "QIntDictIterator::~QIntDictIterator ()" +.SH "TQIntDictIterator::~TQIntDictIterator ()" Destroys the iterator. -.SH "uint QIntDictIterator::count () const" +.SH "uint TQIntDictIterator::count () const" Returns the number of items in the dictionary this iterator operates over. .PP See also isEmpty(). -.SH "type * QIntDictIterator::current () const" +.SH "type * TQIntDictIterator::current () const" Returns a pointer to the current iterator item. -.SH "long QIntDictIterator::currentKey () const" +.SH "long TQIntDictIterator::currentKey () const" Returns the key for the current iterator item. -.SH "bool QIntDictIterator::isEmpty () const" +.SH "bool TQIntDictIterator::isEmpty () const" Returns TRUE if the dictionary is empty; otherwise eturns FALSE. .PP See also count(). -.SH "QIntDictIterator::operator type * () const" +.SH "TQIntDictIterator::operator type * () const" Cast operator. Returns a pointer to the current iterator item. Same as current(). -.SH "type * QIntDictIterator::operator() ()" +.SH "type * TQIntDictIterator::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 * QIntDictIterator::operator++ ()" +.SH "type * TQIntDictIterator::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 * QIntDictIterator::operator+= ( uint jump )" +.SH "type * TQIntDictIterator::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 * QIntDictIterator::toFirst ()" +.SH "type * TQIntDictIterator::toFirst ()" Sets the current iterator item to point to the first item in the dictionary and returns a pointer to the item. The first item refers to the first item in the dictionary's arbitrary internal @@ -132,7 +132,7 @@ ordering. If the dictionary is empty it sets the current item to 0 and returns 0. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qintdictiterator.html +.BR http://doc.trolltech.com/tqintdictiterator.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/tqintvalidator.3qt b/doc/man/man3/tqintvalidator.3qt index f4f0badcc..7d1f527a4 100644 --- a/doc/man/man3/tqintvalidator.3qt +++ b/doc/man/man3/tqintvalidator.3qt @@ -119,7 +119,7 @@ Below we present some examples of validators. In practice they would normally be .PP The minimum and maximum values are set in one call with setRange() or individually with setBottom() and setTop(). .PP -See also QDoubleValidator, QRegExpValidator, and Miscellaneous Classes. +See also QDoubleValidator, TQRegExpValidator, and Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QIntValidator::QIntValidator ( TQObject * parent, const char * name = 0 )" Constructs a validator called \fIname\fR with parent \fIparent\fR, that accepts all integers. diff --git a/doc/man/man3/tqiodevice.3qt b/doc/man/man3/tqiodevice.3qt index 3bf3f3539..4974d1058 100644 --- a/doc/man/man3/tqiodevice.3qt +++ b/doc/man/man3/tqiodevice.3qt @@ -114,10 +114,10 @@ Inherited by QBuffer, QFile, QSocket, and QSocketDevice. .BI "virtual TQ_LONG \fBreadLine\fR ( char * data, TQ_ULONG maxlen )" .br .ti -1c -.BI "TQ_LONG \fBwriteBlock\fR ( const QByteArray & data )" +.BI "TQ_LONG \fBwriteBlock\fR ( const TQByteArray & data )" .br .ti -1c -.BI "virtual QByteArray \fBreadAll\fR ()" +.BI "virtual TQByteArray \fBreadAll\fR ()" .br .ti -1c .BI "virtual int \fBgetch\fR () = 0" @@ -424,7 +424,7 @@ See also getch() and ungetch(). Example: grapher/grapher.cpp. .PP Reimplemented in QFile and QSocket. -.SH "QByteArray TQIODevice::readAll ()\fC [virtual]\fR" +.SH "TQByteArray TQIODevice::readAll ()\fC [virtual]\fR" This convenience function returns all of the remaining data in the device. .SH "TQ_LONG TQIODevice::readBlock ( char * data, TQ_ULONG maxlen )\fC [pure virtual]\fR" Reads at most \fImaxlen\fR bytes from the I/O device into \fIdata\fR and returns the number of bytes actually read. @@ -519,7 +519,7 @@ See also readBlock(). Example: distributor/distributor.ui.h. .PP Reimplemented in QBuffer, QSocket, and QSocketDevice. -.SH "TQ_LONG TQIODevice::writeBlock ( const QByteArray & data )" +.SH "TQ_LONG TQIODevice::writeBlock ( const TQByteArray & data )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This convenience function is the same as calling writeBlock( diff --git a/doc/man/man3/tqlineedit.3qt b/doc/man/man3/tqlineedit.3qt index 4967166f6..1b1a18ab0 100644 --- a/doc/man/man3/tqlineedit.3qt +++ b/doc/man/man3/tqlineedit.3qt @@ -516,7 +516,7 @@ Sets this line edit to only accept input that the validator, \fIv\fR, will accep .PP If \fIv\fR == 0, setValidator() removes the current input validator. The initial setting is to have no input validator (i.e. any input is accepted up to maxLength()). .PP -See also validator(), QIntValidator, QDoubleValidator, and QRegExpValidator. +See also validator(), QIntValidator, QDoubleValidator, and TQRegExpValidator. .PP Examples: .)l lineedits/lineedits.cpp and wizard/wizard.cpp. diff --git a/doc/man/man3/tqmacmime.3qt b/doc/man/man3/tqmacmime.3qt index 3ba9ef959..5d5a9440c 100644 --- a/doc/man/man3/tqmacmime.3qt +++ b/doc/man/man3/tqmacmime.3qt @@ -38,10 +38,10 @@ TQMacMime \- Maps open-standard MIME to Mac flavors .BI "virtual int \fBflavorFor\fR ( const char * mime ) = 0" .br .ti -1c -.BI "virtual QByteArray \fBconvertToMime\fR ( TQValueList<QByteArray> data, const char * mime, int flav ) = 0" +.BI "virtual TQByteArray \fBconvertToMime\fR ( TQValueList<TQByteArray> data, const char * mime, int flav ) = 0" .br .ti -1c -.BI "virtual TQValueList<QByteArray> \fBconvertFromMime\fR ( QByteArray data, const char * mime, int flav ) = 0" +.BI "virtual TQValueList<TQByteArray> \fBconvertFromMime\fR ( TQByteArray data, const char * mime, int flav ) = 0" .br .in -1c .SS "Static Public Members" @@ -87,13 +87,13 @@ Returns a list of all currently defined TQMacMime objects of type \fIt\fR. Returns TRUE if the convertor can convert (both ways) between \fImime\fR and \fIflav\fR; otherwise returns FALSE. .PP All subclasses must reimplement this pure virtual function. -.SH "TQValueList<QByteArray> TQMacMime::convertFromMime ( QByteArray data, const char * mime, int flav )\fC [pure virtual]\fR" +.SH "TQValueList<TQByteArray> TQMacMime::convertFromMime ( TQByteArray data, const char * mime, int flav )\fC [pure virtual]\fR" Returns \fIdata\fR converted from MIME type \fImime\fR to Mac flavor \fIflav\fR. .PP Note that Mac flavors must all be self-terminating. The return value may contain trailing data. .PP All subclasses must reimplement this pure virtual function. -.SH "QByteArray TQMacMime::convertToMime ( TQValueList<QByteArray> data, const char * mime, int flav )\fC [pure virtual]\fR" +.SH "TQByteArray TQMacMime::convertToMime ( TQValueList<TQByteArray> data, const char * mime, int flav )\fC [pure virtual]\fR" Returns \fIdata\fR converted from Mac flavor \fIflav\fR to MIME type \fImime\fR. .PP Note that Mac flavors must all be self-terminating. The input \fIdata\fR may contain trailing data. diff --git a/doc/man/man3/tqmap.3qt b/doc/man/man3/tqmap.3qt index 169d558d6..886b2fa76 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 TQPtrList 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 TQDict 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/tqmapiterator.3qt b/doc/man/man3/tqmapiterator.3qt index fe3f39cd3..f7b7ee8ab 100644 --- a/doc/man/man3/tqmapiterator.3qt +++ b/doc/man/man3/tqmapiterator.3qt @@ -73,7 +73,7 @@ The TQMapIterator class provides an iterator for TQMap. .PP You cannot create an iterator by yourself. Instead, you must ask a map to give you one. An iterator is as big as a pointer; on 32-bit machines that means 4 bytes, on 64-bit machines, 8 bytes. That makes copying iterators very fast. Iterators behave in a similar way to pointers, and they are almost as fast as pointers. See the TQMap example. .PP -TQMap is highly optimized for performance and memory usage, but the trade-off is that you must be more careful. The only way to traverse a map is to use iterators. TQMap does not know about its iterators, and the iterators don't even know to which map they belong. That makes things fast but a bit dangerous because it is up to you to make sure that the iterators you are using are still valid. QDictIterator will be able to give warnings, whereas TQMapIterator may end up in an undefined state. +TQMap is highly optimized for performance and memory usage, but the trade-off is that you must be more careful. The only way to traverse a map is to use iterators. TQMap does not know about its iterators, and the iterators don't even know to which map they belong. That makes things fast but a bit dangerous because it is up to you to make sure that the iterators you are using are still valid. TQDictIterator will be able to give warnings, whereas TQMapIterator may end up in an undefined state. .PP For every Iterator there is also a ConstIterator. You must use the ConstIterator to access a TQMap in a const environment or if the reference or pointer to the map is itself const. Its semantics are the same, but it only returns const references to the item it points to. .PP diff --git a/doc/man/man3/tqmemarray.3qt b/doc/man/man3/tqmemarray.3qt index 94ae8f85b..da21cdc40 100644 --- a/doc/man/man3/tqmemarray.3qt +++ b/doc/man/man3/tqmemarray.3qt @@ -1,5 +1,5 @@ '\" t -.TH QMemArray 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQMemArray 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 -QMemArray \- Template class that provides arrays of simple types +TQMemArray \- Template class that provides arrays of simple types .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqmemarray.h>\fR +\fC#include <tqmemarray.h>\fR .PP -Inherited by QByteArray and QPointArray. +Inherited by TQByteArray and QPointArray. .PP .SS "Public Members" .in +1c @@ -24,19 +24,19 @@ Inherited by QByteArray and QPointArray. .BI "typedef const type * \fBConstIterator\fR" .br .ti -1c -.BI "\fBQMemArray\fR ()" +.BI "\fBTQMemArray\fR ()" .br .ti -1c -.BI "\fBQMemArray\fR ( int size )" +.BI "\fBTQMemArray\fR ( int size )" .br .ti -1c -.BI "\fBQMemArray\fR ( const QMemArray<type> & a )" +.BI "\fBTQMemArray\fR ( const TQMemArray<type> & a )" .br .ti -1c -.BI "\fB~QMemArray\fR ()" +.BI "\fB~TQMemArray\fR ()" .br .ti -1c -.BI "QMemArray<type> & \fBoperator=\fR ( const QMemArray<type> & a )" +.BI "TQMemArray<type> & \fBoperator=\fR ( const TQMemArray<type> & a )" .br .ti -1c .BI "type * \fBdata\fR () const" @@ -72,22 +72,22 @@ Inherited by QByteArray and QPointArray. .BI "virtual void \fBdetach\fR ()" .br .ti -1c -.BI "QMemArray<type> \fBcopy\fR () const" +.BI "TQMemArray<type> \fBcopy\fR () const" .br .ti -1c -.BI "QMemArray<type> & \fBassign\fR ( const QMemArray<type> & a )" +.BI "TQMemArray<type> & \fBassign\fR ( const TQMemArray<type> & a )" .br .ti -1c -.BI "QMemArray<type> & \fBassign\fR ( const type * data, uint size )" +.BI "TQMemArray<type> & \fBassign\fR ( const type * data, uint size )" .br .ti -1c -.BI "QMemArray<type> & \fBduplicate\fR ( const QMemArray<type> & a )" +.BI "TQMemArray<type> & \fBduplicate\fR ( const TQMemArray<type> & a )" .br .ti -1c -.BI "QMemArray<type> & \fBduplicate\fR ( const type * data, uint size )" +.BI "TQMemArray<type> & \fBduplicate\fR ( const type * data, uint size )" .br .ti -1c -.BI "QMemArray<type> & \fBsetRawData\fR ( const type * data, uint size )" +.BI "TQMemArray<type> & \fBsetRawData\fR ( const type * data, uint size )" .br .ti -1c .BI "void \fBresetRawData\fR ( const type * data, uint size )" @@ -114,10 +114,10 @@ Inherited by QByteArray and QPointArray. .BI "\fBoperator const type *\fR () const" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QMemArray<type> & a ) const" +.BI "bool \fBoperator==\fR ( const TQMemArray<type> & a ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QMemArray<type> & a ) const" +.BI "bool \fBoperator!=\fR ( const TQMemArray<type> & a ) const" .br .ti -1c .BI "Iterator \fBbegin\fR ()" @@ -135,7 +135,7 @@ Inherited by QByteArray and QPointArray. .SS "Protected Members" .in +1c .ti -1c -.BI "\fBQMemArray\fR ( int, int )" +.BI "\fBTQMemArray\fR ( int, int )" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION @@ -144,43 +144,43 @@ Inherited by QByteArray and QPointArray. .BI "TQ_UINT16 \fBqChecksum\fR ( const char * data, uint len )" .br .ti -1c -.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const QByteArray & a )" +.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const TQByteArray & a )" .br .ti -1c -.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, QByteArray & a )" +.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, TQByteArray & a )" .br .in -1c .SH DESCRIPTION -The QMemArray class is a template class that provides arrays of simple types. +The TQMemArray class is a template class that provides arrays of simple types. .PP -QMemArray is implemented as a template class. Define a template instance QMemArray<X> to create an array that contains X items. +TQMemArray is implemented as a template class. Define a template instance TQMemArray<X> to create an array that contains X items. .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. +TQMemArray 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). TQMemArray uses bitwise operations to copy and compare array elements. .PP 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. +TQMemArray 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 The benefit of sharing is that a program does not need to duplicate data when it is not required, which results in lower memory use and less copying of data. .PP -An alternative to QMemArray is TQValueVector. The TQValueVector class also provides an array of objects, but can deal with objects that have constructors (specifically a copy constructor and a default constructor). TQValueVector provides an STL-compatible syntax and is implicitly shared. +An alternative to TQMemArray is TQValueVector. The TQValueVector class also provides an array of objects, but can deal with objects that have constructors (specifically a copy constructor and a default constructor). TQValueVector provides an STL-compatible syntax and is implicitly shared. .PP Example: .PP .nf .br - #include <ntqmemarray.h> + #include <tqmemarray.h> .br #include <stdio.h> .br .br - QMemArray<int> fib( int num ) // returns fibonacci array + TQMemArray<int> fib( int num ) // returns fibonacci array .br { .br Q_ASSERT( num > 2 ); .br - QMemArray<int> f( num ); // array of ints + TQMemArray<int> f( num ); // array of ints .br .br f[0] = f[1] = 1; @@ -199,7 +199,7 @@ Example: .br { .br - QMemArray<int> a = fib( 6 ); // get first 6 fibonaccis + TQMemArray<int> a = fib( 6 ); // get first 6 fibonaccis .br for ( int i = 0; i < a.size(); i++ ) .br @@ -239,7 +239,7 @@ Program output: .br .fi .PP -Note concerning the use of QMemArray for manipulating structs or classes: Compilers will often pad the size of structs of odd sizes up to the nearest word boundary. This will then be the size QMemArray will use for its bitwise element comparisons. Because the remaining bytes will typically be uninitialized, this can cause find() etc. to fail to find the element. Example: +Note concerning the use of TQMemArray for manipulating structs or classes: Compilers will often pad the size of structs of odd sizes up to the nearest word boundary. This will then be the size TQMemArray will use for its bitwise element comparisons. Because the remaining bytes will typically be uninitialized, this can cause find() etc. to fail to find the element. Example: .PP .nf .br @@ -256,7 +256,7 @@ Note concerning the use of QMemArray for manipulating structs or classes: Compil }; .br .br - QMemArray<MyStruct> a(1); + TQMemArray<MyStruct> a(1); .br a[0].i = 5; .br @@ -275,7 +275,7 @@ Note concerning the use of QMemArray for manipulating structs or classes: Compil .PP To work around this, make sure that you use a struct where sizeof() returns the same as the sum of the sizes of the members either by changing the types of the struct members or by adding dummy members. .PP -QMemArray data can be traversed by iterators (see begin() and end()). The number of items is returned by count(). The array can be resized with resize() and filled using fill(). +TQMemArray data can be traversed by iterators (see begin() and end()). The number of items is returned by count(). The array can be resized with resize() and filled using fill(). .PP You can make a shallow copy of the array with assign() (or operator=()) and a deep copy with duplicate(). .PP @@ -285,76 +285,76 @@ You can set the data directly using setRawData() and resetRawData(), although th .PP See also Shared Classes and Non-GUI Classes. .SS "Member Type Documentation" -.SH "QMemArray::ConstIterator" -A const QMemArray iterator. +.SH "TQMemArray::ConstIterator" +A const TQMemArray iterator. .PP See also begin() and end(). -.SH "QMemArray::Iterator" -A QMemArray iterator. +.SH "TQMemArray::Iterator" +A TQMemArray iterator. .PP See also begin() and end(). .SH MEMBER FUNCTION DOCUMENTATION -.SH "QMemArray::QMemArray ( int, int )\fC [protected]\fR" +.SH "TQMemArray::TQMemArray ( int, int )\fC [protected]\fR" Constructs an array \fIwithout allocating\fR array space. The arguments should be (0, 0). Use at your own risk. -.SH "QMemArray::QMemArray ()" +.SH "TQMemArray::TQMemArray ()" Constructs a null array. .PP See also isNull(). -.SH "QMemArray::QMemArray ( int size )" +.SH "TQMemArray::TQMemArray ( int size )" Constructs an array with room for \fIsize\fR elements. Makes a null array if \fIsize\fR == 0. .PP The elements are left uninitialized. .PP See also resize() and isNull(). -.SH "QMemArray::QMemArray ( const QMemArray<type> & a )" +.SH "TQMemArray::TQMemArray ( const TQMemArray<type> & a )" Constructs a shallow copy of \fIa\fR. .PP See also assign(). -.SH "QMemArray::~QMemArray ()" +.SH "TQMemArray::~TQMemArray ()" Dereferences the array data and deletes it if this was the last reference. -.SH "QMemArray<type> & QMemArray::assign ( const QMemArray<type> & a )" +.SH "TQMemArray<type> & TQMemArray::assign ( const TQMemArray<type> & a )" Shallow copy. Dereferences the current array and references the data contained in \fIa\fR instead. Returns a reference to this array. .PP See also operator=(). -.SH "QMemArray<type> & QMemArray::assign ( const type * data, uint size )" +.SH "TQMemArray<type> & TQMemArray::assign ( const type * data, uint size )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Shallow copy. Dereferences the current array and references the array data \fIdata\fR, which contains \fIsize\fR elements. Returns a reference to this array. .PP -Do not delete \fIdata\fR later; QMemArray will call free() on it at the right time. -.SH "type & QMemArray::at ( uint index ) const" +Do not delete \fIdata\fR later; TQMemArray will call free() on it at the right time. +.SH "type & TQMemArray::at ( uint index ) const" Returns a reference to the element at position \fIindex\fR in the array. .PP This can be used to both read and set an element. .PP See also operator[](). -.SH "Iterator QMemArray::begin ()" +.SH "Iterator TQMemArray::begin ()" Returns an iterator pointing at the beginning of this array. This iterator can be used in the same way as the iterators of TQValueList and TQMap, for example. -.SH "ConstIterator QMemArray::begin () const" +.SH "ConstIterator TQMemArray::begin () const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a const iterator pointing at the beginning of this array. This iterator can be used in the same way as the iterators of TQValueList and TQMap, for example. -.SH "int QMemArray::bsearch ( const type & v ) const" +.SH "int TQMemArray::bsearch ( const type & v ) const" In a sorted array (as sorted by sort()), finds the first occurrence of \fIv\fR by using a binary search. For a sorted array this is generally much faster than find(), which does a linear search. .PP Returns the position of \fIv\fR, or -1 if \fIv\fR could not be found. .PP See also sort() and find(). -.SH "int QMemArray::contains ( const type & v ) const" +.SH "int TQMemArray::contains ( const type & v ) const" Returns the number of times \fIv\fR occurs in the array. .PP See also find(). -.SH "QMemArray<type> QMemArray::copy () const" +.SH "TQMemArray<type> TQMemArray::copy () const" Returns a deep copy of this array. .PP See also detach() and duplicate(). -.SH "uint QMemArray::count () const" +.SH "uint TQMemArray::count () const" Returns the same as size(). .PP See also size(). .PP Example: scribble/scribble.cpp. -.SH "type * QMemArray::data () const" +.SH "type * TQMemArray::data () const" Returns a pointer to the actual array data. .PP The array is a null array if data() == 0 (null pointer). @@ -363,85 +363,85 @@ See also isNull(). .PP Examples: .)l fileiconview/qfileiconview.cpp and network/networkprotocol/nntp.cpp. -.SH "void QMemArray::detach ()\fC [virtual]\fR" +.SH "void TQMemArray::detach ()\fC [virtual]\fR" Detaches this array from shared array data; i.e. it makes a private, deep copy of the data. .PP Copying will be performed only if the reference count is greater than one. .PP See also copy(). .PP -Reimplemented in QBitArray. -.SH "QMemArray<type> & QMemArray::duplicate ( const QMemArray<type> & a )" +Reimplemented in TQBitArray. +.SH "TQMemArray<type> & TQMemArray::duplicate ( const TQMemArray<type> & a )" Deep copy. Dereferences the current array and obtains a copy of the data contained in \fIa\fR instead. Returns a reference to this array. .PP See also copy(). -.SH "QMemArray<type> & QMemArray::duplicate ( const type * data, uint size )" +.SH "TQMemArray<type> & TQMemArray::duplicate ( const type * data, uint size )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Deep copy. Dereferences the current array and obtains a copy of the array data \fIdata\fR instead. Returns a reference to this array. The size of the array is given by \fIsize\fR. .PP See also copy(). -.SH "Iterator QMemArray::end ()" +.SH "Iterator TQMemArray::end ()" Returns an iterator pointing behind the last element of this array. This iterator can be used in the same way as the iterators of TQValueList and TQMap, for example. -.SH "ConstIterator QMemArray::end () const" +.SH "ConstIterator TQMemArray::end () const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a const iterator pointing behind the last element of this array. This iterator can be used in the same way as the iterators of TQValueList and TQMap, for example. -.SH "bool QMemArray::fill ( const type & v, int size = -1 )" +.SH "bool TQMemArray::fill ( const type & v, int size = -1 )" Fills the array with the value \fIv\fR. If \fIsize\fR is specified as different from -1, then the array will be resized before being filled. .PP Returns TRUE if successful, i.e. if \fIsize\fR is -1, or \fIsize\fR is != -1 and the memory can be allocated; otherwise returns FALSE. .PP See also resize(). -.SH "int QMemArray::find ( const type & v, uint index = 0 ) const" +.SH "int TQMemArray::find ( const type & v, uint index = 0 ) const" Finds the first occurrence of \fIv\fR, starting at position \fIindex\fR. .PP Returns the position of \fIv\fR, or -1 if \fIv\fR could not be found. .PP See also contains(). -.SH "bool QMemArray::isEmpty () const" +.SH "bool TQMemArray::isEmpty () const" Returns TRUE if the array is empty; otherwise returns FALSE. .PP -isEmpty() is equivalent to isNull() for QMemArray (unlike TQString). -.SH "bool QMemArray::isNull () const" +isEmpty() is equivalent to isNull() for TQMemArray (unlike TQString). +.SH "bool TQMemArray::isNull () const" Returns TRUE if the array is null; otherwise returns FALSE. .PP A null array has size() == 0 and data() == 0. -.SH "uint QMemArray::nrefs () const" +.SH "uint TQMemArray::nrefs () const" Returns the reference count for the shared array data. This reference count is always greater than zero. -.SH "QMemArray::operator const type * () const" +.SH "TQMemArray::operator const type * () const" Cast operator. Returns a pointer to the array. .PP See also data(). -.SH "bool QMemArray::operator!= ( const QMemArray<type> & a ) const" +.SH "bool TQMemArray::operator!= ( const TQMemArray<type> & a ) const" Returns TRUE if this array is different from \fIa\fR; otherwise returns FALSE. .PP The two arrays are compared bitwise. .PP See also operator==(). -.SH "QMemArray<type> & QMemArray::operator= ( const QMemArray<type> & a )" +.SH "TQMemArray<type> & TQMemArray::operator= ( const TQMemArray<type> & a )" Assigns a shallow copy of \fIa\fR to this array and returns a reference to this array. .PP Equivalent to assign( a ). -.SH "bool QMemArray::operator== ( const QMemArray<type> & a ) const" +.SH "bool TQMemArray::operator== ( const TQMemArray<type> & a ) const" Returns TRUE if this array is equal to \fIa\fR; otherwise returns FALSE. .PP The two arrays are compared bitwise. .PP See also operator!=(). -.SH "type & QMemArray::operator[] ( int index ) const" +.SH "type & TQMemArray::operator[] ( int index ) const" Returns a reference to the element at position \fIindex\fR in the array. .PP This can be used to both read and set an element. Equivalent to at(). .PP See also at(). -.SH "void QMemArray::resetRawData ( const type * data, uint size )" -Removes internal references to the raw data that was set using setRawData(). This means that QMemArray no longer has access to the \fIdata\fR, so you are free to manipulate \fIdata\fR as you wish. You can now use the QMemArray without affecting the original \fIdata\fR, for example by calling setRawData() with a pointer to some other data. +.SH "void TQMemArray::resetRawData ( const type * data, uint size )" +Removes internal references to the raw data that was set using setRawData(). This means that TQMemArray no longer has access to the \fIdata\fR, so you are free to manipulate \fIdata\fR as you wish. You can now use the TQMemArray without affecting the original \fIdata\fR, for example by calling setRawData() with a pointer to some other data. .PP The arguments must be the \fIdata\fR and length, \fIsize\fR, that were passed to setRawData(). This is for consistency checking. .PP See also setRawData(). -.SH "bool QMemArray::resize ( uint size, Optimization optim )" +.SH "bool TQMemArray::resize ( uint size, Optimization optim )" Resizes (expands or shrinks) the array to \fIsize\fR elements. The array becomes a null array if \fIsize\fR == 0. .PP Returns TRUE if successful, or FALSE if the memory cannot be allocated. @@ -455,7 +455,7 @@ New elements are not initialized. See also size(). .PP Example: fileiconview/qfileiconview.cpp. -.SH "bool QMemArray::resize ( uint size )" +.SH "bool TQMemArray::resize ( uint size )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Resizes (expands or shrinks) the array to \fIsize\fR elements. The array becomes a null array if \fIsize\fR == 0. @@ -465,12 +465,12 @@ Returns TRUE if successful, i.e. if the memory can be allocated; otherwise retur New elements are not initialized. .PP See also size(). -.SH "QMemArray<type> & QMemArray::setRawData ( const type * data, uint size )" +.SH "TQMemArray<type> & TQMemArray::setRawData ( const type * data, uint size )" Sets raw data and returns a reference to the array. .PP Dereferences the current array and sets the new array data to \fIdata\fR and the new array size to \fIsize\fR. Do not attempt to resize or re-assign the array data when raw data has been set. Call resetRawData(\fIdata\fR, \fIsize\fR) to reset the array. .PP -Setting raw data is useful because it sets QMemArray data without allocating memory or copying data. +Setting raw data is useful because it sets TQMemArray data without allocating memory or copying data. .PP Example I (intended use): .PP @@ -478,7 +478,7 @@ Example I (intended use): .br static char bindata[] = { 231, 1, 44, ... }; .br - QByteArray a; + TQByteArray a; .br a.setRawData( bindata, sizeof(bindata) ); // a points to bindata .br @@ -496,7 +496,7 @@ Example II (you don't want to do this): .br static char bindata[] = { 231, 1, 44, ... }; .br - QByteArray a, b; + TQByteArray a, b; .br a.setRawData( bindata, sizeof(bindata) ); // a points to bindata .br @@ -510,20 +510,20 @@ Example II (you don't want to do this): .br .fi .PP -\fBWarning:\fR If you do not call resetRawData(), QMemArray will attempt to deallocate or reallocate the raw data, which might not be too good. Be careful. +\fBWarning:\fR If you do not call resetRawData(), TQMemArray will attempt to deallocate or reallocate the raw data, which might not be too good. Be careful. .PP See also resetRawData(). -.SH "uint QMemArray::size () const" +.SH "uint TQMemArray::size () const" Returns the size of the array (maximum number of elements). .PP The array is a null array if size() == 0. .PP See also isNull() and resize(). -.SH "void QMemArray::sort ()" +.SH "void TQMemArray::sort ()" Sorts the array elements in ascending order, using bitwise comparison (memcmp()). .PP See also bsearch(). -.SH "bool QMemArray::truncate ( uint pos )" +.SH "bool TQMemArray::truncate ( uint pos )" Truncates the array at position \fIpos\fR. .PP Returns TRUE if successful, i.e. if the memory can be allocated; otherwise returns FALSE. @@ -532,11 +532,11 @@ Equivalent to resize(\fIpos\fR). .PP See also resize(). .SH RELATED FUNCTION DOCUMENTATION -.SH "QDataStream & operator<< ( QDataStream & s, const QByteArray & a )" +.SH "QDataStream & operator<< ( QDataStream & s, const TQByteArray & a )" Writes byte array \fIa\fR to the stream \fIs\fR and returns a reference to the stream. .PP See also Format of the QDataStream operators. -.SH "QDataStream & operator>> ( QDataStream & s, QByteArray & a )" +.SH "QDataStream & operator>> ( QDataStream & s, TQByteArray & a )" Reads a byte array into \fIa\fR from the stream \fIs\fR and returns a reference to the stream. .PP See also Format of the QDataStream operators. @@ -546,7 +546,7 @@ Returns the CRC-16 checksum of \fIlen\fR bytes starting at \fIdata\fR. The checksum is independent of the byte order (endianness). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqmemarray.html +.BR http://doc.trolltech.com/tqmemarray.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/tqmimesource.3qt b/doc/man/man3/tqmimesource.3qt index fc3ab2c9f..9875ef041 100644 --- a/doc/man/man3/tqmimesource.3qt +++ b/doc/man/man3/tqmimesource.3qt @@ -28,7 +28,7 @@ Inherited by TQDragObject and TQDropEvent. .BI "virtual bool \fBprovides\fR ( const char * mimeType ) const" .br .ti -1c -.BI "virtual QByteArray \fBencodedData\fR ( const char * ) const = 0" +.BI "virtual TQByteArray \fBencodedData\fR ( const char * ) const = 0" .br .ti -1c .BI "int \fBserialNumber\fR () const" @@ -47,7 +47,7 @@ Constructs a mime source and assigns a globally unique serial number to it. See also serialNumber(). .SH "TQMimeSource::~TQMimeSource ()\fC [virtual]\fR" Provided to ensure that subclasses destroy themselves correctly. -.SH "QByteArray TQMimeSource::encodedData ( const char * ) const\fC [pure virtual]\fR" +.SH "TQByteArray TQMimeSource::encodedData ( const char * ) const\fC [pure virtual]\fR" Returns the encoded data of this object in the specified MIME format. .PP Subclasses must reimplement this function. diff --git a/doc/man/man3/tqmovie.3qt b/doc/man/man3/tqmovie.3qt index 15af6c124..059aeb957 100644 --- a/doc/man/man3/tqmovie.3qt +++ b/doc/man/man3/tqmovie.3qt @@ -26,7 +26,7 @@ QMovie \- Incremental loading of animations or images, signalling as it progress .BI "\fBQMovie\fR ( const TQString & fileName, int bufsize = 1024 )" .br .ti -1c -.BI "\fBQMovie\fR ( QByteArray data, int bufsize = 1024 )" +.BI "\fBQMovie\fR ( TQByteArray data, int bufsize = 1024 )" .br .ti -1c .BI "\fBQMovie\fR ( const QMovie & movie )" @@ -182,7 +182,7 @@ The \fIbufsize\fR argument sets the maximum amount of data the movie will transf Constructs a QMovie that reads an image sequence from the file, \fIfileName\fR. .PP The \fIbufsize\fR argument sets the maximum amount of data the movie will transfer from the data source per event loop. The lower this value, the better interleaved the movie playback will be with other event processing, but the slower the overall processing will be. -.SH "QMovie::QMovie ( QByteArray data, int bufsize = 1024 )" +.SH "QMovie::QMovie ( TQByteArray data, int bufsize = 1024 )" Constructs a QMovie that reads an image sequence from the byte array, \fIdata\fR. .PP The \fIbufsize\fR argument sets the maximum amount of data the movie will transfer from the data source per event loop. The lower this value, the better interleaved the movie playback will be with other event processing, but the slower the overall processing will be. diff --git a/doc/man/man3/tqnetworkoperation.3qt b/doc/man/man3/tqnetworkoperation.3qt index 8bdfcb7d1..84b13be15 100644 --- a/doc/man/man3/tqnetworkoperation.3qt +++ b/doc/man/man3/tqnetworkoperation.3qt @@ -19,7 +19,7 @@ Inherits TQObject. .BI "\fBQNetworkOperation\fR ( QNetworkProtocol::Operation operation, const TQString & arg0, const TQString & arg1, const TQString & arg2 )" .br .ti -1c -.BI "\fBQNetworkOperation\fR ( QNetworkProtocol::Operation operation, const QByteArray & arg0, const QByteArray & arg1, const QByteArray & arg2 )" +.BI "\fBQNetworkOperation\fR ( QNetworkProtocol::Operation operation, const TQByteArray & arg0, const TQByteArray & arg1, const TQByteArray & arg2 )" .br .ti -1c .BI "\fB~QNetworkOperation\fR ()" @@ -37,7 +37,7 @@ Inherits TQObject. .BI "void \fBsetArg\fR ( int num, const TQString & arg )" .br .ti -1c -.BI "void \fBsetRawArg\fR ( int num, const QByteArray & arg )" +.BI "void \fBsetRawArg\fR ( int num, const TQByteArray & arg )" .br .ti -1c .BI "QNetworkProtocol::Operation \fBoperation\fR () const" @@ -49,7 +49,7 @@ Inherits TQObject. .BI "TQString \fBarg\fR ( int num ) const" .br .ti -1c -.BI "QByteArray \fBrawArg\fR ( int num ) const" +.BI "TQByteArray \fBrawArg\fR ( int num ) const" .br .ti -1c .BI "TQString \fBprotocolDetail\fR () const" @@ -74,7 +74,7 @@ See also QNetworkProtocol and Input/Output and Networking. Constructs a network operation object. \fIoperation\fR is the type of the operation, and \fIarg0\fR, \fIarg1\fR and \fIarg2\fR are the first three arguments of the operation. The state is initialized to QNetworkProtocol::StWaiting. .PP See also QNetworkProtocol::Operation and QNetworkProtocol::State. -.SH "QNetworkOperation::QNetworkOperation ( QNetworkProtocol::Operation operation, const QByteArray & arg0, const QByteArray & arg1, const QByteArray & arg2 )" +.SH "QNetworkOperation::QNetworkOperation ( QNetworkProtocol::Operation operation, const TQByteArray & arg0, const TQByteArray & arg1, const TQByteArray & arg2 )" Constructs a network operation object. \fIoperation\fR is the type of the operation, and \fIarg0\fR, \fIarg1\fR and \fIarg2\fR are the first three raw data arguments of the operation. The state is initialized to QNetworkProtocol::StWaiting. .PP See also QNetworkProtocol::Operation and QNetworkProtocol::State. @@ -96,7 +96,7 @@ Note: you should never need to call the method yourself. Returns the type of the operation. .SH "TQString QNetworkOperation::protocolDetail () const" Returns a detailed error message for the last error. This must have been set using setProtocolDetail(). -.SH "QByteArray QNetworkOperation::rawArg ( int num ) const" +.SH "TQByteArray QNetworkOperation::rawArg ( int num ) const" Returns the operation's \fInum\fR-th raw data argument. If this argument was not already set, an empty bytearray is returned. .SH "void QNetworkOperation::setArg ( int num, const TQString & arg )" Sets the network operation's \fInum\fR-th argument to \fIarg\fR. @@ -108,7 +108,7 @@ If the operation failed, the protocol should set an error code to describe the e See also setProtocolDetail() and QNetworkProtocol::Error. .SH "void QNetworkOperation::setProtocolDetail ( const TQString & detail )" If the operation failed, the error message can be specified as \fIdetail\fR. -.SH "void QNetworkOperation::setRawArg ( int num, const QByteArray & arg )" +.SH "void QNetworkOperation::setRawArg ( int num, const TQByteArray & arg )" Sets the network operation's \fInum\fR-th raw data argument to \fIarg\fR. .SH "void QNetworkOperation::setState ( QNetworkProtocol::State state )" Sets the \fIstate\fR of the operation object. This should be done by the network protocol during processing; at the end it should be set to QNetworkProtocol::StDone or QNetworkProtocol::StFailed, depending on success or failure. diff --git a/doc/man/man3/tqnetworkprotocol.3qt b/doc/man/man3/tqnetworkprotocol.3qt index d3e58000c..f7bb8f9ae 100644 --- a/doc/man/man3/tqnetworkprotocol.3qt +++ b/doc/man/man3/tqnetworkprotocol.3qt @@ -66,7 +66,7 @@ Inherited by QFtp, QHttp, and QLocalFs. .SS "Signals" .in +1c .ti -1c -.BI "void \fBdata\fR ( const QByteArray & data, QNetworkOperation * op )" +.BI "void \fBdata\fR ( const TQByteArray & data, QNetworkOperation * op )" .br .ti -1c .BI "void \fBconnectionStateChanged\fR ( int state, const TQString & data )" @@ -241,7 +241,7 @@ This signal is emitted whenever the state of the connection of the network proto This signal is emitted when mkdir() has been succesful and the directory has been created. \fIi\fR holds the information about the new directory. \fIop\fR is the pointer to the operation object which contains all the information about the operation, including the state, etc. Using op->arg( 0 ), you can get the file name of the new directory. .PP When a protocol emits this signal, QNetworkProtocol is smart enough to let the QUrlOperator, which is used by the network protocol, emit its corresponding signal. -.SH "void QNetworkProtocol::data ( const QByteArray & data, QNetworkOperation * op )\fC [signal]\fR" +.SH "void QNetworkProtocol::data ( const TQByteArray & data, QNetworkOperation * op )\fC [signal]\fR" This signal is emitted when new \fIdata\fR has been received after calling get() or put(). \fIop\fR holds the name of the file from which data is retrieved or uploaded in its first argument, and the (raw) data in its second argument. You can get them with op->arg( 0 ) and op->rawArg( 1 ). \fIop\fR is the pointer to the operation object, which contains all the information about the operation, including the state, etc. .PP When a protocol emits this signal, QNetworkProtocol is smart enough to let the QUrlOperator (which is used by the network protocol) emit its corresponding signal. diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt index 8bfdeb53b..1d8df8949 100644 --- a/doc/man/man3/tqobject.3qt +++ b/doc/man/man3/tqobject.3qt @@ -155,7 +155,7 @@ Inherits Qt. .SS "Properties" .in +1c .ti -1c -.BI "QCString \fBname\fR - the name of this object" +.BI "TQCString \fBname\fR - the name of this object" .br .in -1c .SS "Protected Members" @@ -185,7 +185,7 @@ Inherits Qt. .SS "Static Protected Members" .in +1c .ti -1c -.BI "QCString \fBnormalizeSignalSlot\fR ( const char * signalSlot )" +.BI "TQCString \fBnormalizeSignalSlot\fR ( const char * signalSlot )" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION @@ -750,7 +750,7 @@ Returns the name of this object. See the "name" property for details. This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the name of this object, or \fIdefaultName\fR if the object does not have a name. -.SH "QCString TQObject::normalizeSignalSlot ( const char * signalSlot )\fC [static protected]\fR" +.SH "TQCString TQObject::normalizeSignalSlot ( const char * signalSlot )\fC [static protected]\fR" Normlizes the signal or slot definition \fIsignalSlot\fR by removing unnecessary whitespace. .SH "const TQObjectList * TQObject::objectTrees ()\fC [static]\fR" Returns a pointer to the list of all object trees (their root objects), or 0 if there are no objects. @@ -777,7 +777,7 @@ Example: qutlook/centralwidget.cpp. .SH "TQObjectList * TQObject::queryList ( const char * inheritsClass = 0, const char * objName = 0, bool regexpMatch = TRUE, bool recursiveSearch = TRUE ) const" Searches the children and optionally grandchildren of this object, and returns a list of those objects that are named or that match \fIobjName\fR and inherit \fIinheritsClass\fR. If \fIinheritsClass\fR is 0 (the default), all classes match. If \fIobjName\fR is 0 (the default), all object names match. .PP -If \fIregexpMatch\fR is TRUE (the default), \fIobjName\fR is a regular expression that the objects's names must match. The syntax is that of a QRegExp. If \fIregexpMatch\fR is FALSE, \fIobjName\fR is a string and object names must match it exactly. +If \fIregexpMatch\fR is TRUE (the default), \fIobjName\fR is a regular expression that the objects's names must match. The syntax is that of a TQRegExp. If \fIregexpMatch\fR is FALSE, \fIobjName\fR is a string and object names must match it exactly. .PP Note that \fIinheritsClass\fR uses single inheritance from TQObject, the way inherits() does. According to inherits(), TQMenuBar inherits TQWidget but not TQMenuData. This does not quite match reality, but is the best that can be done on the wide variety of compilers TQt supports. .PP @@ -814,7 +814,7 @@ The TQObjectList class is defined in the tqobjectlist.h header file. .PP \fBWarning:\fR Delete the list as soon you have finished using it. The list contains pointers that may become invalid at almost any time without notice (as soon as the user closes a window you may have dangling pointers, for example). .PP -See also child(), children(), parent(), inherits(), name, and QRegExp. +See also child(), children(), parent(), inherits(), name, and TQRegExp. .SH "void TQObject::removeChild ( TQObject * obj )\fC [virtual]\fR" Removes the child object \fIobj\fR from the list of children. .PP @@ -938,7 +938,7 @@ Returns a translated version of \fIsourceText\fR, or TQString::fromUtf8(\fIsourc .PP See also tr() and QApplication::translate(). .SS "Property Documentation" -.SH "QCString name" +.SH "TQCString name" This property holds the name of this object. .PP You can find an object by name (and type) using child(). You can find a set of objects with queryList(). diff --git a/doc/man/man3/tqpair.3qt b/doc/man/man3/tqpair.3qt index 63bc71687..65619588a 100644 --- a/doc/man/man3/tqpair.3qt +++ b/doc/man/man3/tqpair.3qt @@ -40,7 +40,7 @@ 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, TQPtrList 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 TQDict. .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 TQPtrCollection and friends which are pointer-based containers. .PP diff --git a/doc/man/man3/tqpalette.3qt b/doc/man/man3/tqpalette.3qt index e41687563..a1ab5cca9 100644 --- a/doc/man/man3/tqpalette.3qt +++ b/doc/man/man3/tqpalette.3qt @@ -202,7 +202,7 @@ Returns a number that uniquely identifies this QPalette object. The serial numbe .PP Note that QPalette uses copy-on-write, and the serial number changes during the lazy copy operation (detach()), not during a shallow copy (copy constructor or assignment). .PP -See also QPixmap, QPixmapCache, and QCache. +See also QPixmap, QPixmapCache, and TQCache. .SH "void QPalette::setActive ( const QColorGroup & g )" Sets the Active color group to \fIg\fR. .PP diff --git a/doc/man/man3/tqpixmap.3qt b/doc/man/man3/tqpixmap.3qt index ce2098acd..37c9aaa2e 100644 --- a/doc/man/man3/tqpixmap.3qt +++ b/doc/man/man3/tqpixmap.3qt @@ -13,7 +13,7 @@ QPixmap \- Off-screen, pixel-based paint device .PP Inherits QPaintDevice and Qt. .PP -Inherited by QBitmap and TQCanvasPixmap. +Inherited by TQBitmap and TQCanvasPixmap. .PP .SS "Public Members" .in +1c @@ -45,7 +45,7 @@ Inherited by QBitmap and TQCanvasPixmap. .BI "\fBQPixmap\fR ( const char * xpm[] )" .br .ti -1c -.BI "\fBQPixmap\fR ( const QByteArray & img_data )" +.BI "\fBQPixmap\fR ( const TQByteArray & img_data )" .br .ti -1c .BI "\fBQPixmap\fR ( const QPixmap & pixmap )" @@ -93,10 +93,10 @@ Inherited by QBitmap and TQCanvasPixmap. .BI "void \fBresize\fR ( const TQSize & size )" .br .ti -1c -.BI "const QBitmap * \fBmask\fR () const" +.BI "const TQBitmap * \fBmask\fR () const" .br .ti -1c -.BI "void \fBsetMask\fR ( const QBitmap & newmask )" +.BI "void \fBsetMask\fR ( const TQBitmap & newmask )" .br .ti -1c .BI "bool \fBselfMask\fR () const" @@ -108,7 +108,7 @@ Inherited by QBitmap and TQCanvasPixmap. .BI "bool \fBhasAlphaChannel\fR () const" .br .ti -1c -.BI "QBitmap \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const" +.BI "TQBitmap \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const" .br .ti -1c .BI "QPixmap \fBxForm\fR ( const QWMatrix & matrix ) const" @@ -135,7 +135,7 @@ Inherited by QBitmap and TQCanvasPixmap. .BI "bool \fBloadFromData\fR ( const uchar * buf, uint len, const char * format, int conversion_flags )" .br .ti -1c -.BI "bool \fBloadFromData\fR ( const QByteArray & buf, const char * format = 0, int conversion_flags = 0 )" +.BI "bool \fBloadFromData\fR ( const TQByteArray & buf, const char * format = 0, int conversion_flags = 0 )" .br .ti -1c .BI "bool \fBsave\fR ( const TQString & fileName, const char * format, int quality = -1 ) const" @@ -156,7 +156,7 @@ Inherited by QBitmap and TQCanvasPixmap. .BI "virtual void \fBdetach\fR ()" .br .ti -1c -.BI "bool \fBisQBitmap\fR () const" +.BI "bool \fBisTQBitmap\fR () const" .br .in -1c .SS "Static Public Members" @@ -258,7 +258,7 @@ If your application uses dozens or hundreds of pixmaps (for example on tool bar .PP In general it is recommended to make as much use of QPixmap's implicit sharing and the QPixmapCache as possible. .PP -See also QBitmap, TQImage, TQImageIO, Shared Classes, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. +See also TQBitmap, TQImage, TQImageIO, Shared Classes, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. .SS "Member Type Documentation" .SH "QPixmap::ColorMode" This enum type defines the color modes that exist for converting TQImage objects to QPixmap. @@ -342,14 +342,14 @@ Note that it's possible to squeeze the XPM variable a little bit by using an unu The extra \fCconst\fR makes the entire definition read-only, which is slightly more efficient (for example, when the code is in a shared library) and ROMable when the application is to be stored in ROM. .PP In order to use that sort of declaration you must cast the variable back to \fCconst char **\fR when you create the QPixmap. -.SH "QPixmap::QPixmap ( const QByteArray & img_data )" +.SH "QPixmap::QPixmap ( const TQByteArray & img_data )" Constructs a pixmaps by loading from \fIimg_data\fR. The data can be in any image format supported by Qt. .PP See also loadFromData(). .SH "QPixmap::QPixmap ( const QPixmap & pixmap )" Constructs a pixmap that is a copy of \fIpixmap\fR. .SH "QPixmap::QPixmap ( int w, int h, const uchar * bits, bool isXbitmap )\fC [protected]\fR" -Constructs a monochrome pixmap, with width \fIw\fR and height \fIh\fR, that is initialized with the data in \fIbits\fR. The \fIisXbitmap\fR indicates whether the data is an X bitmap and defaults to FALSE. This constructor is protected and used by the QBitmap class. +Constructs a monochrome pixmap, with width \fIw\fR and height \fIh\fR, that is initialized with the data in \fIbits\fR. The \fIisXbitmap\fR indicates whether the data is an X bitmap and defaults to FALSE. This constructor is protected and used by the TQBitmap class. .SH "QPixmap::~QPixmap ()" Destroys the pixmap. .SH "bool QPixmap::convertFromImage ( const TQImage & img, int conversion_flags )" @@ -357,11 +357,11 @@ Converts image \fIimg\fR and sets this pixmap. Returns TRUE if successful; other .PP The \fIconversion_flags\fR argument is a bitwise-OR of the TQt::ImageConversionFlags. Passing 0 for \fIconversion_flags\fR sets all the default options. .PP -Note that even though a QPixmap with depth 1 behaves much like a QBitmap, isQBitmap() returns FALSE. +Note that even though a QPixmap with depth 1 behaves much like a TQBitmap, isTQBitmap() returns FALSE. .PP If a pixmap with depth 1 is painted with color0 and color1 and converted to an image, the pixels painted with color0 will produce pixel index 0 in the image and those painted with color1 will produce pixel index 1. .PP -See also convertToImage(), isQBitmap(), TQImage::convertDepth(), defaultDepth(), and TQImage::hasAlphaBuffer(). +See also convertToImage(), isTQBitmap(), TQImage::convertDepth(), defaultDepth(), and TQImage::hasAlphaBuffer(). .PP Examples: .)l canvas/canvas.cpp and themes/wood.cpp. @@ -381,7 +381,7 @@ Note that for the moment, alpha masks on monochrome images are ignored. See also convertFromImage(). .PP Example: qmag/qmag.cpp. -.SH "QBitmap QPixmap::createHeuristicMask ( bool clipTight = TRUE ) const" +.SH "TQBitmap QPixmap::createHeuristicMask ( bool clipTight = TRUE ) const" Creates and returns a heuristic mask for this pixmap. It works by selecting a color from one of the corners and then chipping away pixels of that color, starting at all the edges. .PP The mask may not be perfect but it should be reasonable, so you can do things such as the following: @@ -392,7 +392,7 @@ The mask may not be perfect but it should be reasonable, so you can do things su .br .fi .PP -This function is slow because it involves transformation to a TQImage, non-trivial computations and a transformation back to a QBitmap. +This function is slow because it involves transformation to a TQImage, non-trivial computations and a transformation back to a TQBitmap. .PP If \fIclipTight\fR is TRUE the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels. .PP @@ -547,8 +547,8 @@ See also resize(). .PP Examples: .)l movies/main.cpp, qdir/qdir.cpp, qmag/qmag.cpp, and scrollview/scrollview.cpp. -.SH "bool QPixmap::isQBitmap () const" -Returns TRUE if this is a QBitmap; otherwise returns FALSE. +.SH "bool QPixmap::isTQBitmap () const" +Returns TRUE if this is a TQBitmap; otherwise returns FALSE. .SH "bool QPixmap::load ( const TQString & fileName, const char * format, int conversion_flags )" Loads a pixmap from the file \fIfileName\fR at runtime. Returns TRUE if successful; otherwise returns FALSE. .PP @@ -590,12 +590,12 @@ Loads a pixmap from the binary data in \fIbuf\fR (\fIlen\fR bytes) using color m If \fIformat\fR is specified, the loader attempts to read the pixmap using the specified format. If \fIformat\fR is not specified (default), the loader reads a few bytes from the header to guess the file's format. .PP See also QPixmap::ColorMode. -.SH "bool QPixmap::loadFromData ( const QByteArray & buf, const char * format = 0, int conversion_flags = 0 )" +.SH "bool QPixmap::loadFromData ( const TQByteArray & buf, const char * format = 0, int conversion_flags = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "const QBitmap * QPixmap::mask () const" +.SH "const TQBitmap * QPixmap::mask () const" Returns the mask bitmap, or 0 if no mask has been set. .PP -See also setMask(), QBitmap, and hasAlpha(). +See also setMask(), TQBitmap, and hasAlpha(). .SH "int QPixmap::metric ( int m ) const\fC [virtual protected]\fR" Internal implementation of the virtual QPaintDevice::metric() function. .PP @@ -644,13 +644,13 @@ Example: qmag/qmag.cpp. .SH "bool QPixmap::save ( TQIODevice * device, const char * format, int quality = -1 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -This function writes a QPixmap to the TQIODevice, \fIdevice\fR. This can be used, for example, to save a pixmap directly into a QByteArray: +This function writes a QPixmap to the TQIODevice, \fIdevice\fR. This can be used, for example, to save a pixmap directly into a TQByteArray: .PP .nf .br QPixmap pixmap; .br - QByteArray ba; + TQByteArray ba; .br QBuffer buffer( ba ); .br @@ -677,7 +677,7 @@ All \fInew\fR pixmaps that are created will use this default optimization. You m The initial default \fIoptimization\fR setting is \fCQPixmap::Normal\fR. .PP See also defaultOptimization(), setOptimization(), and optimization(). -.SH "void QPixmap::setMask ( const QBitmap & newmask )" +.SH "void QPixmap::setMask ( const TQBitmap & newmask )" Sets a mask bitmap. .PP The \fInewmask\fR bitmap defines the clip mask for this pixmap. Every pixel in \fInewmask\fR corresponds to a pixel in this pixmap. Pixel value 1 means opaque and pixel value 0 means transparent. The mask must have the same size as this pixmap. @@ -697,7 +697,7 @@ Now, alpha and alphacopy are visually different. .PP Setting a null mask resets the mask. .PP -See also mask(), createHeuristicMask(), and QBitmap. +See also mask(), createHeuristicMask(), and TQBitmap. .SH "void QPixmap::setOptimization ( Optimization optimization )" Sets pixmap drawing optimization for this pixmap. .PP diff --git a/doc/man/man3/tqpixmapcache.3qt b/doc/man/man3/tqpixmapcache.3qt index 4e819d0fd..17c565524 100644 --- a/doc/man/man3/tqpixmapcache.3qt +++ b/doc/man/man3/tqpixmapcache.3qt @@ -20,13 +20,13 @@ This class is a tool for optimized drawing with QPixmap. You can use it to store .PP For example, QRadioButton has a non-trivial visual representation so we don't want to regenerate a pixmap whenever a radio button is displayed or changes state. In the function QRadioButton::drawButton(), we do not draw the radio button directly. Instead, we first check the global pixmap cache for a pixmap with the key "$qt_radio_nnn_", where \fCnnn\fR is a numerical value that specifies the the radio button state. If a pixmap is found, we bitBlt() it onto the widget and return. Otherwise, we create a new pixmap, draw the radio button in the pixmap, and finally insert the pixmap in the global pixmap cache, using the key above. The bitBlt() is ten times faster than drawing the radio button. All radio buttons in the program share the cached pixmap since QPixmapCache is application-global. .PP -QPixmapCache contains no member data, only static functions to access the global pixmap cache. It creates an internal QCache for caching the pixmaps. +QPixmapCache contains no member data, only static functions to access the global pixmap cache. It creates an internal TQCache for caching the pixmaps. .PP -The cache associates a pixmap with a string (key). If two pixmaps are inserted into the cache using equal keys, then the last pixmap will hide the first pixmap. The QDict and QCache classes do exactly the same. +The cache associates a pixmap with a string (key). If two pixmaps are inserted into the cache using equal keys, then the last pixmap will hide the first pixmap. The TQDict and TQCache classes do exactly the same. .PP The cache becomes full when the total size of all pixmaps in the cache exceeds cacheLimit(). The initial cache limit is 1024 KByte (1 MByte); it is changed with setCacheLimit(). A pixmap takes roughly width*height*depth/8 bytes of memory. .PP -See the QCache documentation for more details about the cache mechanism. +See the TQCache documentation for more details about the cache mechanism. .PP See also Environment Classes, Graphics Classes, and Image Processing Classes. .SH MEMBER FUNCTION DOCUMENTATION diff --git a/doc/man/man3/tqpointarray.3qt b/doc/man/man3/tqpointarray.3qt index f086e824c..b01c0df2e 100644 --- a/doc/man/man3/tqpointarray.3qt +++ b/doc/man/man3/tqpointarray.3qt @@ -11,7 +11,7 @@ QPointArray \- Array of points .SH SYNOPSIS \fC#include <ntqpointarray.h>\fR .PP -Inherits QMemArray<QPoint>. +Inherits TQMemArray<QPoint>. .PP .SS "Public Members" .in +1c @@ -85,7 +85,7 @@ Inherits QMemArray<QPoint>. .SH DESCRIPTION The QPointArray class provides an array of points. .PP -A QPointArray is an array of QPoint objects. In addition to the functions provided by QMemArray, QPointArray provides some point-specific functions. +A QPointArray is an array of QPoint objects. In addition to the functions provided by TQMemArray, QPointArray provides some point-specific functions. .PP For convenient reading and writing of the point data use setPoints(), putPoints(), point(), and setPoint(). .PP @@ -93,7 +93,7 @@ For geometry operations use boundingRect() and translate(). There is also the QW .PP Among others, QPointArray is used by QPainter::drawLineSegments(), QPainter::drawPolyline(), QPainter::drawPolygon() and QPainter::drawCubicBezier(). .PP -Note that because this class is a QMemArray, copying an array and modifying the copy modifies the original as well, i.e. a shallow copy. If you need a deep copy use copy() or detach(), for example: +Note that because this class is a TQMemArray, copying an array and modifying the copy modifies the original as well, i.e. a shallow copy. If you need a deep copy use copy() or detach(), for example: .PP .nf .br @@ -115,7 +115,7 @@ Note that because this class is a QMemArray, copying an array and modifying the .PP If you forget the tmp.detach(), the const array will be modified. .PP -See also QPainter, QWMatrix, QMemArray, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. +See also QPainter, QWMatrix, TQMemArray, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QPointArray::QPointArray ()" Constructs a null point array. diff --git a/doc/man/man3/tqprocess.3qt b/doc/man/man3/tqprocess.3qt index 64da05ae3..0e2fe3009 100644 --- a/doc/man/man3/tqprocess.3qt +++ b/doc/man/man3/tqprocess.3qt @@ -61,7 +61,7 @@ Inherits TQObject. .BI "virtual bool \fBlaunch\fR ( const TQString & buf, TQStringList * env = 0 )" .br .ti -1c -.BI "virtual bool \fBlaunch\fR ( const QByteArray & buf, TQStringList * env = 0 )" +.BI "virtual bool \fBlaunch\fR ( const TQByteArray & buf, TQStringList * env = 0 )" .br .ti -1c .BI "bool \fBisRunning\fR () const" @@ -73,10 +73,10 @@ Inherits TQObject. .BI "int \fBexitStatus\fR () const" .br .ti -1c -.BI "virtual QByteArray \fBreadStdout\fR ()" +.BI "virtual TQByteArray \fBreadStdout\fR ()" .br .ti -1c -.BI "virtual QByteArray \fBreadStderr\fR ()" +.BI "virtual TQByteArray \fBreadStderr\fR ()" .br .ti -1c .BI "bool \fBcanReadLineStdout\fR () const" @@ -103,7 +103,7 @@ Inherits TQObject. .BI "void \fBkill\fR () const" .br .ti -1c -.BI "virtual void \fBwriteToStdin\fR ( const QByteArray & buf )" +.BI "virtual void \fBwriteToStdin\fR ( const TQByteArray & buf )" .br .ti -1c .BI "virtual void \fBwriteToStdin\fR ( const TQString & buf )" @@ -137,7 +137,7 @@ You can write to the started program's standard input, and can read the program' .PP There are two different ways to start a process. If you just want to run a program, optionally passing data to its standard input at the beginning, use one of the launch() functions. If you want full control of the program's standard input (especially if you don't know all the data you want to send to standard input at the beginning), use the start() function. .PP -If you use start() you can write to the program's standard input using writeToStdin() and you can close the standard input with closeStdin(). The wroteToStdin() signal is emitted if the data sent to standard input has been written. You can read from the program's standard output using readStdout() or readLineStdout(). These functions return an empty QByteArray if there is no data to read. The readyReadStdout() signal is emitted when there is data available to be read from standard output. Standard error has a set of functions that correspond to the standard output functions, i.e. readStderr(), readLineStderr() and readyReadStderr(). +If you use start() you can write to the program's standard input using writeToStdin() and you can close the standard input with closeStdin(). The wroteToStdin() signal is emitted if the data sent to standard input has been written. You can read from the program's standard output using readStdout() or readLineStdout(). These functions return an empty TQByteArray if there is no data to read. The readyReadStdout() signal is emitted when there is data available to be read from standard output. Standard error has a set of functions that correspond to the standard output functions, i.e. readStderr(), readLineStderr() and readyReadStderr(). .PP If you use one of the launch() functions the data you pass will be sent to the program's standard input which will be closed once all the data has been written. You should \fInot\fR use writeToStdin() or closeStdin() if you use launch(). If you need to send data to the program's standard input after it has started running use start() instead of launch(). .PP @@ -348,7 +348,7 @@ This tries to terminate the process the nice way. If the process is still runnin The slot returns immediately: it does not wait until the process has finished. When the process terminates, the processExited() signal is emitted. .PP See also tryTerminate() and processExited(). -.SH "bool QProcess::launch ( const QByteArray & buf, TQStringList * env = 0 )\fC [virtual]\fR" +.SH "bool QProcess::launch ( const TQByteArray & buf, TQStringList * env = 0 )\fC [virtual]\fR" Runs the process and writes the data \fIbuf\fR to the process's standard input. If all the data is written to standard input, standard input is closed. The command is searched for in the path for executable programs; you can also use an absolute path in the command itself. .PP If \fIenv\fR is null, then the process is started with the same environment as the starting process. If \fIenv\fR is non-null, then the values in the string list are interpreted as environment setttings of the form \fCkey=value\fR and the process is started with these environment settings. For convenience, there is a small exception to this rule under Unix: if \fIenv\fR does not contain any settings for the environment variable \fCLD_LIBRARY_PATH\fR, then this variable is inherited from the starting process. @@ -404,16 +404,16 @@ Reads a line of text from standard output, excluding any trailing newline or car By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with TQTextCodec::setCodecForCStrings(). .PP See also canReadLineStdout(), readyReadStdout(), readStdout(), and readLineStderr(). -.SH "QByteArray QProcess::readStderr ()\fC [virtual]\fR" +.SH "TQByteArray QProcess::readStderr ()\fC [virtual]\fR" Reads the data that the process has written to standard error. When new data is written to standard error, the class emits the signal readyReadStderr(). .PP -If there is no data to read, this function returns a QByteArray of size 0: it does not wait until there is something to read. +If there is no data to read, this function returns a TQByteArray of size 0: it does not wait until there is something to read. .PP See also readyReadStderr(), readLineStderr(), readStdout(), and writeToStdin(). -.SH "QByteArray QProcess::readStdout ()\fC [virtual]\fR" +.SH "TQByteArray QProcess::readStdout ()\fC [virtual]\fR" Reads the data that the process has written to standard output. When new data is written to standard output, the class emits the signal readyReadStdout(). .PP -If there is no data to read, this function returns a QByteArray of size 0: it does not wait until there is something to read. +If there is no data to read, this function returns a TQByteArray of size 0: it does not wait until there is something to read. .PP See also readyReadStdout(), readLineStdout(), readStderr(), and writeToStdin(). .PP @@ -478,7 +478,7 @@ See also kill() and processExited(). Returns the working directory that was set with setWorkingDirectory(), or the current directory if none has been explicitly set. .PP See also setWorkingDirectory() and QDir::current(). -.SH "void QProcess::writeToStdin ( const QByteArray & buf )\fC [virtual slot]\fR" +.SH "void QProcess::writeToStdin ( const TQByteArray & buf )\fC [virtual slot]\fR" Writes the data \fIbuf\fR to the process's standard input. The process may or may not read this data. .PP This function always returns immediately. The data you pass to writeToStdin() is copied into an internal memory buffer in QProcess, and when control goes back to the event loop, QProcess will starting transferring data from this buffer to the running process. Sometimes the data will be transferred in several payloads, depending on how much data is read at a time by the process itself. When QProcess has transferred all the data from its memory buffer to the running process, it emits wroteToStdin(). diff --git a/doc/man/man3/tqptrcollection.3qt b/doc/man/man3/tqptrcollection.3qt index 3932c2b58..5d52d73f8 100644 --- a/doc/man/man3/tqptrcollection.3qt +++ b/doc/man/man3/tqptrcollection.3qt @@ -13,7 +13,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP \fC#include <tqptrcollection.h>\fR .PP -Inherited by QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +Inherited by TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, TQPtrList, TQPtrDict, and TQPtrVector. .PP .SS "Public Members" .in +1c @@ -54,7 +54,7 @@ Inherited by QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, TQPtrL .SH DESCRIPTION The TQPtrCollection class is the base class of most pointer-based TQt collections. .PP -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. +The TQPtrCollection class is an abstract base class for the TQt collection classes TQDict, TQPtrList, etc. TQt also includes value based collections, e.g. TQValueList, TQMap, etc. .PP A TQPtrCollection only knows about the number of objects in the collection and the deletion strategy (see setAutoDelete()). .PP @@ -82,11 +82,11 @@ Removes all objects from the collection. The objects will be deleted if auto-del .PP See also setAutoDelete(). .PP -Reimplemented in QAsciiCache, QAsciiDict, QCache, QDict, QIntCache, QIntDict, TQPtrList, TQPtrDict, and TQPtrVector. +Reimplemented in TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, 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, TQPtrList, TQPtrDict, and TQPtrVector. +Reimplemented in TQAsciiCache, TQAsciiDict, TQCache, TQDict, TQIntCache, TQIntDict, 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 diff --git a/doc/man/man3/tqptrdict.3qt b/doc/man/man3/tqptrdict.3qt index 2adccce20..4bb5617ab 100644 --- a/doc/man/man3/tqptrdict.3qt +++ b/doc/man/man3/tqptrdict.3qt @@ -143,9 +143,9 @@ Example: .fi In this example we use a dictionary to add an extra property (a char*) to the line edits we're using. .PP -See QDict for full details, including the choice of dictionary size, and how deletions are handled. +See TQDict for full details, including the choice of dictionary size, and how deletions are handled. .PP -See also TQPtrDictIterator, QDict, QAsciiDict, QIntDict, Collection Classes, Collection Classes, and Non-GUI Classes. +See also TQPtrDictIterator, TQDict, TQAsciiDict, TQIntDict, Collection Classes, Collection Classes, and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQPtrDict::TQPtrDict ( int size = 17 )" Constructs a dictionary using an internal hash array with the size \fIsize\fR. diff --git a/doc/man/man3/tqptrvector.3qt b/doc/man/man3/tqptrvector.3qt index 630cb0bd4..dde23fe24 100644 --- a/doc/man/man3/tqptrvector.3qt +++ b/doc/man/man3/tqptrvector.3qt @@ -119,7 +119,7 @@ TQValueVector is an STL-compatible alternative to this class. .PP 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 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). +A vector is the same as an array. The main difference between TQPtrVector and TQMemArray is that TQPtrVector stores pointers to the elements, whereas TQMemArray stores the elements themselves (i.e. TQMemArray is value-based and TQPtrVector is pointer-based). .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 @@ -127,7 +127,7 @@ Unless otherwise stated, all functions that remove items from the vector will al .PP Functions that compare items (find() and sort() for example) will do so using the virtual function compareItems(). The default implementation of this function only compares the pointer values. Reimplement compareItems() in a subclass to get searching and sorting based on the item contents. You can perform a linear search for a pointer in the vector using findRef(), or a binary search (of a sorted vector) using bsearch(). You can count the number of times an item appears in the vector with contains() or containsRef(). .PP -See also QMemArray and Non-GUI Classes. +See also TQMemArray and Non-GUI Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQPtrVector::TQPtrVector ()" Constructs a null vector. diff --git a/doc/man/man3/tqpushbutton.3qt b/doc/man/man3/tqpushbutton.3qt index d0298868c..9afed57c1 100644 --- a/doc/man/man3/tqpushbutton.3qt +++ b/doc/man/man3/tqpushbutton.3qt @@ -420,7 +420,7 @@ Set this property's value with setOn(). .SH "QPixmap pixmap" This property holds the pixmap shown on the button. .PP -If the pixmap is monochrome (i.e. it is a QBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. +If the pixmap is monochrome (i.e. it is a TQBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. .PP pixmap() returns 0 if no pixmap was set. .PP diff --git a/doc/man/man3/tqradiobutton.3qt b/doc/man/man3/tqradiobutton.3qt index 116f0c981..a06b81f42 100644 --- a/doc/man/man3/tqradiobutton.3qt +++ b/doc/man/man3/tqradiobutton.3qt @@ -238,7 +238,7 @@ Set this property's value with setChecked() and get this property's value with i .SH "QPixmap pixmap" This property holds the pixmap shown on the button. .PP -If the pixmap is monochrome (i.e. it is a QBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. +If the pixmap is monochrome (i.e. it is a TQBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. .PP pixmap() returns 0 if no pixmap was set. .PP diff --git a/doc/man/man3/tqregexp.3qt b/doc/man/man3/tqregexp.3qt index 859ce0c21..2077d70f1 100644 --- a/doc/man/man3/tqregexp.3qt +++ b/doc/man/man3/tqregexp.3qt @@ -1,5 +1,5 @@ '\" t -.TH QRegExp 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQRegExp 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,11 +7,11 @@ .ad l .nh .SH NAME -QRegExp \- Pattern matching using regular expressions +TQRegExp \- Pattern matching using regular expressions .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqregexp.h>\fR +\fC#include <tqregexp.h>\fR .PP .SS "Public Members" .in +1c @@ -19,25 +19,26 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "enum \fBCaretMode\fR { CaretAtZero, CaretAtOffset, CaretWontMatch }" .br .ti -1c -.BI "\fBQRegExp\fR ()" +.BI "\fBTQRegExp\fR ()" .br .ti -1c -.BI "\fBQRegExp\fR ( const TQString & pattern, bool caseSensitive = TRUE, bool wildcard = FALSE )" +.BI "\fBTQRegExp\fR ( const TQString & pattern, bool caseSensitive = TRUE, bool wildcard = FALSE )" .br .ti -1c -.BI "\fBQRegExp\fR ( const QRegExp & rx )" + +.BI "\fBTQRegExp\fR ( const TQRegExp & rx )" .br .ti -1c -.BI "\fB~QRegExp\fR ()" +.BI "\fB~TQRegExp\fR ()" .br .ti -1c -.BI "QRegExp & \fBoperator=\fR ( const QRegExp & rx )" +.BI "TQRegExp & \fBoperator=\fR ( const TQRegExp & rx )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QRegExp & rx ) const" +.BI "bool \fBoperator==\fR ( const TQRegExp & rx ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QRegExp & rx ) const" +.BI "bool \fBoperator!=\fR ( const TQRegExp & rx ) const" .br .ti -1c .BI "bool \fBisEmpty\fR () const" @@ -107,7 +108,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .br .in -1c .SH DESCRIPTION -The QRegExp class provides pattern matching using regular expressions. +The TQRegExp class provides pattern matching using regular expressions. .PP .PP @@ -120,11 +121,11 @@ l - l. Validation A regexp can be used to check whether a piece of text meets so .fi </center> .PP -We present a very brief introduction to regexps, a description of Qt's regexp language, some code examples, and finally the function documentation itself. QRegExp is modeled on Perl's regexp language, and also fully supports Unicode. QRegExp can also be used in the weaker 'wildcard' (globbing) mode which works in a similar way to command shells. A good text on regexps is \fIMastering Regular Expressions: Powerful Techniques for Perl and Other Tools\fR by Jeffrey E. Friedl, ISBN 1565922573. +We present a very brief introduction to regexps, a description of Qt's regexp language, some code examples, and finally the function documentation itself. TQRegExp is modeled on Perl's regexp language, and also fully supports Unicode. TQRegExp can also be used in the weaker 'wildcard' (globbing) mode which works in a similar way to command shells. A good text on regexps is \fIMastering Regular Expressions: Powerful Techniques for Perl and Other Tools\fR by Jeffrey E. Friedl, ISBN 1565922573. .PP Experienced regexp users may prefer to skip the introduction and go directly to the relevant information. .PP -In case of multi-threaded programming, note that QRegExp depends on TQThreadStorage internally. For that reason, QRegExp should only be used with threads started with TQThread, i.e. not with threads started with platform-specific APIs. +In case of multi-threaded programming, note that TQRegExp depends on TQThreadStorage internally. For that reason, TQRegExp should only be used with threads started with TQThread, i.e. not with threads started with platform-specific APIs. .PP .TP @@ -281,15 +282,15 @@ same as .PP For example if we are in wildcard mode and have strings which contain filenames we could identify HTML files with \fB*.html\fR. This will match zero or more characters followed by a dot followed by 'h', 't', 'm' and 'l'. .SH "Notes for Perl Users" -Most of the character class abbreviations supported by Perl are supported by QRegExp, see characters and abbreviations for sets of characters. +Most of the character class abbreviations supported by Perl are supported by TQRegExp, see characters and abbreviations for sets of characters. .PP -In QRegExp, apart from within character classes, \fC^\fR always signifies the start of the string, so carets must always be escaped unless used for that purpose. In Perl the meaning of caret varies automagically depending on where it occurs so escaping it is rarely necessary. The same applies to \fC$\fR which in QRegExp always signifies the end of the string. +In TQRegExp, apart from within character classes, \fC^\fR always signifies the start of the string, so carets must always be escaped unless used for that purpose. In Perl the meaning of caret varies automagically depending on where it occurs so escaping it is rarely necessary. The same applies to \fC$\fR which in TQRegExp always signifies the end of the string. .PP -QRegExp's quantifiers are the same as Perl's greedy quantifiers. Non-greedy matching cannot be applied to individual quantifiers, but can be applied to all the quantifiers in the pattern. For example, to match the Perl regexp \fBro+?m\fR requires: +TQRegExp's quantifiers are the same as Perl's greedy quantifiers. Non-greedy matching cannot be applied to individual quantifiers, but can be applied to all the quantifiers in the pattern. For example, to match the Perl regexp \fBro+?m\fR requires: .PP .nf .br - QRegExp rx( "ro+m" ); + TQRegExp rx( "ro+m" ); .br rx.setMinimal( TRUE ); .br @@ -299,11 +300,11 @@ The equivalent of Perl's \fC/i\fR option is setCaseSensitive(FALSE). .PP Perl's \fC/g\fR option can be emulated using a loop. .PP -In QRegExp \fB.\fR matches any character, therefore all QRegExp regexps have the equivalent of Perl's \fC/s\fR option. QRegExp does not have an equivalent to Perl's \fC/m\fR option, but this can be emulated in various ways for example by splitting the input into lines or by looping with a regexp that searches for newlines. +In TQRegExp \fB.\fR matches any character, therefore all TQRegExp regexps have the equivalent of Perl's \fC/s\fR option. TQRegExp does not have an equivalent to Perl's \fC/m\fR option, but this can be emulated in various ways for example by splitting the input into lines or by looping with a regexp that searches for newlines. .PP -Because QRegExp is string oriented there are no \\A, \\Z or \\z assertions. The \\G assertion is not supported but can be emulated in a loop. +Because TQRegExp is string oriented there are no \\A, \\Z or \\z assertions. The \\G assertion is not supported but can be emulated in a loop. .PP -Perl's $& is cap(0) or capturedTexts()[0]. There are no QRegExp equivalents for $`, $' or $+. Perl's capturing variables, $1, $2, +Perl's $& is cap(0) or capturedTexts()[0]. There are no TQRegExp equivalents for $`, $' or $+. Perl's capturing variables, $1, $2, ... correspond to cap(1) or capturedTexts()[1], cap(2) or capturedTexts()[2], etc. .PP @@ -313,7 +314,7 @@ Perl's extended \fC/x\fR syntax is not supported, nor are directives, e.g. (?i), .PP .nf .br - QRegExp mark( "\\\\b" // word boundary + TQRegExp mark( "\\\\b" // word boundary .br "[Mm]ark" // the word we want to match .br @@ -331,7 +332,7 @@ Note: because C++ transforms \'s they must be written \fItwice\fR in code, e .SH "Code Examples" .nf .br - QRegExp rx( "^\\\\d\\\\d?$" ); // match integers 0 to 99 + TQRegExp rx( "^\\\\d\\\\d?$" ); // match integers 0 to 99 .br rx.search( "123" ); // returns -1 (no match) .br @@ -345,7 +346,7 @@ The third string matches '<u>6</u>'. This is a simple validation regexp for inte .PP .nf .br - QRegExp rx( "^\\\\S+$" ); // match strings without whitespace + TQRegExp rx( "^\\\\S+$" ); // match strings without whitespace .br rx.search( "Hello world" ); // returns -1 (no match) .br @@ -359,7 +360,7 @@ In the following example we match strings containing 'mail' or 'letter' or 'corr .PP .nf .br - QRegExp rx( "\\\\b(mail|letter|correspondence)\\\\b" ); + TQRegExp rx( "\\\\b(mail|letter|correspondence)\\\\b" ); .br rx.search( "I sent you an email" ); // returns -1 (no match) .br @@ -379,7 +380,7 @@ This will capture the text from the first set of capturing parentheses (counting .PP .nf .br - QRegExp rx( "&(?!amp;)" ); // match ampersands but not & + TQRegExp rx( "&(?!amp;)" ); // match ampersands but not & .br TQString line1 = "This & that"; .br @@ -395,7 +396,7 @@ This will capture the text from the first set of capturing parentheses (counting .br .fi .PP -Here we've passed the QRegExp to TQString's replace() function to replace the matched text with new text. +Here we've passed the TQRegExp to TQString's replace() function to replace the matched text with new text. .PP .nf .br @@ -403,7 +404,7 @@ Here we've passed the QRegExp to TQString's replace() function to replace the ma .br " How many Eiriks, Eric?"; .br - QRegExp rx( "\\\\b(Eric|Eirik)\\\\b" ); // match Eric or Eirik + TQRegExp rx( "\\\\b(Eric|Eirik)\\\\b" ); // match Eric or Eirik .br int pos = 0; // where we are in the string .br @@ -463,7 +464,7 @@ To imitate the matching of a shell we can use wildcard mode. .PP .nf .br - QRegExp rx( "*.html" ); // invalid regexp: * doesn't quantify anything + TQRegExp rx( "*.html" ); // invalid regexp: * doesn't quantify anything .br rx.setWildcard( TRUE ); // now it's a valid wildcard regexp .br @@ -477,40 +478,40 @@ To imitate the matching of a shell we can use wildcard mode. .PP Wildcard matching can be convenient because of its simplicity, but any wildcard regexp can be defined using full regexps, e.g. \fB.*\.html$\fR. Notice that we can't match both \fC.html\fR and \fC.htm\fR files with a wildcard unless we use \fB*.htm*\fR which will also match 'test.html.bak'. A full regexp gives us the precision we need, \fB.*\.html?$\fR. .PP -QRegExp can match case insensitively using setCaseSensitive(), and can use non-greedy matching, see setMinimal(). By default QRegExp uses full regexps but this can be changed with setWildcard(). Searching can be forward with search() or backward with searchRev(). Captured text can be accessed using capturedTexts() which returns a string list of all captured strings, or using cap() which returns the captured string for the given index. The pos() function takes a match index and returns the position in the string where the match was made (or -1 if there was no match). +TQRegExp can match case insensitively using setCaseSensitive(), and can use non-greedy matching, see setMinimal(). By default TQRegExp uses full regexps but this can be changed with setWildcard(). Searching can be forward with search() or backward with searchRev(). Captured text can be accessed using capturedTexts() which returns a string list of all captured strings, or using cap() which returns the captured string for the given index. The pos() function takes a match index and returns the position in the string where the match was made (or -1 if there was no match). .PP -See also QRegExpValidator, TQString, TQStringList, Miscellaneous Classes, Implicitly and Explicitly Shared Classes, and Non-GUI Classes. +See also TQRegExpValidator, TQString, TQStringList, Miscellaneous Classes, Implicitly and Explicitly Shared Classes, and Non-GUI Classes. .PP .SS "Member Type Documentation" -.SH "QRegExp::CaretMode" +.SH "TQRegExp::CaretMode" The CaretMode enum defines the different meanings of the caret (\fB^\fR) in a regular expression. The possible values are: .TP -\fCQRegExp::CaretAtZero\fR - The caret corresponds to index 0 in the searched string. +\fCTQRegExp::CaretAtZero\fR - The caret corresponds to index 0 in the searched string. .TP -\fCQRegExp::CaretAtOffset\fR - The caret corresponds to the start offset of the search. +\fCTQRegExp::CaretAtOffset\fR - The caret corresponds to the start offset of the search. .TP -\fCQRegExp::CaretWontMatch\fR - The caret never matches. +\fCTQRegExp::CaretWontMatch\fR - The caret never matches. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QRegExp::QRegExp ()" +.SH "TQRegExp::TQRegExp ()" Constructs an empty regexp. .PP See also isValid() and errorString(). -.SH "QRegExp::QRegExp ( const TQString & pattern, bool caseSensitive = TRUE, bool wildcard = FALSE )" +.SH "TQRegExp::TQRegExp ( const TQString & pattern, bool caseSensitive = TRUE, bool wildcard = FALSE )" Constructs a regular expression object for the given \fIpattern\fR string. The pattern must be given using wildcard notation if \fIwildcard\fR is TRUE (default is FALSE). The pattern is case sensitive, unless \fIcaseSensitive\fR is FALSE. Matching is greedy (maximal), but can be changed by calling setMinimal(). .PP See also setPattern(), setCaseSensitive(), setWildcard(), and setMinimal(). -.SH "QRegExp::QRegExp ( const QRegExp & rx )" +.SH "TQRegExp::TQRegExp ( const TQRegExp & rx )" Constructs a regular expression as a copy of \fIrx\fR. .PP See also operator=(). -.SH "QRegExp::~QRegExp ()" +.SH "TQRegExp::~TQRegExp ()" Destroys the regular expression and cleans up its internal data. -.SH "TQString QRegExp::cap ( int nth = 0 )" +.SH "TQString TQRegExp::cap ( int nth = 0 )" Returns the text captured by the \fInth\fR subexpression. The entire match has index 0 and the parenthesized subexpressions have indices starting from 1 (excluding non-capturing parentheses). .PP .nf .br - QRegExp rxlen( "(\\\\d+)(?:\\\\s*)(cm|inch)" ); + TQRegExp rxlen( "(\\\\d+)(?:\\\\s*)(cm|inch)" ); .br int pos = rxlen.search( "Length: 189cm" ); .br @@ -532,7 +533,7 @@ Some patterns may lead to a number of matches which cannot be determined in adva .PP .nf .br - QRegExp rx( "(\\\\d+)" ); + TQRegExp rx( "(\\\\d+)" ); .br str = "Offsets: 12 14 99 231 7"; .br @@ -562,7 +563,7 @@ See also capturedTexts(), pos(), exactMatch(), search(), and searchRev(). .PP Examples: .)l network/archivesearch/archivedialog.ui.h and regexptester/regexptester.cpp. -.SH "TQStringList QRegExp::capturedTexts ()" +.SH "TQStringList TQRegExp::capturedTexts ()" Returns a list of the captured text strings. .PP The first string in the list is the entire matched string. Each subsequent list element contains a string that matched a (capturing) subexpression of the regexp. @@ -571,7 +572,7 @@ For example: .PP .nf .br - QRegExp rx( "(\\\\d+)(\\\\s*)(cm|inch(es)?)" ); + TQRegExp rx( "(\\\\d+)(\\\\s*)(cm|inch(es)?)" ); .br int pos = rx.search( "Length: 36 inches" ); .br @@ -585,7 +586,7 @@ The above example also captures elements that may be present but which we have n .PP .nf .br - QRegExp rx( "(\\\\d+)(?:\\\\s*)(cm|inch(?:es)?)" ); + TQRegExp rx( "(\\\\d+)(?:\\\\s*)(cm|inch(?:es)?)" ); .br int pos = rx.search( "Length: 36 inches" ); .br @@ -618,17 +619,17 @@ Some regexps can match an indeterminate number of times. For example if the inpu The order of elements in the string list is as follows. The first element is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus capturedTexts()[1] is the text of the first capturing parentheses, capturedTexts()[2] is the text of the second and so on (corresponding to $1, $2, etc., in some other regexp languages). .PP See also cap(), pos(), exactMatch(), search(), and searchRev(). -.SH "bool QRegExp::caseSensitive () const" +.SH "bool TQRegExp::caseSensitive () const" Returns TRUE if case sensitivity is enabled; otherwise returns FALSE. The default is TRUE. .PP See also setCaseSensitive(). -.SH "TQString QRegExp::errorString ()" +.SH "TQString TQRegExp::errorString ()" Returns a text string that explains why a regexp pattern is invalid the case being; otherwise returns "no error occurred". .PP See also isValid(). .PP Example: regexptester/regexptester.cpp. -.SH "TQString QRegExp::escape ( const TQString & str )\fC [static]\fR" +.SH "TQString TQRegExp::escape ( const TQString & str )\fC [static]\fR" Returns the string \fIstr\fR with every regexp special character escaped with a backslash. The special characters are $, (, ), *, +, ., ?, [, \, ], ^, {, | and }. .PP @@ -636,9 +637,9 @@ Example: .PP .nf .br - s1 = QRegExp::escape( "bingo" ); // s1 == "bingo" + s1 = TQRegExp::escape( "bingo" ); // s1 == "bingo" .br - s2 = QRegExp::escape( "f(x)" ); // s2 == "f\\\\(x\\\\)" + s2 = TQRegExp::escape( "f(x)" ); // s2 == "f\\\\(x\\\\)" .br .fi .PP @@ -646,12 +647,12 @@ This function is useful to construct regexp patterns dynamically: .PP .nf .br - QRegExp rx( "(" + QRegExp::escape(name) + + TQRegExp rx( "(" + TQRegExp::escape(name) + .br - "|" + QRegExp::escape(alias) + ")" ); + "|" + TQRegExp::escape(alias) + ")" ); .br .fi -.SH "bool QRegExp::exactMatch ( const TQString & str ) const" +.SH "bool TQRegExp::exactMatch ( const TQString & str ) const" Returns TRUE if \fIstr\fR is matched exactly by this regular expression; otherwise returns FALSE. You can determine how much of the string was matched by calling matchedLength(). .PP For a given regexp string, R, exactMatch("R") is the equivalent of search("^R$") since exactMatch() effectively encloses the regexp in the start of string and end of string anchors, except that it sets matchedLength() differently. @@ -660,14 +661,14 @@ For example, if the regular expression is \fBblue\fR, then exactMatch() returns .PP Although const, this function sets matchedLength(), capturedTexts() and pos(). .PP -See also search(), searchRev(), and QRegExpValidator. -.SH "bool QRegExp::isEmpty () const" +See also search(), searchRev(), and TQRegExpValidator. +.SH "bool TQRegExp::isEmpty () const" Returns TRUE if the pattern string is empty; otherwise returns FALSE. .PP If you call exactMatch() with an empty pattern on an empty string it will return TRUE; otherwise it returns FALSE since it operates over the whole string. If you call search() with an empty pattern on \fIany\fR string it will return the start offset (0 by default) because the empty pattern matches the 'emptiness' at the start of the string. In this case the length of the match returned by matchedLength() will be 0. .PP See TQString::isEmpty(). -.SH "bool QRegExp::isValid () const" +.SH "bool TQRegExp::isValid () const" Returns TRUE if the regular expression is valid; otherwise returns FALSE. An invalid regular expression never matches. .PP The pattern \fB[a-z\fR is an example of an invalid pattern, since it lacks a closing square bracket. @@ -677,7 +678,7 @@ Note that the validity of a regexp may also depend on the setting of the wildcar See also errorString(). .PP Example: regexptester/regexptester.cpp. -.SH "int QRegExp::match ( const TQString & str, int index = 0, int * len = 0, bool indexIsStart = TRUE ) const" +.SH "int TQRegExp::match ( const TQString & str, int index = 0, int * len = 0, bool indexIsStart = TRUE ) const" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Attempts to match in \fIstr\fR, starting from position \fIindex\fR. Returns the position of the match, or -1 if there was no match. @@ -691,43 +692,43 @@ Use search() and matchedLength() instead of this function. See also TQString::mid() and QConstString. .PP Example: qmag/qmag.cpp. -.SH "int QRegExp::matchedLength () const" +.SH "int TQRegExp::matchedLength () const" Returns the length of the last matched string, or -1 if there was no match. .PP See also exactMatch(), search(), and searchRev(). .PP Examples: .)l network/archivesearch/archivedialog.ui.h and regexptester/regexptester.cpp. -.SH "bool QRegExp::minimal () const" +.SH "bool TQRegExp::minimal () const" Returns TRUE if minimal (non-greedy) matching is enabled; otherwise returns FALSE. .PP See also setMinimal(). -.SH "int QRegExp::numCaptures () const" +.SH "int TQRegExp::numCaptures () const" Returns the number of captures contained in the regular expression. .PP Example: regexptester/regexptester.cpp. -.SH "bool QRegExp::operator!= ( const QRegExp & rx ) const" +.SH "bool TQRegExp::operator!= ( const TQRegExp & rx ) const" Returns TRUE if this regular expression is not equal to \fIrx\fR; otherwise returns FALSE. .PP See also operator==(). -.SH "QRegExp & QRegExp::operator= ( const QRegExp & rx )" +.SH "TQRegExp & TQRegExp::operator= ( const TQRegExp & rx )" Copies the regular expression \fIrx\fR and returns a reference to the copy. The case sensitivity, wildcard and minimal matching options are also copied. -.SH "bool QRegExp::operator== ( const QRegExp & rx ) const" +.SH "bool TQRegExp::operator== ( const TQRegExp & rx ) const" Returns TRUE if this regular expression is equal to \fIrx\fR; otherwise returns FALSE. .PP -Two QRegExp objects are equal if they have the same pattern strings and the same settings for case sensitivity, wildcard and minimal matching. -.SH "TQString QRegExp::pattern () const" +Two TQRegExp objects are equal if they have the same pattern strings and the same settings for case sensitivity, wildcard and minimal matching. +.SH "TQString TQRegExp::pattern () const" Returns the pattern string of the regular expression. The pattern has either regular expression syntax or wildcard syntax, depending on wildcard(). .PP See also setPattern(). -.SH "int QRegExp::pos ( int nth = 0 )" +.SH "int TQRegExp::pos ( int nth = 0 )" Returns the position of the \fInth\fR captured text in the searched string. If \fInth\fR is 0 (the default), pos() returns the position of the whole match. .PP Example: .PP .nf .br - QRegExp rx( "/([a-z]+)/([a-z]+)" ); + TQRegExp rx( "/([a-z]+)/([a-z]+)" ); .br rx.search( "Output /dev/null" ); // returns 7 (position of /dev/null) .br @@ -742,7 +743,7 @@ Example: For zero-length matches, pos() always returns -1. (For example, if cap(4) would return an empty string, pos(4) returns -1.) This is due to an implementation tradeoff. .PP See also capturedTexts(), exactMatch(), search(), and searchRev(). -.SH "int QRegExp::search ( const TQString & str, int offset = 0, CaretMode caretMode = CaretAtZero ) const" +.SH "int TQRegExp::search ( const TQString & str, int offset = 0, CaretMode caretMode = CaretAtZero ) const" Attempts to find a match in \fIstr\fR from position \fIoffset\fR (0 by default). If \fIoffset\fR is -1, the search starts at the last character; if -2, at the next to last character; etc. .PP Returns the position of the first match, or -1 if there was no match. @@ -757,7 +758,7 @@ Example: .br TQString str = "offsets: 1.23 .50 71.00 6.00"; .br - QRegExp rx( "\\\\d*\\\\.\\\\d+" ); // primitive floating point matching + TQRegExp rx( "\\\\d*\\\\.\\\\d+" ); // primitive floating point matching .br int count = 0; .br @@ -781,7 +782,7 @@ See also searchRev() and exactMatch(). .PP Examples: .)l network/archivesearch/archivedialog.ui.h and regexptester/regexptester.cpp. -.SH "int QRegExp::searchRev ( const TQString & str, int offset = -1, CaretMode caretMode = CaretAtZero ) const" +.SH "int TQRegExp::searchRev ( const TQString & str, int offset = -1, CaretMode caretMode = CaretAtZero ) const" Attempts to find a match backwards in \fIstr\fR from position \fIoffset\fR. If \fIoffset\fR is -1 (the default), the search starts at the last character; if -2, at the next to last character; etc. .PP Returns the position of the first match, or -1 if there was no match. @@ -793,7 +794,7 @@ Although const, this function sets matchedLength(), capturedTexts() and pos(). \fBWarning:\fR Searching backwards is much slower than searching forwards. .PP See also search() and exactMatch(). -.SH "void QRegExp::setCaseSensitive ( bool sensitive )" +.SH "void TQRegExp::setCaseSensitive ( bool sensitive )" Sets case sensitive matching to \fIsensitive\fR. .PP If \fIsensitive\fR is TRUE, \fB\.txt$\fR matches \fCreadme.txt\fR but not \fCREADME.TXT\fR. @@ -801,7 +802,7 @@ If \fIsensitive\fR is TRUE, \fB\.txt$\fR matches \fCreadme.txt\fR but not \f See also caseSensitive(). .PP Example: regexptester/regexptester.cpp. -.SH "void QRegExp::setMinimal ( bool minimal )" +.SH "void TQRegExp::setMinimal ( bool minimal )" Enables or disables minimal matching. If \fIminimal\fR is FALSE, matching is greedy (maximal) which is the default. .PP For example, suppose we have the input string "We must be <b>bold</b>, very <b>bold</b>!" and the pattern \fB<b>.*</b>\fR. With the default greedy (maximal) matching, the match is "We must be <u><b>bold</b>, very <b>bold</b></u>!". But with minimal (non-greedy) matching the first match is: "We must be <u><b>bold</b></u>, very <b>bold</b>!" and the second match is "We must be <b>bold</b>, very <u><b>bold</b></u>!". In practice we might use the pattern \fB<b>[^<]+</b>\fR instead, although this will still fail for nested tags. @@ -810,11 +811,11 @@ See also minimal(). .PP Examples: .)l network/archivesearch/archivedialog.ui.h and regexptester/regexptester.cpp. -.SH "void QRegExp::setPattern ( const TQString & pattern )" +.SH "void TQRegExp::setPattern ( const TQString & pattern )" Sets the pattern string to \fIpattern\fR. The case sensitivity, wildcard and minimal matching options are not changed. .PP See also pattern(). -.SH "void QRegExp::setWildcard ( bool wildcard )" +.SH "void TQRegExp::setWildcard ( bool wildcard )" Sets the wildcard mode for the regular expression. The default is FALSE. .PP Setting \fIwildcard\fR to TRUE enables simple shell-like wildcard matching. (See wildcard matching (globbing).) @@ -824,13 +825,13 @@ For example, \fBr*.txt\fR matches the string \fCreadme.txt\fR in wildcard mode, See also wildcard(). .PP Example: regexptester/regexptester.cpp. -.SH "bool QRegExp::wildcard () const" +.SH "bool TQRegExp::wildcard () const" Returns TRUE if wildcard mode is enabled; otherwise returns FALSE. The default is FALSE. .PP See also setWildcard(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqregexp.html +.BR http://doc.trolltech.com/tqregexp.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/tqregexpvalidator.3qt b/doc/man/man3/tqregexpvalidator.3qt index e13d28dca..ceac7a236 100644 --- a/doc/man/man3/tqregexpvalidator.3qt +++ b/doc/man/man3/tqregexpvalidator.3qt @@ -1,5 +1,5 @@ '\" t -.TH QRegExpValidator 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQRegExpValidator 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,7 +7,7 @@ .ad l .nh .SH NAME -QRegExpValidator \- Used to check a string against a +TQRegExpValidator \- Used to check a string against a .SH SYNOPSIS \fC#include <ntqvalidator.h>\fR .PP @@ -16,32 +16,32 @@ Inherits QValidator. .SS "Public Members" .in +1c .ti -1c -.BI "\fBQRegExpValidator\fR ( TQObject * parent, const char * name = 0 )" +.BI "\fBTQRegExpValidator\fR ( TQObject * parent, const char * name = 0 )" .br .ti -1c -.BI "\fBQRegExpValidator\fR ( const QRegExp & rx, TQObject * parent, const char * name = 0 )" +.BI "\fBTQRegExpValidator\fR ( const TQRegExp & rx, TQObject * parent, const char * name = 0 )" .br .ti -1c -.BI "\fB~QRegExpValidator\fR ()" +.BI "\fB~TQRegExpValidator\fR ()" .br .ti -1c .BI "virtual QValidator::State \fBvalidate\fR ( TQString & input, int & pos ) const" .br .ti -1c -.BI "void \fBsetRegExp\fR ( const QRegExp & rx )" +.BI "void \fBsetRegExp\fR ( const TQRegExp & rx )" .br .ti -1c -.BI "const QRegExp & \fBregExp\fR () const" +.BI "const TQRegExp & \fBregExp\fR () const" .br .in -1c .SH DESCRIPTION -The QRegExpValidator class is used to check a string against a regular expression. +The TQRegExpValidator class is used to check a string against a regular expression. .PP -QRegExpValidator contains a regular expression, "regexp", used to determine whether an input string is Acceptable, Intermediate or Invalid. +TQRegExpValidator contains a regular expression, "regexp", used to determine whether an input string is Acceptable, Intermediate or Invalid. .PP The regexp is treated as if it begins with the start of string assertion, \fB^\fR, and ends with the end of string assertion \fB$\fR so the match is against the entire input string, or from the given position if a start position greater than zero is given. .PP -For a brief introduction to Qt's regexp engine see QRegExp. +For a brief introduction to Qt's regexp engine see TQRegExp. .PP Example of use: .PP @@ -49,9 +49,9 @@ Example of use: .br // regexp: optional '-' followed by between 1 and 3 digits .br - QRegExp rx( "-?\\\\d{1,3}" ); + TQRegExp rx( "-?\\\\d{1,3}" ); .br - QValidator* validator = new QRegExpValidator( rx, this ); + QValidator* validator = new TQRegExpValidator( rx, this ); .br .br QLineEdit* edit = new QLineEdit( this ); @@ -66,11 +66,11 @@ Below we present some examples of validators. In practice they would normally be .br // integers 1 to 9999 .br - QRegExp rx( "[1-9]\\\\d{0,3}" ); + TQRegExp rx( "[1-9]\\\\d{0,3}" ); .br // the validator treats the regexp as "^[1-9]\\\\d{0,3}$" .br - QRegExpValidator v( rx, 0 ); + TQRegExpValidator v( rx, 0 ); .br TQString s; .br @@ -124,37 +124,37 @@ Below we present some examples of validators. In practice they would normally be .br .fi .PP -See also QRegExp, QIntValidator, QDoubleValidator, and Miscellaneous Classes. +See also TQRegExp, QIntValidator, QDoubleValidator, and Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QRegExpValidator::QRegExpValidator ( TQObject * parent, const char * name = 0 )" +.SH "TQRegExpValidator::TQRegExpValidator ( TQObject * parent, const char * name = 0 )" Constructs a validator that accepts any string (including an empty one) as valid. The object's parent is \fIparent\fR and its name is \fIname\fR. -.SH "QRegExpValidator::QRegExpValidator ( const QRegExp & rx, TQObject * parent, const char * name = 0 )" +.SH "TQRegExpValidator::TQRegExpValidator ( const TQRegExp & rx, TQObject * parent, const char * name = 0 )" Constructs a validator which accepts all strings that match the regular expression \fIrx\fR. The object's parent is \fIparent\fR and its name is \fIname\fR. .PP The match is made against the entire string, e.g. if the regexp is \fB[A-Fa-f0-9]+\fR it will be treated as \fB^[A-Fa-f0-9]+$\fR. -.SH "QRegExpValidator::~QRegExpValidator ()" +.SH "TQRegExpValidator::~TQRegExpValidator ()" Destroys the validator, freeing any resources allocated. -.SH "const QRegExp & QRegExpValidator::regExp () const" +.SH "const TQRegExp & TQRegExpValidator::regExp () const" Returns the regular expression used for validation. .PP See also setRegExp(). -.SH "void QRegExpValidator::setRegExp ( const QRegExp & rx )" +.SH "void TQRegExpValidator::setRegExp ( const TQRegExp & rx )" Sets the regular expression used for validation to \fIrx\fR. .PP See also regExp(). -.SH "QValidator::State QRegExpValidator::validate ( TQString & input, int & pos ) const\fC [virtual]\fR" +.SH "QValidator::State TQRegExpValidator::validate ( TQString & input, int & pos ) const\fC [virtual]\fR" Returns Acceptable if \fIinput\fR is matched by the regular expression for this validator, Intermediate if it has matched partially (i.e. could be a valid match if additional valid characters are added), and Invalid if \fIinput\fR is not matched. .PP The \fIpos\fR parameter is set to the length of the \fIinput\fR parameter. .PP For example, if the regular expression is \fB\w\d\d\fR (that is, word-character, digit, digit) then "A57" is Acceptable," E5" is Intermediate and "+9" is Invalid. .PP -See also QRegExp::match() and QRegExp::search(). +See also TQRegExp::match() and TQRegExp::search(). .PP Reimplemented from QValidator. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qregexpvalidator.html +.BR http://doc.trolltech.com/tqregexpvalidator.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/tqregion.3qt b/doc/man/man3/tqregion.3qt index 9e4d22fe8..9f76f7ae7 100644 --- a/doc/man/man3/tqregion.3qt +++ b/doc/man/man3/tqregion.3qt @@ -32,7 +32,7 @@ QRegion \- Clip region for a painter .BI "\fBQRegion\fR ( const QRegion & r )" .br .ti -1c -.BI "\fBQRegion\fR ( const QBitmap & bm )" +.BI "\fBQRegion\fR ( const TQBitmap & bm )" .br .ti -1c .BI "\fB~QRegion\fR ()" @@ -71,7 +71,7 @@ QRegion \- Clip region for a painter .BI "QRect \fBboundingRect\fR () const" .br .ti -1c -.BI "QMemArray<QRect> \fBrects\fR () const" +.BI "TQMemArray<QRect> \fBrects\fR () const" .br .ti -1c .BI "const QRegion \fBoperator|\fR ( const QRegion & r ) const" @@ -200,7 +200,7 @@ If \fIwinding\fR is TRUE, the polygon region is filled using the winding algorit This constructor may create complex regions that will slow down painting when used. .SH "QRegion::QRegion ( const QRegion & r )" Constructs a new region which is equal to region \fIr\fR. -.SH "QRegion::QRegion ( const QBitmap & bm )" +.SH "QRegion::QRegion ( const TQBitmap & bm )" Constructs a region from the bitmap \fIbm\fR. .PP The resulting region consists of the pixels in bitmap \fIbm\fR that are \fCcolor1\fR, as if each pixel was a 1 by 1 rectangle. @@ -326,7 +326,7 @@ See also unite() and operator+(). Applies the unite() function to this region and \fIr\fR and assigns the result to this region. \fCr1|=r2\fR is equivalent to \fCr1=r1.unite(r2)\fR .PP See also unite(). -.SH "QMemArray<QRect> QRegion::rects () const" +.SH "TQMemArray<QRect> QRegion::rects () const" Returns an array of non-overlapping rectangles that make up the region. .PP The union of all the rectangles is equal to the original region. diff --git a/doc/man/man3/tqstoreddrag.3qt b/doc/man/man3/tqstoreddrag.3qt index a600fe60d..02ced3105 100644 --- a/doc/man/man3/tqstoreddrag.3qt +++ b/doc/man/man3/tqstoreddrag.3qt @@ -24,10 +24,10 @@ Inherited by TQUriDrag and TQColorDrag. .BI "\fB~TQStoredDrag\fR ()" .br .ti -1c -.BI "virtual void \fBsetEncodedData\fR ( const QByteArray & encodedData )" +.BI "virtual void \fBsetEncodedData\fR ( const TQByteArray & encodedData )" .br .ti -1c -.BI "virtual QByteArray \fBencodedData\fR ( const char * m ) const" +.BI "virtual TQByteArray \fBencodedData\fR ( const char * m ) const" .br .in -1c .SH DESCRIPTION @@ -45,13 +45,13 @@ Constructs a TQStoredDrag. The \fIdragSource\fR and \fIname\fR are passed to the The data will be unset. Use setEncodedData() to set it. .SH "TQStoredDrag::~TQStoredDrag ()" Destroys the drag object and frees up all allocated resources. -.SH "QByteArray TQStoredDrag::encodedData ( const char * m ) const\fC [virtual]\fR" +.SH "TQByteArray TQStoredDrag::encodedData ( const char * m ) const\fC [virtual]\fR" Returns the stored data. \fIm\fR contains the data's format. .PP See also setEncodedData(). .PP Reimplemented from TQMimeSource. -.SH "void TQStoredDrag::setEncodedData ( const QByteArray & encodedData )\fC [virtual]\fR" +.SH "void TQStoredDrag::setEncodedData ( const TQByteArray & encodedData )\fC [virtual]\fR" Sets the encoded data of this drag object to \fIencodedData\fR. The encoded data is what's delivered to the drop sites. It must be in a strictly defined and portable format. .PP The drag object can't be dropped (by the user) until this function diff --git a/doc/man/man3/tqstring.3qt b/doc/man/man3/tqstring.3qt index 59383a654..2a37c4463 100644 --- a/doc/man/man3/tqstring.3qt +++ b/doc/man/man3/tqstring.3qt @@ -25,7 +25,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "\fBTQString\fR ( const TQString & s )" .br .ti -1c -.BI "\fBTQString\fR ( const QByteArray & ba )" +.BI "\fBTQString\fR ( const TQByteArray & ba )" .br .ti -1c .BI "\fBTQString\fR ( const TQChar * unicode, uint length )" @@ -49,7 +49,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBoperator=\fR ( const std::string & s )" .br .ti -1c -.BI "TQString & \fBoperator=\fR ( const QCString & cstr )" +.BI "TQString & \fBoperator=\fR ( const TQCString & cstr )" .br .ti -1c .BI "TQString & \fBoperator=\fR ( TQChar c )" @@ -133,7 +133,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "int \fBfind\fR ( const TQString & str, int index = 0, bool cs = TRUE ) const" .br .ti -1c -.BI "int \fBfind\fR ( const QRegExp & rx, int index = 0 ) const" +.BI "int \fBfind\fR ( const TQRegExp & rx, int index = 0 ) const" .br .ti -1c .BI "int \fBfind\fR ( const char * str, int index = 0 ) const" @@ -148,7 +148,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "int \fBfindRev\fR ( const TQString & str, int index = -1, bool cs = TRUE ) const" .br .ti -1c -.BI "int \fBfindRev\fR ( const QRegExp & rx, int index = -1 ) const" +.BI "int \fBfindRev\fR ( const TQRegExp & rx, int index = -1 ) const" .br .ti -1c .BI "int \fBfindRev\fR ( const char * str, int index = -1 ) const" @@ -166,7 +166,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "int \fBcontains\fR ( const TQString & str, bool cs = TRUE ) const" .br .ti -1c -.BI "int \fBcontains\fR ( const QRegExp & rx ) const" +.BI "int \fBcontains\fR ( const TQRegExp & rx ) const" .br .ti -1c .BI "enum \fBSectionFlags\fR { SectionDefault = 0x00, SectionSkipEmpty = 0x01, SectionIncludeLeadingSep = 0x02, SectionIncludeTrailingSep = 0x04, SectionCaseInsensitiveSeps = 0x08 }" @@ -184,7 +184,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString \fBsection\fR ( const TQString & sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const" .br .ti -1c -.BI "TQString \fBsection\fR ( const QRegExp & reg, int start, int end = 0xffffffff, int flags = SectionDefault ) const" +.BI "TQString \fBsection\fR ( const TQRegExp & reg, int start, int end = 0xffffffff, int flags = SectionDefault ) const" .br .ti -1c .BI "TQString \fBleft\fR ( uint len ) const" @@ -217,7 +217,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBinsert\fR ( uint index, const TQString & s )" .br .ti -1c -.BI "TQString & \fBinsert\fR ( uint index, const QByteArray & s )" +.BI "TQString & \fBinsert\fR ( uint index, const TQByteArray & s )" .br .ti -1c .BI "TQString & \fBinsert\fR ( uint index, const char * s )" @@ -241,7 +241,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBappend\fR ( const TQString & str )" .br .ti -1c -.BI "TQString & \fBappend\fR ( const QByteArray & str )" +.BI "TQString & \fBappend\fR ( const TQByteArray & str )" .br .ti -1c .BI "TQString & \fBappend\fR ( const char * str )" @@ -259,7 +259,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBprepend\fR ( const TQString & s )" .br .ti -1c -.BI "TQString & \fBprepend\fR ( const QByteArray & s )" +.BI "TQString & \fBprepend\fR ( const TQByteArray & s )" .br .ti -1c .BI "TQString & \fBprepend\fR ( const char * s )" @@ -283,7 +283,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBremove\fR ( const char * str )" .br .ti -1c -.BI "TQString & \fBremove\fR ( const QRegExp & rx )" +.BI "TQString & \fBremove\fR ( const TQRegExp & rx )" .br .ti -1c .BI "TQString & \fBreplace\fR ( uint index, uint len, const TQString & s )" @@ -307,7 +307,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBreplace\fR ( const TQString & before, const TQString & after, bool cs = TRUE )" .br .ti -1c -.BI "TQString & \fBreplace\fR ( const QRegExp & rx, const TQString & after )" +.BI "TQString & \fBreplace\fR ( const TQRegExp & rx, const TQString & after )" .br .ti -1c .BI "TQString & \fBreplace\fR ( TQChar c1, TQChar c2 )" @@ -379,7 +379,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "TQString & \fBoperator+=\fR ( const TQString & str )" .br .ti -1c -.BI "TQString & \fBoperator+=\fR ( const QByteArray & str )" +.BI "TQString & \fBoperator+=\fR ( const TQByteArray & str )" .br .ti -1c .BI "TQString & \fBoperator+=\fR ( const char * str )" @@ -421,10 +421,10 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "const char * \fBlatin1\fR () const" .br .ti -1c -.BI "QCString \fButf8\fR () const" +.BI "TQCString \fButf8\fR () const" .br .ti -1c -.BI "QCString \fBlocal8Bit\fR () const" +.BI "TQCString \fBlocal8Bit\fR () const" .br .ti -1c .BI "bool \fBoperator!\fR () const" @@ -601,7 +601,7 @@ In all of the TQString methods that take \fCconst char *\fR parameters, the \fCc .PP A TQString that has not been assigned to anything is \fInull\fR, i.e. both the length and data pointer is 0. A TQString that references the empty string ("", a single '\0' char) is \fIempty\fR. Both null and empty TQStrings are legal parameters to the methods. Assigning \fC(const char *) 0\fR to TQString gives a null TQString. For convenience, TQString::null is a null TQString. When sorting, empty strings come first, followed by non-empty strings, followed by null strings. We recommend using \fCif ( !str.isNull() )\fR to check for a non-null string rather than \fCif ( !str )\fR; see operator!() for an explanation. .PP -Note that if you find that you are mixing usage of QCString, TQString, and QByteArray, this causes lots of unnecessary copying and might indicate that the true nature of the data you are dealing with is uncertain. If the data is '\0'-terminated 8-bit data, use QCString; if it is unterminated (i.e. contains '\0's) 8-bit data, use QByteArray; if it is text, use TQString. +Note that if you find that you are mixing usage of TQCString, TQString, and TQByteArray, this causes lots of unnecessary copying and might indicate that the true nature of the data you are dealing with is uncertain. If the data is '\0'-terminated 8-bit data, use TQCString; if it is unterminated (i.e. contains '\0's) 8-bit data, use TQByteArray; if it is text, use TQString. .PP Lists of strings are handled by the TQStringList class. You can split a string into a list of strings using TQStringList::split(), and join a list of strings into a single string with an optional separator using TQStringList::join(). You can obtain a list of strings from a string list that contain a particular substring or that match a particular regex using TQStringList::grep(). .PP @@ -653,9 +653,9 @@ Throughout Qt's source code you will encounter TQString usages like this: .PP The 'copying' of input to output is almost as fast as copying a pointer because behind the scenes copying is achieved by incrementing a reference count. TQString (like all Qt's implicitly shared classes) operates on a copy-on-write basis, only copying if an instance is actually changed. .PP -If you wish to create a deep copy of a TQString without losing any Unicode information then you should use QDeepCopy. +If you wish to create a deep copy of a TQString without losing any Unicode information then you should use TQDeepCopy. .PP -See also TQChar, QCString, QByteArray, QConstString, Implicitly and Explicitly Shared Classes, Text Related Classes, and Non-GUI Classes. +See also TQChar, TQCString, TQByteArray, QConstString, Implicitly and Explicitly Shared Classes, Text Related Classes, and Non-GUI Classes. .SS "Member Type Documentation" .SH "TQString::SectionFlags" .TP @@ -681,7 +681,7 @@ See also isNull(). Constructs a string of length one, containing the character \fIch\fR. .SH "TQString::TQString ( const TQString & s )" Constructs an implicitly shared copy of \fIs\fR. This is very fast since it only involves incrementing a reference count. -.SH "TQString::TQString ( const QByteArray & ba )" +.SH "TQString::TQString ( const TQByteArray & ba )" Constructs a string that is a deep copy of \fIba\fR interpreted as a classic C string. .SH "TQString::TQString ( const TQChar * unicode, uint length )" Constructs a string that is a deep copy of the first \fIlength\fR characters in the TQChar array. @@ -731,7 +731,7 @@ This is an overloaded member function, provided for convenience. It behaves esse Appends character \fIch\fR to the string and returns a reference to the result. .PP Equivalent to operator+=(). -.SH "TQString & TQString::append ( const QByteArray & str )" +.SH "TQString & TQString::append ( const TQByteArray & str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Appends \fIstr\fR to the string and returns a reference to the result. @@ -997,7 +997,7 @@ This function counts overlapping strings, so in the example below, there are two .fi .PP See also findRev(). -.SH "int TQString::contains ( const QRegExp & rx ) const" +.SH "int TQString::contains ( const TQRegExp & rx ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the number of times the regexp, \fIrx\fR, matches in the string. @@ -1008,7 +1008,7 @@ This function counts overlapping matches, so in the example below, there are fou .br TQString str = "banana and panama"; .br - QRegExp rxp = QRegExp( "a[nm]a", TRUE, FALSE ); + TQRegExp rxp = TQRegExp( "a[nm]a", TRUE, FALSE ); .br int i = str.contains( rxp ); // i == 4 .br @@ -1055,7 +1055,7 @@ If \fIlen\fR is negative (the default), the current string length is used. str.fill( 'g', 5 ); // string == "ggggg" .br .fi -.SH "int TQString::find ( const QRegExp & rx, int index = 0 ) const" +.SH "int TQString::find ( const TQRegExp & rx, int index = 0 ) const" Finds the first match of the regular expression \fIrx\fR, starting from position \fIindex\fR. If \fIindex\fR is -1, the search starts at the last character; if -2, at the next to last character and so on. (See findRev() for searching backwards.) .PP Returns the position of the first match of \fIrx\fR or -1 if no match was found. @@ -1064,7 +1064,7 @@ Returns the position of the first match of \fIrx\fR or -1 if no match was found. .br TQString string( "bananas" ); .br - int i = string.find( QRegExp("an"), 0 ); // i == 1 + int i = string.find( TQRegExp("an"), 0 ); // i == 1 .br .fi .PP @@ -1137,7 +1137,7 @@ If \fIcs\fR is TRUE (the default), the search is case sensitive; otherwise the s int i = string.findRev( "ana" ); // i == 3 .br .fi -.SH "int TQString::findRev ( const QRegExp & rx, int index = -1 ) const" +.SH "int TQString::findRev ( const TQRegExp & rx, int index = -1 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Finds the first match of the regexp \fIrx\fR, starting at position \fIindex\fR and searching backwards. If the index is -1, the search starts at the last character, if it is -2, at the next to last character and so on. (See findRev() for searching backwards.) @@ -1148,7 +1148,7 @@ Returns the position of the match or -1 if no match was found. .br TQString string( "bananas" ); .br - int i = string.findRev( QRegExp("an") ); // i == 3 + int i = string.findRev( TQRegExp("an") ); // i == 3 .br .fi .PP @@ -1227,7 +1227,7 @@ See also remove() and replace(). .PP Examples: .)l themes/themes.cpp and xform/xform.cpp. -.SH "TQString & TQString::insert ( uint index, const QByteArray & s )" +.SH "TQString & TQString::insert ( uint index, const TQByteArray & s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts \fIs\fR into the string at position \fIindex\fR and returns a reference to the string. @@ -1342,7 +1342,7 @@ See also isNull() and isEmpty(). .PP Examples: .)l dirview/dirview.cpp, fileiconview/qfileiconview.cpp, network/networkprotocol/nntp.cpp, rot13/rot13.cpp, and themes/themes.cpp. -.SH "QCString TQString::local8Bit () const" +.SH "TQCString TQString::local8Bit () const" Returns the string encoded in a locale-specific format. On X11, this is the TQTextCodec::codecForLocale(). On Windows, it is a system-defined encoding. On Mac OS X, this always uses UTF-8 as the encoding. .PP See TQTextCodec for more diverse coding/decoding of Unicode strings. @@ -1503,7 +1503,7 @@ When you want the above semantics, use: See also isEmpty(). .SH "TQString & TQString::operator+= ( const TQString & str )" Appends \fIstr\fR to the string and returns a reference to the string. -.SH "TQString & TQString::operator+= ( const QByteArray & str )" +.SH "TQString & TQString::operator+= ( const TQByteArray & str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Appends \fIstr\fR to the string and returns a reference to the string. @@ -1541,7 +1541,7 @@ See also isNull(). This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Makes a deep copy of \fIs\fR and returns a reference to the deep copy. -.SH "TQString & TQString::operator= ( const QCString & cstr )" +.SH "TQString & TQString::operator= ( const TQCString & cstr )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Assigns a deep copy of \fIcstr\fR, interpreted as a classic C string, to this string. Returns a reference to this string. @@ -1593,7 +1593,7 @@ Inserts \fIch\fR at the beginning of the string and returns a reference to the s Equivalent to insert(0, \fIch\fR). .PP See also insert(). -.SH "TQString & TQString::prepend ( const QByteArray & s )" +.SH "TQString & TQString::prepend ( const TQByteArray & s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts \fIs\fR at the beginning of the string and returns a reference to the string. @@ -1667,7 +1667,7 @@ This is the same as replace(\fIc\fR, ""). This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Removes every occurrence of \fIstr\fR in the string. Returns a reference to the string. -.SH "TQString & TQString::remove ( const QRegExp & rx )" +.SH "TQString & TQString::remove ( const TQRegExp & rx )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Removes every occurrence of the regular expression \fIrx\fR in the string. Returns a reference to the string. @@ -1750,7 +1750,7 @@ Example: // s == "English is English" .br .fi -.SH "TQString & TQString::replace ( const QRegExp & rx, const TQString & after )" +.SH "TQString & TQString::replace ( const TQRegExp & rx, const TQString & after )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Replaces every occurrence of the regexp \fIrx\fR in the string with \fIafter\fR. Returns a reference to the string. For example: @@ -1759,7 +1759,7 @@ Replaces every occurrence of the regexp \fIrx\fR in the string with \fIafter\fR. .br TQString s = "banana"; .br - s.replace( QRegExp("an"), "" ); + s.replace( TQRegExp("an"), "" ); .br // s == "ba" .br @@ -1771,13 +1771,13 @@ For regexps containing capturing parentheses, occurrences of \fB\1\fR, \fB&# .br TQString t = "A <i>bon mot</i>."; .br - t.replace( QRegExp("<i>([^<]*)</i>"), "\\\\emph{\\\\1}" ); + t.replace( TQRegExp("<i>([^<]*)</i>"), "\\\\emph{\\\\1}" ); .br // t == "A \\\\emph{bon mot}." .br .fi .PP -See also find(), findRev(), and QRegExp::cap(). +See also find(), findRev(), and TQRegExp::cap(). .SH "TQString & TQString::replace ( TQChar c1, TQChar c2 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP @@ -1915,7 +1915,7 @@ If \fIstart\fR or \fIend\fR is negative, we count fields from the right of the s .fi .PP See also TQStringList::split(). -.SH "TQString TQString::section ( const QRegExp & reg, int start, int end = 0xffffffff, int flags = SectionDefault ) const" +.SH "TQString TQString::section ( const TQRegExp & reg, int start, int end = 0xffffffff, int flags = SectionDefault ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP This function returns a section of the string. @@ -1928,7 +1928,7 @@ The \fIflags\fR argument can be used to affect some aspects of the function's be .br TQString line( "forename\\tmiddlename surname \\t \\t phone" ); .br - QRegExp sep( "\\s+" ); + TQRegExp sep( "\\s+" ); .br TQString s = line.section( sep, 2, 2 ); // s == "surname" .br @@ -1940,13 +1940,13 @@ If \fIstart\fR or \fIend\fR is negative, we count fields from the right of the s .br TQString line( "forename\\tmiddlename surname \\t \\t phone" ); .br - QRegExp sep( "\\\\s+" ); + TQRegExp sep( "\\\\s+" ); .br TQString s = line.section( sep, -3, -2 ); // s == "middlename surname" .br .fi .PP -\fBWarning:\fR Using this QRegExp version is much more expensive than the overloaded string and character versions. +\fBWarning:\fR Using this TQRegExp version is much more expensive than the overloaded string and character versions. .PP See also TQStringList::split() and simplifyWhiteSpace(). .SH "TQString & TQString::setAscii ( const char * str, int len = -1 )" @@ -2391,7 +2391,7 @@ See also lower(). .PP Examples: .)l scribble/scribble.cpp and sql/overview/custom1/main.cpp. -.SH "QCString TQString::utf8 () const" +.SH "TQCString TQString::utf8 () const" Returns the string encoded in UTF-8 format. .PP See TQTextCodec for more diverse coding/decoding of Unicode strings. diff --git a/doc/man/man3/tqstringlist.3qt b/doc/man/man3/tqstringlist.3qt index 178fed56a..90f9268e9 100644 --- a/doc/man/man3/tqstringlist.3qt +++ b/doc/man/man3/tqstringlist.3qt @@ -42,13 +42,13 @@ Inherits TQValueList<TQString>. .BI "TQStringList \fBgrep\fR ( const TQString & str, bool cs = TRUE ) const" .br .ti -1c -.BI "TQStringList \fBgrep\fR ( const QRegExp & rx ) const" +.BI "TQStringList \fBgrep\fR ( const TQRegExp & rx ) const" .br .ti -1c .BI "TQStringList & \fBgres\fR ( const TQString & before, const TQString & after, bool cs = TRUE )" .br .ti -1c -.BI "TQStringList & \fBgres\fR ( const QRegExp & rx, const TQString & after )" +.BI "TQStringList & \fBgres\fR ( const TQRegExp & rx, const TQString & after )" .br .in -1c .SS "Static Public Members" @@ -63,7 +63,7 @@ Inherits TQValueList<TQString>. .BI "TQStringList \fBsplit\fR ( const TQChar & sep, const TQString & str, bool allowEmptyEntries = FALSE )" .br .ti -1c -.BI "TQStringList \fBsplit\fR ( const QRegExp & sep, const TQString & str, bool allowEmptyEntries = FALSE )" +.BI "TQStringList \fBsplit\fR ( const TQRegExp & sep, const TQString & str, bool allowEmptyEntries = FALSE )" .br .in -1c .SH DESCRIPTION @@ -203,7 +203,7 @@ If \fIcs\fR is TRUE, the grep is done case-sensitively; otherwise case is ignore .fi .PP See also TQString::find(). -.SH "TQStringList TQStringList::grep ( const QRegExp & rx ) const" +.SH "TQStringList TQStringList::grep ( const TQRegExp & rx ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a list of all the strings that match the regular expression \fIrx\fR. @@ -229,7 +229,7 @@ Example: .fi .PP See also TQString::replace(). -.SH "TQStringList & TQStringList::gres ( const QRegExp & rx, const TQString & after )" +.SH "TQStringList & TQStringList::gres ( const TQRegExp & rx, const TQString & after )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Replaces every occurrence of the regexp \fIrx\fR in the string with \fIafter\fR. Returns a reference to the string list. @@ -242,7 +242,7 @@ Example: .br list << "alpha" << "beta" << "gamma" << "epsilon"; .br - list.gres( QRegExp("^a"), "o" ); + list.gres( TQRegExp("^a"), "o" ); .br // list == ["olpha", "beta", "gamma", "epsilon"] .br @@ -258,7 +258,7 @@ Example: .br list << "Bill Clinton" << "Gates, Bill"; .br - list.gres( QRegExp("^(.*), (.*)$"), "\\\\2 \\\\1" ); + list.gres( TQRegExp("^(.*), (.*)$"), "\\\\2 \\\\1" ); .br // list == ["Bill Clinton", "Bill Gates"] .br @@ -280,7 +280,7 @@ Sorting is very fast. It uses the TQt Template Library's efficient HeapSort impl If you want to sort your strings in an arbitrary order consider using a TQMap. For example you could use a TQMap<TQString,TQString> to create a case-insensitive ordering (e.g. mapping the lowercase text to the text), or a TQMap<int,TQString> to sort the strings by some integer index, etc. .PP Example: themes/themes.cpp. -.SH "TQStringList TQStringList::split ( const QRegExp & sep, const TQString & str, bool allowEmptyEntries = FALSE )\fC [static]\fR" +.SH "TQStringList TQStringList::split ( const TQRegExp & sep, const TQString & str, bool allowEmptyEntries = FALSE )\fC [static]\fR" Splits the string \fIstr\fR into strings wherever the regular expression \fIsep\fR occurs, and returns the list of those strings. .PP If \fIallowEmptyEntries\fR is TRUE, a null string is inserted in the list wherever the separator matches twice without intervening text. diff --git a/doc/man/man3/tqt.3qt b/doc/man/man3/tqt.3qt index 00de5aa67..19679a2a2 100644 --- a/doc/man/man3/tqt.3qt +++ b/doc/man/man3/tqt.3qt @@ -391,7 +391,7 @@ Each dock window can be in one of the following positions: .SH "TQt::ImageConversionFlags" The conversion flag is a bitwise-OR of the following values. The options marked "(default)" are set if no other values from the list are included (since the defaults are zero): .PP -Color/Mono preference (ignored for QBitmap) +Color/Mono preference (ignored for TQBitmap) .TP \fCQt::AutoColor\fR - (default) - If the image has depth 1 and contains only black and white pixels, the pixmap becomes monochrome. .TP diff --git a/doc/man/man3/tqtable.3qt b/doc/man/man3/tqtable.3qt index 7e2557a1d..ed03cdd78 100644 --- a/doc/man/man3/tqtable.3qt +++ b/doc/man/man3/tqtable.3qt @@ -309,13 +309,13 @@ Inherited by TQDataTable. .BI "virtual void \fBremoveRow\fR ( int row )" .br .ti -1c -.BI "virtual void \fBremoveRows\fR ( const QMemArray<int> & rows )" +.BI "virtual void \fBremoveRows\fR ( const TQMemArray<int> & rows )" .br .ti -1c .BI "virtual void \fBremoveColumn\fR ( int col )" .br .ti -1c -.BI "virtual void \fBremoveColumns\fR ( const QMemArray<int> & cols )" +.BI "virtual void \fBremoveColumns\fR ( const TQMemArray<int> & cols )" .br .ti -1c .BI "virtual void \fBeditCell\fR ( int row, int col, bool replace = FALSE )" @@ -847,7 +847,7 @@ Examples: .SH "int QTable::indexOf ( int row, int col ) const\fC [protected]\fR" Returns a single integer which identifies a particular \fIrow\fR and \fIcol\fR by mapping the 2D table to a 1D array. .PP -This is useful, for example, if you have a sparse table and want to use a QIntDict to map integers to the cells that are used. +This is useful, for example, if you have a sparse table and want to use a TQIntDict to map integers to the cells that are used. .SH "void QTable::insertColumns ( int col, int count = 1 )\fC [virtual slot]\fR" Inserts \fIcount\fR empty columns at column \fIcol\fR. Also clears the selection(s). .PP @@ -978,7 +978,7 @@ See also TQt::ButtonState. Removes column \fIcol\fR, and deletes all its cells including any table items and widgets the cells may contain. Also clears the selection(s). .PP See also removeColumns(), hideColumn(), insertColumns(), and removeRow(). -.SH "void QTable::removeColumns ( const QMemArray<int> & cols )\fC [virtual slot]\fR" +.SH "void QTable::removeColumns ( const TQMemArray<int> & cols )\fC [virtual slot]\fR" Removes the columns listed in the array \fIcols\fR, and deletes all their cells including any table items and widgets the cells may contain. .PP The array passed in must only contain valid columns (in the range from 0 to numCols() - 1) with no duplicates, and must be sorted in ascending order. Also clears the selection(s). @@ -988,7 +988,7 @@ See also removeColumn(), insertColumns(), and removeRows(). Removes row \fIrow\fR, and deletes all its cells including any table items and widgets the cells may contain. Also clears the selection(s). .PP See also hideRow(), insertRows(), removeColumn(), and removeRows(). -.SH "void QTable::removeRows ( const QMemArray<int> & rows )\fC [virtual slot]\fR" +.SH "void QTable::removeRows ( const TQMemArray<int> & rows )\fC [virtual slot]\fR" Removes the rows listed in the array \fIrows\fR, and deletes all their cells including any table items and widgets the cells may contain. .PP The array passed in must only contain valid rows (in the range from 0 to numRows() - 1) with no duplicates, and must be sorted in ascending order. Also clears the selection(s). diff --git a/doc/man/man3/tqtextcodec.3qt b/doc/man/man3/tqtextcodec.3qt index 007038e0f..ff7036b22 100644 --- a/doc/man/man3/tqtextcodec.3qt +++ b/doc/man/man3/tqtextcodec.3qt @@ -39,22 +39,22 @@ Inherited by TQBig5Codec, TQBig5hkscsCodec, TQEucJpCodec, TQEucKrCodec, TQGb1803 .BI "virtual TQString \fBtoUnicode\fR ( const char * chars, int len ) const" .br .ti -1c -.BI "virtual QCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) const" +.BI "virtual TQCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) const" .br .ti -1c -.BI "QCString \fBfromUnicode\fR ( const TQString & uc ) const" +.BI "TQCString \fBfromUnicode\fR ( const TQString & uc ) const" .br .ti -1c -.BI "TQString \fBtoUnicode\fR ( const QByteArray & a, int len ) const" +.BI "TQString \fBtoUnicode\fR ( const TQByteArray & a, int len ) const" .br .ti -1c -.BI "TQString \fBtoUnicode\fR ( const QByteArray & a ) const" +.BI "TQString \fBtoUnicode\fR ( const TQByteArray & a ) const" .br .ti -1c -.BI "TQString \fBtoUnicode\fR ( const QCString & a, int len ) const" +.BI "TQString \fBtoUnicode\fR ( const TQCString & a, int len ) const" .br .ti -1c -.BI "TQString \fBtoUnicode\fR ( const QCString & a ) const" +.BI "TQString \fBtoUnicode\fR ( const TQCString & a ) const" .br .ti -1c .BI "TQString \fBtoUnicode\fR ( const char * chars ) const" @@ -228,7 +228,7 @@ TQTextCodecs can be used as follows to convert some locally encoded string to Un .PP .nf .br - QCString locallyEncoded = "..."; // text to convert + TQCString locallyEncoded = "..."; // text to convert .br TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R .br @@ -244,7 +244,7 @@ After this, \fCunicodeString\fR holds the text converted to Unicode. Converting .br TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R .br - QCString locallyEncoded = codec->fromUnicode( unicodeString ); + TQCString locallyEncoded = codec->fromUnicode( unicodeString ); .br .fi .PP @@ -263,7 +263,7 @@ The approach to use in these situations is to create a TQTextDecoder object for .br while( receiving_data ) { .br - QByteArray chunk = new_data; + TQByteArray chunk = new_data; .br unicodeString += decoder->toUnicode( chunk.data(), chunk.length() ); .br @@ -328,10 +328,10 @@ Return a TQTextEncoder. .PP .nf .br - QCString fromUnicode(const TQString& uc, int& lenInOut ) const + TQCString fromUnicode(const TQString& uc, int& lenInOut ) const .br .fi -Converts \fIlenInOut\fR characters (of type TQChar) from the start of the string \fIuc\fR, returning a QCString result, and also returning the length of the result in \fIlenInOut\fR. +Converts \fIlenInOut\fR characters (of type TQChar) from the start of the string \fIuc\fR, returning a TQCString result, and also returning the length of the result in \fIlenInOut\fR. .PP Again, these are mutually recursive so only one needs to be implemented, or both if greater efficiency is possible. .PP @@ -388,7 +388,7 @@ This is an overloaded member function, provided for convenience. It behaves esse .PP \fIs\fR contains the string being tested for encode-ability. .SH "TQTextCodec * TQTextCodec::codecForCStrings ()\fC [static]\fR" -Returns the codec used by TQString to convert to and from const char* and QCStrings. If this function returns 0 (the default), TQString assumes Latin-1. +Returns the codec used by TQString to convert to and from const char* and TQCStrings. If this function returns 0 (the default), TQString assumes Latin-1. .PP See also setCodecForCStrings(). .SH "TQTextCodec * TQTextCodec::codecForContent ( const char * chars, int len )\fC [static]\fR" @@ -427,15 +427,15 @@ Deletes all the created codecs. QApplication calls this function just before exiting to delete any TQTextCodec objects that may be lying around. Since various other classes hold pointers to TQTextCodec objects, it is not safe to call this function earlier. .PP If you are using the utility classes (like TQString) but not using QApplication, calling this function at the very end of your application may be helpful for chasing down memory leaks by eliminating any TQTextCodec objects. -.SH "QCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR" +.SH "TQCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR" TQTextCodec subclasses must reimplement either this function or makeEncoder(). It converts the first \fIlenInOut\fR characters of \fIuc\fR from Unicode to the encoding of the subclass. If \fIlenInOut\fR is negative or too large, the length of \fIuc\fR is used instead. .PP -Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a QCString. \fIlenInOut\fR will be set to the length of the result (in bytes). +Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a TQCString. \fIlenInOut\fR will be set to the length of the result (in bytes). .PP The default implementation makes an encoder with makeEncoder() and converts the input with that. Note that the default makeEncoder() implementation makes an encoder that simply calls this function, hence subclasses \fImust\fR reimplement one function or the other to avoid infinite recursion. .PP Reimplemented in TQHebrewCodec. -.SH "QCString TQTextCodec::fromUnicode ( const TQString & uc ) const" +.SH "TQCString TQTextCodec::fromUnicode ( const TQString & uc ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIuc\fR is the unicode source string. @@ -496,7 +496,7 @@ Example: qwerty/qwerty.cpp. .SH "void TQTextCodec::setCodecForCStrings ( TQTextCodec * c )\fC [static]\fR" \fBWarning:\fR This function is \fInot\fR reentrant.</p> .PP -Sets the codec used by TQString to convert to and from const char* and QCStrings. If \fIc\fR is 0 (the default), TQString assumes Latin-1. +Sets the codec used by TQString to convert to and from const char* and TQCStrings. If \fIc\fR is 0 (the default), TQString assumes Latin-1. .PP \fBWarning:\fR Some codecs do not preserve the characters in the ascii range (0x00 to 0x7f). For example, the Japanese Shift-JIS encoding maps the backslash character (0x5a) to the Yen character. This leads to unexpected results when using the backslash character to escape characters in strings used in e.g. regular expressions. Use TQString::fromLatin1() to preserve characters in the ascii range when needed. .PP @@ -539,19 +539,19 @@ A simple utility function for heuristicNameMatch(): it does some very minor char TQTextCodec subclasses must reimplement this function or makeDecoder(). It converts the first \fIlen\fR characters of \fIchars\fR to Unicode. .PP The default implementation makes a decoder with makeDecoder() and converts the input with that. Note that the default makeDecoder() implementation makes a decoder that simply calls this function, hence subclasses \fImust\fR reimplement one function or the other to avoid infinite recursion. -.SH "TQString TQTextCodec::toUnicode ( const QByteArray & a, int len ) const" +.SH "TQString TQTextCodec::toUnicode ( const TQByteArray & a, int len ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters; \fIlen\fR contains the number of characters in \fIa\fR to use. -.SH "TQString TQTextCodec::toUnicode ( const QByteArray & a ) const" +.SH "TQString TQTextCodec::toUnicode ( const TQByteArray & a ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters. -.SH "TQString TQTextCodec::toUnicode ( const QCString & a, int len ) const" +.SH "TQString TQTextCodec::toUnicode ( const TQCString & a, int len ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters; \fIlen\fR contains the number of characters in \fIa\fR to use. -.SH "TQString TQTextCodec::toUnicode ( const QCString & a ) const" +.SH "TQString TQTextCodec::toUnicode ( const TQCString & a ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP \fIa\fR contains the source characters. diff --git a/doc/man/man3/tqtextdrag.3qt b/doc/man/man3/tqtextdrag.3qt index 9573071ca..baa3d0001 100644 --- a/doc/man/man3/tqtextdrag.3qt +++ b/doc/man/man3/tqtextdrag.3qt @@ -28,7 +28,7 @@ Inherits TQDragObject. .BI "virtual void \fBsetText\fR ( const TQString & text )" .br .ti -1c -.BI "virtual void \fBsetSubtype\fR ( const QCString & st )" +.BI "virtual void \fBsetSubtype\fR ( const TQCString & st )" .br .in -1c .SS "Static Public Members" @@ -40,7 +40,7 @@ Inherits TQDragObject. .BI "bool \fBdecode\fR ( const TQMimeSource * e, TQString & str )" .br .ti -1c -.BI "bool \fBdecode\fR ( const TQMimeSource * e, TQString & str, QCString & subtype )" +.BI "bool \fBdecode\fR ( const TQMimeSource * e, TQString & str, TQCString & subtype )" .br .in -1c .SH DESCRIPTION @@ -72,13 +72,13 @@ Attempts to decode the dropped information in \fIe\fR into \fIstr\fR. Returns TR See also canDecode(). .PP Example: iconview/simple_dd/main.cpp. -.SH "bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str, QCString & subtype )\fC [static]\fR" +.SH "bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str, TQCString & subtype )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Attempts to decode the dropped information in \fIe\fR into \fIstr\fR. Returns TRUE if successful; otherwise returns FALSE. If \fIsubtype\fR is null, any text subtype is accepted; otherwise only the specified \fIsubtype\fR is accepted. .PP See also canDecode(). -.SH "void TQTextDrag::setSubtype ( const QCString & st )\fC [virtual]\fR" +.SH "void TQTextDrag::setSubtype ( const TQCString & st )\fC [virtual]\fR" Sets the MIME subtype of the text being dragged to \fIst\fR. The default subtype is "plain", so the default MIME type of the text is "text/plain". You might use this to declare that the text is" text/html" by calling setSubtype("html"). .SH "void TQTextDrag::setText ( const TQString & text )\fC [virtual]\fR" Sets the text to be dragged to \fItext\fR. You will need to call this diff --git a/doc/man/man3/tqtextedit.3qt b/doc/man/man3/tqtextedit.3qt index b4538f0da..2ec5f68ea 100644 --- a/doc/man/man3/tqtextedit.3qt +++ b/doc/man/man3/tqtextedit.3qt @@ -276,7 +276,7 @@ Inherited by QMultiLineEdit, TQTextBrowser, and TQTextView. .BI "virtual void \fBpaste\fR ()" .br .ti -1c -.BI "virtual void \fBpasteSubType\fR ( const QCString & subtype )" +.BI "virtual void \fBpasteSubType\fR ( const TQCString & subtype )" .br .ti -1c .BI "virtual void \fBclear\fR ()" @@ -1034,7 +1034,7 @@ Pastes the text from the clipboard into the text edit at the current cursor posi If there is no text in the clipboard nothing happens. .PP See also pasteSubType(), cut(), and TQTextEdit::copy(). -.SH "void TQTextEdit::pasteSubType ( const QCString & subtype )\fC [virtual slot]\fR" +.SH "void TQTextEdit::pasteSubType ( const TQCString & subtype )\fC [virtual slot]\fR" Pastes the text with format \fIsubtype\fR from the clipboard into the text edit at the current cursor position. The \fIsubtype\fR can be" plain" or "html". .PP If there is no text with format \fIsubtype\fR in the clipboard nothing happens. diff --git a/doc/man/man3/tqtextencoder.3qt b/doc/man/man3/tqtextencoder.3qt index a74f2b209..090c8b85b 100644 --- a/doc/man/man3/tqtextencoder.3qt +++ b/doc/man/man3/tqtextencoder.3qt @@ -19,7 +19,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "virtual \fB~TQTextEncoder\fR ()" .br .ti -1c -.BI "virtual QCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) = 0" +.BI "virtual TQCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) = 0" .br .in -1c .SH DESCRIPTION @@ -31,8 +31,8 @@ See also TQTextCodec::makeEncoder() and Internationalization with Qt. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQTextEncoder::~TQTextEncoder ()\fC [virtual]\fR" Destroys the encoder. -.SH "QCString TQTextEncoder::fromUnicode ( const TQString & uc, int & lenInOut )\fC [pure virtual]\fR" -Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a QCString. \fIlenInOut\fR will be set to the length of the result (in bytes). +.SH "TQCString TQTextEncoder::fromUnicode ( const TQString & uc, int & lenInOut )\fC [pure virtual]\fR" +Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a TQCString. \fIlenInOut\fR will be set to the length of the result (in bytes). .PP The encoder is free to record state to use when subsequent calls are made to this function (for example, it might change modes with diff --git a/doc/man/man3/tqtextistream.3qt b/doc/man/man3/tqtextistream.3qt index 2e26d9bad..2031bfab5 100644 --- a/doc/man/man3/tqtextistream.3qt +++ b/doc/man/man3/tqtextistream.3qt @@ -21,7 +21,7 @@ Inherits TQTextStream. .BI "\fBTQTextIStream\fR ( const TQString * s )" .br .ti -1c -.BI "\fBTQTextIStream\fR ( QByteArray ba )" +.BI "\fBTQTextIStream\fR ( TQByteArray ba )" .br .ti -1c .BI "\fBTQTextIStream\fR ( FILE * f )" @@ -48,7 +48,7 @@ See also TQTextOStream, Input/Output and Networking, and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQTextIStream::TQTextIStream ( const TQString * s )" Constructs a stream to read from the string \fIs\fR. -.SH "TQTextIStream::TQTextIStream ( QByteArray ba )" +.SH "TQTextIStream::TQTextIStream ( TQByteArray ba )" Constructs a stream to read from the array \fIba\fR. .SH "TQTextIStream::TQTextIStream ( FILE * f )" Constructs a stream to read from the file \fIf\fR. diff --git a/doc/man/man3/tqtextostream.3qt b/doc/man/man3/tqtextostream.3qt index 519912859..e66d0408a 100644 --- a/doc/man/man3/tqtextostream.3qt +++ b/doc/man/man3/tqtextostream.3qt @@ -21,7 +21,7 @@ Inherits TQTextStream. .BI "\fBTQTextOStream\fR ( TQString * s )" .br .ti -1c -.BI "\fBTQTextOStream\fR ( QByteArray ba )" +.BI "\fBTQTextOStream\fR ( TQByteArray ba )" .br .ti -1c .BI "\fBTQTextOStream\fR ( FILE * f )" @@ -46,7 +46,7 @@ See also Input/Output and Networking and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQTextOStream::TQTextOStream ( TQString * s )" Constructs a stream to write to string \fIs\fR. -.SH "TQTextOStream::TQTextOStream ( QByteArray ba )" +.SH "TQTextOStream::TQTextOStream ( TQByteArray ba )" Constructs a stream to write to the array \fIba\fR. .SH "TQTextOStream::TQTextOStream ( FILE * f )" Constructs a stream to write to the file \fIf\fR. diff --git a/doc/man/man3/tqtextstream.3qt b/doc/man/man3/tqtextstream.3qt index f9373929c..c03c81006 100644 --- a/doc/man/man3/tqtextstream.3qt +++ b/doc/man/man3/tqtextstream.3qt @@ -42,7 +42,7 @@ Inherited by TQTextIStream and TQTextOStream. .BI "TQTextStream ( TQString & str, int filemode ) \fI(obsolete)\fR" .br .ti -1c -.BI "\fBTQTextStream\fR ( QByteArray a, int mode )" +.BI "\fBTQTextStream\fR ( TQByteArray a, int mode )" .br .ti -1c .BI "\fBTQTextStream\fR ( FILE * fh, int mode )" @@ -102,7 +102,7 @@ Inherited by TQTextIStream and TQTextOStream. .BI "TQTextStream & \fBoperator>>\fR ( TQString & str )" .br .ti -1c -.BI "TQTextStream & \fBoperator>>\fR ( QCString & str )" +.BI "TQTextStream & \fBoperator>>\fR ( TQCString & str )" .br .ti -1c .BI "TQTextStream & \fBoperator<<\fR ( TQChar c )" @@ -141,7 +141,7 @@ Inherited by TQTextIStream and TQTextOStream. .BI "TQTextStream & \fBoperator<<\fR ( const TQString & s )" .br .ti -1c -.BI "TQTextStream & \fBoperator<<\fR ( const QCString & s )" +.BI "TQTextStream & \fBoperator<<\fR ( const TQCString & s )" .br .ti -1c .BI "TQTextStream & \fBoperator<<\fR ( void * ptr )" @@ -276,14 +276,14 @@ Note that because TQString is Unicode, you should not use readRawBytes() or writ \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP This constructor is equivalent to the constructor taking a TQString* parameter. -.SH "TQTextStream::TQTextStream ( QByteArray a, int mode )" +.SH "TQTextStream::TQTextStream ( TQByteArray a, int mode )" Constructs a text stream that operates on the byte array, \fIa\fR, through an internal QBuffer device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). .PP Example: .PP .nf .br - QByteArray array; + TQByteArray array; .br TQTextStream ts( array, IO_WriteOnly ); .br @@ -297,7 +297,7 @@ Same example, using a QBuffer: .PP .nf .br - QByteArray array; + TQByteArray array; .br QBuffer buf( array ); .br @@ -435,7 +435,7 @@ The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding s This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes \fIs\fR to the stream and returns a reference to the stream. -.SH "TQTextStream & TQTextStream::operator<< ( const QCString & s )" +.SH "TQTextStream & TQTextStream::operator<< ( const TQCString & s )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Writes \fIs\fR to the stream and returns a reference to the stream. @@ -497,7 +497,7 @@ This is an overloaded member function, provided for convenience. It behaves esse Reads a "word" from the stream into \fIstr\fR and returns a reference to the stream. .PP A word consists of characters for which isspace() returns FALSE. -.SH "TQTextStream & TQTextStream::operator>> ( QCString & str )" +.SH "TQTextStream & TQTextStream::operator>> ( TQCString & str )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Reads a "word" from the stream into \fIstr\fR and returns a reference to the stream. diff --git a/doc/man/man3/tqthreadstorage.3qt b/doc/man/man3/tqthreadstorage.3qt index ed8ef3565..3384c66dc 100644 --- a/doc/man/man3/tqthreadstorage.3qt +++ b/doc/man/man3/tqthreadstorage.3qt @@ -49,7 +49,7 @@ For example, the following code uses TQThreadStorage to store a single cache for .PP .nf .br - TQThreadStorage<QCache<SomeClass> *> caches; + TQThreadStorage<TQCache<SomeClass> *> caches; .br .br void cacheObject( const TQString &key, SomeClass *object ) @@ -58,7 +58,7 @@ For example, the following code uses TQThreadStorage to store a single cache for .br if ( ! caches.hasLocalData() ) .br - caches.setLocalData( new QCache<SomeClass> ); + caches.setLocalData( new TQCache<SomeClass> ); .br .br caches.localData()->insert( key, object ); diff --git a/doc/man/man3/tquridrag.3qt b/doc/man/man3/tquridrag.3qt index 2093eacef..3becd127f 100644 --- a/doc/man/man3/tquridrag.3qt +++ b/doc/man/man3/tquridrag.3qt @@ -43,13 +43,13 @@ Inherits TQStoredDrag. .BI "TQString \fBuriToLocalFile\fR ( const char * uri )" .br .ti -1c -.BI "QCString \fBlocalFileToUri\fR ( const TQString & filename )" +.BI "TQCString \fBlocalFileToUri\fR ( const TQString & filename )" .br .ti -1c .BI "TQString \fBuriToUnicodeUri\fR ( const char * uri )" .br .ti -1c -.BI "QCString \fBunicodeUriToUri\fR ( const TQString & uuri )" +.BI "TQCString \fBunicodeUriToUri\fR ( const TQString & uuri )" .br .ti -1c .BI "bool \fBcanDecode\fR ( const TQMimeSource * e )" @@ -101,7 +101,7 @@ Example: fileiconview/qfileiconview.cpp. Decodes URIs from the mime source event \fIe\fR, converts them to Unicode URIs (only useful for displaying to humans), placing them in \fIl\fR (which is first cleared). .PP Returns TRUE if \fIcontained\fR a valid list of URIs; otherwise returns FALSE. -.SH "QCString TQUriDrag::localFileToUri ( const TQString & filename )\fC [static]\fR" +.SH "TQCString TQUriDrag::localFileToUri ( const TQString & filename )\fC [static]\fR" Returns the URI equivalent to the absolute local file \fIfilename\fR. .PP See also uriToLocalFile(). @@ -123,7 +123,7 @@ See also localFileToUri() and setUris(). Changes the list of \fIuris\fR to be dragged. .PP Note that URIs are always in escaped UTF8 encoding. -.SH "QCString TQUriDrag::unicodeUriToUri ( const TQString & uuri )\fC [static]\fR" +.SH "TQCString TQUriDrag::unicodeUriToUri ( const TQString & uuri )\fC [static]\fR" Returns the URI equivalent of the Unicode URI given in \fIuuri\fR (only useful for displaying to humans). .PP See also uriToLocalFile(). diff --git a/doc/man/man3/tqurloperator.3qt b/doc/man/man3/tqurloperator.3qt index 93b86f22e..903496409 100644 --- a/doc/man/man3/tqurloperator.3qt +++ b/doc/man/man3/tqurloperator.3qt @@ -46,7 +46,7 @@ Inherits TQObject and QUrl. .BI "virtual const QNetworkOperation * \fBget\fR ( const TQString & location = TQString::null )" .br .ti -1c -.BI "virtual const QNetworkOperation * \fBput\fR ( const QByteArray & data, const TQString & location = TQString::null )" +.BI "virtual const QNetworkOperation * \fBput\fR ( const TQByteArray & data, const TQString & location = TQString::null )" .br .ti -1c .BI "virtual TQPtrList<QNetworkOperation> \fBcopy\fR ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )" @@ -91,7 +91,7 @@ Inherits TQObject and QUrl. .BI "void \fBitemChanged\fR ( QNetworkOperation * op )" .br .ti -1c -.BI "void \fBdata\fR ( const QByteArray & data, QNetworkOperation * op )" +.BI "void \fBdata\fR ( const TQByteArray & data, QNetworkOperation * op )" .br .ti -1c .BI "void \fBdataTransferProgress\fR ( int bytesDone, int bytesTotal, QNetworkOperation * op )" @@ -199,7 +199,7 @@ This signal is emitted when mkdir() succeeds and the directory has been created. \fIop\fR is a pointer to the operation object, which contains all the information about the operation, including the state. \fCop->arg(0)\fR holds the new directory's name. .PP See also QNetworkOperation and QNetworkProtocol. -.SH "void QUrlOperator::data ( const QByteArray & data, QNetworkOperation * op )\fC [signal]\fR" +.SH "void QUrlOperator::data ( const TQByteArray & data, QNetworkOperation * op )\fC [signal]\fR" This signal is emitted when new \fIdata\fR has been received after calling get() or put(). \fIop\fR is a pointer to the operation object which contains all the information about the operation, including the state. \fCop->arg(0)\fR holds the name of the file whose data is retrieved and op->rawArg(1) holds the (raw) data. .PP See also QNetworkOperation and QNetworkProtocol. @@ -285,7 +285,7 @@ See also QUrlOperator::setNameFilter() and QDir::nameFilter(). This signal is emitted after listChildren() was called and new children (i.e. files) have been read from a list of files. \fIi\fR holds the information about the new files. \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 "const QNetworkOperation * QUrlOperator::put ( const QByteArray & data, const TQString & location = TQString::null )\fC [virtual]\fR" +.SH "const QNetworkOperation * QUrlOperator::put ( const TQByteArray & data, const TQString & location = TQString::null )\fC [virtual]\fR" This function tells the network protocol to put \fIdata\fR in \fIlocation\fR. If \fIlocation\fR is empty (TQString::null), it puts the \fIdata\fR in the location to which the URL points. What happens depends on the network protocol. Depending on the network protocol, some data might come back after putting data, in which case the data() signal is emitted. The dataTransferProgress() signal is emitted during processing of the operation. 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. .PP If \fIlocation\fR is TQString::null, the path of this QUrlOperator should point to a file when you use this operation. If \fIlocation\fR is not empty, it can be a relative (a child of the path to which the QUrlOperator points) or an absolute URL. diff --git a/doc/man/man3/tqvalidator.3qt b/doc/man/man3/tqvalidator.3qt index b98870651..c62519dad 100644 --- a/doc/man/man3/tqvalidator.3qt +++ b/doc/man/man3/tqvalidator.3qt @@ -13,7 +13,7 @@ QValidator \- Validation of input text .PP Inherits TQObject. .PP -Inherited by QIntValidator, QDoubleValidator, and QRegExpValidator. +Inherited by QIntValidator, QDoubleValidator, and TQRegExpValidator. .PP .SS "Public Members" .in +1c @@ -36,7 +36,7 @@ Inherited by QIntValidator, QDoubleValidator, and QRegExpValidator. .SH DESCRIPTION The QValidator class provides validation of input text. .PP -The class itself is abstract. Two subclasses, QIntValidator and QDoubleValidator, provide basic numeric-range checking, and QRegExpValidator provides general checking using a custom regular expression. +The class itself is abstract. Two subclasses, QIntValidator and QDoubleValidator, provide basic numeric-range checking, and TQRegExpValidator provides general checking using a custom regular expression. .PP If the built-in validators aren't sufficient, you can subclass QValidator. The class has two virtual functions: validate() and fixup(). .PP @@ -84,7 +84,7 @@ This pure virtual function returns Invalid if \fIinput\fR is invalid according t .PP The function can change \fIinput\fR and \fIpos\fR (the cursor position) if it wants to. .PP -Reimplemented in QIntValidator, QDoubleValidator, and QRegExpValidator. +Reimplemented in QIntValidator, QDoubleValidator, and TQRegExpValidator. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqvalidator.html diff --git a/doc/man/man3/tqvaluelist.3qt b/doc/man/man3/tqvaluelist.3qt index cc7b8e5c9..78b1ed236 100644 --- a/doc/man/man3/tqvaluelist.3qt +++ b/doc/man/man3/tqvaluelist.3qt @@ -230,7 +230,7 @@ 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"; TQPtrList 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 TQDict 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 TQPtrCollection and friends which are pointer-based containers. .PP diff --git a/doc/man/man3/tqvaluestack.3qt b/doc/man/man3/tqvaluestack.3qt index 19c7ba41a..59ff8d867 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"; TQPtrStack, TQPtrList, 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, TQDict, 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 diff --git a/doc/man/man3/tqvaluevector.3qt b/doc/man/man3/tqvaluevector.3qt index 2c3827394..476a92749 100644 --- a/doc/man/man3/tqvaluevector.3qt +++ b/doc/man/man3/tqvaluevector.3qt @@ -186,7 +186,7 @@ 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, TQPtrList 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 TQDict 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 TQPtrCollection and friends, which are pointer-based containers. .PP diff --git a/doc/man/man3/tqvariant.3qt b/doc/man/man3/tqvariant.3qt index b1b255170..01fdc28ca 100644 --- a/doc/man/man3/tqvariant.3qt +++ b/doc/man/man3/tqvariant.3qt @@ -32,7 +32,7 @@ QVariant \- Acts like a union for the most common TQt data types .BI "\fBQVariant\fR ( const TQString & val )" .br .ti -1c -.BI "\fBQVariant\fR ( const QCString & val )" +.BI "\fBQVariant\fR ( const TQCString & val )" .br .ti -1c .BI "\fBQVariant\fR ( const char * val )" @@ -80,7 +80,7 @@ QVariant \- Acts like a union for the most common TQt data types .BI "\fBQVariant\fR ( const QRegion & val )" .br .ti -1c -.BI "\fBQVariant\fR ( const QBitmap & val )" +.BI "\fBQVariant\fR ( const TQBitmap & val )" .br .ti -1c .BI "\fBQVariant\fR ( const QCursor & val )" @@ -95,10 +95,10 @@ QVariant \- Acts like a union for the most common TQt data types .BI "\fBQVariant\fR ( const TQDateTime & val )" .br .ti -1c -.BI "\fBQVariant\fR ( const QByteArray & val )" +.BI "\fBQVariant\fR ( const TQByteArray & val )" .br .ti -1c -.BI "\fBQVariant\fR ( const QBitArray & val )" +.BI "\fBQVariant\fR ( const TQBitArray & val )" .br .ti -1c .BI "\fBQVariant\fR ( const QKeySequence & val )" @@ -167,7 +167,7 @@ QVariant \- Acts like a union for the most common TQt data types .BI "const TQString \fBtoString\fR () const" .br .ti -1c -.BI "const QCString \fBtoCString\fR () const" +.BI "const TQCString \fBtoCString\fR () const" .br .ti -1c .BI "const TQStringList \fBtoStringList\fR () const" @@ -209,7 +209,7 @@ QVariant \- Acts like a union for the most common TQt data types .BI "const QPointArray \fBtoPointArray\fR () const" .br .ti -1c -.BI "const QBitmap \fBtoBitmap\fR () const" +.BI "const TQBitmap \fBtoBitmap\fR () const" .br .ti -1c .BI "const QRegion \fBtoRegion\fR () const" @@ -227,10 +227,10 @@ QVariant \- Acts like a union for the most common TQt data types .BI "const TQDateTime \fBtoDateTime\fR () const" .br .ti -1c -.BI "const QByteArray \fBtoByteArray\fR () const" +.BI "const TQByteArray \fBtoByteArray\fR () const" .br .ti -1c -.BI "const QBitArray \fBtoBitArray\fR () const" +.BI "const TQBitArray \fBtoBitArray\fR () const" .br .ti -1c .BI "const QKeySequence \fBtoKeySequence\fR () const" @@ -290,7 +290,7 @@ QVariant \- Acts like a union for the most common TQt data types .BI "TQString & \fBasString\fR ()" .br .ti -1c -.BI "QCString & \fBasCString\fR ()" +.BI "TQCString & \fBasCString\fR ()" .br .ti -1c .BI "TQStringList & \fBasStringList\fR ()" @@ -332,7 +332,7 @@ QVariant \- Acts like a union for the most common TQt data types .BI "QPointArray & \fBasPointArray\fR ()" .br .ti -1c -.BI "QBitmap & \fBasBitmap\fR ()" +.BI "TQBitmap & \fBasBitmap\fR ()" .br .ti -1c .BI "QRegion & \fBasRegion\fR ()" @@ -350,10 +350,10 @@ QVariant \- Acts like a union for the most common TQt data types .BI "TQDateTime & \fBasDateTime\fR ()" .br .ti -1c -.BI "QByteArray & \fBasByteArray\fR ()" +.BI "TQByteArray & \fBasByteArray\fR ()" .br .ti -1c -.BI "QBitArray & \fBasBitArray\fR ()" +.BI "TQBitArray & \fBasBitArray\fR ()" .br .ti -1c .BI "QKeySequence & \fBasKeySequence\fR ()" @@ -407,7 +407,7 @@ A QVariant object holds a single value of a single type() at a time. (Some type( .PP The methods named toT() (for any supported T, see the Type documentation for a list) are const. If you ask for the stored type, they return a copy of the stored object. If you ask for a type that can be generated from the stored type, toT() copies and converts and leaves the object itself unchanged. If you ask for a type that cannot be generated from the stored type, the result depends on the type (see the function documentation for details). .PP -Note that three data types supported by QVariant are explicitly shared, namely TQImage, QPointArray, and QCString, and in these cases the toT() methods return a shallow copy. In almost all cases you must make a deep copy of the returned values before modifying them. +Note that three data types supported by QVariant are explicitly shared, namely TQImage, QPointArray, and TQCString, and in these cases the toT() methods return a shallow copy. In almost all cases you must make a deep copy of the returned values before modifying them. .PP The asT() functions are not const. They do conversion like the toT() methods, set the variant to hold the converted value, and return a reference to the new contents of the variant. .PP @@ -423,7 +423,7 @@ Here is some example code to demonstrate the use of QVariant: .br out << v; // Writes a type tag and an int to out .br - v = QVariant("hello"); // The variant now contains a QCString + v = QVariant("hello"); // The variant now contains a TQCString .br v = QVariant(tr("hello"));// The variant now contains a TQString .br @@ -476,11 +476,11 @@ This enum type defines the types of variable that a QVariant can contain. .TP \fCQVariant::Invalid\fR - no type .TP -\fCQVariant::BitArray\fR - a QBitArray +\fCQVariant::BitArray\fR - a TQBitArray .TP -\fCQVariant::ByteArray\fR - a QByteArray +\fCQVariant::ByteArray\fR - a TQByteArray .TP -\fCQVariant::Bitmap\fR - a QBitmap +\fCQVariant::Bitmap\fR - a TQBitmap .TP \fCQVariant::Bool\fR - a bool .TP @@ -536,7 +536,7 @@ This enum type defines the types of variable that a QVariant can contain. .TP \fCQVariant::String\fR - a TQString .TP -\fCQVariant::CString\fR - a QCString +\fCQVariant::CString\fR - a TQCString .TP \fCQVariant::StringList\fR - a TQStringList .TP @@ -560,10 +560,10 @@ Constructs a copy of the variant, \fIp\fR, passed as the argument to this constr Reads the variant from the data stream, \fIs\fR. .SH "QVariant::QVariant ( const TQString & val )" Constructs a new variant with a string value, \fIval\fR. -.SH "QVariant::QVariant ( const QCString & val )" +.SH "QVariant::QVariant ( const TQCString & val )" Constructs a new variant with a C-string value, \fIval\fR. .PP -If you want to modify the QCString after you've passed it to this constructor, we recommend passing a deep copy (see QCString::copy()). +If you want to modify the TQCString after you've passed it to this constructor, we recommend passing a deep copy (see TQCString::copy()). .SH "QVariant::QVariant ( const char * val )" Constructs a new variant with a C-string value of \fIval\fR if \fIval\fR is non-null. The variant creates a deep copy of \fIval\fR. .PP @@ -600,7 +600,7 @@ Constructs a new variant with a point array value, \fIval\fR. Because QPointArray is explicitly shared, you may need to pass a deep copy to the variant using QPointArray::copy(), e.g. if you intend changing the point array you've passed later on. .SH "QVariant::QVariant ( const QRegion & val )" Constructs a new variant with a region value, \fIval\fR. -.SH "QVariant::QVariant ( const QBitmap & val )" +.SH "QVariant::QVariant ( const TQBitmap & val )" Constructs a new variant with a bitmap value, \fIval\fR. .SH "QVariant::QVariant ( const QCursor & val )" Constructs a new variant with a cursor value, \fIval\fR. @@ -610,9 +610,9 @@ Constructs a new variant with a date value, \fIval\fR. Constructs a new variant with a time value, \fIval\fR. .SH "QVariant::QVariant ( const TQDateTime & val )" Constructs a new variant with a date/time value, \fIval\fR. -.SH "QVariant::QVariant ( const QByteArray & val )" +.SH "QVariant::QVariant ( const TQByteArray & val )" Constructs a new variant with a bytearray value, \fIval\fR. -.SH "QVariant::QVariant ( const QBitArray & val )" +.SH "QVariant::QVariant ( const TQBitArray & val )" Constructs a new variant with a bitarray value, \fIval\fR. .SH "QVariant::QVariant ( const QKeySequence & val )" Constructs a new variant with a key sequence value, \fIval\fR. @@ -634,13 +634,13 @@ Constructs a new variant with an unsigned long long integer value, \fIval\fR. Destroys the QVariant and the contained object. .PP Note that subclasses that reimplement clear() should reimplement the destructor to call clear(). This destructor calls clear(), but because it is the destructor, QVariant::clear() is called rather than a subclass's clear(). -.SH "QBitArray & QVariant::asBitArray ()" -Tries to convert the variant to hold a QBitArray value. If that is not possible then the variant is set to an empty bitarray. +.SH "TQBitArray & QVariant::asBitArray ()" +Tries to convert the variant to hold a TQBitArray value. If that is not possible then the variant is set to an empty bitarray. .PP Returns a reference to the stored bitarray. .PP See also toBitArray(). -.SH "QBitmap & QVariant::asBitmap ()" +.SH "TQBitmap & QVariant::asBitmap ()" Tries to convert the variant to hold a bitmap value. If that is not possible the variant is set to a null bitmap. .PP Returns a reference to the stored bitmap. @@ -654,13 +654,13 @@ Tries to convert the variant to hold a brush value. If that is not possible the Returns a reference to the stored brush. .PP See also toBrush(). -.SH "QByteArray & QVariant::asByteArray ()" -Tries to convert the variant to hold a QByteArray value. If that is not possible then the variant is set to an empty bytearray. +.SH "TQByteArray & QVariant::asByteArray ()" +Tries to convert the variant to hold a TQByteArray value. If that is not possible then the variant is set to an empty bytearray. .PP Returns a reference to the stored bytearray. .PP See also toByteArray(). -.SH "QCString & QVariant::asCString ()" +.SH "TQCString & QVariant::asCString ()" Tries to convert the variant to hold a string value. If that is not possible the variant is set to an empty string. .PP Returns a reference to the stored string. @@ -915,12 +915,12 @@ Returns an iterator to the first string in the list if the variant's type is Str \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Returns the end iterator for the list if the variant's type is StringList; otherwise returns a null iterator. -.SH "const QBitArray QVariant::toBitArray () const" -Returns the variant as a QBitArray if the variant has type() BitArray; otherwise returns an empty bitarray. +.SH "const TQBitArray QVariant::toBitArray () const" +Returns the variant as a TQBitArray if the variant has type() BitArray; otherwise returns an empty bitarray. .PP See also asBitArray(). -.SH "const QBitmap QVariant::toBitmap () const" -Returns the variant as a QBitmap if the variant has type() Bitmap; otherwise returns a null QBitmap. +.SH "const TQBitmap QVariant::toBitmap () const" +Returns the variant as a TQBitmap if the variant has type() Bitmap; otherwise returns a null TQBitmap. .PP See also asBitmap(). .SH "bool QVariant::toBool () const" @@ -933,12 +933,12 @@ See also asBool() and canCast(). Returns the variant as a QBrush if the variant has type() Brush; otherwise returns a default brush (with all black colors). .PP See also asBrush(). -.SH "const QByteArray QVariant::toByteArray () const" -Returns the variant as a QByteArray if the variant can be cast to a ByteArray; otherwise returns an empty bytearray. +.SH "const TQByteArray QVariant::toByteArray () const" +Returns the variant as a TQByteArray if the variant can be cast to a ByteArray; otherwise returns an empty bytearray. .PP See also asByteArray() and canCast(). -.SH "const QCString QVariant::toCString () const" -Returns the variant as a QCString if the variant can be cast to a CString; otherwise returns 0. +.SH "const TQCString QVariant::toCString () const" +Returns the variant as a TQCString if the variant can be cast to a CString; otherwise returns 0. .PP See also asCString() and canCast(). .SH "const TQColor QVariant::toColor () const" diff --git a/doc/man/man3/tqwidget.3qt b/doc/man/man3/tqwidget.3qt index d10a4d2b5..61d813816 100644 --- a/doc/man/man3/tqwidget.3qt +++ b/doc/man/man3/tqwidget.3qt @@ -294,7 +294,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD .BI "bool \fBhasMouse\fR () const" .br .ti -1c -.BI "virtual void \fBsetMask\fR ( const QBitmap & bitmap )" +.BI "virtual void \fBsetMask\fR ( const TQBitmap & bitmap )" .br .ti -1c .BI "virtual void \fBsetMask\fR ( const QRegion & region )" @@ -2112,7 +2112,7 @@ Qt performs key event compression only for printable characters. Modifier keys, Not all platforms support this compression, in which case turning it on will have no effect. .PP See also QKeyEvent::text(). -.SH "void TQWidget::setMask ( const QBitmap & bitmap )\fC [virtual]\fR" +.SH "void TQWidget::setMask ( const TQBitmap & bitmap )\fC [virtual]\fR" Causes only the pixels of the widget for which \fIbitmap\fR has a corresponding 1 bit to be visible. Use TQt::color0 to draw transparent regions and TQt::color1 to draw opaque regions of the bitmap. .PP If the region includes pixels outside the rect() of the widget, window system controls in that area may or may not be visible, depending on the platform. diff --git a/doc/man/man3/tqwindowsmime.3qt b/doc/man/man3/tqwindowsmime.3qt index 8c10624b3..79f70b600 100644 --- a/doc/man/man3/tqwindowsmime.3qt +++ b/doc/man/man3/tqwindowsmime.3qt @@ -38,10 +38,10 @@ TQWindowsMime \- Maps open-standard MIME to Window Clipboard formats .BI "virtual int \fBcfFor\fR ( const char * mime ) = 0" .br .ti -1c -.BI "virtual QByteArray \fBconvertToMime\fR ( QByteArray data, const char * mime, int cf ) = 0" +.BI "virtual TQByteArray \fBconvertToMime\fR ( TQByteArray data, const char * mime, int cf ) = 0" .br .ti -1c -.BI "virtual QByteArray \fBconvertFromMime\fR ( QByteArray data, const char * mime, int cf ) = 0" +.BI "virtual TQByteArray \fBconvertFromMime\fR ( TQByteArray data, const char * mime, int cf ) = 0" .br .in -1c .SS "Static Public Members" @@ -102,13 +102,13 @@ Returns the Windows Clipboard type used for MIME type \fImime\fR, or 0 if this c All subclasses must reimplement this pure virtual function. .SH "const char * TQWindowsMime::cfToMime ( int cf )\fC [static]\fR" Returns a MIME type for \fIcf\fR, or 0 if none exists. -.SH "QByteArray TQWindowsMime::convertFromMime ( QByteArray data, const char * mime, int cf )\fC [pure virtual]\fR" +.SH "TQByteArray TQWindowsMime::convertFromMime ( TQByteArray data, const char * mime, int cf )\fC [pure virtual]\fR" Returns \fIdata\fR converted from MIME type \fImime\fR to Windows Clipboard format \fIcf\fR. .PP Note that Windows Clipboard formats must all be self-terminating. The return value may contain trailing data. .PP All subclasses must reimplement this pure virtual function. -.SH "QByteArray TQWindowsMime::convertToMime ( QByteArray data, const char * mime, int cf )\fC [pure virtual]\fR" +.SH "TQByteArray TQWindowsMime::convertToMime ( TQByteArray data, const char * mime, int cf )\fC [pure virtual]\fR" Returns \fIdata\fR converted from Windows Clipboard format \fIcf\fR to MIME type \fImime\fR. .PP Note that Windows Clipboard formats must all be self-terminating. The input \fIdata\fR may contain trailing data. diff --git a/doc/man/man3/tqxmlinputsource.3qt b/doc/man/man3/tqxmlinputsource.3qt index 365655708..2a15ba3a6 100644 --- a/doc/man/man3/tqxmlinputsource.3qt +++ b/doc/man/man3/tqxmlinputsource.3qt @@ -34,7 +34,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "virtual void \fBsetData\fR ( const TQString & dat )" .br .ti -1c -.BI "virtual void \fBsetData\fR ( const QByteArray & dat )" +.BI "virtual void \fBsetData\fR ( const TQByteArray & dat )" .br .ti -1c .BI "virtual void \fBfetchData\fR ()" @@ -52,7 +52,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .SS "Protected Members" .in +1c .ti -1c -.BI "virtual TQString \fBfromRawData\fR ( const QByteArray & data, bool beginning = FALSE )" +.BI "virtual TQString \fBfromRawData\fR ( const TQByteArray & data, bool beginning = FALSE )" .br .in -1c .SH DESCRIPTION @@ -104,7 +104,7 @@ There are two occasions where a fetch is done implicitly by another function cal You don't normally need to use this function if you use next(). .PP See also data(), next(), and TQXmlInputSource(). -.SH "TQString TQXmlInputSource::fromRawData ( const QByteArray & data, bool beginning = FALSE )\fC [virtual protected]\fR" +.SH "TQString TQXmlInputSource::fromRawData ( const TQByteArray & data, bool beginning = FALSE )\fC [virtual protected]\fR" This function reads the XML file from \fIdata\fR and tries to recognize the encoding. It converts the raw data \fIdata\fR into a TQString and returns it. It tries its best to get the correct encoding for the XML file. .PP If \fIbeginning\fR is TRUE, this function assumes that the data starts at the beginning of a new XML document and looks for an encoding declaration. If \fIbeginning\fR is FALSE, it converts the raw data using the encoding determined from prior calls. @@ -124,7 +124,7 @@ Sets the data of the input source to \fIdat\fR. If the input source already contains data, this function deletes that data first. .PP See also data(). -.SH "void TQXmlInputSource::setData ( const QByteArray & dat )\fC [virtual]\fR" +.SH "void TQXmlInputSource::setData ( const TQByteArray & dat )\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP The data \fIdat\fR is passed through the correct text-codec, before |