FrontendApplication is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

FrontendApplication class

The FrontendApplication is the concrete implementation of an MVPApplication for a specific application. Its primary job is to provide functions for switching between screens (presenter/view pairs). By convention these functions are usually called gotoXXScreen(). Note that the base class Application is a singleton. Switching screen can be done from anywhere (usually presenters) by e.g. the following: static_cast(Application::getInstance())->gotoXXScreen();

Syntax

class FrontendApplication : public MVPApplication { public:     FrontendApplication(Model& m, FrontendHeap& heap);     virtual ~FrontendApplication() { }     virtual void handleClickEvent(const ClickEvent& evt);     virtual void handleDragEvent(const DragEvent& evt);     virtual void handleTickEvent();     void resetScreenSaver();     void gotoMainMenuScreenNoTransition();     void gotoMainMenuScreen();     void gotoCustomControlsScreen();     void gotoGraphScreen();     void gotoEasingEquationScreen();     void gotoProductPresenterScreen(); private:     static const int SCREEN_SAVER_TIMEOUT = 180000;      static const int MINOR_TICK_FREQ = 3000 / 17;      static const int MAJOR_TICK_FREQ = 10000 / 17;      Callback<FrontendApplication> transitionCallback;     FrontendHeap& frontendHeap;     Model& model;     void gotoMainMenuScreenNoTransitionImpl();     void gotoMainMenuScreenImpl();     void gotoCustomControlsScreenImpl();     void gotoGraphScreenImpl();     void gotoEasingEquationScreenImpl();     void gotoProductPresenterScreenImpl();     int tickCounter;     int screenSaverTick;     Time lastClickTime; };

Fields

SCREEN_SAVER_TIMEOUT

No summary provided. Read more...

MINOR_TICK_FREQ

No summary provided. Read more...

MAJOR_TICK_FREQ

No summary provided. Read more...

transitionCallback

No summary provided. Read more...

frontendHeap

No summary provided. Read more...

model

No summary provided. Read more...

tickCounter

No summary provided. Read more...

screenSaverTick

No summary provided. Read more...

lastClickTime

No summary provided. Read more...

Methods

handleClickEvent()

No summary provided. Read more...

handleDragEvent()

No summary provided. Read more...

handleTickEvent()

No summary provided. Read more...

resetScreenSaver()

No summary provided. Read more...

gotoMainMenuScreenNoTransition()

No summary provided. Read more...

gotoMainMenuScreen()

No summary provided. Read more...

gotoCustomControlsScreen()

No summary provided. Read more...

gotoGraphScreen()

No summary provided. Read more...

gotoEasingEquationScreen()

No summary provided. Read more...

gotoProductPresenterScreen()

No summary provided. Read more...

gotoMainMenuScreenNoTransitionImpl()

No summary provided. Read more...

gotoMainMenuScreenImpl()

No summary provided. Read more...

gotoCustomControlsScreenImpl()

No summary provided. Read more...

gotoGraphScreenImpl()

No summary provided. Read more...

gotoEasingEquationScreenImpl()

No summary provided. Read more...

gotoProductPresenterScreenImpl()

No summary provided. Read more...

References

LocationReferrerScopeText
FrontendApplication.hpp:41
class FrontendApplication : public MVPApplication
DemoPresenter.cpp:28DemoPresenter::backOptionSelected()
static_cast<FrontendApplication*>(Application::getInstance())->gotoMainMenuScreen();
FrontendApplication.cpp:39FrontendApplication::FrontendApplication()
FrontendApplication::FrontendApplication(Model& m, FrontendHeap& heap)
FrontendApplication.cpp:50FrontendApplication::handleTickEvent()
void FrontendApplication::handleTickEvent()
FrontendApplication.cpp:72FrontendApplication::handleClickEvent()
void FrontendApplication::handleClickEvent(const ClickEvent& evt)
FrontendApplication.cpp:80FrontendApplication::handleDragEvent()
void FrontendApplication::handleDragEvent(const DragEvent& evt)
FrontendApplication.cpp:88FrontendApplication::resetScreenSaver()
void FrontendApplication::resetScreenSaver()
FrontendApplication.cpp:94FrontendApplication::gotoMainMenuScreenNoTransition()
void FrontendApplication::gotoMainMenuScreenNoTransition()
FrontendApplication.cpp:100FrontendApplication::gotoMainMenuScreenNoTransitionImpl()
void FrontendApplication::gotoMainMenuScreenNoTransitionImpl()
FrontendApplication.cpp:105FrontendApplication::gotoMainMenuScreen()
void FrontendApplication::gotoMainMenuScreen()
FrontendApplication.cpp:111FrontendApplication::gotoMainMenuScreenImpl()
void FrontendApplication::gotoMainMenuScreenImpl()
FrontendApplication.cpp:116FrontendApplication::gotoCustomControlsScreen()
void FrontendApplication::gotoCustomControlsScreen()
FrontendApplication.cpp:122FrontendApplication::gotoCustomControlsScreenImpl()
void FrontendApplication::gotoCustomControlsScreenImpl()
FrontendApplication.cpp:127FrontendApplication::gotoGraphScreen()
void FrontendApplication::gotoGraphScreen()
FrontendApplication.cpp:133FrontendApplication::gotoGraphScreenImpl()
void FrontendApplication::gotoGraphScreenImpl()
FrontendApplication.cpp:138FrontendApplication::gotoEasingEquationScreen()
void FrontendApplication::gotoEasingEquationScreen()
FrontendApplication.cpp:144FrontendApplication::gotoEasingEquationScreenImpl()
void FrontendApplication::gotoEasingEquationScreenImpl()
FrontendApplication.cpp:149FrontendApplication::gotoProductPresenterScreen()
void FrontendApplication::gotoProductPresenterScreen()
FrontendApplication.cpp:155FrontendApplication::gotoProductPresenterScreenImpl()
void FrontendApplication::gotoProductPresenterScreenImpl()
FrontendHeap.hpp:114FrontendHeap::appFrontendHeap
FrontendApplication app;
MainMenuPresenter.cpp:44MainMenuPresenter::demoSelected()
static_cast<FrontendApplication*>(Application::getInstance())->gotoCustomControlsScreen();
MainMenuPresenter.cpp:47MainMenuPresenter::demoSelected()
static_cast<FrontendApplication*>(Application::getInstance())->gotoGraphScreen();
MainMenuPresenter.cpp:50MainMenuPresenter::demoSelected()
static_cast<FrontendApplication*>(Application::getInstance())->gotoEasingEquationScreen();
MainMenuPresenter.cpp:53MainMenuPresenter::demoSelected()
static_cast<FrontendApplication*>(Application::getInstance())->gotoProductPresenterScreen();

Class Tree

Child classes
FrontendApplication
all items filtered out
Variables of FrontendApplication type
all items filtered out
FrontendApplication