2017-11-12 21:35:04 -05:00
|
|
|
//$file${.::calc1_sub.h} #####################################################
|
|
|
|
//
|
2016-09-01 11:58:57 -04:00
|
|
|
// Model: calc1_sub.qm
|
2017-11-12 21:35:04 -05:00
|
|
|
// File: C:/qp_lab/qpcpp/examples/win32/calc1_sub/calc1_sub.h
|
2014-04-13 21:35:34 -04:00
|
|
|
//
|
2017-11-12 21:35:04 -05:00
|
|
|
// This code has been generated by QM tool (https://state-machine.com/qm).
|
2014-04-13 21:35:34 -04:00
|
|
|
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
|
|
|
|
//
|
2017-05-27 10:39:57 -04:00
|
|
|
// This code is covered by the following QP license:
|
2017-10-13 17:14:47 -04:00
|
|
|
// License # : QPCPP-EVAL-171231
|
2016-12-01 10:31:49 -05:00
|
|
|
// Issued to : Company/individual evaluating the QP/C++ framework
|
|
|
|
// Framework(s): qpcpp
|
2017-10-13 17:14:47 -04:00
|
|
|
// Support ends: 2017-12-31
|
2016-12-01 10:31:49 -05:00
|
|
|
// Product(s) :
|
|
|
|
// This license is available only for evaluation purposes and
|
|
|
|
// the generated code is still licensed under the terms of GPL.
|
|
|
|
// Please submit request for extension of the evaluaion period at:
|
2017-05-27 10:39:57 -04:00
|
|
|
// https://state-machine.com/licensing/#RequestForm
|
2017-11-12 21:35:04 -05:00
|
|
|
//
|
|
|
|
//$endhead${.::calc1_sub.h} ##################################################
|
2016-09-01 11:58:57 -04:00
|
|
|
#ifndef calc1_sub_h
|
|
|
|
#define calc1_sub_h
|
2014-04-13 21:35:34 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2017-11-12 21:35:04 -05:00
|
|
|
//$declare${Events::CalcEvt} #################################################
|
2014-04-13 21:35:34 -04:00
|
|
|
//${Events::CalcEvt} .........................................................
|
|
|
|
class CalcEvt : public QP::QEvt {
|
|
|
|
public:
|
|
|
|
uint8_t key_code;
|
|
|
|
};
|
2017-11-12 21:35:04 -05:00
|
|
|
//$enddecl${Events::CalcEvt} #################################################
|
2014-04-13 21:35:34 -04:00
|
|
|
|
|
|
|
extern QP::QMsm * const the_calc; // "opaque" pointer to calculator MSM
|
|
|
|
|
2017-11-12 21:35:04 -05:00
|
|
|
#endif // calc1_sub_h
|