20 #include <QStandardPaths> 31 destination_directory(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)),
35 draw_titleblock(true),
36 draw_terminals(false),
37 draw_colored_conductors(true),
55 settings.setValue(prefix +
"format",
format);
56 settings.setValue(prefix +
"drawgrid",
draw_grid);
57 settings.setValue(prefix +
"drawborder",
draw_border);
70 QString desktop_path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
74 format = settings.value(prefix +
"format").toString();
76 draw_grid = settings.value(prefix +
"drawgrid",
false).toBool();
77 draw_border = settings.value(prefix +
"drawborder",
true ).toBool();
78 draw_titleblock = settings.value(prefix +
"drawtitleblock",
true ).toBool();
79 draw_terminals = settings.value(prefix +
"drawterminals",
false).toBool();
QString format
Image format of generated files.
QET::DiagramArea diagramAreaFromString(const QString &)
virtual ~ExportProperties()
bool draw_border
Whether to render the border (along with rows/columns headers)
void toSettings(QSettings &, const QString &=QString()) const
QString diagramAreaToString(const QET::DiagramArea &)
void fromSettings(QSettings &, const QString &=QString())
bool draw_colored_conductors
Whether to render conductors colors.
QDir destination_directory
Target directory for generated files.
static ExportProperties defaultExportProperties()
ExportProperties::defaultProperties.
static ExportProperties defaultPrintProperties()
ExportProperties::defaultPrintProperties.
bool draw_titleblock
Whether to render the title block.
bool draw_grid
Whether to render the diagram grid.
QET::DiagramArea exported_area
Area of diagrams to be rendered.
Export the diagram along with its border and title block.
bool draw_terminals
Whether to render terminals.