2005-11-22 03:38:07 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 by Kevin Ferrare
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2005-11-22 03:38:07 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _GUI_OPTION_SELECT_H_
|
|
|
|
#define _GUI_OPTION_SELECT_H_
|
2008-04-23 11:07:40 +00:00
|
|
|
#include "config.h"
|
|
|
|
#include "screen_access.h"
|
2005-11-22 03:38:07 +00:00
|
|
|
#include "settings.h"
|
|
|
|
|
2021-11-21 16:30:38 +00:00
|
|
|
enum {
|
|
|
|
LIST_ORDER_DESCENDING = 0,
|
|
|
|
LIST_ORDER_ASCENDING = 1,
|
|
|
|
};
|
2011-04-24 07:04:52 +00:00
|
|
|
|
2008-05-15 06:58:36 +00:00
|
|
|
bool option_screen(const struct settings_list *setting,
|
2008-04-23 11:07:40 +00:00
|
|
|
struct viewport parent[NB_SCREENS],
|
2007-07-23 05:40:45 +00:00
|
|
|
bool use_temp_var, unsigned char* option_title);
|
2007-07-11 05:41:23 +00:00
|
|
|
|
2010-09-06 13:33:49 +00:00
|
|
|
#if defined(HAVE_QUICKSCREEN) || defined(HAVE_RECORDING) || defined(HAVE_TOUCHSCREEN)
|
2008-05-15 06:58:36 +00:00
|
|
|
void option_select_next_val(const struct settings_list *setting,
|
2008-05-03 12:30:40 +00:00
|
|
|
bool previous, bool apply);
|
2008-05-28 10:55:39 +00:00
|
|
|
#endif
|
2009-08-20 16:47:44 +00:00
|
|
|
const char *option_get_valuestring(const struct settings_list *setting,
|
2008-05-03 12:30:40 +00:00
|
|
|
char *buffer, int buf_len,
|
|
|
|
intptr_t temp_var);
|
2008-05-04 08:11:28 +00:00
|
|
|
void option_talk_value(const struct settings_list *setting, int value, bool enqueue);
|
2008-05-28 10:55:39 +00:00
|
|
|
|
|
|
|
/* only use this for int and bool settings */
|
|
|
|
int option_value_as_int(const struct settings_list *setting);
|
|
|
|
|
2022-11-30 12:27:52 +00:00
|
|
|
int get_setting_info_for_bar(const struct settings_list *setting, int *count, int *val);
|
2012-07-06 04:28:34 +00:00
|
|
|
#ifdef HAVE_TOUCHSCREEN
|
2022-11-30 12:27:52 +00:00
|
|
|
void update_setting_value_from_touch(const struct settings_list *setting, int selection);
|
2012-07-06 04:28:34 +00:00
|
|
|
#endif
|
2012-07-05 12:44:13 +00:00
|
|
|
|
2005-11-22 03:38:07 +00:00
|
|
|
#endif /* _GUI_OPTION_SELECT_H_ */
|