summaryrefslogtreecommitdiff
path: root/metawatch/metawatchsimulatorform.cpp
blob: f2323bd66f9367f1757dff44cd082b9778a77af0 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include "metawatchsimulatorform.h"
#include "ui_metawatchsimulatorform.h"

using namespace sowatch;

MetaWatchSimulatorForm::MetaWatchSimulatorForm(QWidget* parent) :
    QWidget(parent),
    ui(new Ui::MetaWatchSimulatorForm)
{
    ui->setupUi(this);
}

MetaWatchSimulatorForm::~MetaWatchSimulatorForm()
{
    delete ui;
}

void MetaWatchSimulatorForm::refreshScreen(const QPixmap& pixmap)
{
	ui->lblDisplay->setPixmap(pixmap);
	ui->lblDisplay->update();
}

void MetaWatchSimulatorForm::btnAPressed()
{
	emit buttonPressed(0);
}

void MetaWatchSimulatorForm::btnAReleased()
{
	emit buttonReleased(0);
}

void MetaWatchSimulatorForm::btnBPressed()
{
	emit buttonPressed(1);
}

void MetaWatchSimulatorForm::btnBReleased()
{
	emit buttonReleased(1);
}

void MetaWatchSimulatorForm::btnCPressed()
{
	emit buttonPressed(2);
}

void MetaWatchSimulatorForm::btnCReleased()
{
	emit buttonReleased(2);
}

void MetaWatchSimulatorForm::btnDPressed()
{
	emit buttonPressed(3);
}

void MetaWatchSimulatorForm::btnDReleased()
{
	emit buttonReleased(3);
}

void MetaWatchSimulatorForm::btnEPressed()
{
	emit buttonPressed(4);
}

void MetaWatchSimulatorForm::btnEReleased()
{
	emit buttonReleased(4);
}

void MetaWatchSimulatorForm::btnFPressed()
{
	emit buttonPressed(5);
}

void MetaWatchSimulatorForm::btnFReleased()
{
	emit buttonReleased(5);
}