00001 /* 00002 For general Sqliteman copyright and licensing information please refer 00003 to the COPYING file provided with the program. Following this notice may exist 00004 a copyright and/or license notice that predates the release of Sqliteman 00005 for which a new license (GPL+exception) is in place. 00006 */ 00007 00008 #ifndef TABLEEDITORDIALOG_H 00009 #define TABLEEDITORDIALOG_H 00010 00011 #include <QDialog> 00012 00013 #include "database.h" 00014 #include "ui_tableeditordialog.h" 00015 00016 00023 class TableEditorDialog : public QDialog 00024 { 00025 Q_OBJECT 00026 public: 00027 TableEditorDialog(QWidget * parent); 00028 ~TableEditorDialog(); 00029 00030 Ui::TableEditorDialog ui; 00031 00032 QString getFullName(const QString & objName); 00033 00034 DatabaseTableField getColumn(int row); 00035 00043 QString getDefaultClause(const QString & defVal); 00044 00045 QString getColumnClause(DatabaseTableField column); 00046 00047 public slots: 00048 virtual void addField(); 00049 virtual void removeField(); 00050 virtual void fieldSelected(); 00051 virtual void nameEdit_textChanged(const QString&); 00052 virtual void createButton_clicked(); 00053 virtual void tabWidget_currentChanged(int index); 00054 00055 }; 00056 00057 #endif
1.5.5