00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef HK_KDEMESSAGES
00014 #define HK_KDEMESSAGES
00015 #include <hk_definitions.h>
00016 #include <hk_connection.h>
00017 #include <qdialog.h>
00018
00022 void hk_kdewarning(const hk_string& w);
00026 bool hk_kdeyesno_dialog(const hk_string& w,bool default_return);
00030 void hk_kdepassworddlg(hk_connection*,struct_connectionfields* c);
00031
00032 hk_string hk_kdetranslate(const hk_string& t);
00033
00034 hk_string hk_kdedriverselectdialog(void);
00035
00036 hk_string hk_kdestringvaluedialog(const hk_string&);
00037
00038 void set_kdestandarddialogs(void);
00039
00040 class QVBoxLayout;
00041 class QHBoxLayout;
00042 class QGridLayout;
00043 class QLabel;
00044 class QLineEdit;
00045 class QPushButton;
00046
00047 class hk_kdetextdialog : public QDialog
00048 {
00049 Q_OBJECT
00050
00051 public:
00052 hk_kdetextdialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00053 ~hk_kdetextdialog();
00054
00055 QLabel* textlabel;
00056 QLineEdit* textfield;
00057 QPushButton* buttonOk;
00058 QPushButton* buttonCancel;
00059
00060 protected:
00061 QVBoxLayout* hk_kdetextdialogLayout;
00062 QHBoxLayout* Layout1;
00063
00064 protected slots:
00065 virtual void languageChange();
00066 virtual void text_changed(const QString&);
00067 };
00068
00069 #endif