C

Qt Quick Ultralite Motorcycle Cluster Demo

/****************************************************************************** ** ** Copyright (C) 2019 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Quick Ultralite module. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see http://www.qt.io/terms-conditions. For further ** information use the contact form at http://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ******************************************************************************/
#include "simulation/big/simulationcontroller_big.h" #include "MotorCluster/MainModel.h" #include "statemachine.h" #include "simulation/smfwd.h" #include "simulation/big/states.h" #include "simulation/big/normaldrivestate.h" using namespace Simulation; void introFinished(Machine &sm); namespace { // State Machine instance Machine sm(State_Idle); // State Instances IntroState introState(State_NormalDrive); NormalDriveState normalDriveState(State_End); EndState endState(State_Intro); } // namespace SimulationController::SimulationController() { sm.registerState(State_Intro, &introState); sm.registerState(State_NormalDrive, &normalDriveState); sm.registerState(State_End, &endState); } void SimulationController::start() { sm.changeState(State_Intro, Layer_Gauges); }