Clip counter manual update, language tweak and translation
[maemo-rb.git] / apps / gui / option_select.h
blobe46570f3036895d085cb2d94801f65ff92847e97
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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_
22 #include "settings.h"
24 bool option_screen(struct settings_list *setting,
25 bool use_temp_var, unsigned char* option_title);
27 struct option_select
29 const char * title;
30 int min_value;
31 int max_value;
32 int option;
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,
44 const char * title,
45 int selected,
46 const struct opt_items * items,
47 int nb_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);
68 #endif /* _GUI_OPTION_SELECT_H_ */