Bump version numbers for 3.13
[maemo-rb.git] / apps / gui / option_select.h
blob4ccc15a14ead8b4c81d189cc2e17b4f46e54abb2
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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_
24 #include "config.h"
25 #include "screen_access.h"
26 #include "settings.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
33 #endif
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);
42 #endif
43 const char *option_get_valuestring(const struct settings_list *setting,
44 char *buffer, int buf_len,
45 intptr_t temp_var);
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 int get_setting_info_for_bar(int setting_id, int *count, int *val);
52 #ifdef HAVE_TOUCHSCREEN
53 void update_setting_value_from_touch(int setting_id, int selection);
54 #endif
56 #endif /* _GUI_OPTION_SELECT_H_ */