42 lines
1.2 KiB
C
Raw Normal View History

2013-10-10 20:01:51 -04:00
//****************************************************************************
2014-04-13 21:35:34 -04:00
// Model: calc.qm
// File: ./calc.h
2012-08-14 18:00:48 -04:00
//
2014-04-13 21:35:34 -04:00
// This code has been generated by QM tool (see state-machine.com/qm).
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
2012-08-14 18:00:48 -04:00
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
2014-04-13 21:35:34 -04:00
// by the Free Software Foundation.
2012-08-14 18:00:48 -04:00
//
2014-04-13 21:35:34 -04:00
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for more details.
2013-10-10 20:01:51 -04:00
//****************************************************************************
2014-04-13 21:35:34 -04:00
//${.::calc.h} ...............................................................
2013-10-10 20:01:51 -04:00
#ifndef calc_h
#define calc_h
2012-08-14 18:00:48 -04:00
2013-10-10 20:01:51 -04:00
enum CalcSignals {
2014-04-13 21:35:34 -04:00
C_SIG = QP::Q_USER_SIG,
2013-10-10 20:01:51 -04:00
CE_SIG,
DIGIT_0_SIG,
DIGIT_1_9_SIG,
POINT_SIG,
OPER_SIG,
EQUALS_SIG,
OFF_SIG
};
2012-08-14 18:00:48 -04:00
2014-04-13 21:35:34 -04:00
//${Events::CalcEvt} .........................................................
class CalcEvt : public QP::QEvt {
public:
uint8_t key_code;
2013-10-10 20:01:51 -04:00
};
2012-08-14 18:00:48 -04:00
2014-04-13 21:35:34 -04:00
extern QP::QMsm * const the_calc; // "opaque" pointer to calculator MSM
#endif // calc_h