diff options
Diffstat (limited to 'doc/man/man3/tqlcdnumber.3qt')
-rw-r--r-- | doc/man/man3/tqlcdnumber.3qt | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/doc/man/man3/tqlcdnumber.3qt b/doc/man/man3/tqlcdnumber.3qt index e9b215ec1..4804a8dc1 100644 --- a/doc/man/man3/tqlcdnumber.3qt +++ b/doc/man/man3/tqlcdnumber.3qt @@ -1,5 +1,5 @@ '\" t -.TH QLCDNumber 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQLCDNumber 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 -QLCDNumber \- Displays a number with LCD-like digits +TQLCDNumber \- Displays a number with LCD-like digits .SH SYNOPSIS -\fC#include <ntqlcdnumber.h>\fR +\fC#include <tqlcdnumber.h>\fR .PP Inherits QFrame. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQLCDNumber\fR ( TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQLCDNumber\fR ( TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c -.BI "\fBQLCDNumber\fR ( uint numDigits, TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQLCDNumber\fR ( uint numDigits, TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c -.BI "\fB~QLCDNumber\fR ()" +.BI "\fB~TQLCDNumber\fR ()" .br .ti -1c .BI "enum \fBMode\fR { Hex, Dec, Oct, Bin, HEX = Hex, DEC = Dec, OCT = Oct, BIN = Bin }" @@ -125,19 +125,19 @@ Inherits QFrame. .br .in -1c .SH DESCRIPTION -The QLCDNumber widget displays a number with LCD-like digits. +The TQLCDNumber widget displays a number with LCD-like digits. .PP It can display a number in just about any size. It can display decimal, hexadecimal, octal or binary numbers. It is easy to connect to data sources using the display() slot, which is overloaded to take any of five argument types. .PP There are also slots to change the base with setMode() and the decimal point with setSmallDecimalPoint(). .PP -QLCDNumber emits the overflow() signal when it is asked to display something beyond its range. The range is set by setNumDigits(), but setSmallDecimalPoint() also influences it. If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed. +TQLCDNumber emits the overflow() signal when it is asked to display something beyond its range. The range is set by setNumDigits(), but setSmallDecimalPoint() also influences it. If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed. .PP -These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters. +These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. TQLCDNumber substitutes spaces for illegal characters. .PP -It is not possible to retrieve the contents of a QLCDNumber object, although you can retrieve the numeric value with value(). If you really need the text, we recommend that you connect the signals that feed the display() slot to another slot as well and store the value there. +It is not possible to retrieve the contents of a TQLCDNumber object, although you can retrieve the numeric value with value(). If you really need the text, we recommend that you connect the signals that feed the display() slot to another slot as well and store the value there. .PP -Incidentally, QLCDNumber is the very oldest part of Qt, tracing back to a BASIC program on the Sinclair Spectrum. +Incidentally, TQLCDNumber is the very oldest part of Qt, tracing back to a BASIC program on the Sinclair Spectrum. .PP .ce 1 .B "[Image Omitted]" @@ -148,109 +148,109 @@ Incidentally, QLCDNumber is the very oldest part of Qt, tracing back to a BASIC .PP See also TQLabel, QFrame, and Basic Widgets. .SS "Member Type Documentation" -.SH "QLCDNumber::Mode" +.SH "TQLCDNumber::Mode" This type determines how numbers are shown. .TP -\fCQLCDNumber::Hex\fR - Hexadecimal +\fCTQLCDNumber::Hex\fR - Hexadecimal .TP -\fCQLCDNumber::Dec\fR - Decimal +\fCTQLCDNumber::Dec\fR - Decimal .TP -\fCQLCDNumber::Oct\fR - Octal +\fCTQLCDNumber::Oct\fR - Octal .TP -\fCQLCDNumber::Bin\fR - Binary +\fCTQLCDNumber::Bin\fR - Binary .PP If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed. -.SH "QLCDNumber::SegmentStyle" -This type determines the visual appearance of the QLCDNumber widget. +.SH "TQLCDNumber::SegmentStyle" +This type determines the visual appearance of the TQLCDNumber widget. .TP -\fCQLCDNumber::Outline\fR - gives raised segments filled with the background brush. +\fCTQLCDNumber::Outline\fR - gives raised segments filled with the background brush. .TP -\fCQLCDNumber::Filled\fR - gives raised segments filled with the foreground brush. +\fCTQLCDNumber::Filled\fR - gives raised segments filled with the foreground brush. .TP -\fCQLCDNumber::Flat\fR - gives flat segments filled with the foreground brush. +\fCTQLCDNumber::Flat\fR - gives flat segments filled with the foreground brush. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QLCDNumber::QLCDNumber ( TQWidget * parent = 0, const char * name = 0 )" +.SH "TQLCDNumber::TQLCDNumber ( TQWidget * parent = 0, const char * name = 0 )" Constructs an LCD number, sets the number of digits to 5, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Outline. .PP The \fIparent\fR and \fIname\fR arguments are passed to the QFrame constructor. .PP See also numDigits and smallDecimalPoint. -.SH "QLCDNumber::QLCDNumber ( uint numDigits, TQWidget * parent = 0, const char * name = 0 )" +.SH "TQLCDNumber::TQLCDNumber ( uint numDigits, TQWidget * parent = 0, const char * name = 0 )" Constructs an LCD number, sets the number of digits to \fInumDigits\fR, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to Outline. .PP The \fIparent\fR and \fIname\fR arguments are passed to the QFrame constructor. .PP See also numDigits and smallDecimalPoint. -.SH "QLCDNumber::~QLCDNumber ()" +.SH "TQLCDNumber::~TQLCDNumber ()" Destroys the LCD number. -.SH "bool QLCDNumber::checkOverflow ( double num ) const" +.SH "bool TQLCDNumber::checkOverflow ( double num ) const" Returns TRUE if \fInum\fR is too big to be displayed in its entirety; otherwise returns FALSE. .PP See also display(), numDigits, and smallDecimalPoint. -.SH "bool QLCDNumber::checkOverflow ( int num ) const" +.SH "bool TQLCDNumber::checkOverflow ( int num ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fInum\fR is too big to be displayed in its entirety; otherwise returns FALSE. .PP See also display(), numDigits, and smallDecimalPoint. -.SH "void QLCDNumber::display ( const TQString & s )\fC [slot]\fR" +.SH "void TQLCDNumber::display ( const TQString & s )\fC [slot]\fR" Displays the number represented by the string \fIs\fR. .PP This version of the function disregards mode() and smallDecimalPoint(). .PP -These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters. +These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. TQLCDNumber substitutes spaces for illegal characters. .PP Examples: .)l rangecontrols/rangecontrols.cpp, t12/lcdrange.cpp, t13/gamebrd.cpp, t5/main.cpp, t6/main.cpp, t7/lcdrange.cpp, and xform/xform.cpp. -.SH "void QLCDNumber::display ( int num )\fC [slot]\fR" +.SH "void TQLCDNumber::display ( int num )\fC [slot]\fR" Sets the displayed value rounded to the nearest integer to \fInum\fR. See the "intValue" property for details. -.SH "void QLCDNumber::display ( double num )\fC [slot]\fR" +.SH "void TQLCDNumber::display ( double num )\fC [slot]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Displays the number \fInum\fR. -.SH "void QLCDNumber::drawContents ( TQPainter * p )\fC [virtual protected]\fR" +.SH "void TQLCDNumber::drawContents ( TQPainter * p )\fC [virtual protected]\fR" Draws the LCD number using painter \fIp\fR. This function is called from QFrame::paintEvent(). .PP Reimplemented from QFrame. -.SH "int QLCDNumber::intValue () const" +.SH "int TQLCDNumber::intValue () const" Returns the displayed value rounded to the nearest integer. See the "intValue" property for details. -.SH "Mode QLCDNumber::mode () const" +.SH "Mode TQLCDNumber::mode () const" Returns the current display mode (number base). See the "mode" property for details. -.SH "int QLCDNumber::numDigits () const" +.SH "int TQLCDNumber::numDigits () const" Returns the current number of digits displayed. See the "numDigits" property for details. -.SH "void QLCDNumber::overflow ()\fC [signal]\fR" -This signal is emitted whenever the QLCDNumber is asked to display a too-large number or a too-long string. +.SH "void TQLCDNumber::overflow ()\fC [signal]\fR" +This signal is emitted whenever the TQLCDNumber is asked to display a too-large number or a too-long string. .PP It is never emitted by setNumDigits(). -.SH "SegmentStyle QLCDNumber::segmentStyle () const" +.SH "SegmentStyle TQLCDNumber::segmentStyle () const" Returns the style of the LCDNumber. See the "segmentStyle" property for details. -.SH "void QLCDNumber::setBinMode ()\fC [virtual slot]\fR" +.SH "void TQLCDNumber::setBinMode ()\fC [virtual slot]\fR" Calls setMode( BIN ). Provided for convenience (e.g. for connecting buttons to it). .PP See also mode, setHexMode(), setDecMode(), setOctMode(), and mode. -.SH "void QLCDNumber::setDecMode ()\fC [virtual slot]\fR" +.SH "void TQLCDNumber::setDecMode ()\fC [virtual slot]\fR" Calls setMode( DEC ). Provided for convenience (e.g. for connecting buttons to it). .PP See also mode, setHexMode(), setOctMode(), setBinMode(), and mode. -.SH "void QLCDNumber::setHexMode ()\fC [virtual slot]\fR" +.SH "void TQLCDNumber::setHexMode ()\fC [virtual slot]\fR" Calls setMode( HEX ). Provided for convenience (e.g. for connecting buttons to it). .PP See also mode, setDecMode(), setOctMode(), setBinMode(), and mode. -.SH "void QLCDNumber::setMode ( Mode )\fC [virtual]\fR" +.SH "void TQLCDNumber::setMode ( Mode )\fC [virtual]\fR" Sets the current display mode (number base). See the "mode" property for details. -.SH "void QLCDNumber::setNumDigits ( int nDigits )\fC [virtual]\fR" +.SH "void TQLCDNumber::setNumDigits ( int nDigits )\fC [virtual]\fR" Sets the current number of digits displayed to \fInDigits\fR. See the "numDigits" property for details. -.SH "void QLCDNumber::setOctMode ()\fC [virtual slot]\fR" +.SH "void TQLCDNumber::setOctMode ()\fC [virtual slot]\fR" Calls setMode( OCT ). Provided for convenience (e.g. for connecting buttons to it). .PP See also mode, setHexMode(), setDecMode(), setBinMode(), and mode. -.SH "void QLCDNumber::setSegmentStyle ( SegmentStyle )\fC [virtual]\fR" +.SH "void TQLCDNumber::setSegmentStyle ( SegmentStyle )\fC [virtual]\fR" Sets the style of the LCDNumber. See the "segmentStyle" property for details. -.SH "void QLCDNumber::setSmallDecimalPoint ( bool )\fC [virtual slot]\fR" +.SH "void TQLCDNumber::setSmallDecimalPoint ( bool )\fC [virtual slot]\fR" Sets the style of the decimal point. See the "smallDecimalPoint" property for details. -.SH "bool QLCDNumber::smallDecimalPoint () const" +.SH "bool TQLCDNumber::smallDecimalPoint () const" Returns the style of the decimal point. See the "smallDecimalPoint" property for details. -.SH "double QLCDNumber::value () const" +.SH "double TQLCDNumber::value () const" Returns the displayed value. See the "value" property for details. .SS "Property Documentation" .SH "int intValue" @@ -272,7 +272,7 @@ Set this property's value with setMode() and get this property's value with mode .SH "int numDigits" This property holds the current number of digits displayed. .PP -Corresponds to the current number of digits. If QLCDNumber::smallDecimalPoint is FALSE, the decimal point occupies one digit position. +Corresponds to the current number of digits. If TQLCDNumber::smallDecimalPoint is FALSE, the decimal point occupies one digit position. .PP See also smallDecimalPoint. .PP @@ -310,7 +310,7 @@ If the displayed value is not a number, the property has a value of 0. Set this property's value with display() and get this property's value with value(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqlcdnumber.html +.BR http://doc.trolltech.com/tqlcdnumber.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |