#include <export_layout_dialog.h>
Public Member Functions | |
ExportLayoutDialog (int count, Draw mode=Draw::Layout, const QString &fileName=QString(), QWidget *parent=nullptr) | |
virtual | ~ExportLayoutDialog () |
QString | path () const |
QString | fileName () const |
QString | modeString () const |
modeString() More... | |
LayoutExportFormat | format () const |
QString | formatText () const |
void | selectFormat (LayoutExportFormat format) |
void | setBinaryDXFFormat (bool binary) |
bool | isBinaryDXFFormat () const |
void | setDestinationPath (const QString &cmdDestinationPath) |
Draw | mode () const |
bool | isTextAsPaths () const |
void | setTextAsPaths (bool textAsPaths) |
Public Member Functions inherited from VAbstractLayoutDialog | |
VAbstractLayoutDialog (QWidget *parent=nullptr) | |
Static Public Member Functions | |
static QString | exportFormatSuffix (LayoutExportFormat format) |
Protected Member Functions | |
virtual void | showEvent (QShowEvent *event) Q_DECL_OVERRIDE |
void | initTemplates (QComboBox *templates) |
Protected Member Functions inherited from VAbstractLayoutDialog | |
QSizeF | getTemplateSize (const PaperSizeTemplate &tmpl, const Unit &unit) const |
DialogLayoutSettings::TemplateSize. More... | |
QSizeF | RoundTemplateSize (qreal width, qreal height, Unit unit) const |
void | initTemplates (QComboBox *comboBoxTemplates) |
Private Slots | |
void | save () |
void | pathChanged (const QString &text) |
void | showExportFiles () |
Private Member Functions | |
void | removeFormatFromList (LayoutExportFormat format) |
void | readSettings () |
ExportLayoutDialog::readSettings. More... | |
void | writeSettings () const |
ExportLayoutDialog::writeSettings. More... | |
Private Attributes | |
Ui::ExportLayoutDialog * | ui |
int | m_count |
bool | m_isInitialized |
Draw | m_mode |
QPushButton * | m_SaveButton |
Additional Inherited Members | |
Public Types inherited from VAbstractLayoutDialog | |
enum class | PaperSizeTemplate : char { A0 = 0 , A1 , A2 , A3 , A4 , Letter , Legal , Roll24in = 7 , Roll30in , Roll36in , Roll42in , Roll44in = 11 , Custom = 12 } |
Protected Types inherited from VAbstractLayoutDialog | |
typedef QStringList | FormatsVector |
typedef int | VIndexType |
Static Protected Attributes inherited from VAbstractLayoutDialog | |
static const FormatsVector | pageFormatNames |
Definition at line 48 of file export_layout_dialog.h.
|
explicit |
Definition at line 52 of file export_layout_dialog.cpp.
References Calculation, 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, fileName(), fileNameRegExp, VApplication::IsGUIMode(), Layout, m_mode, m_SaveButton, modeString(), OBJ, PDFTiled, qApp, removeFormatFromList(), save(), SCASSERT, showExportFiles(), and ui.
|
virtual |
Definition at line 408 of file export_layout_dialog.cpp.
References ui.
|
static |
Definition at line 349 of file export_layout_dialog.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, format(), JPG, OBJ, PDF, PDFTiled, PNG, PPM, PS, SVG, and TIF.
Referenced by MainWindowsNoGUI::ExportData(), MainWindow::exportDraftBlocksAs(), MainWindowsNoGUI::ExportFlatLayout(), MainWindowsNoGUI::exportPiecesAsApparelLayout(), MainWindowsNoGUI::ExportScene(), save(), and showExportFiles().
QString ExportLayoutDialog::fileName | ( | ) | const |
Definition at line 420 of file export_layout_dialog.cpp.
References ui.
Referenced by MainWindowsNoGUI::ExportData(), MainWindow::exportDraftBlocksAs(), MainWindowsNoGUI::ExportFlatLayout(), ExportLayoutDialog(), MainWindowsNoGUI::exportPiecesAsApparelLayout(), MainWindowsNoGUI::ExportScene(), save(), and showExportFiles().
LayoutExportFormat ExportLayoutDialog::format | ( | ) | const |
Definition at line 426 of file export_layout_dialog.cpp.
References ui.
Referenced by MainWindowsNoGUI::ExportApparelLayout(), MainWindowsNoGUI::ExportData(), MainWindow::exportDraftBlocksAs(), MainWindowsNoGUI::ExportFlatLayout(), exportFormatSuffix(), MainWindowsNoGUI::exportPiecesAsApparelLayout(), MainWindowsNoGUI::ExportScene(), isBinaryDXFFormat(), removeFormatFromList(), save(), selectFormat(), setBinaryDXFFormat(), and showExportFiles().
QString ExportLayoutDialog::formatText | ( | ) | const |
Definition at line 432 of file export_layout_dialog.cpp.
References ui.
Referenced by writeSettings().
|
protected |
Definition at line 186 of file export_layout_dialog.cpp.
References VAbstractLayoutDialog::initTemplates().
bool ExportLayoutDialog::isBinaryDXFFormat | ( | ) | const |
Definition at line 267 of file export_layout_dialog.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, format(), JPG, OBJ, PDF, PDFTiled, PNG, PPM, PS, SVG, TIF, and ui.
Referenced by MainWindowsNoGUI::ExportApparelLayout(), and MainWindowsNoGUI::ExportScene().
bool ExportLayoutDialog::isTextAsPaths | ( | ) | const |
Definition at line 615 of file export_layout_dialog.cpp.
References ui.
Referenced by MainWindowsNoGUI::exportPiecesAsApparelLayout(), and MainWindowsNoGUI::exportPiecesAsFlatLayout().
Draw ExportLayoutDialog::mode | ( | ) | const |
Definition at line 343 of file export_layout_dialog.cpp.
References m_mode.
Referenced by MainWindowsNoGUI::ExportData(), MainWindowsNoGUI::ExportFlatLayout(), MainWindowsNoGUI::exportPiecesAsApparelLayout(), and MainWindowsNoGUI::ExportScene().
QString ExportLayoutDialog::modeString | ( | ) | const |
Definition at line 764 of file export_layout_dialog.cpp.
References Calculation, Layout, m_mode, Modeling, and qApp.
Referenced by ExportLayoutDialog().
QString ExportLayoutDialog::path | ( | ) | const |
Definition at line 414 of file export_layout_dialog.cpp.
References ui.
Referenced by MainWindowsNoGUI::ExportApparelLayout(), MainWindowsNoGUI::ExportData(), MainWindow::exportDraftBlocksAs(), MainWindowsNoGUI::ExportFlatLayout(), MainWindowsNoGUI::exportPiecesAsApparelLayout(), MainWindowsNoGUI::ExportScene(), save(), and setDestinationPath().
|
privateslot |
Definition at line 493 of file export_layout_dialog.cpp.
References m_SaveButton, and ui.
|
private |
ExportLayoutDialog::readSettings.
Reads the values of the variables needed for the save layout dialog, for instance the margins, teamplte and orientation of tiled pdf. Then sets the corresponding elements of the dialog to these values.
Definition at line 671 of file export_layout_dialog.cpp.
References VAbstractLayoutDialog::Custom, VCommonSettings::getExportQuality(), VAbstractLayoutDialog::getTemplateSize(), VSettings::GetTiledPDFMargins(), VSettings::getTiledPDFOrientation(), VSettings::getTiledPDFPaperHeight(), VSettings::getTiledPDFPaperWidth(), Mm, Portrait, qApp, and ui.
|
private |
Definition at line 653 of file export_layout_dialog.cpp.
Referenced by ExportLayoutDialog().
|
privateslot |
Definition at line 438 of file export_layout_dialog.cpp.
References exportFormatSuffix(), fileName(), format(), Layout, m_count, m_mode, path(), ui, and writeSettings().
Referenced by ExportLayoutDialog().
void ExportLayoutDialog::selectFormat | ( | LayoutExportFormat | format | ) |
Definition at line 198 of file export_layout_dialog.cpp.
References COUNT, format(), and ui.
Referenced by MainWindow::DoExport().
void ExportLayoutDialog::setBinaryDXFFormat | ( | bool | binary | ) |
Definition at line 216 of file export_layout_dialog.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, format(), JPG, OBJ, PDF, PDFTiled, PNG, PPM, PS, SVG, TIF, and ui.
Referenced by MainWindow::DoExport().
void ExportLayoutDialog::setDestinationPath | ( | const QString & | cmdDestinationPath | ) |
Definition at line 316 of file export_layout_dialog.cpp.
Referenced by MainWindow::DoExport().
void ExportLayoutDialog::setTextAsPaths | ( | bool | textAsPaths | ) |
Definition at line 621 of file export_layout_dialog.cpp.
References Layout, m_mode, and ui.
Referenced by MainWindow::DoExport().
|
protectedvirtual |
Definition at line 634 of file export_layout_dialog.cpp.
References m_isInitialized.
|
privateslot |
Definition at line 514 of file export_layout_dialog.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, exportFormatSuffix(), fileName(), format(), JPG, Layout, m_count, m_mode, OBJ, PDF, PDFTiled, PNG, PPM, PS, SCASSERT, SVG, TIF, and ui.
Referenced by ExportLayoutDialog().
|
private |
ExportLayoutDialog::writeSettings.
Writes the values of some variables (like the margins, template and orientation of tiled pdf). of the save layout dialog into the settings.
Definition at line 720 of file export_layout_dialog.cpp.
References formatText(), VAbstractLayoutDialog::getTemplateSize(), Landscape, Mm, Portrait, qApp, VCommonSettings::setExportQuality(), VSettings::setTiledPDFMargins(), VSettings::setTiledPDFOrientation(), VSettings::setTiledPDFPaperHeight(), VSettings::setTiledPDFPaperWidth(), and ui.
Referenced by save().
|
private |
Definition at line 90 of file export_layout_dialog.h.
Referenced by save(), and showExportFiles().
|
private |
Definition at line 91 of file export_layout_dialog.h.
Referenced by showEvent().
|
private |
Definition at line 92 of file export_layout_dialog.h.
Referenced by ExportLayoutDialog(), mode(), modeString(), save(), setTextAsPaths(), and showExportFiles().
|
private |
Definition at line 93 of file export_layout_dialog.h.
Referenced by ExportLayoutDialog(), and pathChanged().
|
private |
Definition at line 89 of file export_layout_dialog.h.
Referenced by ExportLayoutDialog(), fileName(), format(), formatText(), isBinaryDXFFormat(), isTextAsPaths(), path(), pathChanged(), readSettings(), removeFormatFromList(), save(), selectFormat(), setBinaryDXFFormat(), setDestinationPath(), setTextAsPaths(), showExportFiles(), writeSettings(), and ~ExportLayoutDialog().