Databasehandlingdialogclasses  0.5.3
hk_kdemessages.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 //$Revision: 1.17 $
12 
13 #ifndef HK_KDEMESSAGES
14 #define HK_KDEMESSAGES
15 #include <hk_definitions.h>
16 #include <hk_connection.h>
17 #include <qdialog.h>
18 
22 void hk_kdewarning(const hk_string& w);
26 bool hk_kdeyesno_dialog(const hk_string& w,bool default_return);
30 void hk_kdepassworddlg(hk_connection*,struct_connectionfields* c);
31 
32 hk_string hk_kdetranslate(const hk_string& t);
33 
34 hk_string hk_kdedriverselectdialog(void);
35 
36 hk_string hk_kdestringvaluedialog(const hk_string&);
37 
38 hk_string hk_kdedirectorydialog(const hk_string&);
39 
40 hk_string hk_kdefiledialog(const hk_string&,enum_operationmode);
41 
42 void hk_kdedatasourceenablefunction(void);
43 
44 void set_kdestandarddialogs(void);
45 
46 hk_string mimetype2driver(const hk_string& mimetype);
47 
48 class QVBoxLayout;
49 class QHBoxLayout;
50 class QGridLayout;
51 class QLabel;
52 class QLineEdit;
53 class QPushButton;
54 
55 class hk_kdetextdialog : public QDialog
56 {
57  Q_OBJECT
58 
59 public:
60  hk_kdetextdialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
62 
63  QLabel* textlabel;
64  QLineEdit* textfield;
65  QPushButton* buttonOk;
66  QPushButton* buttonCancel;
67 
68 protected:
69  QVBoxLayout* hk_kdetextdialogLayout;
70  QHBoxLayout* Layout1;
71 
72 protected slots:
73  virtual void languageChange();
74  virtual void text_changed(const QString&);
75 };
76 
77 #endif
Definition: hk_kdemessages.h:55