QElectroTech
0.70
sources
autoNum
ui
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
{
26
class
AutoNumberingDockWidget
;
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
();
38
void
setProject
(
QETProject
*,
ProjectView
*);
39
40
public
slots:
41
void
setActive
();
42
void
setConductorActive
(
DiagramView
*);
43
44
private
slots:
45
void
on_m_conductor_cb_activated
(
int
);
46
void
on_m_element_cb_activated
(
int
);
47
void
on_m_folio_cb_activated
(
int
);
48
void
conductorAutoNumChanged
();
49
void
elementAutoNumChanged
();
50
void
folioAutoNumChanged
();
51
void
clear
();
52
void
projectClosed
();
53
54
void
on_m_configure_pb_clicked
();
55
56
signals:
57
void
folioAutoNumChanged
(QString);
58
59
private
:
60
Ui::AutoNumberingDockWidget *
ui
;
61
QETProject
*
m_project
=
nullptr
;
62
ProjectView
*
m_project_view
=
nullptr
;
63
64
};
65
66
#endif // AUTONUMBERINGDOCKWIDGET_H
QETProject
Definition:
qetproject.h:46
ProjectView
Definition:
projectview.h:38
projectview.h
AutoNumberingDockWidget::m_project
QETProject * m_project
Definition:
autonumberingdockwidget.h:61
AutoNumberingDockWidget::clear
void clear()
AutoNumberingDockWidget::clear Remove all combo box values.
Definition:
autonumberingdockwidget.cpp:54
Ui
Definition:
autonumberingdockwidget.h:25
AutoNumberingDockWidget::setConductorActive
void setConductorActive(DiagramView *)
AutoNumberingDockWidget::setConductorActive.
Definition:
autonumberingdockwidget.cpp:171
AutoNumberingDockWidget::setProject
void setProject(QETProject *, ProjectView *)
AutoNumberingDockWidget::setProject.
Definition:
autonumberingdockwidget.cpp:75
AutoNumberingDockWidget::~AutoNumberingDockWidget
~AutoNumberingDockWidget() override
AutoNumberingDockWidget::~AutoNumberingDockWidget Destructor.
Definition:
autonumberingdockwidget.cpp:44
AutoNumberingDockWidget
Definition:
autonumberingdockwidget.h:29
AutoNumberingDockWidget::on_m_element_cb_activated
void on_m_element_cb_activated(int)
AutoNumberingDockWidget::on_m_element_cb_activated.
Definition:
autonumberingdockwidget.cpp:260
AutoNumberingDockWidget::on_m_folio_cb_activated
void on_m_folio_cb_activated(int)
AutoNumberingDockWidget::on_m_folio_cb_activated.
Definition:
autonumberingdockwidget.cpp:288
AutoNumberingDockWidget::m_project_view
ProjectView * m_project_view
Definition:
autonumberingdockwidget.h:62
AutoNumberingDockWidget::AutoNumberingDockWidget
AutoNumberingDockWidget(QWidget *parent=nullptr)
AutoNumberingDockWidget::AutoNumberingDockWidget Constructor.
Definition:
autonumberingdockwidget.cpp:32
AutoNumberingDockWidget::conductorAutoNumChanged
void conductorAutoNumChanged()
AutoNumberingDockWidget::conductorAutoNumChanged Add new or remove conductor auto num from combobox...
Definition:
autonumberingdockwidget.cpp:212
AutoNumberingDockWidget::folioAutoNumChanged
void folioAutoNumChanged()
AutoNumberingDockWidget::folioAutoNumChanged Add new or remove folio auto num from combobox...
Definition:
autonumberingdockwidget.cpp:270
AutoNumberingDockWidget::projectClosed
void projectClosed()
Definition:
autonumberingdockwidget.cpp:61
AutoNumberingDockWidget::setContext
void setContext()
AutoNumberingDockWidget::setContext Add all itens to comboboxes.
Definition:
autonumberingdockwidget.cpp:139
qetproject.h
AutoNumberingDockWidget::elementAutoNumChanged
void elementAutoNumChanged()
AutoNumberingDockWidget::elementAutoNumChanged Add new or remove element auto num from combobox...
Definition:
autonumberingdockwidget.cpp:242
AutoNumberingDockWidget::ui
Ui::AutoNumberingDockWidget * ui
Definition:
autonumberingdockwidget.h:60
AutoNumberingDockWidget::setActive
void setActive()
AutoNumberingDockWidget::setActive Set current used autonumberings.
Definition:
autonumberingdockwidget.cpp:183
DiagramView
Definition:
diagramview.h:37
AutoNumberingDockWidget::on_m_conductor_cb_activated
void on_m_conductor_cb_activated(int)
AutoNumberingDockWidget::on_m_conductor_cb_activated.
Definition:
autonumberingdockwidget.cpp:229
AutoNumberingDockWidget::on_m_configure_pb_clicked
void on_m_configure_pb_clicked()
Definition:
autonumberingdockwidget.cpp:303
Generated by
1.8.15