Databasehandlingdialogclasses  0.5.3
hk_kdepassworddialog.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_kdeclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file LGPL included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 
12 #ifndef HK_KDEPASSWORD
13 #define HK_KDEPASSWORD
14 #include <qwidget.h>
15 #include <qdialog.h>
16 #include <qlabel.h>
17 #include <qlineedit.h>
18 #include <qpushbutton.h>
19 #include <qlayout.h>
20 #include <qcheckbox.h>
21 #include <qcombobox.h>
22 #include <hk_definitions.h>
23 class dialogedit;
24 class button;
25 class combobox;
26 class hk_connection;
35 class hk_kdepassworddialog:public QDialog
36 {
37  Q_OBJECT
38  public:
39  hk_kdepassworddialog(hk_connection*,QWidget* p=0,const char* name=0,struct_connectionfields*fields=0);
41 
42  protected:
43  QLabel *hostlabel;
44  dialogedit *hostedit;
45  QLabel *userlabel;
46  dialogedit *useredit;
47  QLabel *passwordlabel;
48  dialogedit *passwordedit;
49  QLabel *portlabel;
50  dialogedit *portedit;
51  QLabel *sqldelimiterlabel;
52  dialogedit *sqldelimiteredit;
53  button *ok_button;
54  button *cancel_button;
55  QLabel *header;
56  QLabel *booleanemulationlabel;
57  QComboBox* booleanemulationedit;
58  QLabel* databasenamelabel;
59  combobox* databasenameedit;
60  QCheckBox* savesettings;
61  QLabel *savesettingslabel;
62 
63  private:
64  struct_connectionfields* p_fields;
65  hk_connection* p_connection;
66  QVBoxLayout* gesamtlayout;
67  QVBoxLayout* textlayout;
68  QVBoxLayout* fieldlayout;
69  QHBoxLayout* datalayout;
70  QHBoxLayout* buttonlayout;
71  QHBoxLayout* headerlayout;
72  private slots:
73  void ok_buttonclicked(void);
74  void cancel_buttonclicked(void);
75 
76 };
77 #endif
Definition: hk_kdepassworddialog.h:35
Definition: hk_kdepassworddialog.cpp:20
Definition: hk_kdepassworddialog.cpp:43
Definition: hk_kdepassworddialog.cpp:87