00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef HK_KDEPASSWORD
00013 #define HK_KDEPASSWORD
00014 #include <qwidget.h>
00015 #include <qdialog.h>
00016 #include <qlabel.h>
00017 #include <qlineedit.h>
00018 #include <qpushbutton.h>
00019 #include <qlayout.h>
00020 #include <qcheckbox.h>
00021 #include <qcombobox.h>
00022 #include <hk_definitions.h>
00023 class dialogedit;
00024 class button;
00025 class combobox;
00026 class hk_connection;
00035 class hk_kdepassworddialog:public QDialog
00036 {
00037 Q_OBJECT
00038 public:
00039 hk_kdepassworddialog(hk_connection*,QWidget* p=0,const char* name=0,struct_connectionfields*fields=0);
00040 ~hk_kdepassworddialog();
00041
00042 protected:
00043 QLabel *hostlabel;
00044 dialogedit *hostedit;
00045 QLabel *userlabel;
00046 dialogedit *useredit;
00047 QLabel *passwordlabel;
00048 dialogedit *passwordedit;
00049 QLabel *portlabel;
00050 dialogedit *portedit;
00051 QLabel *sqldelimiterlabel;
00052 dialogedit *sqldelimiteredit;
00053 button *ok_button;
00054 button *cancel_button;
00055 QLabel *header;
00056 QLabel *booleanemulationlabel;
00057 QComboBox* booleanemulationedit;
00058 QLabel* databasenamelabel;
00059 combobox* databasenameedit;
00060 QCheckBox* savesettings;
00061 QLabel *savesettingslabel;
00062
00063 private:
00064 struct_connectionfields* p_fields;
00065 hk_connection* p_connection;
00066 QVBoxLayout* gesamtlayout;
00067 QVBoxLayout* textlayout;
00068 QVBoxLayout* fieldlayout;
00069 QHBoxLayout* datalayout;
00070 QHBoxLayout* buttonlayout;
00071 QHBoxLayout* headerlayout;
00072 private slots:
00073 void ok_buttonclicked(void);
00074 void cancel_buttonclicked(void);
00075
00076 };
00077 #endif