QElectroTech
0.70
sources
exportpropertieswidget.h
Go to the documentation of this file.
1
/*
2
Copyright 2006-2019 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_WIDGET_H
19
#define EXPORT_PROPERTIES_WIDGET_H
20
#include <QtWidgets>
21
#include "
exportproperties.h
"
22
27
class
ExportPropertiesWidget
:
public
QWidget {
28
Q_OBJECT
29
// constructors, destructor
30
public
:
31
ExportPropertiesWidget
(QWidget * =
nullptr
);
32
ExportPropertiesWidget
(
const
ExportProperties
&, QWidget * =
nullptr
);
33
~ExportPropertiesWidget
()
override
;
34
private
:
35
ExportPropertiesWidget
(
const
ExportPropertiesWidget
&);
36
37
// methods
38
public
:
39
void
setExportProperties
(
const
ExportProperties
&);
40
ExportProperties
exportProperties
()
const
;
41
void
setPrintingMode
(
bool
);
42
43
public
slots:
44
void
slot_chooseADirectory
();
45
46
signals:
47
void
formatChanged
();
48
void
exportedAreaChanged
();
49
void
optionChanged
();
50
51
private
:
52
void
build
();
53
54
// attributes
55
private
:
56
QLabel *
dirpath_label
;
57
QLineEdit *
dirpath
;
58
QPushButton *
button_browse
;
59
QLabel *
format_label
;
60
QComboBox *
format
;
61
QCheckBox *
draw_grid
;
62
QCheckBox *
draw_border
;
63
QCheckBox *
draw_titleblock
;
64
QCheckBox *
draw_terminals
;
65
QCheckBox *
draw_colored_conductors
;
66
QRadioButton *
export_border
;
67
QRadioButton *
export_elements
;
68
QButtonGroup *
exported_content_choices
;
69
};
70
#endif
ExportPropertiesWidget::draw_grid
QCheckBox * draw_grid
Definition:
exportpropertieswidget.h:61
ExportPropertiesWidget::setExportProperties
void setExportProperties(const ExportProperties &)
Definition:
exportpropertieswidget.cpp:66
ExportPropertiesWidget::format
QComboBox * format
Definition:
exportpropertieswidget.h:60
ExportPropertiesWidget::dirpath
QLineEdit * dirpath
Definition:
exportpropertieswidget.h:57
ExportProperties
Definition:
exportproperties.h:27
ExportPropertiesWidget::dirpath_label
QLabel * dirpath_label
Definition:
exportpropertieswidget.h:56
ExportPropertiesWidget::build
void build()
Definition:
exportpropertieswidget.cpp:119
ExportPropertiesWidget::exported_content_choices
QButtonGroup * exported_content_choices
Definition:
exportpropertieswidget.h:68
ExportPropertiesWidget::~ExportPropertiesWidget
~ExportPropertiesWidget() override
Destructeur.
Definition:
exportpropertieswidget.cpp:42
ExportPropertiesWidget::draw_terminals
QCheckBox * draw_terminals
Definition:
exportpropertieswidget.h:64
ExportPropertiesWidget
Definition:
exportpropertieswidget.h:27
ExportPropertiesWidget::button_browse
QPushButton * button_browse
Definition:
exportpropertieswidget.h:58
ExportPropertiesWidget::setPrintingMode
void setPrintingMode(bool)
Definition:
exportpropertieswidget.cpp:92
ExportPropertiesWidget::export_elements
QRadioButton * export_elements
Definition:
exportpropertieswidget.h:67
ExportPropertiesWidget::formatChanged
void formatChanged()
exportproperties.h
ExportPropertiesWidget::export_border
QRadioButton * export_border
Definition:
exportpropertieswidget.h:66
ExportPropertiesWidget::optionChanged
void optionChanged()
ExportPropertiesWidget::draw_colored_conductors
QCheckBox * draw_colored_conductors
Definition:
exportpropertieswidget.h:65
ExportPropertiesWidget::draw_border
QCheckBox * draw_border
Definition:
exportpropertieswidget.h:62
ExportPropertiesWidget::format_label
QLabel * format_label
Definition:
exportpropertieswidget.h:59
ExportPropertiesWidget::draw_titleblock
QCheckBox * draw_titleblock
Definition:
exportpropertieswidget.h:63
ExportPropertiesWidget::slot_chooseADirectory
void slot_chooseADirectory()
Definition:
exportpropertieswidget.cpp:105
ExportPropertiesWidget::exportProperties
ExportProperties exportProperties() const
Definition:
exportpropertieswidget.cpp:48
ExportPropertiesWidget::ExportPropertiesWidget
ExportPropertiesWidget(QWidget *=nullptr)
Definition:
exportpropertieswidget.cpp:24
ExportPropertiesWidget::exportedAreaChanged
void exportedAreaChanged()
Generated by
1.8.15