18 #include <gwenhywfar/debug.h>
20 #include <QMessageBox>
21 #include <QApplication>
22 #include <QFileDialog>
48 _pushedParents.push_back(_parentWidget);
55 if (!_pushedParents.empty()) {
56 _parentWidget=_pushedParents.back();
57 _pushedParents.pop_back();
74 while ((p=strchr(p,
'<'))) {
79 if (toupper(*t)==
'H') {
81 if (toupper(*t)==
'T') {
83 if (toupper(*t)==
'M') {
85 if (toupper(*t)==
'L') {
87 if (toupper(*t)==
'>') {
101 while ((p2=strchr(p2,
'<'))) {
106 if (toupper(*t)==
'/') {
108 if (toupper(*t)==
'H') {
110 if (toupper(*t)==
'T') {
112 if (toupper(*t)==
'M') {
114 if (toupper(*t)==
'L') {
116 if (toupper(*t)==
'>') {
129 return QString(
"<qt>")+QString::fromUtf8(p, p2-p)+QString(
"</qt>");
131 return QString::fromUtf8(text);
138 QWidget *owner=qApp->activeWindow();
141 if (!(qt4Dlg.
setup(owner))) {
152 QWidget *owner=qApp->activeWindow();
157 if (!(qt4Dlg->
setup(owner))) {
187 return qt4Dlg->
runDialog((untilEnd==0)?
false:
true);
195 const char *patterns,
202 QWidget *owner=qApp->activeWindow();
205 sCaption=QString::fromUtf8(caption);
215 str=QString::fromUtf8(s1, s2-s1);
216 str.replace(
',',
' ');
217 str.replace(
';',
' ');
222 str=QString::fromUtf8(s1);
223 str.replace(
',',
' ');
224 str.replace(
';',
' ');
241 str=QFileDialog::getOpenFileName(owner, sCaption, sPath, sPatterns);
245 str=QFileDialog::getSaveFileName(owner, sCaption, sPath, sPatterns);
249 str=QFileDialog::getExistingDirectory(owner, sCaption, sPath);