diff options
author | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 10:06:47 +0900 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 10:06:47 +0900 |
commit | 7338d72164d5eefb4ba1a45d893c8f169d069baa (patch) | |
tree | a90cfba86d6d76abd2d997254203d48d0db88ac9 /menus.c | |
parent | 5161a54e189b59d8115a81b75d930906bb9af882 (diff) |
add exit entry to load/save menus
Diffstat (limited to 'menus.c')
-rw-r--r-- | menus.c | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -150,6 +150,9 @@ #define mode_rise_time_min 9300 #define mode_rise_time_max 9400 +#define mode_load_exit 9500 +#define mode_save_exit 9600 + #define Submenu_maximum_entries 10 /* what parameter to adjust */ @@ -1526,22 +1529,25 @@ static void Submenu_Display(int change_selection) case Submenu2_save: title = g_strdup ("Save Settings:"); - Submenu_max_entry=3; + Submenu_max_entry=4; Submenu_Structure[0]=mode_save_0; Submenu_Structure[1]=mode_save_1; Submenu_Structure[2]=mode_save_2; Submenu_Structure[3]=mode_save_3; + Submenu_Structure[4]=mode_save_exit; break; case Submenu2_load: title = g_strdup ("Load Settings:"); - Submenu_max_entry=3; + Submenu_max_entry=4; Submenu_Structure[0]=mode_load_0; Submenu_Structure[1]=mode_load_1; Submenu_Structure[2]=mode_load_2; Submenu_Structure[3]=mode_load_3; + Submenu_Structure[4]=mode_load_exit; + break; case Submenu1_memory: @@ -1847,6 +1853,12 @@ static void Submenu_Display(int change_selection) case mode_save_3: mode_name = g_strdup("Storage 3"); break; + + case mode_load_exit: + case mode_save_exit: + mode_name = g_strdup("Exit"); + break; + case mode_change_rs232: mode_name = g_strdup("Change values"); break; @@ -3320,6 +3332,12 @@ static int Submenu_Implement_Changes(void) Set_Rcl(3); globals.MenuStatus.Selected_Submenu=Submenu1_memory; break; + + case mode_load_exit: + case mode_save_exit: + globals.MenuStatus.Selected_Submenu=Submenu1_memory; + break; + case mode_save: globals.MenuStatus.Selected_Submenu=Submenu2_save; call_new_submenu=YES; |