QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
exportpropertieswidget.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 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
27class 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:
36
37 // methods
38 public:
41 void setPrintingMode(bool);
42
43 public slots:
45
46 signals:
50
51 private:
52 void build();
53
54 // attributes
55 private:
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;
67 QRadioButton *export_border;
68 QRadioButton *export_elements;
70};
71#endif
Definition exportproperties.h:27
Definition exportpropertieswidget.h:27
QLineEdit * dirpath
Definition exportpropertieswidget.h:57
ExportPropertiesWidget(const ExportPropertiesWidget &)
QRadioButton * export_border
Definition exportpropertieswidget.h:67
QPushButton * button_browse
Definition exportpropertieswidget.h:58
QCheckBox * draw_border
Definition exportpropertieswidget.h:62
void setPrintingMode(bool)
ExportPropertiesWidget::setPrintingMode Puts the widget in Print or Export mode. Print mode does not ...
Definition exportpropertieswidget.cpp:112
void build()
ExportPropertiesWidget::build Generated the ExportPropertiesWidget ui / Cette methode construit le wi...
Definition exportpropertieswidget.cpp:145
void slot_chooseADirectory()
ExportPropertiesWidget::slot_chooseADirectory Slot asking the user to choose a folder / Slot demandan...
Definition exportpropertieswidget.cpp:128
QComboBox * format
Definition exportpropertieswidget.h:60
QCheckBox * draw_titleblock
Definition exportpropertieswidget.h:63
QCheckBox * draw_grid
Definition exportpropertieswidget.h:61
QLabel * format_label
Definition exportpropertieswidget.h:59
ExportProperties exportProperties() const
ExportPropertiesWidget::exportProperties.
Definition exportpropertieswidget.cpp:56
QCheckBox * draw_colored_conductors
Definition exportpropertieswidget.h:66
~ExportPropertiesWidget() override
ExportPropertiesWidget::~ExportPropertiesWidget Destructeur.
Definition exportpropertieswidget.cpp:48
QRadioButton * export_elements
Definition exportpropertieswidget.h:68
void setExportProperties(const ExportProperties &)
ExportPropertiesWidget::setExportProperties.
Definition exportpropertieswidget.cpp:77
QButtonGroup * exported_content_choices
Definition exportpropertieswidget.h:69
QCheckBox * draw_terminals
Definition exportpropertieswidget.h:64
QLabel * dirpath_label
Definition exportpropertieswidget.h:56
QCheckBox * draw_bg_transparent
Definition exportpropertieswidget.h:65