mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Added emf and tif extension to the qt frontend save dialog
This commit is contained in:
parent
6ac21c39b8
commit
eeb921d575
@ -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
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user