Add GIF, PCX and BMP output formats to Studio

This commit is contained in:
Robin Stuart 2016-08-14 10:52:15 +01:00
parent 532247e97a
commit fc657d5fe8
3 changed files with 24 additions and 3 deletions

View File

@ -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
}

View File

@ -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">

View File

@ -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())