2007-12-01 10:47:15 +00:00
|
|
|
/*
|
2024-03-29 10:09:48 +01:00
|
|
|
Copyright 2006-2024 The QElectroTech Team
|
2007-12-01 10:47:15 +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/>.
|
|
|
|
*/
|
2007-11-18 00:22:19 +00:00
|
|
|
#ifndef CONFIG_PAGES_H
|
|
|
|
#define CONFIG_PAGES_H
|
2012-06-29 05:21:34 +00:00
|
|
|
#include "configpage.h"
|
2021-05-14 19:50:30 +02:00
|
|
|
#include "../projectpropertiesdialog.h"
|
|
|
|
#include "../titleblockpropertieswidget.h"
|
2020-12-08 19:57:35 +01:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QtWidgets>
|
2008-08-14 22:51:08 +00:00
|
|
|
class BorderPropertiesWidget;
|
2008-07-30 12:44:57 +00:00
|
|
|
class ConductorPropertiesWidget;
|
2010-12-20 02:45:36 +00:00
|
|
|
class TitleBlockPropertiesWidget;
|
2009-08-09 12:51:02 +00:00
|
|
|
class ExportPropertiesWidget;
|
2014-01-18 19:04:39 +00:00
|
|
|
class ReportPropertieWidget;
|
2014-04-11 09:51:21 +00:00
|
|
|
class XRefPropertiesWidget;
|
2014-09-20 20:04:02 +00:00
|
|
|
class QETProject;
|
2016-05-13 15:00:22 +00:00
|
|
|
class TitleBlockProperties;
|
2007-11-18 00:22:19 +00:00
|
|
|
|
|
|
|
/**
|
2020-08-19 17:31:02 +02:00
|
|
|
@brief The NewDiagramPage class
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to define the properties of new
|
|
|
|
diagrams to come.
|
2007-11-18 00:22:19 +00:00
|
|
|
*/
|
|
|
|
class NewDiagramPage : public ConfigPage {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2007-11-18 00:22:19 +00:00
|
|
|
public:
|
2020-08-18 21:46:39 +02:00
|
|
|
NewDiagramPage(QETProject *project = nullptr,
|
|
|
|
QWidget * = nullptr,
|
|
|
|
ProjectPropertiesDialog *teste = nullptr);
|
2017-08-05 02:10:01 +00:00
|
|
|
~NewDiagramPage() override;
|
2007-11-18 00:22:19 +00:00
|
|
|
private:
|
|
|
|
NewDiagramPage(const NewDiagramPage &);
|
2016-05-13 15:00:22 +00:00
|
|
|
public slots:
|
|
|
|
void changeToAutoFolioTab();
|
|
|
|
void setFolioAutonum(QString);
|
|
|
|
void saveCurrentTbp();
|
|
|
|
void loadSavedTbp();
|
|
|
|
|
2007-11-18 00:22:19 +00:00
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2007-11-18 00:22:19 +00:00
|
|
|
public:
|
2017-08-05 02:10:01 +00:00
|
|
|
void applyConf() override;
|
|
|
|
QString title() const override;
|
|
|
|
QIcon icon() const override;
|
2007-11-18 00:22:19 +00:00
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2014-01-18 19:04:39 +00:00
|
|
|
private:
|
2016-05-13 15:00:22 +00:00
|
|
|
ProjectPropertiesDialog *ppd_;
|
2022-12-04 08:21:12 -05:00
|
|
|
QETProject *m_project; ///< Project to edit properties
|
2014-09-20 20:04:02 +00:00
|
|
|
BorderPropertiesWidget *bpw; ///< Widget to edit default diagram dimensions
|
|
|
|
TitleBlockPropertiesWidget *ipw; ///< Widget to edit default title block properties
|
2024-12-18 16:48:11 +01:00
|
|
|
ConductorPropertiesWidget *m_cpw; ///< Widget to edit default conductor properties
|
2014-09-20 20:04:02 +00:00
|
|
|
ReportPropertieWidget *rpw; ///< Widget to edit default report label
|
2024-12-18 16:48:11 +01:00
|
|
|
XRefPropertiesWidget *xrefpw; ///< Widget to edit default xref properties
|
2016-05-13 15:00:22 +00:00
|
|
|
TitleBlockProperties savedTbp; ///< Used to save current TBP and retrieve later
|
2014-04-11 09:51:21 +00:00
|
|
|
|
2007-11-18 00:22:19 +00:00
|
|
|
};
|
2009-04-03 19:30:25 +00:00
|
|
|
|
2009-08-09 12:51:02 +00:00
|
|
|
/**
|
2020-08-19 17:31:02 +02:00
|
|
|
@brief The ExportConfigPage class
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to set default export options.
|
2009-08-09 12:51:02 +00:00
|
|
|
*/
|
|
|
|
class ExportConfigPage : public ConfigPage {
|
|
|
|
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
|
|
|
ExportConfigPage(QWidget * = nullptr);
|
2017-08-05 02:10:01 +00:00
|
|
|
~ExportConfigPage() override;
|
2009-08-09 12:51:02 +00:00
|
|
|
private:
|
|
|
|
ExportConfigPage(const ExportConfigPage &);
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
2017-08-05 02:10:01 +00:00
|
|
|
void applyConf() override;
|
|
|
|
QString title() const override;
|
|
|
|
QIcon icon() const override;
|
2009-08-09 12:51:02 +00:00
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2009-08-09 12:51:02 +00:00
|
|
|
public:
|
|
|
|
ExportPropertiesWidget *epw;
|
|
|
|
};
|
2009-11-22 16:12:22 +00:00
|
|
|
|
|
|
|
/**
|
2020-08-19 17:31:02 +02:00
|
|
|
@brief The PrintConfigPage class
|
2012-11-09 21:09:24 +00:00
|
|
|
This configuration page enables users to set default printing options.
|
2009-11-22 16:12:22 +00:00
|
|
|
*/
|
|
|
|
class PrintConfigPage : public ConfigPage {
|
|
|
|
Q_OBJECT
|
2012-11-09 21:09:24 +00:00
|
|
|
// constructors, destructor
|
2009-11-22 16:12:22 +00:00
|
|
|
public:
|
2017-08-05 02:06:59 +00:00
|
|
|
PrintConfigPage(QWidget * = nullptr);
|
2017-08-05 02:10:01 +00:00
|
|
|
~PrintConfigPage() override;
|
2009-11-22 16:12:22 +00:00
|
|
|
private:
|
|
|
|
PrintConfigPage(const PrintConfigPage &);
|
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// methods
|
2009-11-22 16:12:22 +00:00
|
|
|
public:
|
2017-08-05 02:10:01 +00:00
|
|
|
void applyConf() override;
|
|
|
|
QString title() const override;
|
|
|
|
QIcon icon() const override;
|
2009-11-22 16:12:22 +00:00
|
|
|
|
2012-11-09 21:09:24 +00:00
|
|
|
// attributes
|
2009-11-22 16:12:22 +00:00
|
|
|
public:
|
|
|
|
ExportPropertiesWidget *epw;
|
|
|
|
};
|
2007-11-18 00:22:19 +00:00
|
|
|
#endif
|