#include <export_format_combobox.h>
Signals | |
void | exportFormatChanged (const LayoutExportFormat &format) |
Public Member Functions | |
ExportFormatCombobox (QWidget *parent=nullptr, const char *name=nullptr) | |
virtual | ~ExportFormatCombobox () |
void | init () |
LayoutExportFormat | getExportFormat () const |
void | setExportFormat (LayoutExportFormat &format) |
void | setCurrentToDefault () |
Static Public Member Functions | |
static QString | exportFormatDescription (LayoutExportFormat format) |
static QString | makeHelpFormatList () |
Private Slots | |
void | updateExportFormat (int index) |
Static Private Member Functions | |
static QVector< std::pair< QString, LayoutExportFormat > > | initFormats () |
static bool | supportPSTest () |
static bool | testPdf () |
Private Attributes | |
LayoutExportFormat | m_currentFormat |
Static Private Attributes | |
static bool | havePdf = false |
static bool | tested = false |
A comboBox for choosing an export format type.
Definition at line 37 of file export_format_combobox.h.
ExportFormatCombobox::ExportFormatCombobox | ( | QWidget * | parent = nullptr , |
const char * | name = nullptr |
||
) |
|
virtual |
Destructor
Definition at line 61 of file export_format_combobox.cpp.
|
signal |
Referenced by updateExportFormat().
|
static |
Definition at line 201 of file export_format_combobox.cpp.
References BMP, DXF_AC1006_AAMA, DXF_AC1006_ASTM, DXF_AC1006_Flat, DXF_AC1009_AAMA, DXF_AC1009_ASTM, DXF_AC1009_Flat, DXF_AC1012_AAMA, DXF_AC1012_ASTM, DXF_AC1012_Flat, DXF_AC1014_AAMA, DXF_AC1014_ASTM, DXF_AC1014_Flat, DXF_AC1015_AAMA, DXF_AC1015_ASTM, DXF_AC1015_Flat, DXF_AC1018_AAMA, DXF_AC1018_ASTM, DXF_AC1018_Flat, DXF_AC1021_AAMA, DXF_AC1021_ASTM, DXF_AC1021_Flat, DXF_AC1024_AAMA, DXF_AC1024_ASTM, DXF_AC1024_Flat, DXF_AC1027_AAMA, DXF_AC1027_ASTM, DXF_AC1027_Flat, EPS, JPG, OBJ, PDF, PDFTiled, PNG, PPM, PS, SVG, and TIF.
Referenced by initFormats().
LayoutExportFormat ExportFormatCombobox::getExportFormat | ( | ) | const |
Definition at line 87 of file export_format_combobox.cpp.
References m_currentFormat.
void ExportFormatCombobox::init | ( | ) |
Initialisation called from constructor or manually but only once.
Definition at line 66 of file export_format_combobox.cpp.
References initFormats(), setCurrentToDefault(), and updateExportFormat().
Referenced by ExportFormatCombobox().
|
staticprivate |
Definition at line 108 of file export_format_combobox.cpp.
References BMP, DXF_AC1006_AAMA, DXF_AC1006_Flat, DXF_AC1009_AAMA, DXF_AC1009_Flat, DXF_AC1012_AAMA, DXF_AC1012_Flat, DXF_AC1014_AAMA, DXF_AC1014_Flat, DXF_AC1015_AAMA, DXF_AC1015_Flat, DXF_AC1018_AAMA, DXF_AC1018_Flat, DXF_AC1021_AAMA, DXF_AC1021_Flat, DXF_AC1024_AAMA, DXF_AC1024_Flat, DXF_AC1027_AAMA, DXF_AC1027_Flat, EPS, exportFormatDescription(), JPG, OBJ, PDF, PDFTiled, PNG, PPM, PS, supportPSTest(), SVG, and TIF.
Referenced by init(), and makeHelpFormatList().
|
static |
Definition at line 291 of file export_format_combobox.cpp.
References initFormats().
Referenced by VCommandLine::InitOptions().
void ExportFormatCombobox::setCurrentToDefault | ( | ) |
void ExportFormatCombobox::setExportFormat | ( | LayoutExportFormat & | format | ) |
Sets the currently selected format item to the given format.
Definition at line 95 of file export_format_combobox.cpp.
References m_currentFormat, and updateExportFormat().
|
staticprivate |
Definition at line 164 of file export_format_combobox.cpp.
References havePdf, tested, and testPdf().
Referenced by initFormats().
|
staticprivate |
Definition at line 175 of file export_format_combobox.cpp.
Referenced by supportPSTest().
|
privateslot |
Called when the width has changed. This method sets the current width to the value chosen or even offers a dialog to the user that allows him/ her to choose an individual width.
Definition at line 306 of file export_format_combobox.cpp.
References exportFormatChanged(), and m_currentFormat.
Referenced by init(), and setExportFormat().
|
staticprivate |
Definition at line 63 of file export_format_combobox.h.
Referenced by supportPSTest().
|
private |
Definition at line 65 of file export_format_combobox.h.
Referenced by getExportFormat(), setExportFormat(), and updateExportFormat().
|
staticprivate |
Definition at line 64 of file export_format_combobox.h.
Referenced by supportPSTest().