summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqiconset.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqiconset.3qt')
-rw-r--r--doc/man/man3/tqiconset.3qt134
1 files changed, 67 insertions, 67 deletions
diff --git a/doc/man/man3/tqiconset.3qt b/doc/man/man3/tqiconset.3qt
index 0cf0bc669..8cb5e2634 100644
--- a/doc/man/man3/tqiconset.3qt
+++ b/doc/man/man3/tqiconset.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QIconSet 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQIconSet 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,9 +7,9 @@
.ad l
.nh
.SH NAME
-QIconSet \- Set of icons with different styles and sizes
+TQIconSet \- Set of icons with different styles and sizes
.SH SYNOPSIS
-\fC#include <ntqiconset.h>\fR
+\fC#include <tqiconset.h>\fR
.PP
.SS "Public Members"
.in +1c
@@ -23,19 +23,19 @@ QIconSet \- Set of icons with different styles and sizes
.BI "enum \fBState\fR { On, Off }"
.br
.ti -1c
-.BI "\fBQIconSet\fR ()"
+.BI "\fBTQIconSet\fR ()"
.br
.ti -1c
-.BI "\fBQIconSet\fR ( const QPixmap & pixmap, Size size = Automatic )"
+.BI "\fBTQIconSet\fR ( const QPixmap & pixmap, Size size = Automatic )"
.br
.ti -1c
-.BI "\fBQIconSet\fR ( const QPixmap & smallPix, const QPixmap & largePix )"
+.BI "\fBTQIconSet\fR ( const QPixmap & smallPix, const QPixmap & largePix )"
.br
.ti -1c
-.BI "\fBQIconSet\fR ( const QIconSet & other )"
+.BI "\fBTQIconSet\fR ( const TQIconSet & other )"
.br
.ti -1c
-.BI "virtual \fB~QIconSet\fR ()"
+.BI "virtual \fB~TQIconSet\fR ()"
.br
.ti -1c
.BI "void \fBreset\fR ( const QPixmap & pixmap, Size size )"
@@ -62,7 +62,7 @@ QIconSet \- Set of icons with different styles and sizes
.BI "void \fBclearGenerated\fR ()"
.br
.ti -1c
-.BI "void \fBinstallIconFactory\fR ( QIconFactory * factory )"
+.BI "void \fBinstallIconFactory\fR ( TQIconFactory * factory )"
.br
.ti -1c
.BI "bool \fBisNull\fR () const"
@@ -71,7 +71,7 @@ QIconSet \- Set of icons with different styles and sizes
.BI "void \fBdetach\fR ()"
.br
.ti -1c
-.BI "QIconSet & \fBoperator=\fR ( const QIconSet & other )"
+.BI "TQIconSet & \fBoperator=\fR ( const TQIconSet & other )"
.br
.in -1c
.SS "Static Public Members"
@@ -84,37 +84,37 @@ QIconSet \- Set of icons with different styles and sizes
.br
.in -1c
.SH DESCRIPTION
-The QIconSet class provides a set of icons with different styles and sizes.
+The TQIconSet class provides a set of icons with different styles and sizes.
.PP
-A QIconSet can generate smaller, larger, active, and disabled pixmaps from the set of icons it is given. Such pixmaps are used by QToolButton, QHeader, QPopupMenu, etc. to show an icon representing a particular action.
+A TQIconSet can generate smaller, larger, active, and disabled pixmaps from the set of icons it is given. Such pixmaps are used by QToolButton, QHeader, QPopupMenu, etc. to show an icon representing a particular action.
.PP
-The simplest use of QIconSet is to create one from a QPixmap and then use it, allowing TQt to work out all the required icon styles and sizes. For example:
+The simplest use of TQIconSet is to create one from a QPixmap and then use it, allowing TQt to work out all the required icon styles and sizes. For example:
.PP
.nf
.br
- QToolButton *but = new QToolButton( QIconSet( QPixmap("open.xpm") ), ... );
+ QToolButton *but = new QToolButton( TQIconSet( QPixmap("open.xpm") ), ... );
.br
.fi
.PP
-Using whichever pixmaps you specify as a base, QIconSet provides a set of six icons, each with a Size and a Mode: Small Normal, Small Disabled, Small Active, Large Normal, Large Disabled, and Large Active.
+Using whichever pixmaps you specify as a base, TQIconSet provides a set of six icons, each with a Size and a Mode: Small Normal, Small Disabled, Small Active, Large Normal, Large Disabled, and Large Active.
.PP
-An additional set of six icons can be provided for widgets that have an "On" or "Off" state, like checkable menu items or toggleable toolbuttons. If you provide pixmaps for the "On" state, but not for the "Off" state, the QIconSet will provide the "Off" pixmaps. You may specify icons for both states in you wish.
+An additional set of six icons can be provided for widgets that have an "On" or "Off" state, like checkable menu items or toggleable toolbuttons. If you provide pixmaps for the "On" state, but not for the "Off" state, the TQIconSet will provide the "Off" pixmaps. You may specify icons for both states in you wish.
.PP
You can set any of the icons using setPixmap().
.PP
-When you retrieve a pixmap using pixmap(Size, Mode, State), QIconSet will return the icon that has been set or previously generated for that size, mode and state combination. If none is available, QIconSet will ask the icon factory. If the icon factory cannot provide any (the default), QIconSet generates a pixmap based on the pixmaps it has been given and returns it.
+When you retrieve a pixmap using pixmap(Size, Mode, State), TQIconSet will return the icon that has been set or previously generated for that size, mode and state combination. If none is available, TQIconSet will ask the icon factory. If the icon factory cannot provide any (the default), TQIconSet generates a pixmap based on the pixmaps it has been given and returns it.
.PP
The Disabled appearance is computed using an algorithm that produces results very similar to those used in Microsoft Windows 95. The Active appearance is identical to the Normal appearance unless you use setPixmap() to set it to something special.
.PP
-When scaling icons, QIconSet uses smooth scaling, which can partially blend the color component of pixmaps. If the results look poor, the best solution is to supply pixmaps in both large and small sizes.
+When scaling icons, TQIconSet uses smooth scaling, which can partially blend the color component of pixmaps. If the results look poor, the best solution is to supply pixmaps in both large and small sizes.
.PP
You can use the static function setIconSize() to set the preferred size of the generated large/small icons. The default small size is 22 x 22, while the default large size is 32 x 32. These sizes only affect generated icons.
.PP
-The isGenerated() function returns TRUE if an icon was generated by QIconSet or by a factory; clearGenerated() clears all cached pixmaps.
-.SH "Making Classes that Use QIconSet"
-If you write your own widgets that have an option to set a small pixmap, consider allowing a QIconSet to be set for that pixmap. The TQt class QToolButton is an example of such a widget.
+The isGenerated() function returns TRUE if an icon was generated by TQIconSet or by a factory; clearGenerated() clears all cached pixmaps.
+.SH "Making Classes that Use TQIconSet"
+If you write your own widgets that have an option to set a small pixmap, consider allowing a TQIconSet to be set for that pixmap. The TQt class QToolButton is an example of such a widget.
.PP
-Provide a method to set a QIconSet, and when you draw the icon, choose whichever icon is appropriate for the current state of your widget. For example:
+Provide a method to set a TQIconSet, and when you draw the icon, choose whichever icon is appropriate for the current state of your widget. For example:
.PP
.nf
.br
@@ -124,15 +124,15 @@ Provide a method to set a QIconSet, and when you draw the icon, choose whichever
.br
p->drawPixmap( pos, icons->pixmap(
.br
- QIconSet::Small,
+ TQIconSet::Small,
.br
- isEnabled() ? QIconSet::Normal :
+ isEnabled() ? TQIconSet::Normal :
.br
- QIconSet::Disabled,
+ TQIconSet::Disabled,
.br
- isEnabled() ? QIconSet::On :
+ isEnabled() ? TQIconSet::On :
.br
- QIconSet::Off));
+ TQIconSet::Off));
.br
}
.br
@@ -146,120 +146,120 @@ You might also make use of the Active mode, perhaps making your widget Active wh
.PP
</center>
.PP
-See also QIconFactory, QPixmap, QMainWindow::usesBigPixmaps, GUI Design Handbook: Iconic Label, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes.
+See also TQIconFactory, QPixmap, QMainWindow::usesBigPixmaps, GUI Design Handbook: Iconic Label, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes.
.SS "Member Type Documentation"
-.SH "QIconSet::Mode"
+.SH "TQIconSet::Mode"
This enum type describes the mode for which a pixmap is intended to be used. The currently defined modes are:
.TP
-\fCQIconSet::Normal\fR - Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available.
+\fCTQIconSet::Normal\fR - Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available.
.TP
-\fCQIconSet::Disabled\fR - Display the pixmap when the functionality represented by the icon is not available.
+\fCTQIconSet::Disabled\fR - Display the pixmap when the functionality represented by the icon is not available.
.TP
-\fCQIconSet::Active\fR - Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it.
-.SH "QIconSet::Size"
+\fCTQIconSet::Active\fR - Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it.
+.SH "TQIconSet::Size"
This enum type describes the size at which a pixmap is intended to be used. The currently defined sizes are:
.TP
-\fCQIconSet::Automatic\fR - The size of the pixmap is determined from its pixel size. This is a useful default.
+\fCTQIconSet::Automatic\fR - The size of the pixmap is determined from its pixel size. This is a useful default.
.TP
-\fCQIconSet::Small\fR - The pixmap is the smaller of two.
+\fCTQIconSet::Small\fR - The pixmap is the smaller of two.
.TP
-\fCQIconSet::Large\fR - The pixmap is the larger of two.
+\fCTQIconSet::Large\fR - The pixmap is the larger of two.
.PP
-If a Small pixmap is not set by QIconSet::setPixmap(), the Large pixmap will be automatically scaled down to the size of a small pixmap to generate the Small pixmap when required. Similarly, a Small pixmap will be automatically scaled up to generate a Large pixmap. The preferred sizes for large/small generated icons can be set using setIconSize().
+If a Small pixmap is not set by TQIconSet::setPixmap(), the Large pixmap will be automatically scaled down to the size of a small pixmap to generate the Small pixmap when required. Similarly, a Small pixmap will be automatically scaled up to generate a Large pixmap. The preferred sizes for large/small generated icons can be set using setIconSize().
.PP
See also setIconSize(), iconSize(), setPixmap(), pixmap(), and QMainWindow::usesBigPixmaps.
-.SH "QIconSet::State"
+.SH "TQIconSet::State"
This enum describes the state for which a pixmap is intended to be used. The \fIstate\fR can be:
.TP
-\fCQIconSet::Off\fR - Display the pixmap when the widget is in an "off" state
+\fCTQIconSet::Off\fR - Display the pixmap when the widget is in an "off" state
.TP
-\fCQIconSet::On\fR - Display the pixmap when the widget is in an "on" state
+\fCTQIconSet::On\fR - Display the pixmap when the widget is in an "on" state
.PP
See also setPixmap() and pixmap().
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QIconSet::QIconSet ()"
+.SH "TQIconSet::TQIconSet ()"
Constructs a null icon set.
.PP
See also setPixmap() and reset().
-.SH "QIconSet::QIconSet ( const QPixmap & pixmap, Size size = Automatic )"
+.SH "TQIconSet::TQIconSet ( const QPixmap & pixmap, Size size = Automatic )"
Constructs an icon set for which the Normal pixmap is \fIpixmap\fR, which is assumed to be of size \fIsize\fR.
.PP
-The default for \fIsize\fR is Automatic, which means that QIconSet will determine whether the pixmap is Small or Large from its pixel size. Pixmaps less than the width of a small generated icon are considered to be Small. You can use setIconSize() to set the preferred size of a generated icon.
+The default for \fIsize\fR is Automatic, which means that TQIconSet will determine whether the pixmap is Small or Large from its pixel size. Pixmaps less than the width of a small generated icon are considered to be Small. You can use setIconSize() to set the preferred size of a generated icon.
.PP
See also setIconSize() and reset().
-.SH "QIconSet::QIconSet ( const QPixmap & smallPix, const QPixmap & largePix )"
+.SH "TQIconSet::TQIconSet ( const QPixmap & smallPix, const QPixmap & largePix )"
Creates an iconset which uses the pixmap \fIsmallPix\fR for for displaying a small icon, and the pixmap \fIlargePix\fR for displaying a large icon.
-.SH "QIconSet::QIconSet ( const QIconSet & other )"
+.SH "TQIconSet::TQIconSet ( const TQIconSet & other )"
Constructs a copy of \fIother\fR. This is very fast.
-.SH "QIconSet::~QIconSet ()\fC [virtual]\fR"
+.SH "TQIconSet::~TQIconSet ()\fC [virtual]\fR"
Destroys the icon set and frees any allocated resources.
-.SH "void QIconSet::clearGenerated ()"
-Clears all cached pixmaps, including those obtained from an eventual QIconFactory.
-.SH "void QIconSet::detach ()"
+.SH "void TQIconSet::clearGenerated ()"
+Clears all cached pixmaps, including those obtained from an eventual TQIconFactory.
+.SH "void TQIconSet::detach ()"
Detaches this icon set from others with which it may share data.
.PP
-You will never need to call this function; other QIconSet functions call it as necessary.
-.SH "const QSize & QIconSet::iconSize ( Size which )\fC [static]\fR"
+You will never need to call this function; other TQIconSet functions call it as necessary.
+.SH "const QSize & TQIconSet::iconSize ( Size which )\fC [static]\fR"
If \fIwhich\fR is Small, returns the preferred size of a small generated icon; if \fIwhich\fR is Large, returns the preferred size of a large generated icon.
.PP
See also setIconSize().
-.SH "void QIconSet::installIconFactory ( QIconFactory * factory )"
+.SH "void TQIconSet::installIconFactory ( TQIconFactory * factory )"
Installs \fIfactory\fR as the icon factory for this iconset. The icon factory is used to generates pixmaps not set by the user.
.PP
-If no icon factory is installed, QIconFactory::defaultFactory() is used.
-.SH "bool QIconSet::isGenerated ( Size size, Mode mode, State state = Off ) const"
+If no icon factory is installed, TQIconFactory::defaultFactory() is used.
+.SH "bool TQIconSet::isGenerated ( Size size, Mode mode, State state = Off ) const"
Returns TRUE if the pixmap with size \fIsize\fR, mode \fImode\fR and state \fIstate\fR is generated from other pixmaps; otherwise returns FALSE.
.PP
-A pixmap obtained from a QIconFactory is considered non-generated.
-.SH "bool QIconSet::isNull () const"
+A pixmap obtained from a TQIconFactory is considered non-generated.
+.SH "bool TQIconSet::isNull () const"
Returns TRUE if the icon set is empty; otherwise returns FALSE.
-.SH "QIconSet & QIconSet::operator= ( const QIconSet & other )"
+.SH "TQIconSet & TQIconSet::operator= ( const TQIconSet & other )"
Assigns \fIother\fR to this icon set and returns a reference to this icon set.
.PP
See also detach().
-.SH "QPixmap QIconSet::pixmap ( Size size, Mode mode, State state = Off ) const"
+.SH "QPixmap TQIconSet::pixmap ( Size size, Mode mode, State state = Off ) const"
Returns a pixmap with size \fIsize\fR, mode \fImode\fR and state \fIstate\fR, generating one if necessary. Generated pixmaps are cached.
-.SH "QPixmap QIconSet::pixmap ( Size size, bool enabled, State state = Off ) const"
+.SH "QPixmap TQIconSet::pixmap ( Size size, bool enabled, State state = Off ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This is the same as pixmap(\fIsize\fR, \fIenabled\fR, \fIstate\fR).
-.SH "QPixmap QIconSet::pixmap () const"
+.SH "QPixmap TQIconSet::pixmap () const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the pixmap originally provided to the constructor or to reset(). This is the Normal pixmap of unspecified Size.
.PP
See also reset().
-.SH "void QIconSet::reset ( const QPixmap & pixmap, Size size )"
+.SH "void TQIconSet::reset ( const QPixmap & pixmap, Size size )"
Sets this icon set to use pixmap \fIpixmap\fR for the Normal pixmap, assuming it to be of size \fIsize\fR.
.PP
-This is equivalent to assigning QIconSet(\fIpixmap\fR, \fIsize\fR) to this icon set.
+This is equivalent to assigning TQIconSet(\fIpixmap\fR, \fIsize\fR) to this icon set.
.PP
This function does nothing if \fIpixmap\fR is a null pixmap.
-.SH "void QIconSet::setIconSize ( Size which, const QSize & size )\fC [static]\fR"
+.SH "void TQIconSet::setIconSize ( Size which, const QSize & size )\fC [static]\fR"
Set the preferred size for all small or large icons that are generated after this call. If \fIwhich\fR is Small, sets the preferred size of small generated icons to \fIsize\fR. Similarly, if \fIwhich\fR is Large, sets the preferred size of large generated icons to \fIsize\fR.
.PP
Note that cached icons will not be regenerated, so it is recommended that you set the preferred icon sizes before generating any icon sets. Also note that the preferred icon sizes will be ignored for icon sets that have been created using both small and large pixmaps.
.PP
See also iconSize().
-.SH "void QIconSet::setPixmap ( const QPixmap & pixmap, Size size, Mode mode = Normal, State state = Off )\fC [virtual]\fR"
+.SH "void TQIconSet::setPixmap ( const QPixmap & pixmap, Size size, Mode mode = Normal, State state = Off )\fC [virtual]\fR"
Sets this icon set to provide pixmap \fIpixmap\fR for size \fIsize\fR, mode \fImode\fR and state \fIstate\fR. The icon set may also use \fIpixmap\fR for generating other pixmaps if they are not explicitly set.
.PP
-The \fIsize\fR can be one of Automatic, Large or Small. If Automatic is used, QIconSet will determine if the pixmap is Small or Large from its pixel size.
+The \fIsize\fR can be one of Automatic, Large or Small. If Automatic is used, TQIconSet will determine if the pixmap is Small or Large from its pixel size.
.PP
Pixmaps less than the width of a small generated icon are considered to be Small. You can use setIconSize() to set the preferred size of a generated icon.
.PP
This function does nothing if \fIpixmap\fR is a null pixmap.
.PP
See also reset().
-.SH "void QIconSet::setPixmap ( const TQString & fileName, Size size, Mode mode = Normal, State state = Off )\fC [virtual]\fR"
+.SH "void TQIconSet::setPixmap ( const TQString & fileName, Size size, Mode mode = Normal, State state = Off )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
The pixmap is loaded from \fIfileName\fR when it becomes necessary.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqiconset.html
+.BR http://doc.trolltech.com/tqiconset.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the