diff options
Diffstat (limited to 'doc/man/man3/tqrangecontrol.3qt')
-rw-r--r-- | doc/man/man3/tqrangecontrol.3qt | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/doc/man/man3/tqrangecontrol.3qt b/doc/man/man3/tqrangecontrol.3qt index 681b8f1ce..9e5750938 100644 --- a/doc/man/man3/tqrangecontrol.3qt +++ b/doc/man/man3/tqrangecontrol.3qt @@ -1,5 +1,5 @@ '\" t -.TH QRangeControl 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQRangeControl 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,22 +7,22 @@ .ad l .nh .SH NAME -QRangeControl \- Integer value within a range +TQRangeControl \- Integer value within a range .SH SYNOPSIS -\fC#include <ntqrangecontrol.h>\fR +\fC#include <tqrangecontrol.h>\fR .PP Inherited by TQDial, TQScrollBar, TQSlider, and TQSpinBox. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQRangeControl\fR ()" +.BI "\fBTQRangeControl\fR ()" .br .ti -1c -.BI "\fBQRangeControl\fR ( int minValue, int maxValue, int lineStep, int pageStep, int value )" +.BI "\fBTQRangeControl\fR ( int minValue, int maxValue, int lineStep, int pageStep, int value )" .br .ti -1c -.BI "virtual \fB~QRangeControl\fR ()" +.BI "virtual \fB~TQRangeControl\fR ()" .br .ti -1c .BI "int \fBvalue\fR () const" @@ -95,60 +95,60 @@ Inherited by TQDial, TQScrollBar, TQSlider, and TQSpinBox. .br .in -1c .SH DESCRIPTION -The QRangeControl class provides an integer value within a range. +The TQRangeControl class provides an integer value within a range. .PP -Although originally designed for the TQScrollBar widget, the QRangeControl can also be used in conjunction with other widgets such as TQSlider and TQSpinBox. Here are the five main concepts in the class: +Although originally designed for the TQScrollBar widget, the TQRangeControl can also be used in conjunction with other widgets such as TQSlider and TQSpinBox. Here are the five main concepts in the class: .PP <ol type=1> .IP 1 -\fICurrent value\fR The bounded integer that QRangeControl maintains. value() returns it, and several functions, including setValue(), set it. +\fICurrent value\fR The bounded integer that TQRangeControl maintains. value() returns it, and several functions, including setValue(), set it. .IP 2 \fIMinimum\fR The lowest value that value() can ever return. Returned by minValue() and set by setRange() or one of the constructors. .IP 3 \fIMaximum\fR The highest value that value() can ever return. Returned by maxValue() and set by setRange() or one of the constructors. .IP 4 -\fILine step\fR The smaller of two natural steps that QRangeControl provides and typically corresponds to the user pressing an arrow key. The line step is returned by lineStep() and set using setSteps(). The functions addLine() and subtractLine() respectively increment and decrement the current value by lineStep(). +\fILine step\fR The smaller of two natural steps that TQRangeControl provides and typically corresponds to the user pressing an arrow key. The line step is returned by lineStep() and set using setSteps(). The functions addLine() and subtractLine() respectively increment and decrement the current value by lineStep(). .IP 5 -\fIPage step\fR The larger of two natural steps that QRangeControl provides and typically corresponds to the user pressing PageUp or PageDown. The page step is returned by pageStep() and set using setSteps(). The functions addPage() and substractPage() respectively increment and decrement the current value by pageStep(). +\fIPage step\fR The larger of two natural steps that TQRangeControl provides and typically corresponds to the user pressing PageUp or PageDown. The page step is returned by pageStep() and set using setSteps(). The functions addPage() and substractPage() respectively increment and decrement the current value by pageStep(). .IP .PP Unity (1) may be viewed as a third step size. setValue() lets you set the current value to any integer in the allowed range, not just minValue() + \fIn\fR * lineStep() for integer values of \fIn\fR. Some widgets may allow the user to set any value at all; others may just provide multiples of lineStep() or pageStep(). .PP -QRangeControl provides three virtual functions that are well suited for updating the on-screen representation of range controls and emitting signals: valueChange(), rangeChange() and stepChange(). +TQRangeControl provides three virtual functions that are well suited for updating the on-screen representation of range controls and emitting signals: valueChange(), rangeChange() and stepChange(). .PP -QRangeControl also provides a function called bound() which lets you force arbitrary integers to be within the allowed range of the range control. +TQRangeControl also provides a function called bound() which lets you force arbitrary integers to be within the allowed range of the range control. .PP -We recommend that all widgets that inherit QRangeControl provide at least a signal called valueChanged(); many widgets will want to provide addStep(), addPage(), substractStep() and substractPage() as slots. +We recommend that all widgets that inherit TQRangeControl provide at least a signal called valueChanged(); many widgets will want to provide addStep(), addPage(), substractStep() and substractPage() as slots. .PP -Note that you must use multiple inheritance if you plan to implement a widget using QRangeControl because QRangeControl is not derived from TQWidget. +Note that you must use multiple inheritance if you plan to implement a widget using TQRangeControl because TQRangeControl is not derived from TQWidget. .PP See also Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QRangeControl::QRangeControl ()" +.SH "TQRangeControl::TQRangeControl ()" Constructs a range control with a minimum value of 0, maximum value of 99, line step of 1, page step of 10 and initial value 0. -.SH "QRangeControl::QRangeControl ( int minValue, int maxValue, int lineStep, int pageStep, int value )" +.SH "TQRangeControl::TQRangeControl ( int minValue, int maxValue, int lineStep, int pageStep, int value )" Constructs a range control whose value can never be smaller than \fIminValue\fR or greater than \fImaxValue\fR, whose line step size is \fIlineStep\fR and page step size is \fIpageStep\fR and whose value is initially \fIvalue\fR (which is guaranteed to be in range using bound()). -.SH "QRangeControl::~QRangeControl ()\fC [virtual]\fR" +.SH "TQRangeControl::~TQRangeControl ()\fC [virtual]\fR" Destroys the range control -.SH "void QRangeControl::addLine ()" +.SH "void TQRangeControl::addLine ()" Equivalent to \fCsetValue( value() + lineStep() )\fR. .PP If the value is changed, then valueChange() is called. .PP See also subtractLine(), addPage(), and setValue(). -.SH "void QRangeControl::addPage ()" +.SH "void TQRangeControl::addPage ()" Equivalent to \fCsetValue( value() + pageStep() )\fR. .PP If the value is changed, then valueChange() is called. .PP See also subtractPage(), addLine(), and setValue(). -.SH "int QRangeControl::bound ( int v ) const" +.SH "int TQRangeControl::bound ( int v ) const" Forces the value \fIv\fR to be within the range from minValue() to maxValue() inclusive, and returns the result. .PP -This function is provided so that you can easily force other numbers than value() into the allowed range. You do not need to call it in order to use QRangeControl itself. +This function is provided so that you can easily force other numbers than value() into the allowed range. You do not need to call it in order to use TQRangeControl itself. .PP See also setValue(), value(), minValue(), and maxValue(). -.SH "void QRangeControl::directSetValue ( int value )\fC [protected]\fR" +.SH "void TQRangeControl::directSetValue ( int value )\fC [protected]\fR" Sets the range control \fIvalue\fR directly without calling valueChange(). .PP Forces the new \fIvalue\fR to be within the legal range. @@ -156,23 +156,23 @@ Forces the new \fIvalue\fR to be within the legal range. You will rarely have to call this function. However, if you want to change the range control's value inside the overloaded method valueChange(), setValue() would call the function valueChange() again. To avoid this recursion you must use directSetValue() instead. .PP See also setValue(). -.SH "int QRangeControl::lineStep () const" +.SH "int TQRangeControl::lineStep () const" Returns the line step. .PP See also setSteps() and pageStep(). -.SH "int QRangeControl::maxValue () const" +.SH "int TQRangeControl::maxValue () const" Returns the maximum value of the range. .PP See also setMaxValue(), setRange(), and minValue(). -.SH "int QRangeControl::minValue () const" +.SH "int TQRangeControl::minValue () const" Returns the minimum value of the range. .PP See also setMinValue(), setRange(), and maxValue(). -.SH "int QRangeControl::pageStep () const" +.SH "int TQRangeControl::pageStep () const" Returns the page step. .PP See also setSteps() and lineStep(). -.SH "int QRangeControl::positionFromValue ( int logical_val, int span ) const\fC [protected]\fR" +.SH "int TQRangeControl::positionFromValue ( int logical_val, int span ) const\fC [protected]\fR" Converts \fIlogical_val\fR to a pixel position. minValue() maps to 0, maxValue() maps to \fIspan\fR and other values are distributed evenly in-between. .PP This function can handle the entire integer range without overflow, providing \fIspan\fR is <= 4096. @@ -180,13 +180,13 @@ This function can handle the entire integer range without overflow, providing \f Calling this method is useful when actually drawing a range control such as a TQScrollBar on-screen. .PP See also valueFromPosition(). -.SH "int QRangeControl::prevValue () const\fC [protected]\fR" +.SH "int TQRangeControl::prevValue () const\fC [protected]\fR" Returns the previous value of the range control. "Previous value" means the value before the last change occurred. Setting a new range may affect the value, too, because the value is forced to be inside the specified range. When the range control is initially created, this is the same as value(). .PP prevValue() can be outside the current legal range if a call to setRange() causes the current value to change. For example, if the range was [0, 1000] and the current value is 500, setRange(0, 400) makes value() return 400 and prevValue() return 500. .PP See also value() and setRange(). -.SH "void QRangeControl::rangeChange ()\fC [virtual protected]\fR" +.SH "void TQRangeControl::rangeChange ()\fC [virtual protected]\fR" This virtual function is called whenever the range control's range changes. You can reimplement it if you want to be notified when the range changes. The default implementation does nothing. .PP Note that this method is called after the range has changed. @@ -194,19 +194,19 @@ Note that this method is called after the range has changed. See also setRange(), valueChange(), and stepChange(). .PP Reimplemented in TQDial, TQSlider, and TQSpinBox. -.SH "void QRangeControl::setMaxValue ( int maxVal )" +.SH "void TQRangeControl::setMaxValue ( int maxVal )" Sets the minimum value of the range to \fImaxVal\fR. .PP If necessary, the minValue() is adjusted so that the range remains valid. .PP See also maxValue() and setMinValue(). -.SH "void QRangeControl::setMinValue ( int minVal )" +.SH "void TQRangeControl::setMinValue ( int minVal )" Sets the minimum value of the range to \fIminVal\fR. .PP If necessary, the maxValue() is adjusted so that the range remains valid. .PP See also minValue() and setMaxValue(). -.SH "void QRangeControl::setRange ( int minValue, int maxValue )" +.SH "void TQRangeControl::setRange ( int minValue, int maxValue )" Sets the range control's minimum value to \fIminValue\fR and its maximum value to \fImaxValue\fR. .PP Calls the virtual rangeChange() function if one or both of the new minimum and maximum values are different from the previous setting. Calls the virtual valueChange() function if the current value is adjusted because it was outside the new range. @@ -217,41 +217,41 @@ See also minValue() and maxValue(). .PP Examples: .)l listbox/listbox.cpp, t12/lcdrange.cpp, t5/main.cpp, t6/main.cpp, t8/lcdrange.cpp, and xform/xform.cpp. -.SH "void QRangeControl::setSteps ( int lineStep, int pageStep )" +.SH "void TQRangeControl::setSteps ( int lineStep, int pageStep )" Sets the range's line step to \fIlineStep\fR and page step to \fIpageStep\fR. .PP Calls the virtual stepChange() function if the new line step or page step are different from the previous settings. .PP See also lineStep(), pageStep(), and setRange(). -.SH "void QRangeControl::setValue ( int value )" +.SH "void TQRangeControl::setValue ( int value )" Sets the range control's value to \fIvalue\fR and forces it to be within the legal range. .PP Calls the virtual valueChange() function if the new value is different from the previous value. The old value can still be retrieved using prevValue(). .PP See also value(). -.SH "void QRangeControl::stepChange ()\fC [virtual protected]\fR" +.SH "void TQRangeControl::stepChange ()\fC [virtual protected]\fR" This virtual function is called whenever the range control's line or page step settings change. You can reimplement it if you want to be notified when the step changes. The default implementation does nothing. .PP Note that this method is called after a step setting has changed. .PP See also setSteps(), rangeChange(), and valueChange(). -.SH "void QRangeControl::subtractLine ()" +.SH "void TQRangeControl::subtractLine ()" Equivalent to \fCsetValue( value() - lineStep() )\fR. .PP If the value is changed, then valueChange() is called. .PP See also addLine(), subtractPage(), and setValue(). -.SH "void QRangeControl::subtractPage ()" +.SH "void TQRangeControl::subtractPage ()" Equivalent to \fCsetValue( value() - pageStep() )\fR. .PP If the value is changed, then valueChange() is called. .PP See also addPage(), subtractLine(), and setValue(). -.SH "int QRangeControl::value () const" +.SH "int TQRangeControl::value () const" Returns the current range control value. This is guaranteed to be within the range [minValue(), maxValue()]. .PP See also setValue() and prevValue(). -.SH "void QRangeControl::valueChange ()\fC [virtual protected]\fR" +.SH "void TQRangeControl::valueChange ()\fC [virtual protected]\fR" This virtual function is called whenever the range control value changes. You can reimplement it if you want to be notified when the value changes. The default implementation does nothing. .PP Note that this method is called after the value has changed. The previous value can be retrieved using prevValue(). @@ -259,7 +259,7 @@ Note that this method is called after the value has changed. The previous value See also setValue(), addPage(), subtractPage(), addLine(), subtractLine(), rangeChange(), and stepChange(). .PP Reimplemented in TQDial, TQSlider, and TQSpinBox. -.SH "int QRangeControl::valueFromPosition ( int pos, int span ) const\fC [protected]\fR" +.SH "int TQRangeControl::valueFromPosition ( int pos, int span ) const\fC [protected]\fR" Converts the pixel position \fIpos\fR to a value. 0 maps to minValue(), \fIspan\fR maps to maxValue() and other values are distributed evenly in-between. .PP This function can handle the entire integer range without overflow. @@ -269,7 +269,7 @@ Calling this method is useful if you actually implemented a range control widget See also positionFromValue(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqrangecontrol.html +.BR http://doc.trolltech.com/tqrangecontrol.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |