5
* Marco van den Heuvel <blackystardust68@yahoo.com>
7
* This file is part of VICE, the Versatile Commodore Emulator.
8
* See README for copyright notice.
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.
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.
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
30
#define UI_MENU_NAME c64dtv_ui_translation_menu
31
#define UI_TRANSLATED_MENU_NAME c64dtv_ui_menu
35
#include "c64dtvuires.h"
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"
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 },
56
static int c64dtv_ui_specific(video_canvas_t *canvas, int idm)
59
case IDM_C64DTV_SETTINGS:
60
ui_c64dtv_settings_dialog(canvas);
62
case IDM_VICII_SETTINGS:
63
ui_vicii_settings_dialog();
65
case IDM_SID_SETTINGS:
66
ui_sid_settings_dialog();
68
case IDM_COMPUTER_ROM_SETTINGS:
69
ui_c64vic20_computer_rom_settings_dialog(canvas);
71
case IDM_DRIVE_ROM_SETTINGS:
72
ui_c64vic20_drive_rom_settings_dialog(canvas);
74
case IDM_VIDEO_SETTINGS:
75
ui_video_c64plus4vic20_settings_dialog(canvas, "VICIIExternalPalette", "VICIIPaletteFile");
77
case IDM_DRIVE_SETTINGS:
78
uidrivec64vic20_settings_dialog();
80
case IDM_KEYBOARD_SETTINGS:
81
// uikeyboard_settings_dialog(hwnd, &uikeyboard_config);
88
int c64dtvui_init(void)
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);
99
void c64dtvui_shutdown(void)