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 hk_string hk_kdedirectorydialog(const hk_string&);
00039
00040 hk_string hk_kdefiledialog(const hk_string&,enum_operationmode);
00041
00042 void hk_kdedatasourceenablefunction(void);
00043
00044 void set_kdestandarddialogs(void);
00045
00046 hk_string mimetype2driver(const hk_string& mimetype);
00047
00048 class QVBoxLayout;
00049 class QHBoxLayout;
00050 class QGridLayout;
00051 class QLabel;
00052 class QLineEdit;
00053 class QPushButton;
00054
00055 class hk_kdetextdialog : public QDialog
00056 {
00057 Q_OBJECT
00058
00059 public:
00060 hk_kdetextdialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00061 ~hk_kdetextdialog();
00062
00063 QLabel* textlabel;
00064 QLineEdit* textfield;
00065 QPushButton* buttonOk;
00066 QPushButton* buttonCancel;
00067
00068 protected:
00069 QVBoxLayout* hk_kdetextdialogLayout;
00070 QHBoxLayout* Layout1;
00071
00072 protected slots:
00073 virtual void languageChange();
00074 virtual void text_changed(const QString&);
00075 };
00076
00077 #endif