From 42957a3f812a1db64a9ae452baa2d3fbc35f2466 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 12 Aug 2024 22:02:11 +0900 Subject: Rename more widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/man/man3/tqtableitem.3qt | 152 +++++++++++++++++++++---------------------- 1 file changed, 76 insertions(+), 76 deletions(-) (limited to 'doc/man/man3/tqtableitem.3qt') diff --git a/doc/man/man3/tqtableitem.3qt b/doc/man/man3/tqtableitem.3qt index 94edc175..73fbcdda 100644 --- a/doc/man/man3/tqtableitem.3qt +++ b/doc/man/man3/tqtableitem.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTableItem 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTableItem 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 -QTableItem \- The cell content for QTable cells +TQTableItem \- The cell content for TQTable cells .SH SYNOPSIS -\fC#include \fR +\fC#include \fR .PP Inherits Qt. .PP @@ -21,16 +21,16 @@ Inherited by TQComboTableItem and TQCheckTableItem. .BI "enum \fBEditType\fR { Never, OnTyping, WhenCurrent, Always }" .br .ti -1c -.BI "\fBQTableItem\fR ( QTable * table, EditType et )" +.BI "\fBTQTableItem\fR ( TQTable * table, EditType et )" .br .ti -1c -.BI "\fBQTableItem\fR ( QTable * table, EditType et, const TQString & text )" +.BI "\fBTQTableItem\fR ( TQTable * table, EditType et, const TQString & text )" .br .ti -1c -.BI "\fBQTableItem\fR ( QTable * table, EditType et, const TQString & text, const TQPixmap & p )" +.BI "\fBTQTableItem\fR ( TQTable * table, EditType et, const TQString & text, const TQPixmap & p )" .br .ti -1c -.BI "virtual \fB~QTableItem\fR ()" +.BI "virtual \fB~TQTableItem\fR ()" .br .ti -1c .BI "virtual TQPixmap \fBpixmap\fR () const" @@ -45,7 +45,7 @@ Inherited by TQComboTableItem and TQCheckTableItem. .BI "virtual void \fBsetText\fR ( const TQString & str )" .br .ti -1c -.BI "QTable * \fBtable\fR () const" +.BI "TQTable * \fBtable\fR () const" .br .ti -1c .BI "virtual int \fBalignment\fR () const" @@ -112,17 +112,17 @@ Inherited by TQComboTableItem and TQCheckTableItem. .br .in -1c .SH DESCRIPTION -The QTableItem class provides the cell content for QTable cells. +The TQTableItem class provides the cell content for TQTable cells. .PP -For many applications QTableItems are ideal for presenting and editing the contents of QTable cells. In situations where you need to create very large tables you may prefer an alternative approach to using QTableItems: see the notes on large tables. +For many applications TQTableItems are ideal for presenting and editing the contents of TQTable cells. In situations where you need to create very large tables you may prefer an alternative approach to using TQTableItems: see the notes on large tables. .PP -A QTableItem contains a cell's data, by default, a string and a pixmap. The table item also holds the cell's display size and how the data should be aligned. The table item specifies the cell's EditType and the editor used for in-place editing (by default a TQLineEdit). If you want checkboxes use TQCheckTableItem, and if you want comboboxes use TQComboTableItem. The EditType (set in the constructor) determines whether the cell's contents may be edited. +A TQTableItem contains a cell's data, by default, a string and a pixmap. The table item also holds the cell's display size and how the data should be aligned. The table item specifies the cell's EditType and the editor used for in-place editing (by default a TQLineEdit). If you want checkboxes use TQCheckTableItem, and if you want comboboxes use TQComboTableItem. The EditType (set in the constructor) determines whether the cell's contents may be edited. .PP If a pixmap is specified it is displayed to the left of any text. You can change the text or pixmap with setText() and setPixmap() respectively. For text you can use setWordWrap(). .PP When sorting table items the key() function is used; by default this returns the table item's text(). Reimplement key() to customize how your table items will sort. .PP -Table items are inserted into a table using QTable::setItem(). If you insert an item into a cell that already contains a table item the original item will be deleted. +Table items are inserted into a table using TQTable::setItem(). If you insert an item into a cell that already contains a table item the original item will be deleted. .PP Example: .PP @@ -134,7 +134,7 @@ Example: .br table->setItem( row, col, .br - new QTableItem( table, QTableItem::WhenCurrent, TQString::number( row * col ) ) ); + new TQTableItem( table, TQTableItem::WhenCurrent, TQString::number( row * col ) ) ); .br } .br @@ -142,7 +142,7 @@ Example: .br .fi .PP -You can move a table item from one cell to another, in the same or a different table, using QTable::takeItem() and QTable::setItem() but see also QTable::swapCells(). +You can move a table item from one cell to another, in the same or a different table, using TQTable::takeItem() and TQTable::setItem() but see also TQTable::swapCells(). .PP Table items can be deleted with delete in the standard way; the table and cell will be updated accordingly. .PP @@ -170,7 +170,7 @@ It is important to ensure that your custom widget can accept the keyboard focus, .br .fi .PP -By default, table items may be replaced by new QTableItems during the lifetime of a QTable. Therefore, if you create your own subclass of QTableItem, and you want to ensure that this does not happen, you must call setReplaceable(FALSE) in the constructor of your subclass. +By default, table items may be replaced by new TQTableItems during the lifetime of a TQTable. Therefore, if you create your own subclass of TQTableItem, and you want to ensure that this does not happen, you must call setReplaceable(FALSE) in the constructor of your subclass. .PP
.ce 1 @@ -181,70 +181,70 @@ By default, table items may be replaced by new QTableItems during the lifetime o See also TQCheckTableItem, TQComboTableItem, and Advanced Widgets. .PP .SS "Member Type Documentation" -.SH "QTableItem::EditType" +.SH "TQTableItem::EditType" This enum is used to define whether a cell is editable or read-only (in conjunction with other settings), and how the cell should be displayed. .TP -\fCQTableItem::Always\fR - The cell always \fIlooks\fR editable. +\fCTQTableItem::Always\fR - The cell always \fIlooks\fR editable. .PP Using this EditType ensures that the editor created with createEditor() (by default a TQLineEdit) is always visible. This has implications for the alignment of the content: the default editor aligns everything (even numbers) to the left whilst numerical values in the cell are by default aligned to the right. .PP If a cell with the edit type Always looks misaligned you could reimplement createEditor() for these items. .TP -\fCQTableItem::WhenCurrent\fR - The cell \fIlooks\fR editable only when it has keyboard focus (see QTable::setCurrentCell()). +\fCTQTableItem::WhenCurrent\fR - The cell \fIlooks\fR editable only when it has keyboard focus (see TQTable::setCurrentCell()). .TP -\fCQTableItem::OnTyping\fR - The cell \fIlooks\fR editable only when the user types in it or double-clicks it. It resembles the WhenCurrent functionality but is, perhaps, nicer. +\fCTQTableItem::OnTyping\fR - The cell \fIlooks\fR editable only when the user types in it or double-clicks it. It resembles the WhenCurrent functionality but is, perhaps, nicer. .PP -The OnTyping edit type is the default when QTableItem objects are created by the convenience functions QTable::setText() and QTable::setPixmap(). +The OnTyping edit type is the default when TQTableItem objects are created by the convenience functions TQTable::setText() and TQTable::setPixmap(). .TP -\fCQTableItem::Never\fR - The cell is not editable. +\fCTQTableItem::Never\fR - The cell is not editable. .PP -The cell is actually editable only if QTable::isRowReadOnly() is FALSE for its row, QTable::isColumnReadOnly() is FALSE for its column, and QTable::isReadOnly() is FALSE. +The cell is actually editable only if TQTable::isRowReadOnly() is FALSE for its row, TQTable::isColumnReadOnly() is FALSE for its column, and TQTable::isReadOnly() is FALSE. .PP TQComboTableItems have an isEditable() property. This property is used to indicate whether the user may enter their own text or are restricted to choosing one of the choices in the list. TQComboTableItems may be interacted with only if they are editable in accordance with their EditType as described above. .PP .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTableItem::QTableItem ( QTable * table, EditType et )" +.SH "TQTableItem::TQTableItem ( TQTable * table, EditType et )" Creates a table item that is a child of table \fItable\fR with no text. The item has the EditType \fIet\fR. .PP -The table item will use a TQLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem(). +The table item will use a TQLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with TQTable::setItem(). .PP The table takes ownership of the table item, so a table item should not be inserted into more than one table at a time. -.SH "QTableItem::QTableItem ( QTable * table, EditType et, const TQString & text )" +.SH "TQTableItem::TQTableItem ( TQTable * table, EditType et, const TQString & text )" Creates a table item that is a child of table \fItable\fR with text \fItext\fR. The item has the EditType \fIet\fR. .PP -The table item will use a TQLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem(). +The table item will use a TQLineEdit for its editor, will not word-wrap and will occupy a single cell. Insert the table item into a table with TQTable::setItem(). .PP The table takes ownership of the table item, so a table item should not be inserted into more than one table at a time. -.SH "QTableItem::QTableItem ( QTable * table, EditType et, const TQString & text, const TQPixmap & p )" +.SH "TQTableItem::TQTableItem ( TQTable * table, EditType et, const TQString & text, const TQPixmap & p )" Creates a table item that is a child of table \fItable\fR with text \fItext\fR and pixmap \fIp\fR. The item has the EditType \fIet\fR. .PP -The table item will display the pixmap to the left of the text. It will use a TQLineEdit for editing the text, will not word-wrap and will occupy a single cell. Insert the table item into a table with QTable::setItem(). +The table item will display the pixmap to the left of the text. It will use a TQLineEdit for editing the text, will not word-wrap and will occupy a single cell. Insert the table item into a table with TQTable::setItem(). .PP The table takes ownership of the table item, so a table item should not be inserted in more than one table at a time. -.SH "QTableItem::~QTableItem ()\fC [virtual]\fR" +.SH "TQTableItem::~TQTableItem ()\fC [virtual]\fR" The destructor deletes this item and frees all allocated resources. .PP If the table item is in a table (i.e. was inserted with setItem()), it will be removed from the table and the cell it occupied. -.SH "int QTableItem::alignment () const\fC [virtual]\fR" +.SH "int TQTableItem::alignment () const\fC [virtual]\fR" The alignment function returns how the text contents of the cell are aligned when drawn. The default implementation aligns numbers to the right and any other text to the left. .PP See also TQt::AlignmentFlags. -.SH "int QTableItem::col () const" +.SH "int TQTableItem::col () const" Returns the column where the table item is located. If the cell spans multiple columns, this function returns the left-most column. .PP See also row() and setCol(). .PP Example: table/bigtable/main.cpp. -.SH "int QTableItem::colSpan () const" +.SH "int TQTableItem::colSpan () const" Returns the column span of the table item, usually 1. .PP See also setSpan() and rowSpan(). -.SH "TQWidget * QTableItem::createEditor () const\fC [virtual]\fR" +.SH "TQWidget * TQTableItem::createEditor () const\fC [virtual]\fR" This virtual function creates an editor which the user can interact with to edit the cell's contents. The default implementation creates a TQLineEdit. .PP If the function returns 0, the cell is read-only. .PP -The returned widget should preferably be invisible, ideally with QTable::viewport() as parent. +The returned widget should preferably be invisible, ideally with TQTable::viewport() as parent. .PP If you reimplement this function you'll almost certainly need to reimplement setContentFromEditor(), and may need to reimplement sizeHint(). .PP @@ -271,30 +271,30 @@ If you reimplement this function you'll almost certainly need to reimplement set return cb; .fi .PP -See also QTable::createEditor(), setContentFromEditor(), QTable::viewport(), and setReplaceable(). +See also TQTable::createEditor(), setContentFromEditor(), TQTable::viewport(), and setReplaceable(). .PP Example: table/statistics/statistics.cpp. -.SH "EditType QTableItem::editType () const" +.SH "EditType TQTableItem::editType () const" Returns the table item's edit type. .PP This is set when the table item is constructed. .PP -See also EditType and QTableItem(). -.SH "bool QTableItem::isEnabled () const" +See also EditType and TQTableItem(). +.SH "bool TQTableItem::isEnabled () const" Returns TRUE if the table item is enabled; otherwise returns FALSE. .PP See also setEnabled(). -.SH "bool QTableItem::isReplaceable () const" +.SH "bool TQTableItem::isReplaceable () const" This function returns whether the contents of the cell may be replaced with the contents of another table item. Regardless of this setting, table items that span more than one cell may not have their contents replaced by another table item. .PP (This differs from EditType because EditType is concerned with whether the \fIuser\fR is able to change the contents of a cell.) .PP See also setReplaceable() and EditType. -.SH "TQString QTableItem::key () const\fC [virtual]\fR" +.SH "TQString TQTableItem::key () const\fC [virtual]\fR" This virtual function returns the key that should be used for sorting. The default implementation returns the text() of the relevant item. .PP -See also QTable::sorting. -.SH "void QTableItem::paint ( TQPainter * p, const TQColorGroup & cg, const TQRect & cr, bool selected )\fC [virtual]\fR" +See also TQTable::sorting. +.SH "void TQTableItem::paint ( TQPainter * p, const TQColorGroup & cg, const TQRect & cr, bool selected )\fC [virtual]\fR" This virtual function is used to paint the contents of an item using the painter \fIp\fR in the rectangular area \fIcr\fR using the color group \fIcg\fR. .PP If \fIselected\fR is TRUE the cell is displayed in a way that indicates that it is highlighted. @@ -316,36 +316,36 @@ Note that the painter is not clipped by default in order to get maximum efficien .fi .PP Example: table/statistics/statistics.cpp. -.SH "TQPixmap QTableItem::pixmap () const\fC [virtual]\fR" +.SH "TQPixmap TQTableItem::pixmap () const\fC [virtual]\fR" Returns the table item's pixmap or a null pixmap if no pixmap has been set. .PP See also setPixmap() and text(). -.SH "int QTableItem::row () const" +.SH "int TQTableItem::row () const" Returns the row where the table item is located. If the cell spans multiple rows, this function returns the top-most row. .PP See also col() and setRow(). .PP Example: table/bigtable/main.cpp. -.SH "int QTableItem::rowSpan () const" +.SH "int TQTableItem::rowSpan () const" Returns the row span of the table item, usually 1. .PP See also setSpan() and colSpan(). -.SH "int QTableItem::rtti () const\fC [virtual]\fR" -Returns the Run Time Type Identification value for this table item which for QTableItems is 0. +.SH "int TQTableItem::rtti () const\fC [virtual]\fR" +Returns the Run Time Type Identification value for this table item which for TQTableItems is 0. .PP -When you create subclasses based on QTableItem make sure that each subclass returns a unique rtti() value. It is advisable to use values greater than 1000, preferably large random numbers, to allow for extensions to this class. +When you create subclasses based on TQTableItem make sure that each subclass returns a unique rtti() value. It is advisable to use values greater than 1000, preferably large random numbers, to allow for extensions to this class. .PP See also TQCheckTableItem::rtti() and TQComboTableItem::rtti(). .PP Reimplemented in TQComboTableItem and TQCheckTableItem. -.SH "void QTableItem::setCol ( int c )\fC [virtual]\fR" +.SH "void TQTableItem::setCol ( int c )\fC [virtual]\fR" Sets column \fIc\fR as the table item's column. Usually you will not need to call this function. .PP If the cell spans multiple columns, this function sets the left-most column and retains the width of the multi-cell table item. .PP See also col(), setRow(), and colSpan(). -.SH "void QTableItem::setContentFromEditor ( TQWidget * w )\fC [virtual]\fR" -Whenever the content of a cell has been edited by the editor \fIw\fR, QTable calls this virtual function to copy the new values into the QTableItem. +.SH "void TQTableItem::setContentFromEditor ( TQWidget * w )\fC [virtual]\fR" +Whenever the content of a cell has been edited by the editor \fIw\fR, TQTable calls this virtual function to copy the new values into the TQTableItem. .PP If you reimplement createEditor() and return something that is not a TQLineEdit you will need to reimplement this function. .PP @@ -365,65 +365,65 @@ If you reimplement createEditor() and return something that is not a TQLineEdit .br else .br - QTableItem::setContentFromEditor( w ); + TQTableItem::setContentFromEditor( w ); .fi .PP -See also QTable::setCellContentFromEditor(). +See also TQTable::setCellContentFromEditor(). .PP Example: table/statistics/statistics.cpp. -.SH "void QTableItem::setEnabled ( bool b )\fC [virtual]\fR" +.SH "void TQTableItem::setEnabled ( bool b )\fC [virtual]\fR" If \fIb\fR is TRUE, the table item is enabled; if \fIb\fR is FALSE the table item is disabled. .PP A disabled item doesn't respond to user interaction. .PP See also isEnabled(). -.SH "void QTableItem::setPixmap ( const TQPixmap & p )\fC [virtual]\fR" +.SH "void TQTableItem::setPixmap ( const TQPixmap & p )\fC [virtual]\fR" Sets pixmap \fIp\fR to be this item's pixmap. .PP -Note that setPixmap() does not update the cell the table item belongs to. Use QTable::updateCell() to repaint the cell's contents. +Note that setPixmap() does not update the cell the table item belongs to. Use TQTable::updateCell() to repaint the cell's contents. .PP For TQComboTableItems and TQCheckTableItems this function has no visible effect. .PP -See also QTable::setPixmap(), pixmap(), and setText(). -.SH "void QTableItem::setReplaceable ( bool b )\fC [virtual]\fR" -If \fIb\fR is TRUE it is acceptable to replace the contents of the cell with the contents of another QTableItem. If \fIb\fR is FALSE the contents of the cell may not be replaced by the contents of another table item. Table items that span more than one cell may not have their contents replaced by another table item. +See also TQTable::setPixmap(), pixmap(), and setText(). +.SH "void TQTableItem::setReplaceable ( bool b )\fC [virtual]\fR" +If \fIb\fR is TRUE it is acceptable to replace the contents of the cell with the contents of another TQTableItem. If \fIb\fR is FALSE the contents of the cell may not be replaced by the contents of another table item. Table items that span more than one cell may not have their contents replaced by another table item. .PP (This differs from EditType because EditType is concerned with whether the \fIuser\fR is able to change the contents of a cell.) .PP See also isReplaceable(). -.SH "void QTableItem::setRow ( int r )\fC [virtual]\fR" +.SH "void TQTableItem::setRow ( int r )\fC [virtual]\fR" Sets row \fIr\fR as the table item's row. Usually you do not need to call this function. .PP If the cell spans multiple rows, this function sets the top row and retains the height of the multi-cell table item. .PP See also row(), setCol(), and rowSpan(). -.SH "void QTableItem::setSpan ( int rs, int cs )\fC [virtual]\fR" -Changes the extent of the QTableItem so that it spans multiple cells covering \fIrs\fR rows and \fIcs\fR columns. The top left cell is the original cell. +.SH "void TQTableItem::setSpan ( int rs, int cs )\fC [virtual]\fR" +Changes the extent of the TQTableItem so that it spans multiple cells covering \fIrs\fR rows and \fIcs\fR columns. The top left cell is the original cell. .PP -\fBWarning:\fR This function only works if the item has already been inserted into the table using e.g. QTable::setItem(). This function also checks to make sure if \fIrs\fR and \fIcs\fR are within the bounds of the table and returns without changing the span if they are not. In addition swapping, inserting or removing rows and columns that cross QTableItems spanning more than one cell is not supported. +\fBWarning:\fR This function only works if the item has already been inserted into the table using e.g. TQTable::setItem(). This function also checks to make sure if \fIrs\fR and \fIcs\fR are within the bounds of the table and returns without changing the span if they are not. In addition swapping, inserting or removing rows and columns that cross TQTableItems spanning more than one cell is not supported. .PP See also rowSpan() and colSpan(). -.SH "void QTableItem::setText ( const TQString & str )\fC [virtual]\fR" +.SH "void TQTableItem::setText ( const TQString & str )\fC [virtual]\fR" Changes the table item's text to \fIstr\fR. .PP -Note that setText() does not update the cell the table item belongs to. Use QTable::updateCell() to repaint the cell's contents. +Note that setText() does not update the cell the table item belongs to. Use TQTable::updateCell() to repaint the cell's contents. .PP -See also QTable::setText(), text(), setPixmap(), and QTable::updateCell(). +See also TQTable::setText(), text(), setPixmap(), and TQTable::updateCell(). .PP Example: table/statistics/statistics.cpp. -.SH "void QTableItem::setWordWrap ( bool b )\fC [virtual]\fR" +.SH "void TQTableItem::setWordWrap ( bool b )\fC [virtual]\fR" If \fIb\fR is TRUE, the cell's text will be wrapped over multiple lines, when necessary, to fit the width of the cell; otherwise the text will be written as a single line. .PP -See also wordWrap(), QTable::adjustColumn(), and QTable::setColumnStretchable(). -.SH "TQSize QTableItem::sizeHint () const\fC [virtual]\fR" +See also wordWrap(), TQTable::adjustColumn(), and TQTable::setColumnStretchable(). +.SH "TQSize TQTableItem::sizeHint () const\fC [virtual]\fR" This virtual function returns the size a cell needs to show its entire content. .PP -If you subclass QTableItem you will often need to reimplement this function. -.SH "QTable * QTableItem::table () const" -Returns the QTable the table item belongs to. +If you subclass TQTableItem you will often need to reimplement this function. +.SH "TQTable * TQTableItem::table () const" +Returns the TQTable the table item belongs to. .PP -See also QTable::setItem() and QTableItem(). -.SH "TQString QTableItem::text () const\fC [virtual]\fR" +See also TQTable::setItem() and TQTableItem(). +.SH "TQString TQTableItem::text () const\fC [virtual]\fR" Returns the text of the table item or TQString::null if there is no text. .PP To ensure that the current value of the editor is returned, setContentFromEditor() is called:
    @@ -435,13 +435,13 @@ if editMode() is \fInot\fR Always but the editor of the cell is active and the e This means that text() returns the original text value of the item if the editor is a line edit, until the user commits an edit (e.g. by pressing Enter or Tab) in which case the new text is returned. For other editors (e.g. a combobox) setContentFromEditor() is always called so the currently display value is the one returned. .PP See also setText() and pixmap(). -.SH "bool QTableItem::wordWrap () const" +.SH "bool TQTableItem::wordWrap () const" Returns TRUE if word wrap is enabled for the cell; otherwise returns FALSE. .PP See also setWordWrap(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtableitem.html +.BR http://doc.trolltech.com/tqtableitem.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -- cgit v1.2.1