/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dDisconnect : public QDialog { Q_OBJECT public: dDisconnect( OdbcTest *pOdbcTest, QString name ); ~dDisconnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dFullConnect : public QDialog { Q_OBJECT public: dFullConnect( OdbcTest *pOdbcTest, QString name ); ~dFullConnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLineEdit *dsn, *usr, *pwd; QLabel *l_handle, *l_dsn, *l_usr, *l_pwd; QListWidget *dsn_list; QTextEdit *in_win; QGroupBox *version, *cursor; QTextEdit *out_win; OdbcTest *pOdbcTest; QRadioButton *ver_2, *ver_3, *ver_def; QRadioButton *cur_ifneeded, *cur_use, *cur_driver, *cur_default; QString txt; protected slots: void Ok(); void set_dsn( const QString &); }; class dGetInfo : public QDialog { Q_OBJECT public: dGetInfo( OdbcTest *pOdbcTest, QString name ); ~dGetInfo(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *type; QLineEdit *buffer_len; QCheckBox *target_valid, *strlen_valid; QLabel *l_handle, *l_type, *l_buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void strlen_clkd(); void Ok(); }; class dGetFunctions : public QDialog { Q_OBJECT public: dGetFunctions( OdbcTest *pOdbcTest, QString name ); ~dGetFunctions(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *type; QCheckBox *target_valid; QLabel *l_handle, *l_type; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void Ok(); }; class dBrowseConnect : public QDialog { Q_OBJECT public: dBrowseConnect( OdbcTest *pOdbcTest, QString name ); ~dBrowseConnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *in_str, *str_len; QLineEdit *buffer_len; QCheckBox *out_str_valid, *strlen_valid; QLabel *l_handle, *l_out_str, *l_buffer_len; QLabel *l_str_len, *l_in_str; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_str_clkd(); void strlen_clkd(); void Ok(); }; class dDriverConnect : public QDialog { Q_OBJECT public: dDriverConnect( OdbcTest *pOdbcTest, QString name ); ~dDriverConnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *in_str, *str_len, *driver_completion; QLineEdit *buffer_len; QCheckBox *out_str_valid, *strlen_valid; QLabel *l_handle, *l_out_str, *l_buffer_len; QLabel *l_str_len, *l_in_str, *l_driver_completion; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_str_clkd(); void strlen_clkd(); void Ok(); }; class dNativeSQL : public QDialog { Q_OBJECT public: dNativeSQL( OdbcTest *pOdbcTest, QString name ); ~dNativeSQL(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *in_str, *str_len; QLineEdit *buffer_len; QCheckBox *out_str_valid, *strlen_valid; QLabel *l_handle, *l_out_str, *l_buffer_len; QLabel *l_str_len, *l_in_str; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_str_clkd(); void strlen_clkd(); void Ok(); }; class dAllocConnect : public QDialog { Q_OBJECT public: dAllocConnect( OdbcTest *pOdbcTest, QString name ); ~dAllocConnect(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QCheckBox *handle_valid; QComboBox *handles; QLabel *l_handles; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void handle_clkd(); }; class dFreeConnect : public QDialog { Q_OBJECT public: dFreeConnect( OdbcTest *pOdbcTest, QString name ); ~dFreeConnect(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QComboBox *handles; QLabel *l_handles; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); };