diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-13 21:31:52 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-13 21:31:52 +0200 |
commit | abdf3b1eaba8151f1b8e862750c38cb7a5411d2a (patch) | |
tree | 69e314d80a332295dd5475fc91f45c2078eaead5 /metawatch/metawatchdigitalsimulatorform.cpp | |
parent | 51701e30d710ad016ddf2d306cdd7be122ddf25b (diff) | |
download | sowatch-abdf3b1eaba8151f1b8e862750c38cb7a5411d2a.tar.gz sowatch-abdf3b1eaba8151f1b8e862750c38cb7a5411d2a.zip |
make watchsimulator work again
Diffstat (limited to 'metawatch/metawatchdigitalsimulatorform.cpp')
-rw-r--r-- | metawatch/metawatchdigitalsimulatorform.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/metawatch/metawatchdigitalsimulatorform.cpp b/metawatch/metawatchdigitalsimulatorform.cpp new file mode 100644 index 0000000..fc3c890 --- /dev/null +++ b/metawatch/metawatchdigitalsimulatorform.cpp @@ -0,0 +1,82 @@ +#include "metawatchdigitalsimulatorform.h" +#include "ui_metawatchdigitalsimulatorform.h" + +using namespace sowatch; + +MetaWatchDigitalSimulatorForm::MetaWatchDigitalSimulatorForm(QWidget* parent) : + QWidget(parent), + ui(new Ui::MetaWatchDigitalSimulatorForm) +{ + ui->setupUi(this); +} + +MetaWatchDigitalSimulatorForm::~MetaWatchDigitalSimulatorForm() +{ + delete ui; +} + +void MetaWatchDigitalSimulatorForm::refreshScreen(const QPixmap& pixmap) +{ + ui->lblDisplay->setPixmap(pixmap); + ui->lblDisplay->update(); +} + +void MetaWatchDigitalSimulatorForm::btnAPressed() +{ + emit buttonPressed(0); +} + +void MetaWatchDigitalSimulatorForm::btnAReleased() +{ + emit buttonReleased(0); +} + +void MetaWatchDigitalSimulatorForm::btnBPressed() +{ + emit buttonPressed(1); +} + +void MetaWatchDigitalSimulatorForm::btnBReleased() +{ + emit buttonReleased(1); +} + +void MetaWatchDigitalSimulatorForm::btnCPressed() +{ + emit buttonPressed(2); +} + +void MetaWatchDigitalSimulatorForm::btnCReleased() +{ + emit buttonReleased(2); +} + +void MetaWatchDigitalSimulatorForm::btnDPressed() +{ + emit buttonPressed(3); +} + +void MetaWatchDigitalSimulatorForm::btnDReleased() +{ + emit buttonReleased(3); +} + +void MetaWatchDigitalSimulatorForm::btnEPressed() +{ + emit buttonPressed(4); +} + +void MetaWatchDigitalSimulatorForm::btnEReleased() +{ + emit buttonReleased(4); +} + +void MetaWatchDigitalSimulatorForm::btnFPressed() +{ + emit buttonPressed(5); +} + +void MetaWatchDigitalSimulatorForm::btnFReleased() +{ + emit buttonReleased(5); +} |