TableTree Class Reference

Schema browser. A tree structure containing sorted database objects. More...

#include <tabletree.h>

List of all members.

Public Slots

void buildTree ()
void buildViewTree (QString schema, QString name)

Public Member Functions

 TableTree (QWidget *parent=0)
 ~TableTree ()
void buildDatabase (QTreeWidgetItem *dbItem, const QString &schema)
void buildDatabase (const QString &schema)
void buildTables (QTreeWidgetItem *tablesItem, const QString &schema)
void buildIndexes (QTreeWidgetItem *indexesItem, const QString &schema, const QString &table)
void buildColumns (QTreeWidgetItem *columnsItem, const QString &schema, const QString &table)
void buildSysIndexes (QTreeWidgetItem *indexesItem, const QString &schema, const QString &table)
void buildTriggers (QTreeWidgetItem *triggersItem, const QString &schema, const QString &table)
void buildViews (QTreeWidgetItem *viewsItem, const QString &schema)
void buildCatalogue (QTreeWidgetItem *systemItem, const QString &schema)
QList< QTreeWidgetItem * > searchMask (const QString &trStr)

Public Attributes

QString trDatabase
QString trTables
QString trIndexes
QString trSysIndexes
QString trViews
QString trTriggers
QString trSys
QString trCols

Static Public Attributes

static const int TablesItemType = QTreeWidgetItem::UserType
static const int ViewsItemType = QTreeWidgetItem::UserType + 1
static const int TableType = QTreeWidgetItem::UserType + 2
static const int ViewType = QTreeWidgetItem::UserType + 3
static const int IndexesItemType = QTreeWidgetItem::UserType + 4
static const int IndexType = QTreeWidgetItem::UserType + 5
static const int TriggersItemType = QTreeWidgetItem::UserType + 6
static const int TriggerType = QTreeWidgetItem::UserType + 7
static const int SystemItemType = QTreeWidgetItem::UserType + 8
static const int SystemType = QTreeWidgetItem::UserType + 9
static const int DatabaseItemType = QTreeWidgetItem::UserType + 10
static const int SysIndexesItemType = QTreeWidgetItem::UserType + 11
static const int SysIndexType = QTreeWidgetItem::UserType + 12
static const int ColumnType = QTreeWidgetItem::UserType + 13
static const int ColumnItemType = QTreeWidgetItem::UserType + 14


Detailed Description

Schema browser. A tree structure containing sorted database objects.

Author:
Petr Vanek <petr@scribus.info>

Constructor & Destructor Documentation

TableTree::TableTree ( QWidget *  parent = 0  ) 

TableTree::~TableTree (  )  [inline]


Member Function Documentation

void TableTree::buildDatabase ( QTreeWidgetItem *  dbItem,
const QString &  schema 
)

Referenced by buildTree().

void TableTree::buildDatabase ( const QString &  schema  ) 

void TableTree::buildTables ( QTreeWidgetItem *  tablesItem,
const QString &  schema 
)

void TableTree::buildIndexes ( QTreeWidgetItem *  indexesItem,
const QString &  schema,
const QString &  table 
)

void TableTree::buildColumns ( QTreeWidgetItem *  columnsItem,
const QString &  schema,
const QString &  table 
)

void TableTree::buildSysIndexes ( QTreeWidgetItem *  indexesItem,
const QString &  schema,
const QString &  table 
)

void TableTree::buildTriggers ( QTreeWidgetItem *  triggersItem,
const QString &  schema,
const QString &  table 
)

void TableTree::buildViews ( QTreeWidgetItem *  viewsItem,
const QString &  schema 
)

void TableTree::buildCatalogue ( QTreeWidgetItem *  systemItem,
const QString &  schema 
)

References Database::getSysObjects(), SystemType, and trSys.

Referenced by buildDatabase().

QList< QTreeWidgetItem * > TableTree::searchMask ( const QString &  trStr  ) 

Referenced by buildViewTree().

void TableTree::buildTree (  )  [slot]

void TableTree::buildViewTree ( QString  schema,
QString  name 
) [slot]


Member Data Documentation

const int TableTree::TablesItemType = QTreeWidgetItem::UserType [static]

Referenced by buildDatabase().

const int TableTree::ViewsItemType = QTreeWidgetItem::UserType + 1 [static]

Referenced by buildDatabase(), and buildViewTree().

const int TableTree::TableType = QTreeWidgetItem::UserType + 2 [static]

const int TableTree::ViewType = QTreeWidgetItem::UserType + 3 [static]

Referenced by buildViews().

const int TableTree::IndexesItemType = QTreeWidgetItem::UserType + 4 [static]

Referenced by buildTables().

const int TableTree::IndexType = QTreeWidgetItem::UserType + 5 [static]

Referenced by buildIndexes().

const int TableTree::TriggersItemType = QTreeWidgetItem::UserType + 6 [static]

Referenced by buildTables(), and buildViews().

const int TableTree::TriggerType = QTreeWidgetItem::UserType + 7 [static]

Referenced by buildTriggers().

const int TableTree::SystemItemType = QTreeWidgetItem::UserType + 8 [static]

Referenced by buildDatabase().

const int TableTree::SystemType = QTreeWidgetItem::UserType + 9 [static]

Referenced by buildCatalogue().

const int TableTree::DatabaseItemType = QTreeWidgetItem::UserType + 10 [static]

Referenced by buildDatabase().

const int TableTree::SysIndexesItemType = QTreeWidgetItem::UserType + 11 [static]

Referenced by buildTables().

const int TableTree::SysIndexType = QTreeWidgetItem::UserType + 12 [static]

Referenced by buildSysIndexes().

const int TableTree::ColumnType = QTreeWidgetItem::UserType + 13 [static]

Referenced by buildColumns().

const int TableTree::ColumnItemType = QTreeWidgetItem::UserType + 14 [static]

Referenced by buildTables().

Referenced by TableTree().

Referenced by buildTables(), and TableTree().

Referenced by buildIndexes(), and TableTree().

Referenced by buildSysIndexes(), and TableTree().

Referenced by buildTriggers(), and TableTree().

Referenced by buildCatalogue(), and TableTree().

Referenced by buildColumns(), and TableTree().


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