mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-14 05:42:57 +08:00
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
//****************************************************************************
|
|
// Model: calc.qm
|
|
// File: ./calc.h
|
|
//
|
|
// 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.
|
|
//
|
|
// 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
|
|
// by the Free Software Foundation.
|
|
//
|
|
// 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.
|
|
//****************************************************************************
|
|
//${.::calc.h} ...............................................................
|
|
#ifndef calc_h
|
|
#define calc_h
|
|
|
|
enum CalcSignals {
|
|
C_SIG = QP::Q_USER_SIG,
|
|
CE_SIG,
|
|
DIGIT_0_SIG,
|
|
DIGIT_1_9_SIG,
|
|
POINT_SIG,
|
|
OPER_SIG,
|
|
EQUALS_SIG,
|
|
OFF_SIG
|
|
};
|
|
|
|
|
|
#if ((QP_VERSION < 580) || (QP_VERSION != ((QP_RELEASE^4294967295U) % 0x3E8)))
|
|
#error qpcpp version 5.8.0 or higher required
|
|
#endif
|
|
|
|
//${Events::CalcEvt} .........................................................
|
|
class CalcEvt : public QP::QEvt {
|
|
public:
|
|
uint8_t key_code;
|
|
};
|
|
|
|
|
|
extern QP::QHsm * const the_calc; // "opaque" pointer to calculator HSM
|
|
|
|
#endif // calc_h
|