summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/quickscreen.c4
-rw-r--r--apps/lang/english.lang17
-rw-r--r--apps/menus/settings_menu.c7
-rw-r--r--apps/settings.h3
-rw-r--r--apps/settings_list.c2
-rw-r--r--manual/appendix/config_file_options.tex7
-rw-r--r--manual/configure_rockbox/system_options.tex5
7 files changed, 44 insertions, 1 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index acef2c32a0..965fe67a4c 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -38,6 +38,7 @@
38#include "list.h" 38#include "list.h"
39#include "option_select.h" 39#include "option_select.h"
40#include "debug.h" 40#include "debug.h"
41#include "shortcuts.h"
41 42
42 /* 1 top, 1 bottom, 2 on either side, 1 for the icons 43 /* 1 top, 1 bottom, 2 on either side, 1 for the icons
43 * if enough space, top and bottom have 2 lines */ 44 * if enough space, top and bottom have 2 lines */
@@ -391,6 +392,9 @@ bool quick_screen_quick(int button_enter)
391 bool oldshuffle = global_settings.playlist_shuffle; 392 bool oldshuffle = global_settings.playlist_shuffle;
392 int oldrepeat = global_settings.repeat_mode; 393 int oldrepeat = global_settings.repeat_mode;
393 394
395 if (global_settings.shortcuts_replaces_qs)
396 return do_shortcut_menu(NULL);
397
394 qs.items[QUICKSCREEN_TOP] = 398 qs.items[QUICKSCREEN_TOP] =
395 get_setting(global_settings.qs_items[QUICKSCREEN_TOP], NULL); 399 get_setting(global_settings.qs_items[QUICKSCREEN_TOP], NULL);
396 qs.items[QUICKSCREEN_LEFT] = 400 qs.items[QUICKSCREEN_LEFT] =
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index d428bee232..e1f68895c7 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -13007,3 +13007,20 @@
13007 *: "Constrain Auto-Change" 13007 *: "Constrain Auto-Change"
13008 </voice> 13008 </voice>
13009</phrase> 13009</phrase>
13010<phrase>
13011 id: LANG_USE_SHORTCUTS_INSTEAD_OF_QS
13012 desc: in settings_menu.
13013 user: core
13014 <source>
13015 *: none
13016 quickscreen: "Use Shortcuts Menu Instead of Quick Screen"
13017 </source>
13018 <dest>
13019 *: none
13020 quickscreen: "Use Shortcuts Menu Instead of Quick Screen"
13021 </dest>
13022 <voice>
13023 *: none
13024 quickscreen: "Use Shortcuts Menu Instead of Quick Screen"
13025 </voice>
13026</phrase>
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 659a7f2fbb..0e3e861834 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -297,6 +297,10 @@ MENUITEM_SETTING(buttonlight_brightness, &global_settings.buttonlight_brightness
297MENUITEM_SETTING(touchpad_sensitivity, &global_settings.touchpad_sensitivity, NULL); 297MENUITEM_SETTING(touchpad_sensitivity, &global_settings.touchpad_sensitivity, NULL);
298#endif 298#endif
299 299
300#ifdef HAVE_QUICKSCREEN
301MENUITEM_SETTING(shortcuts_replaces_quickscreen, &global_settings.shortcuts_replaces_qs, NULL);
302#endif
303
300MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), 304MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
301 0, Icon_System_menu, 305 0, Icon_System_menu,
302#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1) 306#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1)
@@ -306,6 +310,9 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
306 &disk_menu, 310 &disk_menu,
307#endif 311#endif
308 &limits_menu, 312 &limits_menu,
313#ifdef HAVE_QUICKSCREEN
314 &shortcuts_replaces_quickscreen,
315#endif
309#ifdef HAVE_MORSE_INPUT 316#ifdef HAVE_MORSE_INPUT
310 &morse_input, 317 &morse_input,
311#endif 318#endif
diff --git a/apps/settings.h b/apps/settings.h
index 777c7dbefe..fb562c9191 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -827,6 +827,9 @@ struct user_settings
827 char start_directory[MAX_PATHNAME+1]; 827 char start_directory[MAX_PATHNAME+1];
828 /* Has the root been customized from the .cfg file? false = no, true = loaded from cfg */ 828 /* Has the root been customized from the .cfg file? false = no, true = loaded from cfg */
829 bool root_menu_customized; 829 bool root_menu_customized;
830#ifdef HAVE_QUICKSCREEN
831 bool shortcuts_replaces_qs;
832#endif
830}; 833};
831 834
832/** global variables **/ 835/** global variables **/
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 5acebef2a5..6780c78ed3 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1830,6 +1830,8 @@ const struct settings_list settings[] = {
1830 NULL, "qs bottom", 1830 NULL, "qs bottom",
1831 qs_load_from_cfg, qs_write_to_cfg, 1831 qs_load_from_cfg, qs_write_to_cfg,
1832 qs_is_changed, qs_set_default), 1832 qs_is_changed, qs_set_default),
1833 OFFON_SETTING(0, shortcuts_replaces_qs, LANG_USE_SHORTCUTS_INSTEAD_OF_QS,
1834 false, "shortcuts instead of quickscreen", NULL),
1833#endif 1835#endif
1834#ifdef HAVE_SPEAKER 1836#ifdef HAVE_SPEAKER
1835 OFFON_SETTING(0, speaker_enabled, LANG_ENABLE_SPEAKER, false, "speaker", 1837 OFFON_SETTING(0, speaker_enabled, LANG_ENABLE_SPEAKER, false, "speaker",
diff --git a/manual/appendix/config_file_options.tex b/manual/appendix/config_file_options.tex
index 59148e15cc..7cb2b249d3 100644
--- a/manual/appendix/config_file_options.tex
+++ b/manual/appendix/config_file_options.tex
@@ -101,6 +101,13 @@
101 \opt{multidrive_usb}{ 101 \opt{multidrive_usb}{
102 usb skip first drive & on, off & N/A\\ 102 usb skip first drive & on, off & N/A\\
103 } 103 }
104 \opt{quickscreen}{
105 qs top & any setting name, - for none & N/A\\
106 qs bottom & any setting name, - for none & N/A\\
107 qs left & any setting name, - for none & N/A\\
108 qs right & any setting name, - for none & N/A\\
109 shortcuts instead of quickscreen & off, on & N/A\\
110 }
104 111
105 idle poweroff & off, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 30, 45, 60 112 idle poweroff & off, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 30, 45, 60
106 & min\\ 113 & min\\
diff --git a/manual/configure_rockbox/system_options.tex b/manual/configure_rockbox/system_options.tex
index 726e2eed15..0d59e6661a 100644
--- a/manual/configure_rockbox/system_options.tex
+++ b/manual/configure_rockbox/system_options.tex
@@ -124,7 +124,10 @@ This sub menu relates to limits in the Rockbox operating system.
124 \item LAN party computer $\rightarrow$ \dap $\rightarrow$ human 124 \item LAN party computer $\rightarrow$ \dap $\rightarrow$ human
125 \end{itemize} 125 \end{itemize}
126} 126}
127 127\opt{quickscreen}{
128 \subsection{Use Shortcuts Menu Instead of Quick Screen} This option
129 activates the shortcuts menu instead of opening the quick screen when enabled.
130}
128\opt{HAVE_CAR_ADAPTER_MODE}{ 131\opt{HAVE_CAR_ADAPTER_MODE}{
129\subsection{Car Adapter Mode} 132\subsection{Car Adapter Mode}
130 This option turns \setting{On} and \setting{Off} the car ignition 133 This option turns \setting{On} and \setting{Off} the car ignition