class toResultContentEditor

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

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

Public Methods

Public Slots

Signals

Public Members

Protected 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. Only for internal use.

void  useNoReturning (bool use)

useNoReturning

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

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

toResultContentEditor

Create the widget.

Parameters:
parentParent widget.
nameName of widget.

 ~toResultContentEditor ()

~toResultContentEditor

Destruct object

void  query (const QString &,const toQList &)

query

[virtual]

Reimplemented for internal reasons.

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

changeParams

[virtual]

Reimplemented for internal reasons.

void  editPrint (void)

editPrint

[virtual]

Print this editor.

Reimplemented from toEditWidget.

bool  editSave (bool ask)

editSave

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void  editReadAll (void)

editReadAll

[virtual]

Reimplemented for internal reasons.

Reimplemented from toEditWidget.

void  editSelectAll (void)

editSelectAll

[virtual]

Select all contents. Default NOP.

Reimplemented from toEditWidget.

void  setText (int row,int col,const QString &text)

setText

[virtual]

Reimplemented for internal reasons.

Reimplemented from QTable.

void  changeFilter (bool all,const QString &criteria,const QString &order)

changeFilter

Set a new filter setting.

Parameters:
allApply filter to all tables, otherwise only for this table.
criteriaCriteria to filter on.
orderOrder to read data on.

bool  allFilter ()

allFilter

Get information about if filter affect all tables.

friend class contentItem

contentItem

friend class toResultContent

toResultContent

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  clearParams (void)

clearParams

[virtual slot]

Erase last parameters

void  changeSort (int col)

changeSort

[virtual slot]

Change sorting column

Parameters:
colColumn selected to change as sorting.

void  changePosition (int row,int col)

changePosition

[slot]

Current cell changed.

Parameters:
rowNew row.
colNew column.

void  displayMenu (const QPoint &p)

displayMenu

[virtual slot]

Display popup menu

Parameters:
pPoint to display popup at.

void  displayMemo (void)

displayMemo

[virtual slot]

Display editable memo viewer at current position.

void  saveUnsaved (void)

saveUnsaved

[virtual slot]

Save unsaved changes in the editor

void  deleteCurrent (void)

deleteCurrent

[virtual slot]

Delete the current row from the table.

void  addRecord (void)

addRecord

[virtual slot]

Add a new record to the table.

void  duplicateRecord (void)

duplicateRecord

[virtual slot]

Duplicate a new record for editing.

void  cancelEdit (void)

cancelEdit

[virtual slot]

Discard the changes made to the table.

void  gotoLastRecord (void)

gotoLastRecord

[virtual slot]

Goto the last record in the table.

void  gotoFirstRecord (void)

gotoFirstRecord

[virtual slot]

Goto the first record in the table.

void  gotoPreviousRecord (void)

gotoPreviousRecord

[virtual slot]

Goto the previous record in the table.

void  gotoNextRecord (void)

gotoNextRecord

[virtual slot]

Goto the next record in the table.

void  singleRecordForm (bool display)

singleRecordForm

[virtual slot]

Display single record form.

void  searchTop (void)

searchTop

[virtual slot]

Move to top of data

Reimplemented from toEditWidget.

bool  searchNext (toSearchReplace *search)

searchNext

[virtual slot]

Search for next entry

Returns: True if found, should select the found text.

Reimplemented from toEditWidget.

void  searchReplace (const QString &newData)

searchReplace

[virtual slot]

Replace entry with new data

Reimplemented from toEditWidget.

bool  searchCanReplace (bool all)

searchCanReplace

[virtual slot]

Check if data can be modified by search

Parameters:
allIf true can replace all, otherwise can replace right now.

Reimplemented from toEditWidget.

void  filterEnabled (bool)

filterEnabled

[signal]

Emitted to indicate wether a filter is used.

void  menuCallback (int cmd)

menuCallback

[protected slots virtual slot]

Callback from popup menu.

Parameters:
cmdCommand ID.

void  changeData (int row,int col,const QString &data)

changeData

[protected slots virtual slot]

Change data at specified position.

Parameters:
rowRow to change.
colColumn to change.
dataNew contents of data.