QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
configpages.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 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 "configpage.h"
21#include "../projectpropertiesdialog.h"
22#include "../titleblockpropertieswidget.h"
23
24#include <QDialog>
25#include <QtWidgets>
32class QETProject;
34
40class NewDiagramPage : public ConfigPage {
41 Q_OBJECT
42 // constructors, destructor
43 public:
44 NewDiagramPage(QETProject *project = nullptr,
45 QWidget * = nullptr,
46 ProjectPropertiesDialog *teste = nullptr);
47 ~NewDiagramPage() override;
48 private:
50public slots:
52 void setFolioAutonum(QString);
53 void saveCurrentTbp();
54 void loadSavedTbp();
55
56
57 // methods
58 public:
59 void applyConf() override;
60 QString title() const override;
61 QIcon icon() const override;
62
63 // attributes
64 private:
73
74};
75
81 Q_OBJECT
82 // constructors, destructor
83 public:
84 ExportConfigPage(QWidget * = nullptr);
85 ~ExportConfigPage() override;
86 private:
88
89 // methods
90 public:
91 void applyConf() override;
92 QString title() const override;
93 QIcon icon() const override;
94
95 // attributes
96 public:
98};
99
105 Q_OBJECT
106 // constructors, destructor
107 public:
108 PrintConfigPage(QWidget * = nullptr);
109 ~PrintConfigPage() override;
110 private:
112
113 // methods
114 public:
115 void applyConf() override;
116 QString title() const override;
117 QIcon icon() const override;
118
119 // attributes
120 public:
122};
123#endif
The BorderPropertiesWidget class this widget edit the properties of a border.
Definition borderpropertieswidget.h:34
Definition conductorpropertieswidget.h:33
Definition configpage.h:27
The ExportConfigPage class This configuration page enables users to set default export options.
Definition configpages.h:80
QIcon icon() const override
Definition configpages.cpp:288
ExportPropertiesWidget * epw
Definition configpages.h:97
QString title() const override
Definition configpages.cpp:294
~ExportConfigPage() override
Destructeur.
Definition configpages.cpp:274
void applyConf() override
Definition configpages.cpp:281
ExportConfigPage(const ExportConfigPage &)
Definition exportpropertieswidget.h:27
The NewDiagramPage class This configuration page enables users to define the properties of new diagra...
Definition configpages.h:40
NewDiagramPage(const NewDiagramPage &)
ReportPropertieWidget * rpw
Widget to edit default report label.
Definition configpages.h:70
QIcon icon() const override
NewDiagramPage::icon.
Definition configpages.cpp:191
void saveCurrentTbp()
NewDiagramPage::saveCurrentTbp Save current TBP to retrieve after auto folio num.
Definition configpages.cpp:234
BorderPropertiesWidget * bpw
Widget to edit default diagram dimensions.
Definition configpages.h:67
void setFolioAutonum(QString)
NewDiagramPage::setFolioAutonum Set temporary TBP to use in auto folio num.
Definition configpages.cpp:224
void applyConf() override
NewDiagramPage::applyConf Apply conf for this page. If there is a project, save in the project,...
Definition configpages.cpp:121
XRefPropertiesWidget * xrefpw
Widget to edit default xref properties.
Definition configpages.h:71
void changeToAutoFolioTab()
NewDiagramPage::changeToAutoFolioTab Set the current tab to Autonum.
Definition configpages.cpp:211
QString title() const override
NewDiagramPage::title.
Definition configpages.cpp:201
ConductorPropertiesWidget * m_cpw
Widget to edit default conductor properties.
Definition configpages.h:69
TitleBlockProperties savedTbp
Used to save current TBP and retrieve later.
Definition configpages.h:72
TitleBlockPropertiesWidget * ipw
Widget to edit default title block properties.
Definition configpages.h:68
void loadSavedTbp()
NewDiagramPage::loadSavedTbp Retrieve saved auto folio num.
Definition configpages.cpp:243
~NewDiagramPage() override
NewDiagramPage::~NewDiagramPage.
Definition configpages.cpp:110
QETProject * m_project
Project to edit properties.
Definition configpages.h:66
ProjectPropertiesDialog * ppd_
Definition configpages.h:65
The PrintConfigPage class This configuration page enables users to set default printing options.
Definition configpages.h:104
ExportPropertiesWidget * epw
Definition configpages.h:121
~PrintConfigPage() override
Destructeur.
Definition configpages.cpp:325
QIcon icon() const override
Definition configpages.cpp:347
QString title() const override
Definition configpages.cpp:353
void applyConf() override
PrintConfigPage::applyConf Apply the config of this page.
Definition configpages.cpp:333
PrintConfigPage(const PrintConfigPage &)
The ProjectPropertiesDialog class this class builds a dialog to edit whole properties of a project.
Definition projectpropertiesdialog.h:30
Definition qetproject.h:62
Definition reportpropertiewidget.h:30
Definition titleblockproperties.h:29
Definition titleblockpropertieswidget.h:39
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties.
Definition xrefpropertieswidget.h:35