2009-08-09 12:51:02 +00:00
|
|
|
/*
|
2021-02-06 19:00:48 +01:00
|
|
|
Copyright 2006-2020 The QElectroTech Team
|
2009-08-09 12:51:02 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef EXPORT_PROPERTIES_WIDGET_H
|
|
|
|
#define EXPORT_PROPERTIES_WIDGET_H
|
2015-03-02 20:14:56 +00:00
|
|
|
#include <QtWidgets>
|
2009-08-09 12:51:02 +00:00
|
|
|
#include "exportproperties.h"
|
|
|
|
|
|
|
|
/**
|
2012-11-09 21:09:24 +00:00
|
|
|
This widget enables users to edit the various options available when
|
|
|
|
exporting a project.
|
2009-08-09 12:51:02 +00:00
|
|
|
*/
|
|
|
|
class ExportPropertiesWidget : public QWidget {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
2017-08-05 02:06:59 +00:00
|
|
|
ExportPropertiesWidget(QWidget * = nullptr);
|
|
|
|
ExportPropertiesWidget(const ExportProperties &, QWidget * = nullptr);
|
2017-08-05 02:10:01 +00:00
|
|
|
~ExportPropertiesWidget() override;
|
2009-08-09 12:51:02 +00:00
|
|
|
private:
|
|
|
|
ExportPropertiesWidget(const ExportPropertiesWidget &);
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
|
|
|
void setExportProperties(const ExportProperties &);
|
|
|
|
ExportProperties exportProperties() const;
|
2009-11-22 16:12:22 +00:00
|
|
|
void setPrintingMode(bool);
|
2009-08-09 12:51:02 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void slot_chooseADirectory();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void formatChanged();
|
|
|
|
void exportedAreaChanged();
|
2009-11-22 16:12:22 +00:00
|
|
|
void optionChanged();
|
2009-08-09 12:51:02 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void build();
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2009-08-09 12:51:02 +00:00
|
|
|
private:
|
2009-11-22 16:12:22 +00:00
|
|
|
QLabel *dirpath_label;
|
2009-08-09 12:51:02 +00:00
|
|
|
QLineEdit *dirpath;
|
|
|
|
QPushButton *button_browse;
|
2009-11-22 16:12:22 +00:00
|
|
|
QLabel *format_label;
|
2009-08-09 12:51:02 +00:00
|
|
|
QComboBox *format;
|
|
|
|
QCheckBox *draw_grid;
|
|
|
|
QCheckBox *draw_border;
|
2010-12-20 02:45:36 +00:00
|
|
|
QCheckBox *draw_titleblock;
|
2009-08-09 12:51:02 +00:00
|
|
|
QCheckBox *draw_terminals;
|
2009-11-22 16:12:22 +00:00
|
|
|
QCheckBox *draw_colored_conductors;
|
2009-08-09 12:51:02 +00:00
|
|
|
QRadioButton *export_border;
|
|
|
|
QRadioButton *export_elements;
|
|
|
|
QButtonGroup *exported_content_choices;
|
|
|
|
};
|
|
|
|
#endif
|