mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-15 15:44:34 -04:00
Add GIF, PCX and BMP output formats to Studio
This commit is contained in:
parent
532247e97a
commit
fc657d5fe8
3 changed files with 24 additions and 3 deletions
|
@ -74,11 +74,17 @@ void ExportWindow::process()
|
|||
switch(cmbFileFormat->currentIndex()) {
|
||||
#ifdef NO_PNG
|
||||
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
|
||||
case 0: suffix = ".png"; 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
|
||||
}
|
||||
|
||||
|
|
|
@ -75,11 +75,26 @@
|
|||
<string>Encapsulated Post Script (*.eps)</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Graphics Interchange Format (*.gif)</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Scalable Vector Graphic (*.svg)</string>
|
||||
</property>
|
||||
</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 class="QToolButton" name="btnDestPath">
|
||||
<property name="geometry">
|
||||
|
|
|
@ -155,7 +155,7 @@ bool MainWindow::save()
|
|||
#else
|
||||
QString fileName = QFileDialog::getSaveFileName(this,
|
||||
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
|
||||
|
||||
if (fileName.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue