SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
sdrgui
gui
externalclockbutton.h
Go to the documentation of this file.
1
// Copyright (C) 2017 F4EXB //
3
// written by Edouard Griffiths //
4
// //
5
// OpenGL interface modernization. //
6
// See: http://doc.qt.io/qt-5/qopenglshaderprogram.html //
7
// //
8
// This program is free software; you can redistribute it and/or modify //
9
// it under the terms of the GNU General Public License as published by //
10
// the Free Software Foundation as version 3 of the License, or //
11
// (at your option) any later version. //
12
// //
13
// This program is distributed in the hope that it will be useful, //
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
16
// GNU General Public License V3 for more details. //
17
// //
18
// You should have received a copy of the GNU General Public License //
19
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
21
22
#ifndef SDRBASE_GUI_EXTERNALCLOCKBUTTON_H_
23
#define SDRBASE_GUI_EXTERNALCLOCKBUTTON_H_
24
25
#include <QPushButton>
26
27
#include "
export.h
"
28
29
class
SDRGUI_API
ExternalClockButton
:
public
QPushButton {
30
Q_OBJECT
31
32
public
:
33
ExternalClockButton
(QWidget* parent = 0);
34
qint64
getExternalClockFrequency
()
const
{
return
m_externalClockFrequency; }
35
bool
getExternalClockActive
()
const
{
return
m_externalClockActive; }
36
37
void
setExternalClockFrequency
(qint64 deltaFrequency)
38
{
39
m_externalClockFrequency = deltaFrequency;
40
updateState();
41
}
42
43
void
setExternalClockActive
(
bool
active)
44
{
45
m_externalClockActive = active;
46
updateState();
47
}
48
49
private
slots:
50
void
onClicked();
51
52
private
:
53
qint64
m_externalClockFrequency
;
54
bool
m_externalClockActive
;
55
56
void
updateState();
57
};
58
59
60
#endif
/* SDRBASE_GUI_EXTERNALCLOCKBUTTON_H_ */
ExternalClockButton::m_externalClockActive
bool m_externalClockActive
Definition:
externalclockbutton.h:54
export.h
SDRGUI_API
#define SDRGUI_API
Definition:
export.h:52
ExternalClockButton::getExternalClockActive
bool getExternalClockActive() const
Definition:
externalclockbutton.h:35
ExternalClockButton::getExternalClockFrequency
qint64 getExternalClockFrequency() const
Definition:
externalclockbutton.h:34
ExternalClockButton::setExternalClockFrequency
void setExternalClockFrequency(qint64 deltaFrequency)
Definition:
externalclockbutton.h:37
ExternalClockButton::setExternalClockActive
void setExternalClockActive(bool active)
Definition:
externalclockbutton.h:43
ExternalClockButton::m_externalClockFrequency
qint64 m_externalClockFrequency
Definition:
externalclockbutton.h:53
ExternalClockButton
Definition:
externalclockbutton.h:29
Generated on Fri Aug 2 2019 17:56:34 for SDRAngel by
1.8.13