/**************************************************************************** ** Form interface generated from reading ui file 'table.ui' ** ** Created: Fri May 18 18:29:04 2001 ** by: The User Interface Compiler (uic) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #ifndef TABLE_H #define TABLE_H #include #include class QVBoxLayout; class QHBoxLayout; class QGridLayout; class QButtonGroup; class QComboBox; class QGroupBox; class QLabel; class QLineEdit; class QListView; class QListViewItem; class QPushButton; class QTabWidget; #include "xcombobox.h" #define FLAG_FIELD 0 #define FLAG_KEY 1 struct value { int type; char length[255]; int sign; int null; char default_[255]; int extra; }; #include class Table : public QWidget { Q_OBJECT public: Table(MYSQL *mysql, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~Table(); QPushButton* fire; QPushButton* close; QTabWidget* TabWidget2; QWidget* tab; QButtonGroup* ButtonGroup1; QLabel* TextLabel1_2; QLabel* TextLabel2_3; QLabel* TextLabel2_2_2; QLabel* TextLabel3_2; XComboBox* database; QLineEdit* table; QComboBox* table_type; QLineEdit* comment; QListView* field1; QPushButton* field_new; QPushButton* field_save; QPushButton* field_drop; QPushButton* field_up; QPushButton* field_down; QButtonGroup* ButtonGroup2; QLabel* TextLabel4_2; QLabel* TextLabel5_2; QLabel* TextLabel6_2; QLabel* TextLabel11_2; QLabel* TextLabel8_2; QLabel* TextLabel9_2; QLabel* TextLabel10_2; QLineEdit* field_name; QComboBox* field_type; QComboBox* field_sign; QLineEdit* field_length; QComboBox* field_null; QLineEdit* field_default; QComboBox* field_extra; QWidget* tab_2; QGroupBox* GroupBox2; QListView* key; QGroupBox* GroupBox1; QLabel* TextLabel1_3; QLabel* TextLabel2_4; QLineEdit* key_name; QComboBox* key_type; QListView* field2; QPushButton* key_new; QPushButton* key_save; QPushButton* key_drop; QPushButton* key_up; QPushButton* key_down; public slots: void slot_database(); void slot_database(const QString &); void slot_field(QListViewItem *); void slot_key(QListViewItem *); private: MYSQL *mysql; void signal_connect(); QListViewItem *get_last(bool); QString get_length(QString); int get_type(QString); bool is_exist(bool, QString); QMap map; void reset_key_field(); public slots: void slot_close(); void slot_about(); void slot_fire(); void slot_field_new(); void slot_field_save(); void slot_field_drop(); void slot_field_up(); void slot_field_down(); void slot_key_new(); void slot_key_save(); void slot_key_drop(); void slot_key_up(); void slot_key_down(); void slot_clear(); void slot_clicked(int); private: bool flag; signals: void signal_schema(); }; #endif // TABLE_H