00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00030 #ifndef INF
00031 #define INF
00032
00033 #include <QtGui>
00034 #include <QtSql>
00035
00036 QT_BEGIN_NAMESPACE
00037
00043 class Inf : public QDialog
00044 {
00045 Q_OBJECT
00046
00047 private:
00048
00049 QString host;
00050 QString port;
00051 QString name;
00052 QString user;
00053 QString pass;
00054
00055 QString connectionType;
00056
00057 QString connectionString;
00058
00059 QStringList selectedTables;
00060
00061 QVBoxLayout *theLayout;
00062 QGridLayout *lytInfo;
00063 QLabel *lblHost;
00064 QHBoxLayout *lytHost;
00065 QLineEdit *txtHost;
00066 QLabel *lblPort;
00067 QLineEdit *txtPort;
00068 QLabel *lblName;
00069 QLineEdit *txtName;
00070 QLabel *lblUser;
00071 QLineEdit *txtUser;
00072 QLabel *lblPass;
00073 QLineEdit *txtPass;
00074
00075 QPushButton *btnConnect;
00076
00077 QVBoxLayout *lytTables;
00078 QLabel *lblTables;
00079 QRadioButton *radAllTables;
00080 QRadioButton *radNonTables;
00081
00082 QListWidget *lstTables;
00083
00084 QHBoxLayout *lytDialog;
00085 QPushButton *btnAccept;
00086 QPushButton *btnCancel;
00087
00092 void InitInterface( void );
00093
00098 void InitSlots( void );
00099
00104 void TranslateInterface( void );
00105
00106 public slots:
00107
00108 void evtBtnConnect( void );
00109
00110 void evtRadAllTables( void );
00111
00112 void evtRadNonTables( void );
00113
00114 void evtBtnAccept( void );
00115
00116 void evtBtnCancel( void );
00117
00118 public:
00119
00124 Inf( QWidget * = 0 );
00125
00130 ~Inf( void );
00131
00136 void setDialogStyle( int );
00137
00142 void setConnectionType( QString );
00143
00148 QString getConnectionString( void );
00149
00154 QStringList getSelectedTables( void );
00155 };
00156
00157 QT_END_NAMESPACE
00158
00159 #endif