diff options
Diffstat (limited to 'doc/man/man3/tqdatabrowser.3qt')
-rw-r--r-- | doc/man/man3/tqdatabrowser.3qt | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/doc/man/man3/tqdatabrowser.3qt b/doc/man/man3/tqdatabrowser.3qt index 76a5b49a6..4ac8e2b7f 100644 --- a/doc/man/man3/tqdatabrowser.3qt +++ b/doc/man/man3/tqdatabrowser.3qt @@ -1,5 +1,5 @@ '\" t -.TH QDataBrowser 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQDataBrowser 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 -QDataBrowser \- Data manipulation and navigation for data entry forms +TQDataBrowser \- Data manipulation and navigation for data entry forms .SH SYNOPSIS -\fC#include <ntqdatabrowser.h>\fR +\fC#include <tqdatabrowser.h>\fR .PP Inherits TQWidget. .PP @@ -19,7 +19,7 @@ Inherits TQWidget. .BI "\fBQDataBrowser\fR ( TQWidget * parent = 0, const char * name = 0, WFlags fl = 0 )" .br .ti -1c -.BI "\fB~QDataBrowser\fR ()" +.BI "\fB~TQDataBrowser\fR ()" .br .ti -1c .BI "enum \fBBoundary\fR { Unknown, None, BeforeBeginning, Beginning, End, AfterEnd }" @@ -34,7 +34,7 @@ Inherits TQWidget. .BI "bool \fBboundaryChecking\fR () const" .br .ti -1c -.BI "void \fBsetSort\fR ( const QSqlIndex & sort )" +.BI "void \fBsetSort\fR ( const TQSqlIndex & sort )" .br .ti -1c .BI "void \fBsetSort\fR ( const QStringList & sort )" @@ -49,16 +49,16 @@ Inherits TQWidget. .BI "TQString \fBfilter\fR () const" .br .ti -1c -.BI "virtual void \fBsetSqlCursor\fR ( QSqlCursor * cursor, bool autoDelete = FALSE )" +.BI "virtual void \fBsetSqlCursor\fR ( TQSqlCursor * cursor, bool autoDelete = FALSE )" .br .ti -1c -.BI "QSqlCursor * \fBsqlCursor\fR () const" +.BI "TQSqlCursor * \fBsqlCursor\fR () const" .br .ti -1c -.BI "virtual void \fBsetForm\fR ( QSqlForm * form )" +.BI "virtual void \fBsetForm\fR ( TQSqlForm * form )" .br .ti -1c -.BI "QSqlForm * \fBform\fR ()" +.BI "TQSqlForm * \fBform\fR ()" .br .ti -1c .BI "virtual void \fBsetConfirmEdits\fR ( bool confirm )" @@ -160,28 +160,28 @@ Inherits TQWidget. .BI "void \fBprevRecordAvailable\fR ( bool available )" .br .ti -1c -.BI "void \fBcurrentChanged\fR ( const QSqlRecord * record )" +.BI "void \fBcurrentChanged\fR ( const TQSqlRecord * record )" .br .ti -1c -.BI "void \fBprimeInsert\fR ( QSqlRecord * buf )" +.BI "void \fBprimeInsert\fR ( TQSqlRecord * buf )" .br .ti -1c -.BI "void \fBprimeUpdate\fR ( QSqlRecord * buf )" +.BI "void \fBprimeUpdate\fR ( TQSqlRecord * buf )" .br .ti -1c -.BI "void \fBprimeDelete\fR ( QSqlRecord * buf )" +.BI "void \fBprimeDelete\fR ( TQSqlRecord * buf )" .br .ti -1c -.BI "void \fBbeforeInsert\fR ( QSqlRecord * buf )" +.BI "void \fBbeforeInsert\fR ( TQSqlRecord * buf )" .br .ti -1c -.BI "void \fBbeforeUpdate\fR ( QSqlRecord * buf )" +.BI "void \fBbeforeUpdate\fR ( TQSqlRecord * buf )" .br .ti -1c -.BI "void \fBbeforeDelete\fR ( QSqlRecord * buf )" +.BI "void \fBbeforeDelete\fR ( TQSqlRecord * buf )" .br .ti -1c -.BI "void \fBcursorChanged\fR ( QSqlCursor::Mode mode )" +.BI "void \fBcursorChanged\fR ( TQSqlCursor::Mode mode )" .br .in -1c .SS "Properties" @@ -232,23 +232,23 @@ Inherits TQWidget. .BI "virtual bool \fBcurrentEdited\fR ()" .br .ti -1c -.BI "virtual QSql::Confirm \fBconfirmEdit\fR ( QSql::Op m )" +.BI "virtual TQSql::Confirm \fBconfirmEdit\fR ( TQSql::Op m )" .br .ti -1c -.BI "virtual QSql::Confirm \fBconfirmCancel\fR ( QSql::Op m )" +.BI "virtual TQSql::Confirm \fBconfirmCancel\fR ( TQSql::Op m )" .br .ti -1c -.BI "virtual void \fBhandleError\fR ( const QSqlError & error )" +.BI "virtual void \fBhandleError\fR ( const TQSqlError & error )" .br .in -1c .SH DESCRIPTION -The QDataBrowser class provides data manipulation and navigation for data entry forms. +The TQDataBrowser class provides data manipulation and navigation for data entry forms. .PP A high-level API is provided for navigating through data records in a cursor, for inserting, updating and deleting records, and for refreshing data in the display. .PP -If you want a read-only form to present database data use QDataView; if you want a table-based presentation of your data use QDataTable. +If you want a read-only form to present database data use TQDataView; if you want a table-based presentation of your data use TQDataTable. .PP -A QDataBrowser is used to associate a dataset with a form in much the same way as a QDataTable associates a dataset with a table. Once the data browser has been constructed it can be associated with a dataset with setSqlCursor(), and with a form with setForm(). Boundary checking, sorting and filtering can be set with setBoundaryChecking(), setSort() and setFilter(), respectively. +A TQDataBrowser is used to associate a dataset with a form in much the same way as a TQDataTable associates a dataset with a table. Once the data browser has been constructed it can be associated with a dataset with setSqlCursor(), and with a form with setForm(). Boundary checking, sorting and filtering can be set with setBoundaryChecking(), setSort() and setFilter(), respectively. .PP The insertCurrent() function reads the fields from the default form into the default cursor and performs the insert. The updateCurrent() and deleteCurrent() functions perform similarly to update and delete the current record respectively. .PP @@ -268,7 +268,7 @@ The form is populated with data from the database with readFields(). If the user .PP See also Database Classes. .SS "Member Type Documentation" -.SH "QDataBrowser::Boundary" +.SH "TQDataBrowser::Boundary" This enum describes where the data browser is positioned. .TP \fCQDataBrowser::Unknown\fR - the boundary cannot be determined (usually because there is no default cursor, or the default cursor is not active). @@ -283,73 +283,73 @@ This enum describes where the data browser is positioned. .TP \fCQDataBrowser::AfterEnd\fR - the browser is positioned after the last available record. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QDataBrowser::QDataBrowser ( TQWidget * parent = 0, const char * name = 0, WFlags fl = 0 )" +.SH "TQDataBrowser::TQDataBrowser ( TQWidget * parent = 0, const char * name = 0, WFlags fl = 0 )" Constructs a data browser which is a child of \fIparent\fR, with the name \fIname\fR and widget flags set to \fIfl\fR. -.SH "QDataBrowser::~QDataBrowser ()" +.SH "TQDataBrowser::~TQDataBrowser ()" Destroys the object and frees any allocated resources. -.SH "bool QDataBrowser::autoEdit () const" +.SH "bool TQDataBrowser::autoEdit () const" Returns TRUE if the browser automatically applies edits; otherwise returns FALSE. See the "autoEdit" property for details. -.SH "void QDataBrowser::beforeDelete ( QSqlRecord * buf )\fC [signal]\fR" +.SH "void TQDataBrowser::beforeDelete ( TQSqlRecord * buf )\fC [signal]\fR" This signal is emitted just before the cursor's edit buffer is deleted from the database. The \fIbuf\fR parameter points to the edit buffer being deleted. You might connect to this signal to capture some auditing information about the deletion. -.SH "void QDataBrowser::beforeInsert ( QSqlRecord * buf )\fC [signal]\fR" +.SH "void TQDataBrowser::beforeInsert ( TQSqlRecord * buf )\fC [signal]\fR" This signal is emitted just before the cursor's edit buffer is inserted into the database. The \fIbuf\fR parameter points to the edit buffer being inserted. You might connect to this signal to populate a generated primary key for example. -.SH "void QDataBrowser::beforeUpdate ( QSqlRecord * buf )\fC [signal]\fR" +.SH "void TQDataBrowser::beforeUpdate ( TQSqlRecord * buf )\fC [signal]\fR" This signal is emitted just before the cursor's edit buffer is updated in the database. The \fIbuf\fR parameter points to the edit buffer being updated. You might connect to this signal to capture some auditing information about the update. -.SH "Boundary QDataBrowser::boundary ()" +.SH "Boundary TQDataBrowser::boundary ()" Returns an enum indicating the boundary status of the browser. .PP -This is achieved by moving the default cursor and checking the position, however the current default form values will not be altered. After checking for the boundary, the cursor is moved back to its former position. See QDataBrowser::Boundary. +This is achieved by moving the default cursor and checking the position, however the current default form values will not be altered. After checking for the boundary, the cursor is moved back to its former position. See TQDataBrowser::Boundary. .PP See also Boundary. -.SH "bool QDataBrowser::boundaryChecking () const" +.SH "bool TQDataBrowser::boundaryChecking () const" Returns TRUE if boundary checking is active; otherwise returns FALSE. See the "boundaryChecking" property for details. -.SH "void QDataBrowser::clearValues ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::clearValues ()\fC [virtual slot]\fR" Clears all the values in the form. .PP -All the edit buffer field values are set to their 'zero state', e.g. 0 for numeric fields and "" for string fields. Then the widgets are updated using the property map. For example, a combobox that is property-mapped to integers would scroll to the first item. See the QSqlPropertyMap constructor for the default mappings of widgets to properties. -.SH "QSql::Confirm QDataBrowser::confirmCancel ( QSql::Op m )\fC [virtual protected]\fR" +All the edit buffer field values are set to their 'zero state', e.g. 0 for numeric fields and "" for string fields. Then the widgets are updated using the property map. For example, a combobox that is property-mapped to integers would scroll to the first item. See the TQSqlPropertyMap constructor for the default mappings of widgets to properties. +.SH "TQSql::Confirm TQDataBrowser::confirmCancel ( TQSql::Op m )\fC [virtual protected]\fR" Protected virtual function which returns a confirmation for cancelling an edit mode \fIm\fR. Derived classes can reimplement this function and provide their own confirmation dialog. The default implementation uses a message box which prompts the user to confirm the edit action. -.SH "bool QDataBrowser::confirmCancels () const" +.SH "bool TQDataBrowser::confirmCancels () const" Returns TRUE if the browser confirms cancel operations; otherwise returns FALSE. See the "confirmCancels" property for details. -.SH "bool QDataBrowser::confirmDelete () const" +.SH "bool TQDataBrowser::confirmDelete () const" Returns TRUE if the browser confirms deletions; otherwise returns FALSE. See the "confirmDelete" property for details. -.SH "QSql::Confirm QDataBrowser::confirmEdit ( QSql::Op m )\fC [virtual protected]\fR" +.SH "TQSql::Confirm TQDataBrowser::confirmEdit ( TQSql::Op m )\fC [virtual protected]\fR" Protected virtual function which returns a confirmation for an edit of mode \fIm\fR. Derived classes can reimplement this function and provide their own confirmation dialog. The default implementation uses a message box which prompts the user to confirm the edit action. -.SH "bool QDataBrowser::confirmEdits () const" +.SH "bool TQDataBrowser::confirmEdits () const" Returns TRUE if the browser confirms edits; otherwise returns FALSE. See the "confirmEdits" property for details. -.SH "bool QDataBrowser::confirmInsert () const" +.SH "bool TQDataBrowser::confirmInsert () const" Returns TRUE if the data browser confirms insertions; otherwise returns FALSE. See the "confirmInsert" property for details. -.SH "bool QDataBrowser::confirmUpdate () const" +.SH "bool TQDataBrowser::confirmUpdate () const" Returns TRUE if the browser confirms updates; otherwise returns FALSE. See the "confirmUpdate" property for details. -.SH "void QDataBrowser::currentChanged ( const QSqlRecord * record )\fC [signal]\fR" +.SH "void TQDataBrowser::currentChanged ( const TQSqlRecord * record )\fC [signal]\fR" This signal is emitted whenever the current cursor position changes. The \fIrecord\fR parameter points to the contents of the current cursor's record. -.SH "bool QDataBrowser::currentEdited ()\fC [virtual protected]\fR" +.SH "bool TQDataBrowser::currentEdited ()\fC [virtual protected]\fR" Returns TRUE if the form's edit buffer differs from the current cursor buffer; otherwise returns FALSE. -.SH "void QDataBrowser::cursorChanged ( QSqlCursor::Mode mode )\fC [signal]\fR" -This signal is emitted whenever the cursor record was changed due to navigation. The \fImode\fR parameter is the edit that just took place, e.g. Insert, Update or Delete. See QSqlCursor::Mode. -.SH "void QDataBrowser::del ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::cursorChanged ( TQSqlCursor::Mode mode )\fC [signal]\fR" +This signal is emitted whenever the cursor record was changed due to navigation. The \fImode\fR parameter is the edit that just took place, e.g. Insert, Update or Delete. See TQSqlCursor::Mode. +.SH "void TQDataBrowser::del ()\fC [virtual slot]\fR" Performs a delete operation on the data browser's cursor. If there is no default cursor or no default form, nothing happens. .PP Otherwise, the following happens: .PP The current form's record is deleted from the database, providing that the data browser is not in insert mode. If the data browser is actively inserting a record (see insert()), the insert action is canceled, and the browser navigates to the last valid record that was current. If there is an error, handleError() is called. -.SH "bool QDataBrowser::deleteCurrent ()\fC [virtual protected]\fR" +.SH "bool TQDataBrowser::deleteCurrent ()\fC [virtual protected]\fR" Performs a delete on the default cursor using the values from the default form and updates the default form. If there is no default form or no default cursor, nothing happens. If the deletion was successful, the cursor is repositioned to the nearest record and TRUE is returned. The nearest record is the next record if there is one otherwise the previous record if there is one. If an error occurred during the deletion from the database, handleError() is called and FALSE is returned. .PP See also cursor, form(), and handleError(). -.SH "TQString QDataBrowser::filter () const" +.SH "TQString TQDataBrowser::filter () const" Returns the data browser's filter. See the "filter" property for details. -.SH "void QDataBrowser::first ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::first ()\fC [virtual slot]\fR" Moves the default cursor to the first record and refreshes the default form to display this record. If there is no default form or no default cursor, nothing happens. If the data browser successfully navigated to the first record, the default cursor is primed for update and the primeUpdate() signal is emitted. .PP If the browser is already positioned on the first record nothing happens. -.SH "void QDataBrowser::firstRecordAvailable ( bool available )\fC [signal]\fR" +.SH "void TQDataBrowser::firstRecordAvailable ( bool available )\fC [signal]\fR" This signal is emitted whenever the position of the cursor changes. The \fIavailable\fR parameter indicates whether or not the first record in the default cursor is available. -.SH "QSqlForm * QDataBrowser::form ()" +.SH "TQSqlForm * TQDataBrowser::form ()" Returns the data browser's default form or 0 if no form has been set. -.SH "void QDataBrowser::handleError ( const QSqlError & error )\fC [virtual protected]\fR" +.SH "void TQDataBrowser::handleError ( const TQSqlError & error )\fC [virtual protected]\fR" Virtual function which handles the error \fIerror\fR. The default implementation warns the user with a message box. -.SH "void QDataBrowser::insert ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::insert ()\fC [virtual slot]\fR" Performs an insert operation on the data browser's cursor. If there is no default cursor or no default form, nothing happens. .PP If auto-editing is on (see setAutoEdit()), the following happens: @@ -362,106 +362,106 @@ If there is an error handling any of the above auto-edit actions, handleError() .PP If no error occurred, or auto-editing is not enabled, the data browser begins actively inserting a record into the database by performing the following actions: .TP -The default cursor is primed for insert using QSqlCursor::primeInsert(). +The default cursor is primed for insert using TQSqlCursor::primeInsert(). .TP The primeInsert() signal is emitted. .TP The form is updated with the values in the default cursor's. edit buffer so that the user can fill in the values to be inserted. -.SH "bool QDataBrowser::insertCurrent ()\fC [virtual protected]\fR" +.SH "bool TQDataBrowser::insertCurrent ()\fC [virtual protected]\fR" Reads the fields from the default form into the default cursor and performs an insert on the default cursor. If there is no default form or no default cursor, nothing happens. If an error occurred during the insert into the database, handleError() is called and FALSE is returned. If the insert was successfull, the cursor is refreshed and relocated to the newly inserted record, the cursorChanged() signal is emitted, and TRUE is returned. .PP See also cursorChanged(), sqlCursor(), form(), and handleError(). -.SH "bool QDataBrowser::isReadOnly () const" +.SH "bool TQDataBrowser::isReadOnly () const" Returns TRUE if the browser is read-only; otherwise returns FALSE. See the "readOnly" property for details. -.SH "void QDataBrowser::last ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::last ()\fC [virtual slot]\fR" Moves the default cursor to the last record and refreshes the default form to display this record. If there is no default form or no default cursor, nothing happens. If the data browser successfully navigated to the last record, the default cursor is primed for update and the primeUpdate() signal is emitted. .PP If the browser is already positioned on the last record nothing happens. -.SH "void QDataBrowser::lastRecordAvailable ( bool available )\fC [signal]\fR" +.SH "void TQDataBrowser::lastRecordAvailable ( bool available )\fC [signal]\fR" This signal is emitted whenever the position of the cursor changes. The \fIavailable\fR parameter indicates whether or not the last record in the default cursor is available. -.SH "void QDataBrowser::next ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::next ()\fC [virtual slot]\fR" Moves the default cursor to the next record and refreshes the default form to display this record. If there is no default form or no default cursor, nothing happens. If the data browser successfully navigated to the next record, the default cursor is primed for update and the primeUpdate() signal is emitted. .PP If the browser is positioned on the last record nothing happens. -.SH "void QDataBrowser::nextRecordAvailable ( bool available )\fC [signal]\fR" +.SH "void TQDataBrowser::nextRecordAvailable ( bool available )\fC [signal]\fR" This signal is emitted whenever the position of the cursor changes. The \fIavailable\fR parameter indicates whether or not the next record in the default cursor is available. -.SH "void QDataBrowser::prev ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::prev ()\fC [virtual slot]\fR" Moves the default cursor to the previous record and refreshes the default form to display this record. If there is no default form or no default cursor, nothing happens. If the data browser successfully navigated to the previous record, the default cursor is primed for update and the primeUpdate() signal is emitted. .PP If the browser is positioned on the first record nothing happens. -.SH "void QDataBrowser::prevRecordAvailable ( bool available )\fC [signal]\fR" +.SH "void TQDataBrowser::prevRecordAvailable ( bool available )\fC [signal]\fR" This signal is emitted whenever the position of the cursor changes. The \fIavailable\fR parameter indicates whether or not the previous record in the default cursor is available. -.SH "void QDataBrowser::primeDelete ( QSqlRecord * buf )\fC [signal]\fR" -This signal is emitted when the data browser enters deletion mode. The \fIbuf\fR parameter points to the record buffer being deleted. (Note that QSqlCursor::primeDelete() is \fInot\fR called on the default cursor, as this would corrupt values in the form.) Connect to this signal in order to, for example, save a copy of the deleted record for auditing purposes. +.SH "void TQDataBrowser::primeDelete ( TQSqlRecord * buf )\fC [signal]\fR" +This signal is emitted when the data browser enters deletion mode. The \fIbuf\fR parameter points to the record buffer being deleted. (Note that TQSqlCursor::primeDelete() is \fInot\fR called on the default cursor, as this would corrupt values in the form.) Connect to this signal in order to, for example, save a copy of the deleted record for auditing purposes. .PP See also del(). -.SH "void QDataBrowser::primeInsert ( QSqlRecord * buf )\fC [signal]\fR" -This signal is emitted when the data browser enters insertion mode. The \fIbuf\fR parameter points to the record buffer that is to be inserted. Connect to this signal to, for example, prime the record buffer with default data values, auto-numbered fields etc. (Note that QSqlCursor::primeInsert() is \fInot\fR called on the default cursor, as this would corrupt values in the form.) +.SH "void TQDataBrowser::primeInsert ( TQSqlRecord * buf )\fC [signal]\fR" +This signal is emitted when the data browser enters insertion mode. The \fIbuf\fR parameter points to the record buffer that is to be inserted. Connect to this signal to, for example, prime the record buffer with default data values, auto-numbered fields etc. (Note that TQSqlCursor::primeInsert() is \fInot\fR called on the default cursor, as this would corrupt values in the form.) .PP See also insert(). -.SH "void QDataBrowser::primeUpdate ( QSqlRecord * buf )\fC [signal]\fR" -This signal is emitted when the data browser enters update mode. Note that during navigation (first(), last(), next(), prev()), each record that is shown in the default form is primed for update. The \fIbuf\fR parameter points to the record buffer being updated. (Note that QSqlCursor::primeUpdate() is \fInot\fR called on the default cursor, as this would corrupt values in the form.) Connect to this signal in order to, for example, keep track of which records have been updated, perhaps for auditing purposes. +.SH "void TQDataBrowser::primeUpdate ( TQSqlRecord * buf )\fC [signal]\fR" +This signal is emitted when the data browser enters update mode. Note that during navigation (first(), last(), next(), prev()), each record that is shown in the default form is primed for update. The \fIbuf\fR parameter points to the record buffer being updated. (Note that TQSqlCursor::primeUpdate() is \fInot\fR called on the default cursor, as this would corrupt values in the form.) Connect to this signal in order to, for example, keep track of which records have been updated, perhaps for auditing purposes. .PP See also update(). -.SH "void QDataBrowser::readFields ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::readFields ()\fC [virtual slot]\fR" Reads the fields from the default cursor's edit buffer and displays them in the form. If there is no default cursor or no default form, nothing happens. -.SH "void QDataBrowser::refresh ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::refresh ()\fC [virtual slot]\fR" Refreshes the data browser's data using the default cursor. The browser's current filter and sort are applied if they have been set. .PP See also filter and sort. -.SH "bool QDataBrowser::seek ( int i, bool relative = FALSE )\fC [virtual]\fR" +.SH "bool TQDataBrowser::seek ( int i, bool relative = FALSE )\fC [virtual]\fR" Moves the default cursor to the record specified by the index \fIi\fR and refreshes the default form to display this record. If there is no default form or no default cursor, nothing happens. If \fIrelative\fR is TRUE (the default is FALSE), the cursor is moved relative to its current position. If the data browser successfully navigated to the desired record, the default cursor is primed for update and the primeUpdate() signal is emitted. .PP If the browser is already positioned on the desired record nothing happens. -.SH "void QDataBrowser::setAutoEdit ( bool autoEdit )\fC [virtual]\fR" +.SH "void TQDataBrowser::setAutoEdit ( bool autoEdit )\fC [virtual]\fR" Sets whether the browser automatically applies edits to \fIautoEdit\fR. See the "autoEdit" property for details. -.SH "void QDataBrowser::setBoundaryChecking ( bool active )" +.SH "void TQDataBrowser::setBoundaryChecking ( bool active )" Sets whether boundary checking is active to \fIactive\fR. See the "boundaryChecking" property for details. -.SH "void QDataBrowser::setConfirmCancels ( bool confirm )\fC [virtual]\fR" +.SH "void TQDataBrowser::setConfirmCancels ( bool confirm )\fC [virtual]\fR" Sets whether the browser confirms cancel operations to \fIconfirm\fR. See the "confirmCancels" property for details. -.SH "void QDataBrowser::setConfirmDelete ( bool confirm )\fC [virtual]\fR" +.SH "void TQDataBrowser::setConfirmDelete ( bool confirm )\fC [virtual]\fR" Sets whether the browser confirms deletions to \fIconfirm\fR. See the "confirmDelete" property for details. -.SH "void QDataBrowser::setConfirmEdits ( bool confirm )\fC [virtual]\fR" +.SH "void TQDataBrowser::setConfirmEdits ( bool confirm )\fC [virtual]\fR" Sets whether the browser confirms edits to \fIconfirm\fR. See the "confirmEdits" property for details. -.SH "void QDataBrowser::setConfirmInsert ( bool confirm )\fC [virtual]\fR" +.SH "void TQDataBrowser::setConfirmInsert ( bool confirm )\fC [virtual]\fR" Sets whether the data browser confirms insertions to \fIconfirm\fR. See the "confirmInsert" property for details. -.SH "void QDataBrowser::setConfirmUpdate ( bool confirm )\fC [virtual]\fR" +.SH "void TQDataBrowser::setConfirmUpdate ( bool confirm )\fC [virtual]\fR" Sets whether the browser confirms updates to \fIconfirm\fR. See the "confirmUpdate" property for details. -.SH "void QDataBrowser::setFilter ( const TQString & filter )" +.SH "void TQDataBrowser::setFilter ( const TQString & filter )" Sets the data browser's filter to \fIfilter\fR. See the "filter" property for details. -.SH "void QDataBrowser::setForm ( QSqlForm * form )\fC [virtual]\fR" +.SH "void TQDataBrowser::setForm ( TQSqlForm * form )\fC [virtual]\fR" Sets the browser's default form to \fIform\fR. The cursor and all navigation and data manipulation functions that the browser provides become available to the \fIform\fR. -.SH "void QDataBrowser::setReadOnly ( bool active )\fC [virtual]\fR" +.SH "void TQDataBrowser::setReadOnly ( bool active )\fC [virtual]\fR" Sets whether the browser is read-only to \fIactive\fR. See the "readOnly" property for details. -.SH "void QDataBrowser::setSort ( const QStringList & sort )" +.SH "void TQDataBrowser::setSort ( const QStringList & sort )" Sets the data browser's sort to \fIsort\fR. See the "sort" property for details. -.SH "void QDataBrowser::setSort ( const QSqlIndex & sort )" +.SH "void TQDataBrowser::setSort ( const TQSqlIndex & sort )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Sets the data browser's sort to the QSqlIndex \fIsort\fR. To apply the new sort, use refresh(). -.SH "void QDataBrowser::setSqlCursor ( QSqlCursor * cursor, bool autoDelete = FALSE )\fC [virtual]\fR" +Sets the data browser's sort to the TQSqlIndex \fIsort\fR. To apply the new sort, use refresh(). +.SH "void TQDataBrowser::setSqlCursor ( TQSqlCursor * cursor, bool autoDelete = FALSE )\fC [virtual]\fR" Sets the default cursor used by the data browser to \fIcursor\fR. If \fIautoDelete\fR is TRUE (the default is FALSE), the data browser takes ownership of the \fIcursor\fR pointer, which will be deleted when the browser is destroyed, or when setSqlCursor() is called again. To activate the \fIcursor\fR use refresh(). The cursor's edit buffer is used in the default form to browse and edit records. .PP See also sqlCursor(), form(), and setForm(). -.SH "QStringList QDataBrowser::sort () const" +.SH "QStringList TQDataBrowser::sort () const" Returns the data browser's sort. See the "sort" property for details. -.SH "QSqlCursor * QDataBrowser::sqlCursor () const" +.SH "TQSqlCursor * TQDataBrowser::sqlCursor () const" Returns the default cursor used for navigation, or 0 if there is no default cursor. .PP See also setSqlCursor(). -.SH "void QDataBrowser::update ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::update ()\fC [virtual slot]\fR" Performs an update operation on the data browser's cursor. .PP If there is no default cursor or no default form, nothing happens. Otherwise, the following happens: .PP If the data browser is actively inserting a record (see insert()), that record is inserted into the database using insertCurrent(). Otherwise, the database is updated with the current form's data using updateCurrent(). If there is an error handling either action, handleError() is called. -.SH "void QDataBrowser::updateBoundary ()\fC [slot]\fR" +.SH "void TQDataBrowser::updateBoundary ()\fC [slot]\fR" If boundaryChecking() is TRUE, checks the boundary of the current default cursor and emits signals which indicate the position of the cursor. -.SH "bool QDataBrowser::updateCurrent ()\fC [virtual protected]\fR" +.SH "bool TQDataBrowser::updateCurrent ()\fC [virtual protected]\fR" Reads the fields from the default form into the default cursor and performs an update on the default cursor. If there is no default form or no default cursor, nothing happens. If an error occurred during the update on the database, handleError() is called and FALSE is returned. If the update was successfull, the cursor is refreshed and relocated to the updated record, the cursorChanged() signal is emitted, and TRUE is returned. .PP See also cursor, form(), and handleError(). -.SH "void QDataBrowser::writeFields ()\fC [virtual slot]\fR" +.SH "void TQDataBrowser::writeFields ()\fC [virtual slot]\fR" Writes the form's data to the default cursor's edit buffer. If there is no default cursor or no default form, nothing happens. .SS "Property Documentation" .SH "bool autoEdit" @@ -568,7 +568,7 @@ Note that if you want to iterate over the list, you should iterate over a copy, Set this property's value with setSort() and get this property's value with sort(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqdatabrowser.html +.BR http://doc.trolltech.com/tqdatabrowser.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |