Added emf and tif extension to the qt frontend save dialog

This commit is contained in:
Harald Oehlmann 2017-03-29 17:32:19 +02:00
parent 6ac21c39b8
commit eeb921d575
3 changed files with 16 additions and 2 deletions

View File

@ -78,6 +78,8 @@ void ExportWindow::process()
case 2: suffix = ".svg"; break;
case 3: suffix = ".bmp"; break;
case 4: suffix = ".pcx"; break;
case 5: suffix = ".emf"; break;
case 6: suffix = ".tif"; break;
#else
case 0: suffix = ".png"; break;
case 1: suffix = ".eps"; break;
@ -85,6 +87,8 @@ void ExportWindow::process()
case 3: suffix = ".svg"; break;
case 4: suffix = ".bmp"; break;
case 5: suffix = ".pcx"; break;
case 6: suffix = ".emf"; break;
case 7: suffix = ".tif"; break;
#endif
}

View File

@ -95,6 +95,16 @@
<string>ZSoft PC Painter Image (*.pcx)</string>
</property>
</item>
<item>
<property name="text">
<string>Extended Metafile (*.emf)</string>
</property>
</item>
<item>
<property name="text">
<string>Tagged Image File Format (*.tif)</string>
</property>
</item>
</widget>
<widget class="QToolButton" name="btnDestPath">
<property name="geometry">

View File

@ -152,11 +152,11 @@ bool MainWindow::save()
#ifdef NO_PNG
QString fileName = QFileDialog::getSaveFileName(this,
tr("Save Barcode Image"), ".",
tr("Encapsulated Post Script (*.eps);;Scalable Vector Graphic (*.svg)"));
tr("Encapsulated Post Script (*.eps);;Graphics Interchange Format (*.gif);;Scalable Vector Graphic (*.svg);;Windows Bitmap (*.bmp);;ZSoft PC Painter Image (*.pcx);;Extended Metafile (*.emf);;Tagged Image File Format (*.tif)"));
#else
QString fileName = QFileDialog::getSaveFileName(this,
tr("Save Barcode Image"), ".",
tr("Portable Network Graphic (*.png);;Encapsulated Post Script (*.eps);;Graphics Interchange Format (*.gif);;Scalable Vector Graphic (*.svg);;Windows Bitmap (*.bmp);;ZSoft PC Painter Image (*.pcx)"));
tr("Portable Network Graphic (*.png);;Encapsulated Post Script (*.eps);;Graphics Interchange Format (*.gif);;Scalable Vector Graphic (*.svg);;Windows Bitmap (*.bmp);;ZSoft PC Painter Image (*.pcx);;Extended Metafile (*.emf);;Tagged Image File Format (*.tif)"));
#endif
if (fileName.isEmpty())