~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/unix/uiramcart.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * uiramcart.c
 
3
 *
 
4
 * Written by
 
5
 *  Marco van den Heuvel <blackystardust68@yahoo.com>
 
6
 *
 
7
 * This file is part of VICE, the Versatile Commodore Emulator.
 
8
 * See README for copyright notice.
 
9
 *
 
10
 *  This program is free software; you can redistribute it and/or modify
 
11
 *  it under the terms of the GNU General Public License as published by
 
12
 *  the Free Software Foundation; either version 2 of the License, or
 
13
 *  (at your option) any later version.
 
14
 *
 
15
 *  This program is distributed in the hope that it will be useful,
 
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 *  GNU General Public License for more details.
 
19
 *
 
20
 *  You should have received a copy of the GNU General Public License
 
21
 *  along with this program; if not, write to the Free Software
 
22
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
23
 *  02111-1307  USA.
 
24
 *
 
25
 */
 
26
 
 
27
#include "vice.h"
 
28
 
 
29
#include <stdio.h>
 
30
 
 
31
#include "uilib.h"
 
32
#include "uimenu.h"
 
33
#include "uiramcart.h"
 
34
 
 
35
 
 
36
UI_MENU_DEFINE_TOGGLE(RAMCART)
 
37
UI_MENU_DEFINE_RADIO(RAMCARTsize)
 
38
UI_MENU_DEFINE_TOGGLE(RAMCART_RO)
 
39
 
 
40
UI_CALLBACK(set_ramcart_image_name)
 
41
{
 
42
    uilib_select_string((char *)UI_MENU_CB_PARAM, _("RAMCART image name"),
 
43
                        _("Name:"));
 
44
}
 
45
 
 
46
static ui_menu_entry_t ramcart_size_submenu[] = {
 
47
    { "*64KB", (ui_callback_t)radio_RAMCARTsize,
 
48
      (ui_callback_data_t)64, NULL },
 
49
    { "*128KB", (ui_callback_t)radio_RAMCARTsize,
 
50
      (ui_callback_data_t)128, NULL },
 
51
    { NULL }
 
52
};
 
53
 
 
54
ui_menu_entry_t ramcart_submenu[] = {
 
55
    { N_("*Enable RAMCART"),
 
56
      (ui_callback_t)toggle_RAMCART, NULL, NULL },
 
57
    { N_("*Readonly"),
 
58
      (ui_callback_t)toggle_RAMCART_RO, NULL, NULL },
 
59
    { N_("RAMCART size"),
 
60
      NULL, NULL, ramcart_size_submenu },
 
61
    { N_("RAMCART image name..."),
 
62
      (ui_callback_t)set_ramcart_image_name,
 
63
      (ui_callback_data_t)"RAMCARTfilename", NULL },
 
64
    { NULL }
 
65
};
 
66