mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add GIF, PCX and BMP output formats to Studio
This commit is contained in:
parent
532247e97a
commit
fc657d5fe8
@ -74,11 +74,17 @@ void ExportWindow::process()
|
|||||||
switch(cmbFileFormat->currentIndex()) {
|
switch(cmbFileFormat->currentIndex()) {
|
||||||
#ifdef NO_PNG
|
#ifdef NO_PNG
|
||||||
case 0: suffix = ".eps"; break;
|
case 0: suffix = ".eps"; break;
|
||||||
case 1: suffix = ".svg"; break;
|
case 1: suffix = ".gif"; break;
|
||||||
|
case 2: suffix = ".svg"; break;
|
||||||
|
case 3: suffix = ".bmp"; break;
|
||||||
|
case 4: suffix = ".pcx"; break;
|
||||||
#else
|
#else
|
||||||
case 0: suffix = ".png"; break;
|
case 0: suffix = ".png"; break;
|
||||||
case 1: suffix = ".eps"; break;
|
case 1: suffix = ".eps"; break;
|
||||||
case 2: suffix = ".svg"; break;
|
case 2: suffix = ".gif"; break;
|
||||||
|
case 3: suffix = ".svg"; break;
|
||||||
|
case 4: suffix = ".bmp"; break;
|
||||||
|
case 5: suffix = ".pcx"; break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,11 +75,26 @@
|
|||||||
<string>Encapsulated Post Script (*.eps)</string>
|
<string>Encapsulated Post Script (*.eps)</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Graphics Interchange Format (*.gif)</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Scalable Vector Graphic (*.svg)</string>
|
<string>Scalable Vector Graphic (*.svg)</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Windows Bitmap (*.bmp)</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>ZSoft PC Painter Image (*.pcx)</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolButton" name="btnDestPath">
|
<widget class="QToolButton" name="btnDestPath">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
|
@ -155,7 +155,7 @@ bool MainWindow::save()
|
|||||||
#else
|
#else
|
||||||
QString fileName = QFileDialog::getSaveFileName(this,
|
QString fileName = QFileDialog::getSaveFileName(this,
|
||||||
tr("Save Barcode Image"), ".",
|
tr("Save Barcode Image"), ".",
|
||||||
tr("Portable Network Graphic (*.png);;Encapsulated Post Script (*.eps);;Scalable Vector Graphic (*.svg)"));
|
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)"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (fileName.isEmpty())
|
if (fileName.isEmpty())
|
||||||
|
Loading…
Reference in New Issue
Block a user