diff -r 544a64d7cbac -r de97201180ea exportxhtmldialog.ui.h
--- a/exportxhtmldialog.ui.h Tue Jan 24 15:09:49 2006 +0000
+++ b/exportxhtmldialog.ui.h Wed Jan 25 09:04:00 2006 +0000
@@ -83,10 +83,10 @@
{
QMessageBox::warning( 0, tr( "Warning" ),tr(
"The settings saved in the map "
- "would like to run scripts:\n\n") +
- prescript +" "+postscript +"\n\n"+
- tr("Please check, if you really\n"
- "want to allow this in your system!"));
+ "would like to run scripts:\n\n"
+ "%1\n\n"
+ "Please check, if you really\n"
+ "want to allow this in your system!").arg(prescript+" "+postscript));
}
}
@@ -272,12 +272,15 @@
settings.setLocalEntry
(filepath,"/vym/export/xhtml/css",css);
- //FIXME add option for url image (globe flag) here
- if (true)
- {
- QPixmap pm (flag_url_xpm);
- pm.save (dir + "/flags/url.png","PNG");
- }
+ // Provide a smaller URL-icon to improve Layout
+ QPixmap pm;
+ QString ipath="/usr/share/vym/images/flag-url-16x16.png";
+ if (!pm.load(ipath,"PNG") )
+ QMessageBox::warning( 0, tr( "Warning" ),tr("Could not open %1").arg(ipath));
+
+
+ if(!pm.save (dir + "flags/url-16x16.png","PNG"))
+ QMessageBox::warning( 0, tr( "Warning" ),tr("Could not write %1").arg(ipath));
if (!saveSettingsInMap)
settings.clearLocal("/vym/export/xhtml");
@@ -289,11 +292,11 @@
QFile css_src (css);
QFile css_dst (dir+"vym.css");
if (!css_src.open ( IO_ReadOnly))
- QMessageBox::warning( 0, tr( "Warning" ),css +tr(" could not be opened!"));
+ QMessageBox::warning( 0, tr( "Warning" ),+tr("Could not open %1").arg(css));
else
{
if (!css_dst.open( IO_WriteOnly))
- QMessageBox::warning( 0, tr( "Warning" ), dir+"vym.css" +tr(" could not be opened!"));
+ QMessageBox::warning( 0, tr( "Warning" ), tr("Could not open!").arg(dir+"vym.css"));
else
{
@@ -335,13 +338,13 @@
if (!xsltProc->start() )
{
QMessageBox::critical( 0, tr( "Critical Error" ),
- tr("Couldn't start ") + xsltprocessor );
+ tr("Could not start %1").arg(xsltprocessor) );
} else
{
xsltProc->waitFinished();
if (!xsltProc->normalExit() )
QMessageBox::critical( 0, tr( "Critical Error" ),
- xsltprocessor +" " +tr("didn't exit normally") +
+ tr("%1 didn't exit normally").arg(xsltprocessor) +
xsltProc->getErrout() );
else
if (xsltProc->exitStatus()>0) showOutput=true;
@@ -394,13 +397,13 @@
if (!scriptProc->start() )
{
QMessageBox::critical( 0, tr( "Critical Error" ),
- tr("Couldn't start ") + spath );
+ tr("Couldn't start %1").arg(spath) );
} else
{
scriptProc->waitFinished();
if (!scriptProc->normalExit() )
QMessageBox::critical( 0, tr( "Critical Error" ),
- spath +" " +tr("didn't exit normally") +
+ tr("%1 didn't exit normally").arg(spath) +
scriptProc->getErrout() );
else
if (scriptProc->exitStatus()>0) showOutput=true;