class toResultContent

This widget allows the user to browse the contents of a table and also edit the content. More...

Definition#include <toresultcontent.h>
InheritsQVBox (qt) [public ], toResult [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots


Detailed Description

This widget allows the user to browse the contents of a table and also edit the content. The table is specified by the first and second parameter in the query. The sql is not used in the query.

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

toResultContent

Create the widget.

Parameters:
parentParent widget.
nameName of widget.

toResultContentEditoreditor (void)

editor

Get content editor table widget

Returns: Pointer to editor.

void  editReadAll (void)

editReadAll

[virtual]

Read all rows from the table.

void  editPrint (void)

editPrint

[virtual]

Print the contents.

void  editSave (bool ask)

editSave

[virtual]

Export contents to file.

void  exportData (std::map<QCString,QString> &data,const QCString &prefix)

exportData

[virtual]

Export data to a map.

Parameters:
dataA map that can be used to recreate the data of a chart.
prefixPrefix to add to the map.

void  importData (std::map<QCString,QString> &data,const QCString &prefix)

importData

[virtual]

Import data

Parameters:
dataData to read from a map.
prefixPrefix to read data from.

void  useNoReturning (bool use)

useNoReturning

Indicate that editor should never use returning clauses even if this is oracle.

void  clearParams (void)

clearParams

[virtual slot]

Erase last parameters

Reimplemented from toResult.

void  refresh (void)

refresh

[virtual slot]

Reimplemented for internal reasons.

Reimplemented from toResult.

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

query

[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  saveUnsaved (void)

saveUnsaved

[virtual slot]

Save unsaved changes in the editor

void  saveUnsaved (toConnection &conn,bool cmt)

saveUnsaved

[virtual slot]

Commit connection

Parameters:
connConnection commit is made on.
cmtIf commit or rollback

bool  canHandle (toConnection &)

canHandle

[virtual slot]

Handle all databases

Reimplemented from toResult.