QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ToolStripAction.cc
Go to the documentation of this file.
1
#include "
ToolStripAction.h
"
2
3
ToolStripAction::ToolStripAction
(QObject* parent)
4
: QObject(parent)
5
{
6
7
}
8
9
void
ToolStripAction::setEnabled
(
bool
enabled)
10
{
11
if
(enabled !=
_enabled
) {
12
_enabled
= enabled;
13
emit
enabledChanged
(enabled);
14
}
15
}
16
17
void
ToolStripAction::setVisible
(
bool
visible)
18
{
19
if
(
visible
!=
_visible
) {
20
_visible
=
visible
;
21
emit
visibleChanged
(
visible
);
22
}
23
24
}
25
26
void
ToolStripAction::setCheckable
(
bool
checkable)
27
{
28
if
(
checkable
!=
_checkable
) {
29
_checkable
=
checkable
;
30
emit
checkableChanged
(
checkable
);
31
}
32
33
}
34
35
void
ToolStripAction::setChecked
(
bool
checked)
36
{
37
if
(
checked
!=
_checked
) {
38
_checked
=
checked
;
39
emit
checkedChanged
(
checked
);
40
}
41
42
}
43
44
void
ToolStripAction::setShowAlternateIcon
(
bool
showAlternateIcon)
45
{
46
if
(
showAlternateIcon
!=
_showAlternateIcon
) {
47
_showAlternateIcon
=
showAlternateIcon
;
48
emit
showAlternateIconChanged
(
showAlternateIcon
);
49
}
50
51
}
52
53
void
ToolStripAction::setbiColorIcon
(
bool
biColorIcon)
54
{
55
if
(
biColorIcon
!=
_biColorIcon
) {
56
_biColorIcon
=
biColorIcon
;
57
emit
biColorIconChanged
(
biColorIcon
);
58
}
59
60
}
61
62
void
ToolStripAction::setfullColorIcon
(
bool
fullColorIcon)
63
{
64
if
(
fullColorIcon
!=
_fullColorIcon
) {
65
_fullColorIcon
=
fullColorIcon
;
66
emit
fullColorIconChanged
(
fullColorIcon
);
67
}
68
69
}
70
71
void
ToolStripAction::setNonExclusive
(
bool
nonExclusive)
72
{
73
if
(
nonExclusive
!=
_nonExclusive
) {
74
_nonExclusive
=
nonExclusive
;
75
emit
nonExclusiveChanged
(
nonExclusive
);
76
}
77
78
}
79
80
void
ToolStripAction::setToolStripIndex
(
int
toolStripIndex)
81
{
82
if
(
toolStripIndex
!=
_toolStripIndex
) {
83
_toolStripIndex
=
toolStripIndex
;
84
emit
toolStripIndexChanged
(
toolStripIndex
);
85
}
86
87
}
88
89
void
ToolStripAction::setText
(
const
QString& text)
90
{
91
if
(
text
!=
_text
) {
92
_text
=
text
;
93
emit
textChanged
(
text
);
94
}
95
96
}
97
98
void
ToolStripAction::setIconSource
(
const
QString& iconSource)
99
{
100
if
(
iconSource
!=
_iconSource
) {
101
_iconSource
=
iconSource
;
102
emit
iconSourceChanged
(
iconSource
);
103
}
104
105
}
106
107
void
ToolStripAction::setAlternateIconSource
(
const
QString& alternateIconSource)
108
{
109
if
(
alternateIconSource
!=
_alternateIconSource
) {
110
_alternateIconSource
=
alternateIconSource
;
111
emit
alternateIconSourceChanged
(
alternateIconSource
);
112
}
113
}
114
115
void
ToolStripAction::setDropPanelComponent
(QQmlComponent* dropPanelComponent)
116
{
117
_dropPanelComponent
=
dropPanelComponent
;
118
emit
dropPanelComponentChanged
();
119
}
ToolStripAction.h
ToolStripAction::setDropPanelComponent
void setDropPanelComponent(QQmlComponent *dropPanelComponent)
Definition
ToolStripAction.cc:115
ToolStripAction::setEnabled
void setEnabled(bool enabled)
Definition
ToolStripAction.cc:9
ToolStripAction::dropPanelComponent
QQmlComponent * dropPanelComponent(void) const
Definition
ToolStripAction.h:41
ToolStripAction::setText
void setText(const QString &text)
Definition
ToolStripAction.cc:89
ToolStripAction::_text
QString _text
Definition
ToolStripAction.h:83
ToolStripAction::_toolStripIndex
int _toolStripIndex
Definition
ToolStripAction.h:82
ToolStripAction::toolStripIndexChanged
void toolStripIndexChanged(int toolStripIndex)
ToolStripAction::setAlternateIconSource
void setAlternateIconSource(const QString &alternateIconSource)
Definition
ToolStripAction.cc:107
ToolStripAction::dropPanelComponentChanged
void dropPanelComponentChanged(void)
ToolStripAction::setChecked
void setChecked(bool checked)
Definition
ToolStripAction.cc:35
ToolStripAction::setShowAlternateIcon
void setShowAlternateIcon(bool showAlternateIcon)
Definition
ToolStripAction.cc:44
ToolStripAction::toolStripIndex
int toolStripIndex(void) const
Definition
ToolStripAction.h:37
ToolStripAction::textChanged
void textChanged(QString text)
ToolStripAction::nonExclusive
bool nonExclusive(void) const
Definition
ToolStripAction.h:36
ToolStripAction::biColorIconChanged
void biColorIconChanged(bool biColorIcon)
ToolStripAction::alternateIconSourceChanged
void alternateIconSourceChanged(QString alternateIconSource)
ToolStripAction::_checkable
bool _checkable
Definition
ToolStripAction.h:76
ToolStripAction::visible
bool visible(void) const
Definition
ToolStripAction.h:30
ToolStripAction::_showAlternateIcon
bool _showAlternateIcon
Definition
ToolStripAction.h:78
ToolStripAction::fullColorIconChanged
void fullColorIconChanged(bool fullColorIcon)
ToolStripAction::iconSourceChanged
void iconSourceChanged(QString iconSource)
ToolStripAction::alternateIconSource
QString alternateIconSource(void) const
Definition
ToolStripAction.h:40
ToolStripAction::visibleChanged
void visibleChanged(bool visible)
ToolStripAction::checkable
bool checkable(void) const
Definition
ToolStripAction.h:31
ToolStripAction::_biColorIcon
bool _biColorIcon
Definition
ToolStripAction.h:79
ToolStripAction::setToolStripIndex
void setToolStripIndex(int toolStripIndex)
Definition
ToolStripAction.cc:80
ToolStripAction::setIconSource
void setIconSource(const QString &iconSource)
Definition
ToolStripAction.cc:98
ToolStripAction::_checked
bool _checked
Definition
ToolStripAction.h:77
ToolStripAction::checkableChanged
void checkableChanged(bool checkable)
ToolStripAction::ToolStripAction
ToolStripAction(QObject *parent=nullptr)
Definition
ToolStripAction.cc:3
ToolStripAction::_dropPanelComponent
QQmlComponent * _dropPanelComponent
Definition
ToolStripAction.h:86
ToolStripAction::_fullColorIcon
bool _fullColorIcon
Definition
ToolStripAction.h:80
ToolStripAction::iconSource
QString iconSource(void) const
Definition
ToolStripAction.h:39
ToolStripAction::_visible
bool _visible
Definition
ToolStripAction.h:75
ToolStripAction::showAlternateIcon
bool showAlternateIcon(void) const
Definition
ToolStripAction.h:33
ToolStripAction::enabledChanged
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged(bool visible READ visible WRITE setVisible NOTIFY visibleChanged) 1(bool checkable READ checkable WRITE setCheckable NOTIFY checkableChanged) 1(bool checked READ checked WRITE setChecked NOTIFY checkedChanged) 1(bool showAlternateIcon READ showAlternateIcon WRITE setShowAlternateIcon NOTIFY showAlternateIconChanged) 1(bool biColorIcon READ biColorIcon WRITE setbiColorIcon NOTIFY biColorIconChanged) 1(bool fullColorIcon READ fullColorIcon WRITE setfullColorIcon NOTIFY fullColorIconChanged) 1(bool nonExclusive READ nonExclusive WRITE setNonExclusive NOTIFY nonExclusiveChanged) 1(int toolStripIndex READ toolStripIndex WRITE setToolStripIndex NOTIFY toolStripIndexChanged) 1(QString text READ text WRITE setText NOTIFY textChanged) 1(QString iconSource READ iconSource WRITE setIconSource NOTIFY iconSourceChanged) 1(QString alternateIconSource READ alternateIconSource WRITE setAlternateIconSource NOTIFY alternateIconSourceChanged) 1(QQmlComponent *dropPanelComponent READ dropPanelComponent WRITE setDropPanelComponent NOTIFY dropPanelComponentChanged) bool enabled(void) const
Definition
ToolStripAction.h:16
ToolStripAction::fullColorIcon
bool fullColorIcon(void) const
Definition
ToolStripAction.h:35
ToolStripAction::checkedChanged
void checkedChanged(bool checked)
ToolStripAction::text
QString text(void) const
Definition
ToolStripAction.h:38
ToolStripAction::setfullColorIcon
void setfullColorIcon(bool fullColorIcon)
Definition
ToolStripAction.cc:62
ToolStripAction::_iconSource
QString _iconSource
Definition
ToolStripAction.h:84
ToolStripAction::showAlternateIconChanged
void showAlternateIconChanged(bool showAlternateIcon)
ToolStripAction::_nonExclusive
bool _nonExclusive
Definition
ToolStripAction.h:81
ToolStripAction::_alternateIconSource
QString _alternateIconSource
Definition
ToolStripAction.h:85
ToolStripAction::nonExclusiveChanged
void nonExclusiveChanged(bool nonExclusive)
ToolStripAction::setCheckable
void setCheckable(bool checkable)
Definition
ToolStripAction.cc:26
ToolStripAction::_enabled
bool _enabled
Definition
ToolStripAction.h:74
ToolStripAction::biColorIcon
bool biColorIcon(void) const
Definition
ToolStripAction.h:34
ToolStripAction::setbiColorIcon
void setbiColorIcon(bool biColorIcon)
Definition
ToolStripAction.cc:53
ToolStripAction::setVisible
void setVisible(bool visible)
Definition
ToolStripAction.cc:17
ToolStripAction::checked
bool checked(void) const
Definition
ToolStripAction.h:32
ToolStripAction::setNonExclusive
void setNonExclusive(bool nonExclusive)
Definition
ToolStripAction.cc:71
src
QmlControls
ToolStripAction.cc
Generated by
1.9.8