95
static ui_to_from_t ui_to_from[] = {
96
{ NULL, MUI_TYPE_CYCLE, "DIGIMAX", ui_digimax_enable, ui_digimax_enable_values, NULL },
97
{ NULL, MUI_TYPE_CYCLE, "DIGIMAXbase", ui_digimax_base, ui_digimax_base_values, NULL },
98
UI_END /* mandatory */
101
static APTR build_gui(void)
103
APTR app, ui, ok, cancel;
108
CYCLE(ui_to_from[0].object, translate_text(IDS_DIGIMAX_ENABLED), ui_digimax_enable)
109
CYCLE(ui_to_from[1].object, translate_text(IDS_DIGIMAX_BASE), ui_digimax_base)
114
DoMethod(cancel, MUIM_Notify, MUIA_Pressed, FALSE,
115
app, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);
117
DoMethod(ok, MUIM_Notify, MUIA_Pressed, FALSE,
118
app, 2, MUIM_Application_ReturnID, BTN_OK);
124
void ui_digimax_settings_dialog(video_canvas_t *canvas)
128
digimax_canvas = canvas;
129
intl_convert_mui_table(ui_digimax_enable_translate, ui_digimax_enable);
131
window = mui_make_simple_window(build_gui(), translate_text(IDS_DIGIMAX_SETTINGS));
133
if (window != NULL) {
134
mui_add_window(window);
135
ui_get_to(ui_to_from);
136
set(window, MUIA_Window_Open, TRUE);
137
if (mui_run() == BTN_OK) {
138
ui_get_from(ui_to_from);
95
static char *ui_digimax_vic20_base[] = {
115
static const int ui_digimax_vic20_base_values[] = {
135
static ui_to_from_t ui_to_from64[] = {
136
{ NULL, MUI_TYPE_CYCLE, "DIGIMAX", ui_digimax_enable, ui_digimax_enable_values, NULL },
137
{ NULL, MUI_TYPE_CYCLE, "DIGIMAXbase", ui_digimax_c64_base, ui_digimax_c64_base_values, NULL },
138
UI_END /* mandatory */
141
static ui_to_from_t ui_to_from20[] = {
142
{ NULL, MUI_TYPE_CYCLE, "DIGIMAX", ui_digimax_enable, ui_digimax_enable_values, NULL },
143
{ NULL, MUI_TYPE_CYCLE, "DIGIMAXbase", ui_digimax_vic20_base, ui_digimax_vic20_base_values, NULL },
144
UI_END /* mandatory */
147
static APTR build_gui64(void)
149
APTR app, ui, ok, cancel;
154
CYCLE(ui_to_from64[0].object, translate_text(IDS_DIGIMAX_ENABLED), ui_digimax_enable)
155
CYCLE(ui_to_from64[1].object, translate_text(IDS_DIGIMAX_BASE), ui_digimax_c64_base)
160
DoMethod(cancel, MUIM_Notify, MUIA_Pressed, FALSE,
161
app, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);
163
DoMethod(ok, MUIM_Notify, MUIA_Pressed, FALSE,
164
app, 2, MUIM_Application_ReturnID, BTN_OK);
170
static APTR build_gui20(void)
172
APTR app, ui, ok, cancel;
177
CYCLE(ui_to_from20[0].object, translate_text(IDS_DIGIMAX_ENABLED), ui_digimax_enable)
178
CYCLE(ui_to_from20[1].object, translate_text(IDS_DIGIMAX_BASE), ui_digimax_vic20_base)
183
DoMethod(cancel, MUIM_Notify, MUIA_Pressed, FALSE,
184
app, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);
186
DoMethod(ok, MUIM_Notify, MUIA_Pressed, FALSE,
187
app, 2, MUIM_Application_ReturnID, BTN_OK);
193
void ui_digimax_c64_settings_dialog(video_canvas_t *canvas)
197
digimax_canvas = canvas;
198
intl_convert_mui_table(ui_digimax_enable_translate, ui_digimax_enable);
200
window = mui_make_simple_window(build_gui64(), translate_text(IDS_DIGIMAX_SETTINGS));
202
if (window != NULL) {
203
mui_add_window(window);
204
ui_get_to(ui_to_from64);
205
set(window, MUIA_Window_Open, TRUE);
206
if (mui_run() == BTN_OK) {
207
ui_get_from(ui_to_from64);
209
set(window, MUIA_Window_Open, FALSE);
210
mui_rem_window(window);
211
MUI_DisposeObject(window);
215
void ui_digimax_vic20_settings_dialog(video_canvas_t *canvas)
219
digimax_canvas = canvas;
220
intl_convert_mui_table(ui_digimax_enable_translate, ui_digimax_enable);
222
window = mui_make_simple_window(build_gui20(), translate_text(IDS_DIGIMAX_SETTINGS));
224
if (window != NULL) {
225
mui_add_window(window);
226
ui_get_to(ui_to_from20);
227
set(window, MUIA_Window_Open, TRUE);
228
if (mui_run() == BTN_OK) {
229
ui_get_from(ui_to_from20);
140
231
set(window, MUIA_Window_Open, FALSE);
141
232
mui_rem_window(window);