swift
src
gui
components
selcalcodeselector.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_GUI_SELCALCODESELECTOR_H
7
#define SWIFT_GUI_SELCALCODESELECTOR_H
8
9
#include <QFrame>
10
#include <QObject>
11
#include <QScopedPointer>
12
#include <QString>
13
14
#include "
gui/swiftguiexport.h
"
15
#include "
misc/aviation/selcal.h
"
16
17
class
QWidget;
18
19
namespace
Ui
20
{
21
class
CSelcalCodeSelector;
22
}
23
namespace
swift::gui::components
24
{
26
class
SWIFT_GUI_EXPORT
CSelcalCodeSelector
:
public
QFrame
27
{
28
Q_OBJECT
29
30
public
:
32
explicit
CSelcalCodeSelector
(QWidget *parent =
nullptr
);
33
35
virtual
~
CSelcalCodeSelector
();
36
38
QString getSelcalCode()
const
;
39
41
swift::misc::aviation::CSelcal
getSelcal()
const
;
42
44
void
resetSelcalCodes(
bool
allowEmptyValue =
false
);
45
47
void
setSelcalCode(
const
QString &selcal);
48
50
void
setSelcal(
const
swift::misc::aviation::CSelcal
&selcal);
51
53
bool
hasValidCode()
const
;
54
56
void
clear();
57
59
int
getComboBoxHeight()
const
;
60
62
void
setComboBoxMinimumHeight(
int
h);
63
64
signals:
66
void
valueChanged
();
67
68
private
:
69
QScopedPointer<Ui::CSelcalCodeSelector> ui;
70
72
void
selcalIndexChanged(
int
index);
73
75
void
setValidityHint();
76
};
77
}
// namespace swift::gui::components
78
79
#endif
// SWIFT_GUI_SELCALCODESELECTOR_H
swift::gui::components::CSelcalCodeSelector
SELCAL mode selector.
Definition:
selcalcodeselector.h:27
swift::gui::components::CSelcalCodeSelector::valueChanged
void valueChanged()
Value has been changed.
swift::misc::aviation::CSelcal
Value object for SELCAL.
Definition:
selcal.h:31
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:13
selcal.h
swiftguiexport.h
SWIFT_GUI_EXPORT
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
Definition:
swiftguiexport.h:19
Generated on Mon Mar 24 2025 16:42:20 for swift by
1.9.1