1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2005 by Kevin Ferrare
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef _GUI_OPTION_SELECT_H_
21 #define _GUI_OPTION_SELECT_H_
24 bool option_screen(struct settings_list
*setting
,
25 bool use_temp_var
, unsigned char* option_title
);
33 const struct opt_items
* items
;
37 * Initializes an option containing a list of choices
38 * - title : the title of the option
39 * - selected : the initially selected item
40 * - items : the list of items, defined in settings.h
41 * - nb_items : the number of items in the 'items' list
43 extern void option_select_init_items(struct option_select
* opt
,
46 const struct opt_items
* items
,
50 * Gets the selected option
51 * - opt : the option struct
52 * Returns the selected option
54 extern const char * option_select_get_text(struct option_select
* opt
);
57 * Selects the next value
58 * - opt : the option struct
60 extern void option_select_next(struct option_select
* opt
);
63 * Selects the previous value
64 * - opt : the option struct
66 extern void option_select_prev(struct option_select
* opt
);
69 #endif /* _GUI_OPTION_SELECT_H_ */