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
29
#define _INLINE_MUIMASTER_H
35
#include "translate.h"
37
static int ui_mouse_type_translate[] = {
44
static char *ui_mouse_type[countof(ui_mouse_type_translate)];
46
static const int ui_mouse_type_values[] = {
53
static int ui_mouse_port_translate[] = {
59
static char *ui_mouse_port[countof(ui_mouse_port_translate)];
61
static const int ui_mouse_port_values[] = {
67
static ui_to_from_t ui_to_from[] = {
68
{ NULL, MUI_TYPE_CYCLE, "Mousetype", ui_mouse_type, ui_mouse_type_values },
69
{ NULL, MUI_TYPE_CYCLE, "Mouseport", ui_mouse_port, ui_mouse_port_values },
70
UI_END /* mandatory */
73
static APTR build_gui(void)
76
CYCLE(ui_to_from[0].object, translate_text(IDS_MOUSE_TYPE), ui_mouse_type)
77
CYCLE(ui_to_from[1].object, translate_text(IDS_MOUSE_PORT), ui_mouse_port)
81
void ui_mouse_settings_dialog(void)
83
intl_convert_mui_table(ui_mouse_type_translate, ui_mouse_type);
84
intl_convert_mui_table(ui_mouse_port_translate, ui_mouse_port);
85
mui_show_dialog(build_gui(), translate_text(IDS_MOUSE_SETTINGS), ui_to_from);