Fix the bug where the short-long fwd/back action would ffwd/rewind the next folder...
[kugel-rb.git] / apps / gui / quickscreen.h
bloba44c206c5043aa2ce8ca11b1bbdc36f4aabe8323
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 ****************************************************************************/
21 #include "button.h"
22 #include "config.h"
24 #ifdef HAVE_QUICKSCREEN
26 #ifndef _GUI_QUICKSCREEN_H_
27 #define _GUI_QUICKSCREEN_H_
29 #include "screen_access.h"
31 enum QUICKSCREEN_ITEM {
32 QUICKSCREEN_LEFT = 0,
33 QUICKSCREEN_RIGHT,
34 QUICKSCREEN_BOTTOM,
35 QUICKSCREEN_ITEM_COUNT,
38 struct gui_quickscreen
40 const struct settings_list *items[QUICKSCREEN_ITEM_COUNT];
41 void (*callback)(struct gui_quickscreen * qs); /* called after a
42 item is changed */
45 bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_enter);
48 #ifdef BUTTON_F3
49 extern bool quick_screen_f3(int button_enter);
50 #endif
51 extern bool quick_screen_quick(int button_enter);
52 int quickscreen_set_option(void *data);
53 bool is_setting_quickscreenable(const struct settings_list *setting);
54 void set_as_qs_item(const struct settings_list *setting,
55 enum QUICKSCREEN_ITEM item);
56 #endif /*_GUI_QUICK_SCREEN_H_*/
57 #endif /* HAVE_QUICKSCREEN */