summaryrefslogtreecommitdiff
path: root/apps/gui/folder_select.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-07-18 23:26:21 +0200
committerThomas Martitz <kugel@rockbox.org>2012-07-30 21:20:51 +0200
commit8c655cfdc09b0be326e7d9f190ae728d4e2bdc87 (patch)
tree668b5e8506dd8eea506067535f593a4c2524d021 /apps/gui/folder_select.h
parent9dd2eb49bec19de06c5cfd168a0e4cd4dc44c867 (diff)
downloadrockbox-8c655cfdc09b0be326e7d9f190ae728d4e2bdc87.tar.gz
rockbox-8c655cfdc09b0be326e7d9f190ae728d4e2bdc87.zip
New GUI browser to select one (or more) folders.
The browser lets the user pick one or more directories in a convinient GUI browser. The initial directory list is read from a string (separated by colons) and the resulting list is written back to the same string (again separated by colons). Note: The work was initially done by Jonathan Gordon, however I changed it substantially so I claim autorship. This selector is going to be used for autoresume and database scan folders. Change-Id: Id1d3186dad783411eb5c6056ce93f5b6123c7aa0
Diffstat (limited to 'apps/gui/folder_select.h')
-rw-r--r--apps/gui/folder_select.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/gui/folder_select.h b/apps/gui/folder_select.h
new file mode 100644
index 0000000000..1c7e559532
--- /dev/null
+++ b/apps/gui/folder_select.h
@@ -0,0 +1,35 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2011 Jonathan Gordon
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20
21#ifndef __FOLDER_SELECT_H__
22#define __FOLDER_SELECT_H__
23
24/**
25 * A GUI browser to select folders from the file system
26 *
27 * It reads a list of folders, separated by colons (:) from setting
28 * and pre-selects them in the UI. If the user is done it writes the new
29 * list back to setting (again separated by colons), assuming the
30 * user confirms the yesno dialog.
31 *
32 * Returns true if the the folder list has changed, otherwise false */
33bool folder_select(char* setting, int setting_len);
34
35#endif /* __FOLDER_SELECT_H__ */