class toResultView

This class defines a list which displays the result of a query. More...

Definition#include <toresultview.h>
InheritstoListView [public ], toResult [public ]
Inherited bytoResultConstraint, toResultDepend, toResultIndexes, toResultLong, toResultPlan, toResultReferences, toResultStats
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Protected Methods

Protected Slots

Protected Members


Detailed Description

This class defines a list which displays the result of a query.

One special thing to know about this class is that columns at the end in which the description start with a '-' characters are not displayed.

toQuery * Query

Query

[protected]

QListViewItem * LastItem

LastItem

[protected]

int RowNumber

RowNumber

[protected]

bool ReadableColumns

ReadableColumns

[protected]

bool NumberColumn

NumberColumn

[protected]

bool ReadAll

ReadAll

[protected]

toResultFilter * Filter

Filter

[protected]

void  setup (bool readable,bool dispCol)

setup

[protected]

Setup the list.

Parameters:
readableWether to display first number column or not.
dispColWether to display first number column or not.

bool  eof (void)

eof

[protected virtual]

Check if end of query is detected yet or not.

 toResultView (bool readable,bool numCol,QWidget *parent,const char *name=NULL)

toResultView

Create list.

Parameters:
readableIndicate if columns are to be made more readable. This means that the descriptions are capitalised and '_' are converted to ' '.
numColIf number column is to be displayed.
parentParent of list.
nameName of widget.

 toResultView (QWidget *parent,const char *name=NULL)

toResultView

Create list. The columns are not readable and the number column is displayed.

Parameters:
parentParent of list.
nameName of widget.

 ~toResultView ()

~toResultView

void  setReadAll (bool all)

setReadAll

Set the read all flag.

Parameters:
allNew value of flag.

void  editReadAll (void)

editReadAll

[virtual]

Get read all flag

Returns: Value of read all flag.

Reimplemented from toEditWidget.

int  queryColumns ()

queryColumns

[const]

Get the number of columns in query.

Returns: Columns in query.

toQueryquery ()

query

Get the query used to execute this.

Reimplemented from toResult.

void  setFilter (toResultFilter *filter)

setFilter

Set a filter to this list.

Parameters:
filterThe new filter or NULL if no filter is to be used.

toResultFilterfilter (void)

filter

Get the current filter.

Returns: Current filter or NULL if no filter.

bool  numberColumn ()

numberColumn

[const]

Get number column flag.

Returns: Wether or not the numbercolumn is displayed.

void  setNumberColumn (bool val)

setNumberColumn

Set number column flag. Don't change this while a query is running. Observe that not all descendants of this class support changing this on the fly. The base class and toResultLong does though.

Parameters:
valNew value of number column.

bool  readableColumn ()

readableColumn

[const]

Get readable column flag.

Returns: Wether or not the readable column names.

void  setReadableColumns (bool val)

setReadableColumns

Set readable column flag.

QListViewItemcreateItem (QListViewItem *last,const QString &str)

createItem

[virtual]

Create a new item in this list. Can be used if a special kind of item is wanted in the list. The rest of the columns will be filled with setText.

Parameters:
lastWhere to insert the item.
strString to set first column to.

Returns: Allocated item.

void  query (const QString &sql,const toQList &param)

query

[virtual]

Reimplemented for internal reasons.

Reimplemented from toResult.

QString  sqlName (void)

sqlName

[virtual]

Get SQL name of list.

Reimplemented from toListView.

void  setSQLName (const QString &name)

setSQLName

[virtual]

Set SQL name of list.

Reimplemented from toListView.

void  setSQL (const QString &sql)

setSQL

Set the SQL statement of this list

Parameters:
sqlString containing statement.

Reimplemented from toResult.

void  setSQL (const toSQL &sql)

setSQL

Set the SQL statement of this list. This will also affect Name.

Parameters:
sqlSQL containing statement.

Reimplemented from toResult.

void  query (const QString &sql)

query

Set new SQL and run query.

Parameters:
sqlNew sql.

See also: setSQL

Reimplemented from toResult.

void  query (const toSQL &sql)

query

Set new SQL and run query.

Parameters:
sqlNew sql.

See also: setSQL

Reimplemented from toResult.

void  query (const toSQL &sql,toQList &par)

query

Set new SQL and run query.

Parameters:
sqlNew sql.

See also: setSQL

Reimplemented from toResult.

void  editPrint (void)

editPrint

[virtual]

Reimplemented for internal reasons.

Reimplemented from toListView.

QString  middleString ()

middleString

[virtual]

Reimplemented for internal reasons.

Reimplemented from toListView.

void  addMenues (QPopupMenu *)

addMenues

[virtual]

Reimplemented for internal reasons.

Reimplemented from toListView.

void  setSorting (int col,bool asc=true)

setSorting

[virtual]

Reimplemented for internal reasons.

Reimplemented from QListView.

int  sortColumn ()

sortColumn

[const virtual]

Reimplemented for internal reasons.

void  refresh (void)

refresh

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.

void  changeParams (const QString &Param1)

changeParams

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.

void  changeParams (const QString &Param1,const QString &Param2)

changeParams

[virtual slot]

Reimplemented For internal reasons.

Reimplemented from toResult.

void  changeParams (const QString &Param1,const QString &Param2,const QString &Param3)

changeParams

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.

void  addItem (void)

addItem

[virtual slot]

Try to add an item to the list if available.

bool  canHandle (toConnection &)

canHandle

[virtual slot]

Handle any connection by default

Reimplemented from toResult.

void  menuCallback (int)

menuCallback

[protected slots virtual slot]

Reimplemented for internal reasons.

Reimplemented from toListView.