-
Notifications
You must be signed in to change notification settings - Fork 4
/
BugSelector.cpp
61 lines (43 loc) · 1.12 KB
/
BugSelector.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Stratofier Stratux AHRS Display
(c) 2018 Allen K. Lair, Sky Fun
*/
#include <QKeyEvent>
#include "BugSelector.h"
BugSelector::BugSelector( QWidget *pParent )
: QDialog( pParent, Qt::Dialog | Qt::FramelessWindowHint )
{
setupUi( this );
connect( m_pHeadingButton, SIGNAL( clicked() ), this, SLOT( headingSel() ) );
connect( m_pWindButton, SIGNAL( clicked() ), this, SLOT( windSel() ) );
connect( m_pClearButton, SIGNAL( clicked() ), this, SLOT( clearBugs() ) );
connect( m_pAirportsButton, SIGNAL( clicked() ), this, SLOT( airports() ) );
connect( m_pOverlaysButton, SIGNAL( clicked() ), this, SLOT( overlays() ) );
}
BugSelector::~BugSelector()
{
}
void BugSelector::headingSel()
{
done( static_cast<int>( HeadingBug ) );
}
void BugSelector::windSel()
{
done( static_cast<int>( WindBug ) );
}
void BugSelector::clearBugs()
{
done( static_cast<int>( ClearBugs ) );
}
void BugSelector::airports()
{
done( static_cast<int>( Airports ) );
}
void BugSelector::overlays()
{
done( static_cast<int>( Overlays ) );
}
void BugSelector::calibrate()
{
done( static_cast<int>( Calibrate ) );
}