1
1
#include <gui/modules/menu.h>
2
2
#include <gui/modules/popup.h>
3
3
4
- #include "main_menu .h"
4
+ #include "starting_scene .h"
5
5
#include "../app_context.h"
6
6
#include "../tone_gen.h"
7
7
#include "../utils/linked_list.h"
@@ -13,8 +13,8 @@ typedef enum {
13
13
} ToneGenAppMenuSelection ;
14
14
15
15
/** main menu callback - sends a custom event to the scene manager based on the menu selection */
16
- void menu_callback_main_menu (void * context , uint32_t index ) {
17
- FURI_LOG_I (TAG , "menu_callback_main_menu " );
16
+ void menu_callback_starting_scene (void * context , uint32_t index ) {
17
+ FURI_LOG_I (TAG , "menu_callback_starting_scene " );
18
18
UNUSED (context );
19
19
// struct AppContext_t* app = context;
20
20
switch (index ) {
@@ -30,8 +30,8 @@ void menu_callback_main_menu(void* context, uint32_t index) {
30
30
}
31
31
32
32
/** resets the menu, gives it content, callbacks and selection enums */
33
- void scene_on_enter_main_menu (void * context ) {
34
- FURI_LOG_I (TAG , "scene_on_enter_main_menu " );
33
+ void scene_on_enter_starting_scene (void * context ) {
34
+ FURI_LOG_I (TAG , "scene_on_enter_starting_scene " );
35
35
struct AppContext_t * app = (struct AppContext_t * )context ;
36
36
// Setup our menu
37
37
FURI_LOG_D (TAG , "Adding view menu" );
@@ -55,21 +55,21 @@ void scene_on_enter_main_menu(void* context) {
55
55
"Play Tone" ,
56
56
NULL ,
57
57
ToneGenAppMenuSelection_Play ,
58
- menu_callback_main_menu ,
58
+ menu_callback_starting_scene ,
59
59
app );
60
60
menu_add_item (
61
61
menuView -> viewData ,
62
62
"Adjust Tone" ,
63
63
NULL ,
64
64
ToneGenAppMenuSelection_Adjust ,
65
- menu_callback_main_menu ,
65
+ menu_callback_starting_scene ,
66
66
app );
67
67
view_dispatcher_switch_to_view (app -> view_dispatcher , ToneGenAppView_Menu );
68
68
}
69
69
70
70
/** main menu event handler - switches scene based on the event */
71
- bool scene_on_event_main_menu (void * context , SceneManagerEvent event ) {
72
- FURI_LOG_I (TAG , "scene_on_event_main_menu " );
71
+ bool scene_on_event_starting_scene (void * context , SceneManagerEvent event ) {
72
+ FURI_LOG_I (TAG , "scene_on_event_starting_scene " );
73
73
UNUSED (context );
74
74
// struct AppContext_t* app = context;
75
75
bool consumed = false;
@@ -93,8 +93,8 @@ bool scene_on_event_main_menu(void* context, SceneManagerEvent event) {
93
93
return consumed ;
94
94
}
95
95
96
- void scene_on_exit_main_menu (void * context ) {
97
- FURI_LOG_I (TAG , "scene_on_exit_main_menu " );
96
+ void scene_on_exit_starting_scene (void * context ) {
97
+ FURI_LOG_I (TAG , "scene_on_exit_starting_scene " );
98
98
struct AppContext_t * app = context ;
99
99
freeAppContextViews (& app );
100
100
}
0 commit comments