/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * $Id: games_menu.c,v 1.3 2002/06/27 01:08:11 zagor Exp $
 *
 * Copyright (C) 2002 Matthew Pritchard
 *
 * All files in this archive are subject to the GNU General Public License.
 * See the file COPYING in the source tree root for full license agreement.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************/

#include "config.h"
#ifdef HAVE_LCD_BITMAP
#include "wps_format_menu.h"
#include "menu.h"
#include "settings.h"

void set_line1()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    int* field=&global_settings.wps_field[0];
    set_option("[WPS format]", field, names, 8 );
}

void set_line2()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    set_option("[WPS format]", &global_settings.wps_field[1], names, 8 );
}

void set_line3()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    set_option("[WPS format]", &global_settings.wps_field[2], names, 8 );
}

void set_line4()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    set_option("[WPS format]", &global_settings.wps_field[3], names, 8 );
}

void set_line5()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    set_option("[WPS format]", &global_settings.wps_field[4], names, 8 );
}

void set_line6()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    set_option("[WPS format]", &global_settings.wps_field[5], names, 8 );
}

void set_line7()
{
    char* names[] = { "Blank  ", "Path ", "Title", "Album", "Artist", "Bitrate",
                      "Frequency", "Freqency/Bitrate" };
    set_option("[WPS format]", &global_settings.wps_field[6], names, 8 );
}

void wps_format_menu(void)
{
    int m;

    struct menu_items items[] = {
        { "Line 1", set_line1 },
        { "Line 2", set_line2 },
        { "Line 3", set_line3 },
        { "Line 4", set_line4 },
        { "Line 5", set_line5 },
        { "Line 6", set_line6 },
        { "Line 7", set_line7 }
    };

    m=menu_init( items, sizeof items / sizeof(struct menu_items) );
    menu_run(m);
    menu_exit(m);
}

#endif
