QElectroTech  0.70
autonumberingdockwidget.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 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
void clear()
AutoNumberingDockWidget::clear Remove all combo box values.
void setConductorActive(DiagramView *)
AutoNumberingDockWidget::setConductorActive.
void setProject(QETProject *, ProjectView *)
AutoNumberingDockWidget::setProject.
~AutoNumberingDockWidget() override
AutoNumberingDockWidget::~AutoNumberingDockWidget Destructor.
void on_m_element_cb_activated(int)
AutoNumberingDockWidget::on_m_element_cb_activated.
void on_m_folio_cb_activated(int)
AutoNumberingDockWidget::on_m_folio_cb_activated.
AutoNumberingDockWidget(QWidget *parent=nullptr)
AutoNumberingDockWidget::AutoNumberingDockWidget Constructor.
void conductorAutoNumChanged()
AutoNumberingDockWidget::conductorAutoNumChanged Add new or remove conductor auto num from combobox...
void folioAutoNumChanged()
AutoNumberingDockWidget::folioAutoNumChanged Add new or remove folio auto num from combobox...
void setContext()
AutoNumberingDockWidget::setContext Add all itens to comboboxes.
void elementAutoNumChanged()
AutoNumberingDockWidget::elementAutoNumChanged Add new or remove element auto num from combobox...
Ui::AutoNumberingDockWidget * ui
void setActive()
AutoNumberingDockWidget::setActive Set current used autonumberings.
void on_m_conductor_cb_activated(int)
AutoNumberingDockWidget::on_m_conductor_cb_activated.