TableEditorDialog Class Reference

A base dialog for creating and editing tables. This dialog is taken as a inheritance parent for AlterTableDialog and CreateTableDialog. More...

#include <tableeditordialog.h>

Inheritance diagram for TableEditorDialog:

Inheritance graph
[legend]

List of all members.

Public Slots

virtual void addField ()
virtual void removeField ()
virtual void fieldSelected ()
virtual void nameEdit_textChanged (const QString &)
virtual void createButton_clicked ()
virtual void tabWidget_currentChanged (int index)

Public Member Functions

 TableEditorDialog (QWidget *parent)
 ~TableEditorDialog ()
QString getFullName (const QString &objName)
DatabaseTableField getColumn (int row)
QString getDefaultClause (const QString &defVal)
 Gues what default value should be set. If there is a successful conversion to the number, default(foo) is used = no change for string. If there is a "'" at the first place - default(foo) is used = no change for string. Else use default('foo') = add SQL string mark.
QString getColumnClause (DatabaseTableField column)

Public Attributes

Ui::TableEditorDialog ui


Detailed Description

A base dialog for creating and editing tables. This dialog is taken as a inheritance parent for AlterTableDialog and CreateTableDialog.

Author:
Petr Vanek <petr@scribus.info>

Igor Khanin


Constructor & Destructor Documentation

TableEditorDialog::TableEditorDialog ( QWidget *  parent  ) 

TableEditorDialog::~TableEditorDialog (  ) 

References ui.


Member Function Documentation

QString TableEditorDialog::getFullName ( const QString &  objName  ) 

References ui.

DatabaseTableField TableEditorDialog::getColumn ( int  row  ) 

QString TableEditorDialog::getDefaultClause ( const QString &  defVal  ) 

Gues what default value should be set. If there is a successful conversion to the number, default(foo) is used = no change for string. If there is a "'" at the first place - default(foo) is used = no change for string. Else use default('foo') = add SQL string mark.

Referenced by getColumnClause().

QString TableEditorDialog::getColumnClause ( DatabaseTableField  column  ) 

void TableEditorDialog::addField (  )  [virtual, slot]

void TableEditorDialog::removeField (  )  [virtual, slot]

References addField(), and ui.

Referenced by TableEditorDialog().

void TableEditorDialog::fieldSelected (  )  [virtual, slot]

References ui.

Referenced by TableEditorDialog().

void TableEditorDialog::nameEdit_textChanged ( const QString &  text  )  [virtual, slot]

References ui.

Referenced by TableEditorDialog(), and tabWidget_currentChanged().

void TableEditorDialog::createButton_clicked (  )  [virtual, slot]

Referenced by TableEditorDialog().

void TableEditorDialog::tabWidget_currentChanged ( int  index  )  [virtual, slot]

References nameEdit_textChanged(), and ui.

Referenced by TableEditorDialog().


Member Data Documentation

Ui::TableEditorDialog TableEditorDialog::ui


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