diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-17 03:58:13 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-17 03:58:13 +0200 |
commit | f225345d4de3b198a557fe3566f9630163e76d51 (patch) | |
tree | cca7ba40e560226c138a1d4fc44b032f8fd6c808 /metawatch/metawatchsimulatorform.cpp | |
parent | b0771d893865ca249bbf191636fad593901cce03 (diff) | |
download | sowatch-f225345d4de3b198a557fe3566f9630163e76d51.tar.gz sowatch-f225345d4de3b198a557fe3566f9630163e76d51.zip |
Putting MetaWatch stuff in a plugin
Diffstat (limited to 'metawatch/metawatchsimulatorform.cpp')
-rw-r--r-- | metawatch/metawatchsimulatorform.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/metawatch/metawatchsimulatorform.cpp b/metawatch/metawatchsimulatorform.cpp new file mode 100644 index 0000000..f2323bd --- /dev/null +++ b/metawatch/metawatchsimulatorform.cpp @@ -0,0 +1,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); +} |