QElectroTech  0.70
configpages.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 CONFIG_PAGES_H
19 #define CONFIG_PAGES_H
20 #include <QtWidgets>
21 #include <QDialog>
22 #include "configpage.h"
31 class QETProject;
33 
38 class NewDiagramPage : public ConfigPage {
39  Q_OBJECT
40  // constructors, destructor
41  public:
42  NewDiagramPage(QETProject *project = nullptr, QWidget * = nullptr, ProjectPropertiesDialog *teste = nullptr);
43  ~NewDiagramPage() override;
44  private:
46 public slots:
47  void changeToAutoFolioTab();
48  void setFolioAutonum(QString);
49  void saveCurrentTbp();
50  void loadSavedTbp();
51 
52 
53  // methods
54  public:
55  void applyConf() override;
56  QString title() const override;
57  QIcon icon() const override;
58 
59  // attributes
60  private:
69 
70 };
71 
75 class ExportConfigPage : public ConfigPage {
76  Q_OBJECT
77  // constructors, destructor
78  public:
79  ExportConfigPage(QWidget * = nullptr);
80  ~ExportConfigPage() override;
81  private:
83 
84  // methods
85  public:
86  void applyConf() override;
87  QString title() const override;
88  QIcon icon() const override;
89 
90  // attributes
91  public:
93 };
94 
98 class PrintConfigPage : public ConfigPage {
99  Q_OBJECT
100  // constructors, destructor
101  public:
102  PrintConfigPage(QWidget * = nullptr);
103  ~PrintConfigPage() override;
104  private:
106 
107  // methods
108  public:
109  void applyConf() override;
110  QString title() const override;
111  QIcon icon() const override;
112 
113  // attributes
114  public:
116 };
117 #endif
~ExportConfigPage() override
Destructeur.
The ProjectPropertiesDialog class this class builds a dialog to edit whole properties of a project...
ExportPropertiesWidget * epw
Definition: configpages.h:115
The BorderPropertiesWidget class this widget edit the properties of a border.
QString title() const override
NewDiagramPage::title.
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties.
TitleBlockProperties savedTbp
Used to save current TBP and retrieve later.
Definition: configpages.h:68
ProjectPropertiesDialog * ppd_
Definition: configpages.h:61
BorderPropertiesWidget * bpw
Widget to edit default diagram dimensions.
Definition: configpages.h:63
QString title() const override
QString title() const override
TitleBlockPropertiesWidget * ipw
Widget to edit default title block properties.
Definition: configpages.h:64
QIcon icon() const override
NewDiagramPage::icon.
ExportPropertiesWidget * epw
Definition: configpages.h:92
void changeToAutoFolioTab()
NewDiagramPage::changeToAutoFolioTab Set the current tab to Autonum.
void loadSavedTbp()
NewDiagramPage::loadSavedTbp Retrieve saved auto folio num.
void setFolioAutonum(QString)
NewDiagramPage::setFolioAutonum Set temporary TBP to use in auto folio num.
~PrintConfigPage() override
Destructeur.
QETProject * m_project
Project to edit propertie.
Definition: configpages.h:62
void applyConf() override
PrintConfigPage::applyConf Apply the config of this page.
ExportConfigPage(QWidget *=nullptr)
PrintConfigPage(QWidget *=nullptr)
XRefPropertiesWidget * xrefpw
Widget to edit default xref properties.
Definition: configpages.h:67
ConductorPropertiesWidget * m_cpw
Widget to edit default conductor properties.
Definition: configpages.h:65
ReportPropertieWidget * rpw
Widget to edit default report label.
Definition: configpages.h:66
~NewDiagramPage() override
NewDiagramPage::~NewDiagramPage.
Definition: configpages.cpp:98
void applyConf() override
NewDiagramPage::applyConf Apply conf for this page. If there is a project, save in the project...
void applyConf() override
void saveCurrentTbp()
NewDiagramPage::saveCurrentTbp Save current TBP to retrieve after auto folio num. ...
QIcon icon() const override
QIcon icon() const override
NewDiagramPage(QETProject *project=nullptr, QWidget *=nullptr, ProjectPropertiesDialog *teste=nullptr)
NewDiagramPage::NewDiagramPage Default constructor.
Definition: configpages.cpp:42