1.1 --- a/exportxhtmldialog.ui.h Tue Jan 24 15:09:49 2006 +0000
1.2 +++ b/exportxhtmldialog.ui.h Wed Jan 25 09:04:00 2006 +0000
1.3 @@ -83,10 +83,10 @@
1.4 {
1.5 QMessageBox::warning( 0, tr( "Warning" ),tr(
1.6 "The settings saved in the map "
1.7 - "would like to run scripts:\n\n") +
1.8 - prescript +" "+postscript +"\n\n"+
1.9 - tr("Please check, if you really\n"
1.10 - "want to allow this in your system!"));
1.11 + "would like to run scripts:\n\n"
1.12 + "%1\n\n"
1.13 + "Please check, if you really\n"
1.14 + "want to allow this in your system!").arg(prescript+" "+postscript));
1.15
1.16 }
1.17 }
1.18 @@ -272,12 +272,15 @@
1.19 settings.setLocalEntry
1.20 (filepath,"/vym/export/xhtml/css",css);
1.21
1.22 - //FIXME add option for url image (globe flag) here
1.23 - if (true)
1.24 - {
1.25 - QPixmap pm (flag_url_xpm);
1.26 - pm.save (dir + "/flags/url.png","PNG");
1.27 - }
1.28 + // Provide a smaller URL-icon to improve Layout
1.29 + QPixmap pm;
1.30 + QString ipath="/usr/share/vym/images/flag-url-16x16.png";
1.31 + if (!pm.load(ipath,"PNG") )
1.32 + QMessageBox::warning( 0, tr( "Warning" ),tr("Could not open %1").arg(ipath));
1.33 +
1.34 +
1.35 + if(!pm.save (dir + "flags/url-16x16.png","PNG"))
1.36 + QMessageBox::warning( 0, tr( "Warning" ),tr("Could not write %1").arg(ipath));
1.37
1.38 if (!saveSettingsInMap)
1.39 settings.clearLocal("/vym/export/xhtml");
1.40 @@ -289,11 +292,11 @@
1.41 QFile css_src (css);
1.42 QFile css_dst (dir+"vym.css");
1.43 if (!css_src.open ( IO_ReadOnly))
1.44 - QMessageBox::warning( 0, tr( "Warning" ),css +tr(" could not be opened!"));
1.45 + QMessageBox::warning( 0, tr( "Warning" ),+tr("Could not open %1").arg(css));
1.46 else
1.47 {
1.48 if (!css_dst.open( IO_WriteOnly))
1.49 - QMessageBox::warning( 0, tr( "Warning" ), dir+"vym.css" +tr(" could not be opened!"));
1.50 + QMessageBox::warning( 0, tr( "Warning" ), tr("Could not open!").arg(dir+"vym.css"));
1.51 else
1.52 {
1.53
1.54 @@ -335,13 +338,13 @@
1.55 if (!xsltProc->start() )
1.56 {
1.57 QMessageBox::critical( 0, tr( "Critical Error" ),
1.58 - tr("Couldn't start ") + xsltprocessor );
1.59 + tr("Could not start %1").arg(xsltprocessor) );
1.60 } else
1.61 {
1.62 xsltProc->waitFinished();
1.63 if (!xsltProc->normalExit() )
1.64 QMessageBox::critical( 0, tr( "Critical Error" ),
1.65 - xsltprocessor +" " +tr("didn't exit normally") +
1.66 + tr("%1 didn't exit normally").arg(xsltprocessor) +
1.67 xsltProc->getErrout() );
1.68 else
1.69 if (xsltProc->exitStatus()>0) showOutput=true;
1.70 @@ -394,13 +397,13 @@
1.71 if (!scriptProc->start() )
1.72 {
1.73 QMessageBox::critical( 0, tr( "Critical Error" ),
1.74 - tr("Couldn't start ") + spath );
1.75 + tr("Couldn't start %1").arg(spath) );
1.76 } else
1.77 {
1.78 scriptProc->waitFinished();
1.79 if (!scriptProc->normalExit() )
1.80 QMessageBox::critical( 0, tr( "Critical Error" ),
1.81 - spath +" " +tr("didn't exit normally") +
1.82 + tr("%1 didn't exit normally").arg(spath) +
1.83 scriptProc->getErrout() );
1.84 else
1.85 if (scriptProc->exitStatus()>0) showOutput=true;