/**************************************************************************** ** Form interface generated from reading ui file 'field.ui' ** ** Created: Thu Apr 19 09:15:59 2001 ** by: The User Interface Compiler (uic) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #ifndef FIELD_H #define FIELD_H #include #include class QVBoxLayout; class QHBoxLayout; class QGridLayout; class QButtonGroup; class QComboBox; class QLabel; class QLineEdit; class QPushButton; #define FIELD_CREATE 0 #define FIELD_CHANGE 1 #define FIELD_MODIFY 2 #include "xcombobox.h" #include class Field : public QWidget { Q_OBJECT public: Field(MYSQL *, int flag, const QString &, const QString &, const QString &, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~Field(); QButtonGroup* ButtonGroup2; QLabel* TextLabel3; QLabel* TextLabel5_3; QLabel* TextLabel4_3; QLabel* TextLabel4_2; QLabel* TextLabel5_2; QLabel* TextLabel6_2; QLabel* TextLabel11_2; QLabel* TextLabel8_2; QLabel* TextLabel9_2; QLabel* TextLabel10_2; XComboBox* database; XComboBox* table; QComboBox* position; QLineEdit* field; QComboBox* type; QLineEdit* length; QComboBox* binary; QComboBox* null; QLineEdit* _default; QComboBox* extra; QPushButton* close; QPushButton* fire; public slots: void slot_default_value(); private: MYSQL *mysql; MYSQL_RES *result; MYSQL_ROW row; QString value; int flag; // flag == 0, create // flag == 1, change // flag == 2, modify void signal_connect(); QString get_length(QString); int get_type(QString); public slots: void slot_fire(); void slot_close(); void slot_clear(); void slot_about(); void slot_database(); void slot_table(); void slot_position(); void slot_database(const QString &); void slot_table(const QString &); signals: void signal_schema(); }; #endif // FIELD_H