QElectroTech
0.70
|
#include <exportproperties.h>
Public Member Functions | |
ExportProperties () | |
virtual | ~ExportProperties () |
void | toSettings (QSettings &, const QString &=QString()) const |
void | fromSettings (QSettings &, const QString &=QString()) |
Static Public Member Functions | |
static ExportProperties | defaultExportProperties () |
ExportProperties::defaultProperties. More... | |
static ExportProperties | defaultPrintProperties () |
ExportProperties::defaultPrintProperties. More... | |
Public Attributes | |
QDir | destination_directory |
Target directory for generated files. More... | |
QString | format |
Image format of generated files. More... | |
bool | draw_grid |
Whether to render the diagram grid. More... | |
bool | draw_border |
Whether to render the border (along with rows/columns headers) More... | |
bool | draw_titleblock |
Whether to render the title block. More... | |
bool | draw_terminals |
Whether to render terminals. More... | |
bool | draw_colored_conductors |
Whether to render conductors colors. More... | |
QET::DiagramArea | exported_area |
Area of diagrams to be rendered. More... | |
This class is a container for various options used when printing or exporting a diagram as an image file.
Definition at line 27 of file exportproperties.h.
ExportProperties::ExportProperties | ( | ) |
Constructeur par defaut : le repertoire de destination est le Bureau de l'utilisateur le format d'export est PNG la grille et les bornes ne doivent pas etre dessinees la bordure et le cartouche doivent etre dessines la zone exportee est le schema avec son cadre et son cartouche
Definition at line 30 of file exportproperties.cpp.
|
virtual |
Destructeur
Definition at line 45 of file exportproperties.cpp.
|
static |
ExportProperties::defaultProperties.
Definition at line 89 of file exportproperties.cpp.
References fromSettings().
Referenced by ExportConfigPage::ExportConfigPage(), and ExportDialog::ExportDialog().
|
static |
ExportProperties::defaultPrintProperties.
Definition at line 103 of file exportproperties.cpp.
References fromSettings().
Referenced by QETPrintPreviewDialog::build(), and PrintConfigPage::PrintConfigPage().
void ExportProperties::fromSettings | ( | QSettings & | settings, |
const QString & | prefix = QString() |
||
) |
Lit les options depuis une configuration.
settings | Parametres a lire |
prefix | prefixe a ajouter devant les noms des parametres |
Definition at line 69 of file exportproperties.cpp.
References destination_directory, QET::diagramAreaFromString(), draw_border, draw_colored_conductors, draw_grid, draw_terminals, draw_titleblock, exported_area, and format.
Referenced by defaultExportProperties(), and defaultPrintProperties().
void ExportProperties::toSettings | ( | QSettings & | settings, |
const QString & | prefix = QString() |
||
) | const |
Exporte les options dans une configuration.
settings | Parametres a ecrire |
prefix | prefixe a ajouter devant les noms des parametres |
Definition at line 53 of file exportproperties.cpp.
References destination_directory, QET::diagramAreaToString(), draw_border, draw_colored_conductors, draw_grid, draw_terminals, draw_titleblock, exported_area, and format.
QDir ExportProperties::destination_directory |
Target directory for generated files.
Definition at line 43 of file exportproperties.h.
Referenced by ExportDialog::exportDiagram(), ExportDialog::ExportDialog(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
bool ExportProperties::draw_border |
Whether to render the border (along with rows/columns headers)
Definition at line 46 of file exportproperties.h.
Referenced by Diagram::applyProperties(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
bool ExportProperties::draw_colored_conductors |
Whether to render conductors colors.
Definition at line 49 of file exportproperties.h.
Referenced by Diagram::applyProperties(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
bool ExportProperties::draw_grid |
Whether to render the diagram grid.
Definition at line 45 of file exportproperties.h.
Referenced by Diagram::applyProperties(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
bool ExportProperties::draw_terminals |
Whether to render terminals.
Definition at line 48 of file exportproperties.h.
Referenced by Diagram::applyProperties(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
bool ExportProperties::draw_titleblock |
Whether to render the title block.
Definition at line 47 of file exportproperties.h.
Referenced by Diagram::applyProperties(), DiagramPrintDialog::diagramRect(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
QET::DiagramArea ExportProperties::exported_area |
Area of diagrams to be rendered.
Definition at line 50 of file exportproperties.h.
Referenced by Diagram::applyProperties(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().
QString ExportProperties::format |
Image format of generated files.
Definition at line 44 of file exportproperties.h.
Referenced by ExportDialog::exportDiagram(), ExportPropertiesWidget::exportProperties(), fromSettings(), ExportPropertiesWidget::setExportProperties(), and toSettings().