1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2005 by Kevin Ferrare
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _GUI_OPTION_SELECT_H_
23 #define _GUI_OPTION_SELECT_H_
25 #include "screen_access.h"
28 #if defined (HAVE_SCROLLWHEEL) || \
29 (CONFIG_KEYPAD == PLAYER_PAD)
30 /* Define this if your target makes sense to have
31 smaller values at the top of the list increasing down the list */
32 #define ASCENDING_INT_SETTINGS
35 bool option_screen(const struct settings_list
*setting
,
36 struct viewport parent
[NB_SCREENS
],
37 bool use_temp_var
, unsigned char* option_title
);
39 #if defined(HAVE_QUICKSCREEN) || defined(HAVE_RECORDING) || defined(HAVE_TOUCHSCREEN)
40 void option_select_next_val(const struct settings_list
*setting
,
41 bool previous
, bool apply
);
43 const char *option_get_valuestring(const struct settings_list
*setting
,
44 char *buffer
, int buf_len
,
46 void option_talk_value(const struct settings_list
*setting
, int value
, bool enqueue
);
48 /* only use this for int and bool settings */
49 int option_value_as_int(const struct settings_list
*setting
);
51 #endif /* _GUI_OPTION_SELECT_H_ */