~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/amigaos/c64dtvui.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * c64dtvui.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
#define UI_C64DTV
 
30
#define UI_MENU_NAME c64dtv_ui_translation_menu
 
31
#define UI_TRANSLATED_MENU_NAME c64dtv_ui_menu
 
32
 
 
33
#include "private.h"
 
34
#include "c64ui.h"
 
35
#include "c64dtvuires.h"
 
36
 
 
37
#include "mui/uic64dtv.h"
 
38
#include "mui/uidrivec64vic20.h"
 
39
#include "mui/uiromc64vic20settings.h"
 
40
#include "mui/uisid.h"
 
41
#include "mui/uivicii.h"
 
42
#include "mui/uivideoc64plus4vic20.h"
 
43
 
 
44
static const ui_menu_toggle_t c64dtv_ui_menu_toggles[] = {
 
45
    { "VICIIDoubleSize", IDM_TOGGLE_DOUBLESIZE },
 
46
    { "VICIIDoubleScan", IDM_TOGGLE_DOUBLESCAN },
 
47
    { "VICIIScale2x", IDM_TOGGLE_SCALE2X },
 
48
    { "PALEmulation", IDM_TOGGLE_FASTPAL },
 
49
    { "VICIIVideoCache", IDM_TOGGLE_VIDEOCACHE },
 
50
    { "Mouse", IDM_MOUSE },
 
51
    { "ps2mouse", IDM_PS2_MOUSE },
 
52
    { "EmuID", IDM_TOGGLE_EMUID },
 
53
    { NULL, 0 }
 
54
};
 
55
 
 
56
static int c64dtv_ui_specific(video_canvas_t *canvas, int idm)
 
57
{
 
58
    switch (idm) {
 
59
      case IDM_C64DTV_SETTINGS:
 
60
        ui_c64dtv_settings_dialog(canvas);
 
61
        break;
 
62
      case IDM_VICII_SETTINGS:
 
63
        ui_vicii_settings_dialog();
 
64
        break;
 
65
      case IDM_SID_SETTINGS:
 
66
        ui_sid_settings_dialog();
 
67
        break;
 
68
      case IDM_COMPUTER_ROM_SETTINGS:
 
69
        ui_c64vic20_computer_rom_settings_dialog(canvas);
 
70
        break;
 
71
      case IDM_DRIVE_ROM_SETTINGS:
 
72
        ui_c64vic20_drive_rom_settings_dialog(canvas);
 
73
        break;
 
74
      case IDM_VIDEO_SETTINGS:
 
75
        ui_video_c64plus4vic20_settings_dialog(canvas, "VICIIExternalPalette", "VICIIPaletteFile");
 
76
        break;
 
77
      case IDM_DRIVE_SETTINGS:
 
78
        uidrivec64vic20_settings_dialog();
 
79
        break;
 
80
      case IDM_KEYBOARD_SETTINGS:
 
81
//        uikeyboard_settings_dialog(hwnd, &uikeyboard_config);
 
82
        break;
 
83
    }
 
84
 
 
85
    return 0;
 
86
}
 
87
 
 
88
int c64dtvui_init(void)
 
89
{
 
90
  ui_register_menu_translation_layout(c64dtv_ui_translation_menu);
 
91
  ui_register_menu_layout(c64dtv_ui_menu);
 
92
  ui_register_machine_specific(c64dtv_ui_specific);
 
93
  ui_register_menu_toggles(c64dtv_ui_menu_toggles);
 
94
//  ui_register_res_values(const ui_res_value_list_t *valuelist);
 
95
 
 
96
  return 0;
 
97
}
 
98
 
 
99
void c64dtvui_shutdown(void)
 
100
{
 
101
}