QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
projectconfigpages.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 PROJECTCONFIGPAGES_H
19#define PROJECTCONFIGPAGES_H
20#include "configpage.h"
21
22class QLabel;
23class QLineEdit;
24class QETProject;
30class SelectAutonumW;
34
41 Q_OBJECT
42 // Constructor, destructor
43 public:
44 ProjectConfigPage(QETProject *, QWidget * = nullptr);
45 ~ProjectConfigPage() override;
46 private:
48
49 // methods
50 public:
51 virtual QETProject *project() const;
52 virtual QETProject *setProject(QETProject *project, bool = true);
53 void applyConf() override;
59 virtual void applyProjectConf() = 0;
60
61 protected:
62 virtual void init();
66 virtual void initWidgets() = 0;
71 virtual void initLayout() = 0;
75 virtual void readValuesFromProject() = 0;
80 virtual void adjustReadOnly() = 0;
81
82 // attributes
83 protected:
85};
86
91 Q_OBJECT
92 // Constructor, destructor
93 public:
94 ProjectMainConfigPage(QETProject *, QWidget * = nullptr);
95 ~ProjectMainConfigPage() override;
96 private:
98
99 // methods
100 public:
101 QString title() const override;
102 QIcon icon() const override;
103 void applyProjectConf() override;
104 QString projectTitle() const;
105
106 protected:
107 void initWidgets() override;
108 void initLayout() override;
109 void readValuesFromProject() override;
110 void adjustReadOnly() override;
111
112 // attributes
113 protected:
115 QLineEdit *title_value_;
119};
120
122 Q_OBJECT
123
124 //Methods
125 public:
127 QWidget *parent = nullptr);
128
129 QString title() const override;
130 QIcon icon() const override;
131 void applyProjectConf() override;
132 virtual void changeToTab(int);
133 protected:
134 void initWidgets() override;
135 void initLayout() override {}
136 void readValuesFromProject() override;
137 void adjustReadOnly() override;
138 private:
139 void buildConnections();
140 private slots:
141 void updateContextConductor(const QString&);//conductor
144 void updateContextFolio(const QString&);//folio
145 void saveContextFolio();
146 void removeContextFolio();
147 void updateContextElement(const QString&);//element
148 void saveContextElement();
150
151 void applyAutoNum();
152 void applyManagement();
153
154 signals:
155 void setAutoNum(QString);
156 void setAutoNum(int,int);
159
160 //Attributes
161 private:
167
168};
169
170#endif
Definition autonumberingmanagementw.h:32
The BorderPropertiesWidget class this widget edit the properties of a border.
Definition borderpropertieswidget.h:34
Definition conductorpropertieswidget.h:33
Definition configpage.h:27
Definition diagramcontextwidget.h:30
Definition folioautonumbering.h:34
Definition formulaautonumberingw.h:36
Definition projectconfigpages.h:121
void applyAutoNum()
ProjectAutoNumConfigPage::applyAutoNum Apply auto folio numbering, New Folios or Selected Folios.
Definition projectconfigpages.cpp:507
void applyManagement()
ProjectAutoNumConfigPage::applyAutoManagement Apply Management Options in Selected Folios.
Definition projectconfigpages.cpp:532
void removeContextConductor()
ProjectAutoNumConfigPage::removeContext Remove from project the current conductor numerotation contex...
Definition projectconfigpages.cpp:628
void adjustReadOnly() override
ProjectAutoNumConfigPage::adjustReadOnly set this config page disable if project is read only.
Definition projectconfigpages.cpp:336
FolioAutonumberingW * m_faw
Definition projectconfigpages.h:165
void saveContextFolio()
ProjectAutoNumConfigPage::saveContext_folio Save the current displayed folio context in project.
Definition projectconfigpages.cpp:483
void saveContextConductor()
ProjectAutoNumConfigPage::saveContext_conductor Save the current displayed conductor context in proje...
Definition projectconfigpages.cpp:453
QIcon icon() const override
ProjectAutoNumConfigPage::icon Icon of this config pafe.
Definition projectconfigpages.cpp:266
QString title() const override
ProjectAutoNumConfigPage::title Title of this config page.
Definition projectconfigpages.cpp:256
void updateContextConductor(const QString &)
ProjectAutoNumConfigPage::updateContext_conductor Display the current selected context for conductor.
Definition projectconfigpages.cpp:373
void readValuesFromProject() override
ProjectAutoNumConfigPage::readValuesFromProject Read value stored on project, and update display.
Definition projectconfigpages.cpp:314
virtual void changeToTab(int)
ProjectAutoNumConfigPage::changeToTab.
Definition projectconfigpages.cpp:655
void setAutoNum(QString)
SelectAutonumW * m_saw_folio
Definition projectconfigpages.h:163
SelectAutonumW * m_saw_element
Definition projectconfigpages.h:164
void removeContextFolio()
ProjectAutoNumConfigPage::removeContext_folio Remove from project the current folio numerotation cont...
Definition projectconfigpages.cpp:641
void buildConnections()
ProjectAutoNumConfigPage::buildConnections setup some connections.
Definition projectconfigpages.cpp:344
void initWidgets() override
ProjectAutoNumConfigPage::initWidgets Init some widget of this page.
Definition projectconfigpages.cpp:281
void saveContextElement()
ProjectAutoNumConfigPage::saveContextElement Save the current displayed Element formula in project.
Definition projectconfigpages.cpp:409
void setAutoNum(int, int)
void updateContextElement(const QString &)
ProjectAutoNumConfigPage::updateContextElement Display the current selected context for element.
Definition projectconfigpages.cpp:393
AutoNumberingManagementW * m_amw
Definition projectconfigpages.h:166
SelectAutonumW * m_saw_conductor
Definition projectconfigpages.h:162
void initLayout() override
Definition projectconfigpages.h:135
void updateContextFolio(const QString &)
ProjectAutoNumConfigPage::updateContext_folio Display the current selected context for folio.
Definition projectconfigpages.cpp:383
void applyProjectConf() override
ProjectAutoNumConfigPage::applyProjectConf.
Definition projectconfigpages.cpp:274
void removeContextElement()
ProjectAutoNumConfigPage::removeContextElement Remove from project the current element numerotation c...
Definition projectconfigpages.cpp:440
The ProjectConfigPage class This class, derived from ConfigPage, aims at providing the basic skeleton...
Definition projectconfigpages.h:40
virtual void init()
Definition projectconfigpages.cpp:100
virtual void initLayout()=0
void applyConf() override
Definition projectconfigpages.cpp:89
virtual void applyProjectConf()=0
virtual QETProject * project() const
Definition projectconfigpages.cpp:59
QETProject * m_project
Currently edited project.
Definition projectconfigpages.h:84
virtual void adjustReadOnly()=0
virtual void initWidgets()=0
virtual QETProject * setProject(QETProject *project, bool=true)
ProjectConfigPage::setProject Set new_project as the project being edited by this page.
Definition projectconfigpages.cpp:73
~ProjectConfigPage() override
Definition projectconfigpages.cpp:52
ProjectConfigPage(const ProjectConfigPage &)
virtual void readValuesFromProject()=0
Definition projectconfigpages.h:90
void initWidgets() override
Definition projectconfigpages.cpp:180
ProjectMainConfigPage(const ProjectMainConfigPage &)
QLineEdit * title_value_
Definition projectconfigpages.h:115
QString title() const override
Definition projectconfigpages.cpp:133
~ProjectMainConfigPage() override
Definition projectconfigpages.cpp:126
QString projectTitle() const
Definition projectconfigpages.cpp:172
void applyProjectConf() override
Definition projectconfigpages.cpp:149
QLabel * title_label_
Definition projectconfigpages.h:114
void adjustReadOnly() override
Definition projectconfigpages.cpp:228
QLabel * project_variables_label_
Definition projectconfigpages.h:117
void readValuesFromProject() override
Definition projectconfigpages.cpp:218
QIcon icon() const override
Definition projectconfigpages.cpp:141
void initLayout() override
Definition projectconfigpages.cpp:199
QLabel * title_information_
Definition projectconfigpages.h:116
DiagramContextWidget * project_variables_
Definition projectconfigpages.h:118
Definition qetproject.h:62
Definition reportpropertiewidget.h:30
The SelectAutonumW class.
Definition selectautonumw.h:39
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties.
Definition xrefpropertieswidget.h:35