Logo Search packages:      
Sourcecode: datakiosk version File versions  Download package

DataTableBox Class Reference

#include <datatablebox.h>

Inheritance diagram for DataTableBox:

List of all members.


Detailed Description

This is the data table selection box that is by default on the right side of DataKiosk's main widget (DataTableSplitter).

Definition at line 41 of file datatablebox.h.


Public Types

typedef QValueList< Item * > ItemList
typedef QValueList< Item * > ItemList

Public Slots

virtual DataTableList childrenOfDataTable (DataTable *dataTable)
virtual DataTableList childrenOfDataTable (DataTable *dataTable)
virtual DataReport * currentDataReport () const
virtual DataReport * currentDataReport () const
virtual DataTable * currentDataTable () const
virtual DataTable * currentDataTable () const
virtual DataTableList dataTablesInCurrentTree ()
virtual DataTableList dataTablesInCurrentTree ()
virtual DataTableList dataTablesInDataTableTree (DataTable *dataTable)
virtual DataTableList dataTablesInDataTableTree (DataTable *dataTable)
virtual DataTable * rootOfCurrentDataTable ()
virtual DataTable * rootOfCurrentDataTable ()
virtual void scrollTableDown ()
virtual void scrollTableDown ()
virtual void scrollTableUp ()
virtual void scrollTableUp ()
virtual void slotInitialize ()
virtual void slotInitialize ()

Signals

void advancedSearchClicked ()
void advancedSearchClicked ()
void searchEdited ()
void searchEdited ()
void searchInvoked (const QString &search)
void searchInvoked (const QString &search)
void searchRemoved ()
void searchRemoved ()
void splashMessage (const QString &txt, int alignment, const QColor &color)
void splashMessage (const QString &txt, int alignment, const QColor &color)

Public Member Functions

void addDatabaseConnection (DatabaseConnection *conn)
void addDatabaseConnection (DatabaseConnection *conn)
void addDataReport (DataReport *report)
void addDataReport (DataReport *report)
void addDataTable (DataTable *table)
void addDataTable (DataTable *table)
void addName (const QString &name)
void addName (const QString &name)
void addObserver (DataTableObserver *observer)
void addObserver (DataTableObserver *observer)
virtual void addVirtualField ()
virtual void addVirtualField ()
virtual void advancedSearchRequested ()
virtual void advancedSearchRequested ()
virtual void appendSearch (const DataTableSearch &search)
virtual void appendSearch (const DataTableSearch &search)
void changeRecord ()
void changeRecord ()
virtual void clipboard ()
virtual void clipboard ()
void closeDatabase (const QString &connection)
void closeDatabase (const QString &connection)
virtual void closeProject ()
virtual void closeProject ()
void commit ()
void commit ()
virtual void configureReport ()
virtual void configureReport ()
virtual void configureTable ()
virtual void configureTable ()
void createChildDataTable (const QString &name)
void createChildDataTable (const QString &name)
void createDatabaseDataTable ()
void createDatabaseDataTable ()
void createDataTable ()
void createDataTable ()
void createForeignDataTable ()
void createForeignDataTable ()
virtual void createKugarReport (const QString &parentTable)
virtual void createKugarReport ()
virtual void createKugarReport (const QString &parentTable)
virtual void createKugarReport ()
void createSearchDataTable ()
void createSearchDataTable ()
DatabaseConnection * databaseConnection (const QString &name)
DatabaseConnection * databaseConnection (const QString &name)
QStringList databaseConnectionList ()
QStringList databaseConnectionList ()
QPtrList< DatabaseConnection > databaseConnections () const
QPtrList< DatabaseConnection > databaseConnections () const
QStringList databaseFieldList (const QString &connection, const QString &table)
QStringList databaseFieldList (const QString &connection, const QString &table)
QStringList databaseTableList (const QString &connection)
QStringList databaseTableList (const QString &connection)
virtual QString dataTable () const
DataTable * dataTable (const QString &name)
virtual QString dataTable () const
DataTable * dataTable (const QString &name)
 DataTableBox (QWidget *parent, QWidgetStack *dataTableStack, const char *name=0)
 DataTableBox (QWidget *parent, QWidgetStack *dataTableStack, const char *name=0)
DataTable * dataTableByName (const QString &name) const
DataTable * dataTableByName (const QString &name) const
QStringList dataTableList ()
QStringList dataTableList ()
virtual QStringList dataTables () const
virtual QStringList dataTables () const
QPtrList< DataTable > dataTablesByPtr () const
QPtrList< DataTable > dataTablesByPtr () const
virtual DataTableList dataTablesInCurrentPeerTree ()
virtual DataTableList dataTablesInCurrentPeerTree ()
virtual DataTableList dataTablesInDataTablePeerTree (DataTable *dataTable)
virtual DataTableList dataTablesInDataTablePeerTree (DataTable *dataTable)
virtual QWidgetStack * dataTableStack () const
virtual QWidgetStack * dataTableStack () const
void deleteRecord ()
void deleteRecord ()
Item * dropItem () const
Item * dropItem () const
void editProject ()
void editProject ()
virtual void editSearch ()
virtual void editSearch ()
QString fileName () const
QString fileName () const
void firstRecord ()
void firstRecord ()
bool hasSelection ()
bool hasSelection ()
virtual void initialize ()
virtual void initialize ()
void insertRecord ()
void insertRecord ()
virtual void invokeSearch (const QString &search)
virtual void invokeSearch (const QString &search)
void lastRecord ()
void lastRecord ()
bool loadConnections ()
bool loadConnections ()
bool loadDataTables ()
bool loadDataTables ()
QString makeAbsolute (const QString &f)
QString makeAbsolute (const QString &f)
QString makeRelative (const QString &f)
QString makeRelative (const QString &f)
virtual void moveTableDown ()
virtual void moveTableDown ()
virtual void moveTableUp ()
virtual void moveTableUp ()
virtual QString name () const
virtual QString name () const
virtual void newProject ()
virtual void newProject ()
void nextRecord ()
void nextRecord ()
QObject * object () const
QObject * object () const
bool openDatabase (const QString &connection, bool suppressDialog=true)
bool openDatabase (const QString &connection, bool suppressDialog=true)
void openProject ()
void openProject ()
void previousRecord ()
void previousRecord ()
virtual void raise (DataReport *dataReport)
virtual void raise (DataTable *dataTable)
virtual void raise (DataReport *dataReport)
virtual void raise (DataTable *dataTable)
virtual void refreshReport ()
virtual void refreshReport ()
void removeAllDatabaseConnections ()
void removeAllDatabaseConnections ()
void removeDatabaseConnection (const QString &conn)
void removeDatabaseConnection (const QString &conn)
void removeDataReport (const QString &report)
void removeDataReport (const QString &report)
void removeDataTable (const QString &table)
void removeDataTable (const QString &table)
void removeName (const QString &name)
void removeName (const QString &name)
void removeObserver (DataTableObserver *observer)
void removeObserver (DataTableObserver *observer)
virtual void removeReport ()
virtual void removeReport ()
virtual void removeSearch (const DataTableSearch &search)
virtual void removeSearch ()
virtual void removeSearch ()
virtual void removeTable ()
virtual void removeTable ()
void saveAsProject ()
void saveAsProject ()
void saveProject ()
void saveProject ()
void scrollTabLeft ()
void scrollTabLeft ()
void scrollTabRight ()
void scrollTabRight ()
DataSearchList searchList ()
DataSearchList searchList ()
void setDatabaseConnections (const QPtrList< DatabaseConnection > &lst)
void setDatabaseConnections (const QPtrList< DatabaseConnection > &lst)
virtual void setDataTable (const QString &dataTable)
virtual void setDataTable (const QString &dataTable)
void setDataTables (const QPtrList< DataTable > &lst)
void setDataTables (const QPtrList< DataTable > &lst)
void setModified (bool b)
void setModified (bool b)
virtual void setupDataReport (DataReport *dataReport, const QString &iconName)
virtual void sortTables ()
virtual void sortTables ()
virtual void uglyInitialize ()
virtual void uglyInitialize ()
QString uniqueDataTableName (const QString &suggest=i18n("DataTable")) const
QString uniqueDataTableName (const QString &suggest=i18n("DataTable")) const

Protected Member Functions

bool containsDataTableFile (const QString &file) const
bool containsDataTableFile (const QString &file) const
QString dataTableNameDialog (const QString &caption=i18n("Create New DataTable"), const QString &suggest=QString::null, bool forceUnique=true) const
QString dataTableNameDialog (const QString &caption=i18n("Create New DataTable"), const QString &suggest=QString::null, bool forceUnique=true) const
virtual void setIconName (DataReport *dataReport, const QString &iconName)
virtual void setIconName (DataTable *dataTable, const QString &iconName)
virtual void setIconName (DataReport *dataReport, const QString &iconName)
virtual void setIconName (DataTable *dataTable, const QString &iconName)
virtual void setSplashMessage (const QString &txt)
virtual void setSplashMessage (const QString &txt)
virtual void setupDataReport (DataReport *dataReport, const QString &iconName, DataTable *parentTable)
virtual void setupDataReport (DataReport *dataReport, const QString &iconName, Item *parentItem)
virtual void setupDataReport (DataReport *dataReport, const QString &iconName, DataTable *parentTable)
virtual void setupDataReport (DataReport *dataReport, const QString &iconName, Item *parentItem)
virtual void setupDataTable (DataTable *dataTable, const QString &iconName, DataTable *parentTable)
virtual void setupDataTable (DataTable *dataTable, const QString &iconName, Item *parentItem)
virtual void setupDataTable (DataTable *dataTable, const QString &iconName)
virtual void setupDataTable (DataTable *dataTable, const QString &iconName, DataTable *parentTable)
virtual void setupDataTable (DataTable *dataTable, const QString &iconName, Item *parentItem)
virtual void setupDataTable (DataTable *dataTable, const QString &iconName)

Private Slots

void clipOnWindowShown ()
void clipOnWindowShown ()
void slotItemDestroyed (Item *item)
void slotItemDestroyed (Item *item)
void slotSetViewMode (int index)
void slotSetViewMode (int index)
void slotShowContextMenu (QListViewItem *item, const QPoint &point, int)
void slotShowContextMenu (QListViewItem *item, const QPoint &point, int)
void slotWidgetChanged ()
void slotWidgetChanged ()

Private Member Functions

virtual void contentsMousePressEvent (QMouseEvent *e)
virtual void contentsMousePressEvent (QMouseEvent *e)
virtual void contentsMouseReleaseEvent (QMouseEvent *e)
virtual void contentsMouseReleaseEvent (QMouseEvent *e)
virtual void keyPressEvent (QKeyEvent *e)
virtual void keyPressEvent (QKeyEvent *e)
virtual void keyReleaseEvent (QKeyEvent *e)
virtual void keyReleaseEvent (QKeyEvent *e)
void performTreeViewSetup ()
void performTreeViewSetup ()
void readConfig ()
void readConfig ()
void saveConfig ()
void saveConfig ()
QValueList< Item * > selectedItems ()
QValueList< Item * > selectedItems ()
void setSingleItem (QListViewItem *item)
void setSingleItem (QListViewItem *item)
void setupItem (Item *item)
void setupItem (Item *item)
ViewMode * viewMode () const
ViewMode * viewMode () const
int viewModeIndex () const
int viewModeIndex () const

Private Attributes

DataClip * m_clipboard
bool m_clipShown
QPtrDict< Item > m_dataTableDict
bool m_doingMultiSelect
Item * m_dropItem
bool m_hasSelection
KAction * m_k3bAction
KPopupMenu * m_listMenu
KPopupMenu * m_reportMenu
bool m_treeViewSetup
int m_viewModeIndex
QValueList< ViewMode * > m_viewModes

Friends

class Item
class TreeViewMode

Classes

class  Item

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

Generated by  Doxygen 1.6.0   Back to index