Select one of the symbols to view example projects that use it.
 
Outline
#include <gui/main_menu_screen/MainMenuPresenter.hpp>
#include <gui/main_menu_screen/MainMenuView.hpp>
MainMenuPresenter::MainMenuPresenter(MainMenuView &)
MainMenuPresenter::activate()
MainMenuPresenter::deactivate()
MainMenuPresenter::demoSelected(DemoID, uint8_t)
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXGui/gui/src/main_menu_screen/MainMenuPresenter.cpp
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * This file is part of the TouchGFX 4.10.0 distribution. * * @attention * * Copyright (c) 2018 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ #include <gui/main_menu_screen/MainMenuPresenter.hpp> #include <gui/main_menu_screen/MainMenuView.hpp> MainMenuPresenter::MainMenuPresenter(MainMenuView& v) : DemoPresenter(v), view(v) { }{ ... } void MainMenuPresenter::activate() { view.setSelectedMenuIndex(model->getSelectedMenuIndex()); }{ ... } void MainMenuPresenter::deactivate() { }{ ... } void MainMenuPresenter::demoSelected(DemoID id, uint8_t menuIndex) { model->setSelectedMenuIndex(menuIndex); switch (id) { case CUSTOM_CONTROLS: static_cast<FrontendApplication*>(Application::getInstance())->gotoCustomControlsScreen(); break;case CUSTOM_CONTROLS: case GRAPH_SCREEN: static_cast<FrontendApplication*>(Application::getInstance())->gotoGraphScreen(); break;case GRAPH_SCREEN: case EASING_EQUATION: static_cast<FrontendApplication*>(Application::getInstance())->gotoEasingEquationScreen(); break;case EASING_EQUATION: case PRODUCT_PRESENTER: static_cast<FrontendApplication*>(Application::getInstance())->gotoProductPresenterScreen(); break;case PRODUCT_PRESENTER: case NO_DEMO_SCREEN: break;case NO_DEMO_SCREEN: default: break;default }switch (id) { ... } }{ ... }