DataViewer Class Reference

A Complex widget handling the database outputs and status messages. More...

#include <dataviewer.h>

List of all members.

Public Slots

void showSqlScriptResult (QString line)
 Append the line to the "Script Result" tab.
void sqlScriptStart ()
 Clean the "Script Result" report.

Public Member Functions

 DataViewer (QWidget *parent=0)
 ~DataViewer ()
bool setTableModel (QAbstractItemModel *model, bool showButtons=false)
 Set data model. See Qt model/view documentation.
void setStatusText (const QString &text)
 Set text to the status widget.
void appendStatusText (const QString &text)
void showStatusText (bool show)
 Show/hide status widget.
QSqlQueryModel * tableData ()
QStringList tableHeader ()
QByteArray saveSplitter ()
void restoreSplitter (QByteArray state)
void freeResources ()
 Free locked resources.

Static Public Member Functions

static const QString canFetchMore ()


Detailed Description

A Complex widget handling the database outputs and status messages.

Author:
Petr Vanek <petr@scribus.info>

Constructor & Destructor Documentation

DataViewer::DataViewer ( QWidget *  parent = 0  ) 

References Utils::getIcon().

DataViewer::~DataViewer (  )  [inline]


Member Function Documentation

bool DataViewer::setTableModel ( QAbstractItemModel *  model,
bool  showButtons = false 
)

Set data model. See Qt model/view documentation.

Return values:
bool true when the model is set succesfully

References canFetchMore(), SqlTableModel::pendingTransaction(), and setStatusText().

Referenced by LiteManWindow::closeEvent().

void DataViewer::setStatusText ( const QString &  text  ) 

Set text to the status widget.

Referenced by setTableModel().

void DataViewer::appendStatusText ( const QString &  text  ) 

void DataViewer::showStatusText ( bool  show  ) 

Show/hide status widget.

QSqlQueryModel * DataViewer::tableData (  ) 

QStringList DataViewer::tableHeader (  ) 

QByteArray DataViewer::saveSplitter (  )  [inline]

void DataViewer::restoreSplitter ( QByteArray  state  )  [inline]

const QString DataViewer::canFetchMore (  )  [static]

Referenced by setTableModel().

void DataViewer::freeResources (  ) 

Free locked resources.

void DataViewer::showSqlScriptResult ( QString  line  )  [slot]

Append the line to the "Script Result" tab.

void DataViewer::sqlScriptStart (  )  [slot]

Clean the "Script Result" report.


The documentation for this class was generated from the following files:

Generated on Sat Jul 26 09:05:56 2008 for Sqliteman by  doxygen 1.5.5