QElectroTech  0.8-dev
autonumberingdockwidget.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 AUTONUMBERINGDOCKWIDGET_H
19 #define AUTONUMBERINGDOCKWIDGET_H
20 
21 #include "qetproject.h"
22 #include "projectview.h"
23 #include <QDockWidget>
24 
25 namespace Ui {
27 }
28 
29 class AutoNumberingDockWidget : public QDockWidget
30 {
31  Q_OBJECT
32 
33  public:
34  explicit AutoNumberingDockWidget(QWidget *parent = nullptr);
35  ~AutoNumberingDockWidget() override;
36 
37  void setContext();
39 
40  public slots:
41  void setActive();
43 
44  private slots:
46  void on_m_element_cb_activated(int);
47  void on_m_folio_cb_activated(int);
49  void elementAutoNumChanged();
50  void folioAutoNumChanged();
51  void clear();
52  void projectClosed();
53 
55 
56  signals:
57  void folioAutoNumChanged(QString);
58 
59  private:
60  Ui::AutoNumberingDockWidget *ui;
61  QETProject* m_project = nullptr;
63 
64 };
65 
66 #endif // AUTONUMBERINGDOCKWIDGET_H
QETProject::defaultTitleBlockProperties
TitleBlockProperties defaultTitleBlockProperties() const
Definition: qetproject.cpp:416
ProjectPropertiesDialog::exec
void exec()
ProjectPropertiesDialog::exec execute this dialog.
Definition: projectpropertiesdialog.cpp:55
AutoNumberingDockWidget::ui
Ui::AutoNumberingDockWidget * ui
Definition: autonumberingdockwidget.h:60
AutoNumberingDockWidget::projectClosed
void projectClosed()
Definition: autonumberingdockwidget.cpp:61
titleblockproperties.h
projectview.h
Diagram::setConductorsAutonumName
void setConductorsAutonumName(const QString &name)
Diagram::setConductorsAutonumName.
Definition: diagram.cpp:572
AutoNumberingDockWidget
Definition: autonumberingdockwidget.h:30
AutoNumberingDockWidget::setConductorActive
void setConductorActive(DiagramView *)
AutoNumberingDockWidget::setConductorActive.
Definition: autonumberingdockwidget.cpp:171
TitleBlockProperties::auto_page_num
QString auto_page_num
Definition: titleblockproperties.h:63
ProjectPropertiesDialog::Autonum
@ Autonum
Definition: projectpropertiesdialog.h:35
autonumberingdockwidget.h
QETProject::setCurrentConductorAutoNum
void setCurrentConductorAutoNum(QString autoNum)
QETProject::setCurrentConductorAutoNum.
Definition: qetproject.cpp:568
AutoNumberingDockWidget::on_m_element_cb_activated
void on_m_element_cb_activated(int)
AutoNumberingDockWidget::on_m_element_cb_activated Set new element AutoNum.
Definition: autonumberingdockwidget.cpp:258
QETProject::elementCurrentAutoNum
QString elementCurrentAutoNum() const
QETProject::elementCurrentAutoNum.
Definition: qetproject.cpp:531
AutoNumberingDockWidget::elementAutoNumChanged
void elementAutoNumChanged()
AutoNumberingDockWidget::elementAutoNumChanged Add new or remove element auto num from combobox.
Definition: autonumberingdockwidget.cpp:241
AutoNumberingDockWidget::on_m_conductor_cb_activated
void on_m_conductor_cb_activated(int)
AutoNumberingDockWidget::on_m_conductor_cb_activated Set new conductor AutoNum.
Definition: autonumberingdockwidget.cpp:228
AutoNumberingDockWidget::AutoNumberingDockWidget
AutoNumberingDockWidget(QWidget *parent=nullptr)
AutoNumberingDockWidget::AutoNumberingDockWidget Constructor.
Definition: autonumberingdockwidget.cpp:32
AutoNumberingDockWidget::on_m_configure_pb_clicked
void on_m_configure_pb_clicked()
Definition: autonumberingdockwidget.cpp:300
AutoNumberingDockWidget::on_m_folio_cb_activated
void on_m_folio_cb_activated(int)
AutoNumberingDockWidget::on_m_folio_cb_activated Set new folio AutoNum.
Definition: autonumberingdockwidget.cpp:285
Diagram::border_and_titleblock
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
qetapp.h
Diagram::loadCndFolioSeq
void loadCndFolioSeq()
Diagram::loadCndFolioSeq This class loads all conductor folio sequential variables related to the cur...
Definition: diagram.cpp:1942
AutoNumberingDockWidget::m_project_view
ProjectView * m_project_view
Definition: autonumberingdockwidget.h:62
TitleBlockProperties
Definition: titleblockproperties.h:29
AutoNumberingDockWidget::~AutoNumberingDockWidget
~AutoNumberingDockWidget() override
AutoNumberingDockWidget::~AutoNumberingDockWidget Destructor.
Definition: autonumberingdockwidget.cpp:44
diagramview.h
projectpropertiesdialog.h
QETProject::setCurrrentElementAutonum
void setCurrrentElementAutonum(QString autoNum)
QETProject::setCurrrentElementAutonum.
Definition: qetproject.cpp:539
Diagram::conductorsAutonumName
QString conductorsAutonumName() const
Diagram::conductorsAutonumName.
Definition: diagram.cpp:564
QETProject::setDefaultTitleBlockProperties
void setDefaultTitleBlockProperties(const TitleBlockProperties &)
QETProject::setDefaultTitleBlockProperties Specify the title block to be used at the creation of a ne...
Definition: qetproject.cpp:425
AutoNumberingDockWidget::clear
void clear()
AutoNumberingDockWidget::clear Remove all combo box values.
Definition: autonumberingdockwidget.cpp:54
numerotationcontext.h
QETProject::conductorAutoNum
QHash< QString, NumerotationContext > conductorAutoNum() const
QETProject::conductorAutoNum.
Definition: qetproject.cpp:493
qetproject.h
AutoNumberingDockWidget::setProject
void setProject(QETProject *, ProjectView *)
AutoNumberingDockWidget::setProject.
Definition: autonumberingdockwidget.cpp:75
Diagram::loadElmtFolioSeq
void loadElmtFolioSeq()
Diagram::loadElmtFolioSeq This class loads all folio sequential variables related to the current auto...
Definition: diagram.cpp:1857
Ui
Definition: autonumberingdockwidget.h:25
QETProject
Definition: qetproject.h:51
ProjectView
The ProjectView class This class provides a widget displaying the diagrams of a particular project us...
Definition: projectview.h:79
QETProject::elementAutoNumCurrentFormula
QString elementAutoNumCurrentFormula() const
QETProject::elementAutoNumCurrentFormula.
Definition: qetproject.cpp:523
DiagramView::diagram
Diagram * diagram()
Definition: diagramview.h:67
AutoNumberingDockWidget::setActive
void setActive()
AutoNumberingDockWidget::setActive Set current used autonumberings.
Definition: autonumberingdockwidget.cpp:183
AutoNumberingDockWidget::m_project
QETProject * m_project
Definition: autonumberingdockwidget.h:61
AutoNumberingDockWidget::conductorAutoNumChanged
void conductorAutoNumChanged()
AutoNumberingDockWidget::conductorAutoNumChanged Add new or remove conductor auto num from combobox.
Definition: autonumberingdockwidget.cpp:212
ProjectPropertiesDialog::setCurrentPage
void setCurrentPage(ProjectPropertiesDialog::Page)
ProjectPropertiesDialog::setCurrentPage Change the current displayed page by p.
Definition: projectpropertiesdialog.cpp:65
AutoNumberingDockWidget::folioAutoNumChanged
void folioAutoNumChanged(QString)
QETProject::folioAutoNum
QHash< QString, NumerotationContext > folioAutoNum() const
QETProject::folioAutoNum.
Definition: qetproject.cpp:576
TitleBlockProperties::setAutoPageNum
void setAutoPageNum(QString autonum)
Definition: titleblockproperties.h:47
DiagramView
Definition: diagramview.h:38
QETProject::elementAutoNum
QHash< QString, NumerotationContext > elementAutoNum() const
QETProject::elementAutoNum.
Definition: qetproject.cpp:501
ProjectPropertiesDialog
The ProjectPropertiesDialog class this class builds a dialog to edit whole properties of a project.
Definition: projectpropertiesdialog.h:30
ProjectView::currentDiagram
DiagramView * currentDiagram() const
ProjectView::currentDiagram.
Definition: projectview.cpp:105
TitleBlockProperties::folio
QString folio
Folio information (displayed by the default template)
Definition: titleblockproperties.h:62
AutoNumberingDockWidget::setContext
void setContext()
AutoNumberingDockWidget::setContext Add all itens to comboboxes.
Definition: autonumberingdockwidget.cpp:139
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
AutoNumberingDockWidget::folioAutoNumChanged
void folioAutoNumChanged()
AutoNumberingDockWidget::folioAutoNumChanged Add new or remove folio auto num from combobox.
Definition: autonumberingdockwidget.cpp:268
diagram.h