1.1 --- a/exportxhtmldialog.ui.h Mon Apr 24 11:31:15 2006 +0000
1.2 +++ b/exportxhtmldialog.ui.h Tue Sep 05 11:53:54 2006 +0000
1.3 @@ -1,3 +1,6 @@
1.4 +//Added by qt3to4:
1.5 +#include <QPixmap>
1.6 +#include <QTextStream>
1.7 /****************************************************************************
1.8 ** ui.h extension file, included from the uic-generated form implementation.
1.9 **
1.10 @@ -22,42 +25,42 @@
1.11 void ExportXHTMLDialog::readSettings()
1.12 {
1.13
1.14 - dir=settings.readLocalEntry (filepath,"/vym/export/xhtml/exportDir",vymBaseDir.currentDirPath() );
1.15 + dir=settings.readLocalEntry (filepath,"/export/xhtml/exportDir",vymBaseDir.currentDirPath() );
1.16 lineEditDir->setText(dir);
1.17
1.18 - if ( settings.readLocalEntry (filepath,"/vym/export/xhtml/useImage","yes")=="yes")
1.19 + if ( settings.readLocalEntry (filepath,"/export/xhtml/useImage","yes")=="yes")
1.20 useImage=true;
1.21 else
1.22 useImage=false;
1.23 imageButton->setChecked(useImage);
1.24
1.25 - if ( settings.readLocalEntry (filepath,"/vym/export/xhtml/useTextColor","no")=="yes")
1.26 + if ( settings.readLocalEntry (filepath,"/export/xhtml/useTextColor","no")=="yes")
1.27 useTextColor=true;
1.28 else
1.29 useTextColor=false;
1.30 textColorButton->setChecked(useTextColor);
1.31
1.32 /* FIXME this was used in old html export, is not yet in new stylesheet
1.33 - if ( settings.readEntry ("/vym/export/html/useHeading","no")=="yes")
1.34 + if ( settings.readEntry ("/export/html/useHeading","no")=="yes")
1.35 useHeading=true;
1.36 else
1.37 useHeading=false;
1.38 checkBox4_2->setChecked(useHeading);
1.39 */
1.40
1.41 - if ( settings.readLocalEntry (filepath,"/vym/export/xhtml/saveSettingsInMap","no")=="yes")
1.42 + if ( settings.readLocalEntry (filepath,"/export/xhtml/saveSettingsInMap","no")=="yes")
1.43 saveSettingsInMap=true;
1.44 else
1.45 saveSettingsInMap=false;
1.46 saveSettingsInMapButton->setChecked(saveSettingsInMap);
1.47
1.48 - if ( settings.readEntry ("/vym/export/xhtml/showWarnings","yes")=="yes")
1.49 + if ( settings.readEntry ("/export/xhtml/showWarnings","yes")=="yes")
1.50 showWarnings=true;
1.51 else
1.52 showWarnings=false;
1.53 warningsButton->setChecked(showWarnings);
1.54
1.55 - if ( settings.readEntry ("/vym/export/xhtml/showOutput","no")=="yes")
1.56 + if ( settings.readEntry ("/export/xhtml/showOutput","no")=="yes")
1.57 showOutput=true;
1.58 else
1.59 showOutput=false;
1.60 @@ -71,19 +74,19 @@
1.61 } else
1.62 {
1.63 xsl=settings.readLocalEntry
1.64 - (filepath,"/vym/export/xhtml/xsl","/usr/share/vym/styles/vym2xhtml.xsl");
1.65 + (filepath,"/export/xhtml/xsl","/usr/share/vym/styles/vym2xhtml.xsl");
1.66 css=settings.readLocalEntry
1.67 - (filepath,"/vym/export/xhtml/css","/usr/share/vym/styles/vym.css");
1.68 + (filepath,"/export/xhtml/css","/usr/share/vym/styles/vym.css");
1.69 }
1.70 lineEditXSL->setText(xsl);
1.71 lineEditCSS->setText(css);
1.72
1.73 prescript=settings.readLocalEntry
1.74 - (filepath,"/vym/export/xhtml/prescript","");
1.75 + (filepath,"/export/xhtml/prescript","");
1.76 lineEditPreScript->setText (prescript);
1.77
1.78 postscript=settings.readLocalEntry
1.79 - (filepath,"/vym/export/xhtml/postscript","");
1.80 + (filepath,"/export/xhtml/postscript","");
1.81 lineEditPostScript->setText (postscript);
1.82
1.83 if (!prescript.isEmpty() || !postscript.isEmpty())
1.84 @@ -112,8 +115,8 @@
1.85
1.86 void ExportXHTMLDialog::browseDirectoryPressed()
1.87 {
1.88 - QFileDialog fd( this, tr("VYM - Export HTML to directory"));
1.89 - fd.setMode (QFileDialog::DirectoryOnly);
1.90 + Q3FileDialog fd( this, tr("VYM - Export HTML to directory"));
1.91 + fd.setMode (Q3FileDialog::DirectoryOnly);
1.92 fd.setCaption(tr("VYM - Export HTML to directory"));
1.93 fd.setModal (true);
1.94 fd.show();
1.95 @@ -165,7 +168,7 @@
1.96
1.97 void ExportXHTMLDialog::browseCSSPressed()
1.98 {
1.99 - QFileDialog fd( this, tr("VYM - Path to CSS file"));
1.100 + Q3FileDialog fd( this, tr("VYM - Path to CSS file"));
1.101 fd.setModal (true);
1.102 fd.addFilter ("Cascading Stylesheet (*.css)");
1.103 fd.show();
1.104 @@ -192,7 +195,7 @@
1.105
1.106 void ExportXHTMLDialog::browseXSLPressed()
1.107 {
1.108 - QFileDialog fd( this, tr("VYM - Path to XSL file"));
1.109 + Q3FileDialog fd( this, tr("VYM - Path to XSL file"));
1.110 fd.setModal (true);
1.111 fd.addFilter ("Extensible Stylesheet Language (*.xsl)");
1.112 fd.show();
1.113 @@ -213,7 +216,7 @@
1.114
1.115 void ExportXHTMLDialog::browsePreExportButtonPressed()
1.116 {
1.117 - QFileDialog fd( this, tr("VYM - Path to pre export script"));
1.118 + Q3FileDialog fd( this, tr("VYM - Path to pre export script"));
1.119 fd.setModal (true);
1.120 fd.addFilter ("Scripts (*.sh *.pl *.py *.php)");
1.121 fd.show();
1.122 @@ -229,7 +232,7 @@
1.123
1.124 void ExportXHTMLDialog::browsePostExportButtonPressed()
1.125 {
1.126 - QFileDialog fd( this, tr("VYM - Path to post export script"));
1.127 + Q3FileDialog fd( this, tr("VYM - Path to post export script"));
1.128 fd.setModal (true);
1.129 fd.addFilter ("Scripts (*.sh *.pl *.py *.php)");
1.130 fd.show();
1.131 @@ -248,38 +251,38 @@
1.132 // Save options to settings file
1.133 // (but don't save at destructor, which
1.134 // is called for "cancel", too)
1.135 - settings.setLocalEntry (filepath,"/vym/export/xhtml/exportDir",dir);
1.136 - settings.setLocalEntry (filepath,"/vym/export/xhtml/prescript",prescript);
1.137 - settings.setLocalEntry (filepath,"/vym/export/xhtml/postscript",postscript);
1.138 + settings.setLocalEntry (filepath,"/export/xhtml/exportDir",dir);
1.139 + settings.setLocalEntry (filepath,"/export/xhtml/prescript",prescript);
1.140 + settings.setLocalEntry (filepath,"/export/xhtml/postscript",postscript);
1.141
1.142 if (useImage)
1.143 - settings.setLocalEntry (filepath,"/vym/export/xhtml/useImage","yes");
1.144 + settings.setLocalEntry (filepath,"/export/xhtml/useImage","yes");
1.145 else
1.146 - settings.setLocalEntry (filepath,"/vym/export/xhtml/useImage","no");
1.147 + settings.setLocalEntry (filepath,"/export/xhtml/useImage","no");
1.148
1.149 if (useTextColor)
1.150 - settings.setLocalEntry (filepath,"/vym/export/xhtml/useTextColor","yes");
1.151 + settings.setLocalEntry (filepath,"/export/xhtml/useTextColor","yes");
1.152 else
1.153 - settings.setLocalEntry (filepath,"/vym/export/xhtml/useTextColor","no");
1.154 + settings.setLocalEntry (filepath,"/export/xhtml/useTextColor","no");
1.155
1.156 if (showWarnings)
1.157 - settings.writeEntry ("/vym/export/xhtml/showWarnings","yes");
1.158 + settings.writeEntry ("/export/xhtml/showWarnings","yes");
1.159 else
1.160 - settings.writeEntry ("/vym/export/xhtml/showWarnings","no");
1.161 + settings.writeEntry ("/export/xhtml/showWarnings","no");
1.162
1.163 if (showOutput)
1.164 - settings.writeEntry ("/vym/export/xhtml/showOutput","yes");
1.165 + settings.writeEntry ("/export/xhtml/showOutput","yes");
1.166 else
1.167 - settings.writeEntry ("/vym/export/xhtml/showOutput","no");
1.168 + settings.writeEntry ("/export/xhtml/showOutput","no");
1.169
1.170 QString ipath;
1.171 ipath=vymBaseDir.path()+"/flags/flag-url-16x16.png";
1.172 if (!options.isOn ("local"))
1.173 {
1.174 settings.setLocalEntry
1.175 - (filepath,"/vym/export/xhtml/xsl",xsl);
1.176 + (filepath,"/export/xhtml/xsl",xsl);
1.177 settings.setLocalEntry
1.178 - (filepath,"/vym/export/xhtml/css",css);
1.179 + (filepath,"/export/xhtml/css",css);
1.180 }
1.181
1.182 // Provide a smaller URL-icon to improve Layout
1.183 @@ -291,19 +294,19 @@
1.184 if(!pm.save (dir + "flags/flag-url-16x16.png","PNG"))
1.185 QMessageBox::warning( 0, tr( "Warning" ),tr("Could not write %1").arg(ipath));
1.186 if (!saveSettingsInMap)
1.187 - settings.clearLocal("/vym/export/xhtml");
1.188 + settings.clearLocal("/export/xhtml");
1.189 else
1.190 settings.setLocalEntry
1.191 - (filepath,"/vym/export/xhtml/saveSettingsInMap","yes");
1.192 + (filepath,"/export/xhtml/saveSettingsInMap","yes");
1.193
1.194 // Copy CSS file
1.195 QFile css_src (css);
1.196 QFile css_dst (dir+"vym.css");
1.197 - if (!css_src.open ( IO_ReadOnly))
1.198 - QMessageBox::warning( 0, tr( "Warning" ),+tr("Could not open %1").arg(css));
1.199 + if (!css_src.open ( QIODevice::ReadOnly))
1.200 + QMessageBox::warning( 0, tr( "Warning" ),tr("Could not open %1").arg(css));
1.201 else
1.202 {
1.203 - if (!css_dst.open( IO_WriteOnly))
1.204 + if (!css_dst.open( QIODevice::WriteOnly))
1.205 QMessageBox::warning( 0, tr( "Warning" ), tr("Could not open %1").arg(dir+"vym.css"));
1.206 else
1.207 {