QElectroTech  0.70
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:
36 
37  // methods
38  public:
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;
66  QRadioButton *export_border;
67  QRadioButton *export_elements;
68  QButtonGroup *exported_content_choices;
69 };
70 #endif
void setExportProperties(const ExportProperties &)
QButtonGroup * exported_content_choices
~ExportPropertiesWidget() override
Destructeur.
ExportProperties exportProperties() const
ExportPropertiesWidget(QWidget *=nullptr)