2023-01-19 21:14:02 -05:00
|
|
|
//$file${.::calc_sub.hpp} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
2018-10-25 11:13:01 -04:00
|
|
|
//
|
2023-01-19 21:14:02 -05:00
|
|
|
// Model: calc_sub.qm
|
|
|
|
// File: ${.::calc_sub.hpp}
|
2014-04-13 21:35:34 -04:00
|
|
|
//
|
2023-01-19 21:14:02 -05:00
|
|
|
// This code has been generated by QM 5.3.0 <www.state-machine.com/qm>.
|
2014-04-13 21:35:34 -04:00
|
|
|
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
|
|
|
|
//
|
2022-08-11 15:36:19 -04:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2014-04-13 21:35:34 -04:00
|
|
|
//
|
2022-08-11 15:36:19 -04:00
|
|
|
// This generated code is open source software: you can redistribute it under
|
|
|
|
// the terms of the GNU General Public License as published by the Free
|
|
|
|
// Software Foundation.
|
2018-10-25 11:13:01 -04:00
|
|
|
//
|
2022-08-11 15:36:19 -04:00
|
|
|
// This code 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.
|
|
|
|
//
|
|
|
|
// NOTE:
|
|
|
|
// Alternatively, this generated code may be distributed under the terms
|
|
|
|
// of Quantum Leaps commercial licenses, which expressly supersede the GNU
|
|
|
|
// General Public License and are specifically designed for licensees
|
|
|
|
// interested in retaining the proprietary status of their code.
|
|
|
|
//
|
|
|
|
// Contact information:
|
|
|
|
// <www.state-machine.com/licensing>
|
|
|
|
// <info@state-machine.com>
|
|
|
|
//
|
2023-01-19 21:14:02 -05:00
|
|
|
//$endhead${.::calc_sub.hpp} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
#ifndef CALC_SUB_HPP_
|
|
|
|
#define CALC_SUB_HPP_
|
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
|
|
|
|
};
|
|
|
|
|
2022-08-11 15:36:19 -04:00
|
|
|
//$declare${Events::CalcEvt} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
|
|
|
|
|
|
|
//${Events::CalcEvt} .........................................................
|
2014-04-13 21:35:34 -04:00
|
|
|
class CalcEvt : public QP::QEvt {
|
|
|
|
public:
|
2023-01-19 21:14:02 -05:00
|
|
|
std::uint8_t key_code;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CalcEvt(
|
|
|
|
QP::QSignal sig,
|
|
|
|
std::uint8_t kc)
|
|
|
|
: QEvt(sig),
|
|
|
|
key_code(kc)
|
|
|
|
{}
|
2022-08-11 15:36:19 -04:00
|
|
|
}; // class CalcEvt
|
|
|
|
//$enddecl${Events::CalcEvt} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
//$declare${SMs::the_calc} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
2014-04-13 21:35:34 -04:00
|
|
|
|
2022-08-11 15:36:19 -04:00
|
|
|
//${SMs::the_calc} ...........................................................
|
2023-01-19 21:14:02 -05:00
|
|
|
extern QP::QAsm * const the_calc;
|
2022-08-11 15:36:19 -04:00
|
|
|
//$enddecl${SMs::the_calc} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2014-04-13 21:35:34 -04:00
|
|
|
|
2023-01-19 21:14:02 -05:00
|
|
|
#endif // CALC_SUB_HPP_
|