Index: main.cpp =================================================================== diff -u -rc0b30f1fa82d0121706351057ab52b3bb1141459 -r5a248f0a45889844aa027f4f4a0661aa539975f0 --- main.cpp (.../main.cpp) (revision c0b30f1fa82d0121706351057ab52b3bb1141459) +++ main.cpp (.../main.cpp) (revision 5a248f0a45889844aa027f4f4a0661aa539975f0) @@ -52,6 +52,8 @@ #include "Threads.h" +#include "drydemostates.h" + // kernel #include @@ -532,6 +534,21 @@ signal(SIGTERM, signalhandler); #endif + drydemostates dryStates; + + dryStates.start(); + + dryStates.connectToState("Idle", QScxmlStateMachine::onEntry([&]() { + qDebug() << "In onEntry"; + QThread::sleep(4); + dryStates.submitEvent("Tx_Start_Rqst");})); + + dryStates.connectToState("Idle", QScxmlStateMachine::onExit([&] { + qDebug() << "Exiting";})); + + dryStates.connectToState("Treatment", QScxmlStateMachine::onEntry([&]() { + qDebug() << "In Treatment";})); + // setting the environment for the keyboard. qputenv("QT_IM_MODULE" , QByteArray("qtvirtualkeyboard" )); qputenv("QT_VIRTUALKEYBOARD_STYLE" , QByteArray("denali" )); @@ -571,15 +588,6 @@ // That is enough to call to the I function here to create the object in the thread that Settings is leaving in, // which currently is Application_Thread, since the Settings is created in that thread. _Settings; - QTranslator translator; - { // on-shot use of settings to load the translation only - // Storage::Settings settings; - //! - Reading localization - if ( ! Storage::Settings::readLocale() ) { - //! - Translation initialization - Storage::Settings::loadTranslation(translator); - } - } if (gFakeInterval) { QString msg = " ~~ !!!!! APPLICATION RUNNING IN THE TEST MODE !!!!! ~~ ";