00001 #ifndef ADDCOLUMNTOTABLE_H 00002 #define ADDCOLUMNTOTABLE_H 00003 00004 #include <QDialog> 00005 00006 namespace Ui { 00007 class addColumnToTable; 00008 } 00009 00010 class addColumnToTable : public QDialog 00011 { 00012 Q_OBJECT 00013 00014 public: 00015 explicit addColumnToTable(QWidget *parent = 0); 00016 ~addColumnToTable(); 00017 QString m_strColName, m_strDataType, m_strLength, m_strDefault; 00018 bool m_bNotNull, m_bAutoIncrement, m_bPrimaryKey; 00019 QString m_strAfter; 00020 QStringList columnNames; 00021 void loadColNames(); 00022 protected: 00023 void changeEvent(QEvent *e); 00024 00025 private: 00026 Ui::addColumnToTable *ui; 00027 00028 private slots: 00029 void on_buttonBox_accepted(); 00030 }; 00031 00032 #endif // ADDCOLUMNTOTABLE_H