QElectroTech  0.70
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ExportProperties Class Reference

#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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ExportProperties()

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.

◆ ~ExportProperties()

ExportProperties::~ExportProperties ( )
virtual

Destructeur

Definition at line 45 of file exportproperties.cpp.

Member Function Documentation

◆ defaultExportProperties()

ExportProperties ExportProperties::defaultExportProperties ( )
static

ExportProperties::defaultProperties.

Returns
the default properties stored in the setting file

Definition at line 89 of file exportproperties.cpp.

References fromSettings().

Referenced by ExportConfigPage::ExportConfigPage(), and ExportDialog::ExportDialog().

◆ defaultPrintProperties()

ExportProperties ExportProperties::defaultPrintProperties ( )
static

ExportProperties::defaultPrintProperties.

Returns
the default properties stored in the setting file

Definition at line 103 of file exportproperties.cpp.

References fromSettings().

Referenced by QETPrintPreviewDialog::build(), and PrintConfigPage::PrintConfigPage().

◆ fromSettings()

void ExportProperties::fromSettings ( QSettings &  settings,
const QString &  prefix = QString() 
)

Lit les options depuis une configuration.

Parameters
settingsParametres a lire
prefixprefixe 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().

◆ toSettings()

void ExportProperties::toSettings ( QSettings &  settings,
const QString &  prefix = QString() 
) const

Exporte les options dans une configuration.

Parameters
settingsParametres a ecrire
prefixprefixe 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.

Member Data Documentation

◆ destination_directory

QDir ExportProperties::destination_directory

◆ draw_border

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

◆ draw_colored_conductors

bool ExportProperties::draw_colored_conductors

◆ draw_grid

bool ExportProperties::draw_grid

◆ draw_terminals

bool ExportProperties::draw_terminals

◆ draw_titleblock

bool ExportProperties::draw_titleblock

◆ exported_area

QET::DiagramArea ExportProperties::exported_area

◆ format

QString ExportProperties::format

The documentation for this class was generated from the following files: