QElectroTech  0.8-dev
exportproperties.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef EXPORT_PROPERTIES_H
19 #define EXPORT_PROPERTIES_H
20 #include <QtCore>
21 #include "qet.h"
22 
28  // constructeur, destructeur
29  public:
31  virtual ~ExportProperties();
32 
33  // methods
34  public:
35  void toSettings (QSettings &, const QString & = QString()) const;
36  void fromSettings(QSettings &, const QString & = QString());
37 
40 
41  // attributes
42  public:
44  QString format;
45  bool draw_grid;
46  bool draw_border;
51 };
52 #endif
ExportProperties::draw_colored_conductors
bool draw_colored_conductors
Whether to render conductors colors.
Definition: exportproperties.h:49
ExportProperties::~ExportProperties
virtual ~ExportProperties()
Definition: exportproperties.cpp:47
QET::diagramAreaFromString
QET::DiagramArea diagramAreaFromString(const QString &)
Definition: qet.cpp:528
exportproperties.h
ExportProperties::format
QString format
Image format of generated files.
Definition: exportproperties.h:44
ExportProperties::draw_border
bool draw_border
Whether to render the border (along with rows/columns headers)
Definition: exportproperties.h:46
ExportProperties::destination_directory
QDir destination_directory
Target directory for generated files.
Definition: exportproperties.h:43
ExportProperties::draw_titleblock
bool draw_titleblock
Whether to render the title block.
Definition: exportproperties.h:47
qet.h
ExportProperties::toSettings
void toSettings(QSettings &, const QString &=QString()) const
Definition: exportproperties.cpp:55
QET::diagramAreaToString
QString diagramAreaToString(const QET::DiagramArea &)
Definition: qet.cpp:518
ExportProperties::fromSettings
void fromSettings(QSettings &, const QString &=QString())
Definition: exportproperties.cpp:81
QET::BorderArea
@ BorderArea
Export the diagram along with its border and title block.
Definition: qet.h:140
ExportProperties::draw_terminals
bool draw_terminals
Whether to render terminals.
Definition: exportproperties.h:48
ExportProperties::exported_area
QET::DiagramArea exported_area
Area of diagrams to be rendered.
Definition: exportproperties.h:50
ExportProperties::defaultExportProperties
static ExportProperties defaultExportProperties()
ExportProperties::defaultProperties.
Definition: exportproperties.cpp:116
ExportProperties
Definition: exportproperties.h:27
ExportProperties::ExportProperties
ExportProperties()
Definition: exportproperties.cpp:30
QET
Definition: qet.h:30
ExportProperties::defaultPrintProperties
static ExportProperties defaultPrintProperties()
ExportProperties::defaultPrintProperties.
Definition: exportproperties.cpp:130
QET::DiagramArea
DiagramArea
Definition: qet.h:139
ExportProperties::draw_grid
bool draw_grid
Whether to render the diagram grid.
Definition: exportproperties.h:45