QElectroTech  0.8-dev
configpages.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 CONFIG_PAGES_H
19 #define CONFIG_PAGES_H
20 #include <QtWidgets>
21 #include <QDialog>
22 #include "configpage.h"
31 class QETProject;
33 
39 class NewDiagramPage : public ConfigPage {
40  Q_OBJECT
41  // constructors, destructor
42  public:
43  NewDiagramPage(QETProject *project = nullptr,
44  QWidget * = nullptr,
45  ProjectPropertiesDialog *teste = nullptr);
46  ~NewDiagramPage() override;
47  private:
49 public slots:
50  void changeToAutoFolioTab();
51  void setFolioAutonum(QString);
52  void saveCurrentTbp();
53  void loadSavedTbp();
54 
55 
56  // methods
57  public:
58  void applyConf() override;
59  QString title() const override;
60  QIcon icon() const override;
61 
62  // attributes
63  private:
72 
73 };
74 
79 class ExportConfigPage : public ConfigPage {
80  Q_OBJECT
81  // constructors, destructor
82  public:
83  ExportConfigPage(QWidget * = nullptr);
84  ~ExportConfigPage() override;
85  private:
87 
88  // methods
89  public:
90  void applyConf() override;
91  QString title() const override;
92  QIcon icon() const override;
93 
94  // attributes
95  public:
97 };
98 
103 class PrintConfigPage : public ConfigPage {
104  Q_OBJECT
105  // constructors, destructor
106  public:
107  PrintConfigPage(QWidget * = nullptr);
108  ~PrintConfigPage() override;
109  private:
111 
112  // methods
113  public:
114  void applyConf() override;
115  QString title() const override;
116  QIcon icon() const override;
117 
118  // attributes
119  public:
121 };
122 #endif
TitleBlockPropertiesWidget::setProperties
void setProperties(const TitleBlockProperties &properties)
TitleBlockPropertiesWidget::setProperties.
Definition: titleblockpropertieswidget.cpp:112
BorderProperties
The BorderProperties class This class is a container for dimensions and display properties of a diagr...
Definition: borderproperties.h:29
ConductorPropertiesWidget
Definition: conductorpropertieswidget.h:32
ExportPropertiesWidget
Definition: exportpropertieswidget.h:27
exportpropertieswidget.h
ProjectPropertiesDialog::exec
void exec()
ProjectPropertiesDialog::exec execute this dialog.
Definition: projectpropertiesdialog.cpp:55
PrintConfigPage
The PrintConfigPage class This configuration page enables users to set default printing options.
Definition: configpages.h:103
borderpropertieswidget.h
PrintConfigPage::title
QString title() const override
Definition: configpages.cpp:337
TitleBlockPropertiesWidget
Definition: titleblockpropertieswidget.h:38
ConductorProperties::defaultProperties
static ConductorProperties defaultProperties()
ConductorProperties::defaultProperties.
Definition: conductorproperties.cpp:720
NewDiagramPage::NewDiagramPage
NewDiagramPage(QETProject *project=nullptr, QWidget *=nullptr, ProjectPropertiesDialog *teste=nullptr)
NewDiagramPage::NewDiagramPage Default constructor.
Definition: configpages.cpp:42
ConductorPropertiesWidget::setHiddenAvailableAutonum
void setHiddenAvailableAutonum(const bool &hide)
ConductorPropertiesWidget::setHiddenAvailableAutonum Hide the label, combo box and push button of ava...
Definition: conductorpropertieswidget.cpp:202
ProjectPropertiesDialog::Autonum
@ Autonum
Definition: projectpropertiesdialog.h:35
PrintConfigPage::PrintConfigPage
PrintConfigPage(const PrintConfigPage &)
ReportPropertieWidget
Definition: reportpropertiewidget.h:30
NewDiagramPage::saveCurrentTbp
void saveCurrentTbp()
NewDiagramPage::saveCurrentTbp Save current TBP to retrieve after auto folio num.
Definition: configpages.cpp:225
QETApp::commonTitleBlockTemplatesCollection
static TitleBlockTemplatesFilesCollection * commonTitleBlockTemplatesCollection()
QETApp::commonTitleBlockTemplatesCollection.
Definition: qetapp.cpp:521
QET::Icons::DocumentExport
QIcon DocumentExport
Definition: qeticons.cpp:50
configpages.h
TitleBlockPropertiesWidget::propertiesAutoNum
TitleBlockProperties propertiesAutoNum(QString autoNum) const
TitleBlockPropertiesWidget::properties.
Definition: titleblockpropertieswidget.cpp:211
PrintConfigPage::PrintConfigPage
PrintConfigPage(QWidget *=nullptr)
Definition: configpages.cpp:289
QET::Icons::Projects
QIcon Projects
Definition: qeticons.cpp:146
reportpropertiewidget.h
NewDiagramPage::NewDiagramPage
NewDiagramPage(const NewDiagramPage &)
titleblockpropertieswidget.h
NewDiagramPage::applyConf
void applyConf() override
NewDiagramPage::applyConf Apply conf for this page. If there is a project, save in the project,...
Definition: configpages.cpp:116
NewDiagramPage::changeToAutoFolioTab
void changeToAutoFolioTab()
NewDiagramPage::changeToAutoFolioTab Set the current tab to Autonum.
Definition: configpages.cpp:203
PrintConfigPage::icon
QIcon icon() const override
Definition: configpages.cpp:332
qetapp.h
NewDiagramPage::setFolioAutonum
void setFolioAutonum(QString)
NewDiagramPage::setFolioAutonum Set temporary TBP to use in auto folio num.
Definition: configpages.cpp:215
QETProject::embeddedTitleBlockTemplatesCollection
TitleBlockTemplatesProjectCollection * embeddedTitleBlockTemplatesCollection()
Definition: qetproject.cpp:243
reportproperties.h
ReportProperties::defaultProperties
static QString defaultProperties()
ReportProperties::defaultProperties.
Definition: reportproperties.cpp:28
ReportProperties
The ReportProperties class.
Definition: reportproperties.h:27
configpage.h
XRefProperties
The XRefProperties class this class store properties used by XrefItem.
Definition: xrefproperties.h:29
qeticons.h
NewDiagramPage::xrefpw
XRefPropertiesWidget * xrefpw
Widget to edit default xref properties.
Definition: configpages.h:70
TitleBlockProperties
Definition: titleblockproperties.h:29
ExportConfigPage
The ExportConfigPage class This configuration page enables users to set default export options.
Definition: configpages.h:79
NewDiagramPage
The NewDiagramPage class This configuration page enables users to define the properties of new diagra...
Definition: configpages.h:39
ExportConfigPage::icon
QIcon icon() const override
Definition: configpages.cpp:276
projectpropertiesdialog.h
XRefPropertiesWidget
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties.
Definition: xrefpropertieswidget.h:33
ExportConfigPage::~ExportConfigPage
~ExportConfigPage() override
Destructeur.
Definition: configpages.cpp:263
ExportConfigPage::applyConf
void applyConf() override
Definition: configpages.cpp:269
NewDiagramPage::ipw
TitleBlockPropertiesWidget * ipw
Widget to edit default title block properties.
Definition: configpages.h:67
QETApp::customTitleBlockTemplatesCollection
static TitleBlockTemplatesFilesCollection * customTitleBlockTemplatesCollection()
QETApp::customTitleBlockTemplatesCollection.
Definition: qetapp.cpp:541
NewDiagramPage::bpw
BorderPropertiesWidget * bpw
Widget to edit default diagram dimensions.
Definition: configpages.h:66
QET::Icons::NewDiagram
QIcon NewDiagram
Definition: qeticons.cpp:121
NewDiagramPage::icon
QIcon icon() const override
NewDiagramPage::icon.
Definition: configpages.cpp:185
ExportConfigPage::epw
ExportPropertiesWidget * epw
Definition: configpages.h:96
TitleBlockProperties::defaultProperties
static TitleBlockProperties defaultProperties()
TitleBlockProperties::defaultProperties Return the default properties stored in the setting file.
Definition: titleblockproperties.cpp:182
PrintConfigPage::~PrintConfigPage
~PrintConfigPage() override
Destructeur.
Definition: configpages.cpp:311
BorderProperties::defaultProperties
static BorderProperties defaultProperties()
BorderProperties::defaultProperties.
Definition: borderproperties.cpp:169
bordertitleblock.h
ConfigPage
Definition: configpage.h:27
qetproject.h
NewDiagramPage::savedTbp
TitleBlockProperties savedTbp
Used to save current TBP and retrieve later.
Definition: configpages.h:71
ExportConfigPage::ExportConfigPage
ExportConfigPage(QWidget *=nullptr)
Definition: configpages.cpp:242
ExportConfigPage::title
QString title() const override
Definition: configpages.cpp:281
PrintConfigPage::applyConf
void applyConf() override
PrintConfigPage::applyConf Apply the config of this page.
Definition: configpages.cpp:318
QETProject
Definition: qetproject.h:51
ProjectPropertiesDialog::changeToFolio
void changeToFolio()
ProjectPropertiesDialog::changeToFolio Change the current displayed tab to folio tab.
Definition: projectpropertiesdialog.cpp:73
NewDiagramPage::~NewDiagramPage
~NewDiagramPage() override
NewDiagramPage::~NewDiagramPage.
Definition: configpages.cpp:106
ProjectPropertiesDialog::setCurrentPage
void setCurrentPage(ProjectPropertiesDialog::Page)
ProjectPropertiesDialog::setCurrentPage Change the current displayed page by p.
Definition: projectpropertiesdialog.cpp:65
ConductorProperties
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition: conductorproperties.h:68
ExportProperties::defaultExportProperties
static ExportProperties defaultExportProperties()
ExportProperties::defaultProperties.
Definition: exportproperties.cpp:116
PrintConfigPage::epw
ExportPropertiesWidget * epw
Definition: configpages.h:120
xrefpropertieswidget.h
NewDiagramPage::rpw
ReportPropertieWidget * rpw
Widget to edit default report label.
Definition: configpages.h:69
ExportConfigPage::ExportConfigPage
ExportConfigPage(const ExportConfigPage &)
TitleBlockPropertiesWidget::properties
TitleBlockProperties properties() const
TitleBlockPropertiesWidget::properties.
Definition: titleblockpropertieswidget.cpp:170
BorderPropertiesWidget
The BorderPropertiesWidget class this widget edit the properties of a border.
Definition: borderpropertieswidget.h:33
QET::Icons::Printer
QIcon Printer
Definition: qeticons.cpp:139
NewDiagramPage::title
QString title() const override
NewDiagramPage::title.
Definition: configpages.cpp:194
ProjectPropertiesDialog
The ProjectPropertiesDialog class this class builds a dialog to edit whole properties of a project.
Definition: projectpropertiesdialog.h:30
conductorpropertieswidget.h
NewDiagramPage::loadSavedTbp
void loadSavedTbp()
NewDiagramPage::loadSavedTbp Retrieve saved auto folio num.
Definition: configpages.cpp:233
ReportPropertieWidget::toSettings
void toSettings(QSettings &settings, const QString &prefix)
Definition: reportpropertiewidget.cpp:34
NewDiagramPage::ppd_
ProjectPropertiesDialog * ppd_
Definition: configpages.h:64
XRefProperties::toSettings
void toSettings(QSettings &settings, const QString=QString()) const override
XRefProperties::toSettings Save to settings.
Definition: xrefproperties.cpp:44
XRefProperties::defaultProperties
static QHash< QString, XRefProperties > defaultProperties()
XRefProperties::defaultProperties.
Definition: xrefproperties.cpp:165
ExportProperties::defaultPrintProperties
static ExportProperties defaultPrintProperties()
ExportProperties::defaultPrintProperties.
Definition: exportproperties.cpp:130
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
NewDiagramPage::m_project
QETProject * m_project
Project to edit propertie.
Definition: configpages.h:65
NewDiagramPage::m_cpw
ConductorPropertiesWidget * m_cpw
Widget to edit default conductor properties.
Definition: configpages.h:68