From 8c655cfdc09b0be326e7d9f190ae728d4e2bdc87 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 18 Jul 2012 23:26:21 +0200 Subject: 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 --- apps/gui/folder_select.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 apps/gui/folder_select.h (limited to 'apps/gui/folder_select.h') 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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * + * Copyright (C) 2011 Jonathan Gordon + * + * 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. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef __FOLDER_SELECT_H__ +#define __FOLDER_SELECT_H__ + +/** + * A GUI browser to select folders from the file system + * + * It reads a list of folders, separated by colons (:) from setting + * and pre-selects them in the UI. If the user is done it writes the new + * list back to setting (again separated by colons), assuming the + * user confirms the yesno dialog. + * + * Returns true if the the folder list has changed, otherwise false */ +bool folder_select(char* setting, int setting_len); + +#endif /* __FOLDER_SELECT_H__ */ -- cgit v1.2.3