~ubuntu-branches/ubuntu/trusty/vice/trusty

« back to all changes in this revision

Viewing changes to src/arch/amigaos/mui/uidrivec64vic20.c

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2013-07-28 20:38:23 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20130728203823-w495rps5wuykespp
Tags: upstream-2.4.dfsg
ImportĀ upstreamĀ versionĀ 2.4.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    "1570",
58
58
    "1571",
59
59
    "1581",
 
60
    "2000",
 
61
    "4000",
60
62
    "2031",
61
63
    "2040",
62
64
    "3040",
74
76
    DRIVE_TYPE_1570,
75
77
    DRIVE_TYPE_1571,
76
78
    DRIVE_TYPE_1581,
 
79
    DRIVE_TYPE_2000,
 
80
    DRIVE_TYPE_4000,
77
81
    DRIVE_TYPE_2031,
78
82
    DRIVE_TYPE_2040,
79
83
    DRIVE_TYPE_3040,
91
95
    "1570",
92
96
    "1571",
93
97
    "1581",
 
98
    "2000",
 
99
    "4000",
94
100
    "2031",
95
101
    "1001",
96
102
    NULL
103
109
    DRIVE_TYPE_1570,
104
110
    DRIVE_TYPE_1571,
105
111
    DRIVE_TYPE_1581,
 
112
    DRIVE_TYPE_2000,
 
113
    DRIVE_TYPE_4000,
106
114
    DRIVE_TYPE_2031,
107
115
    DRIVE_TYPE_1001,
108
116
    -1
115
123
    "1570",
116
124
    "1571",
117
125
    "1581",
 
126
    "2000",
 
127
    "4000",
118
128
    "2031",
119
129
    "1001",
120
130
    NULL
127
137
    DRIVE_TYPE_1570,
128
138
    DRIVE_TYPE_1571,
129
139
    DRIVE_TYPE_1581,
 
140
    DRIVE_TYPE_2000,
 
141
    DRIVE_TYPE_4000,
130
142
    DRIVE_TYPE_2031,
131
143
    DRIVE_TYPE_1001,
132
144
    -1
139
151
    "1570",
140
152
    "1571",
141
153
    "1581",
 
154
    "2000",
 
155
    "4000",
142
156
    "2031",
143
157
    "1001",
144
158
    NULL
151
165
    DRIVE_TYPE_1570,
152
166
    DRIVE_TYPE_1571,
153
167
    DRIVE_TYPE_1581,
 
168
    DRIVE_TYPE_2000,
 
169
    DRIVE_TYPE_4000,
154
170
    DRIVE_TYPE_2031,
155
171
    DRIVE_TYPE_1001,
156
172
    -1
188
204
    -1
189
205
};
190
206
 
 
207
static int drive_par_cable_translate[] = {
 
208
    IDS_NONE,
 
209
    IDS_STANDARD,
 
210
    IDS_DD3,
 
211
    IDS_FORMEL64,
 
212
    0
 
213
};
 
214
 
 
215
static char *drive_par_cable[countof(drive_par_cable_translate)];
 
216
 
 
217
static const int drive_par_cable_values[] = {
 
218
    DRIVE_PC_NONE,
 
219
    DRIVE_PC_STANDARD,
 
220
    DRIVE_PC_DD3,
 
221
    DRIVE_PC_FORMEL64,
 
222
    -1
 
223
};
 
224
 
191
225
#define DECL(device) \
192
226
    { NULL, MUI_TYPE_RADIO, "Drive" #device "Type", drive_type_strings_ ## device, drive_type_values_ ## device, NULL }, \
193
227
    { NULL, MUI_TYPE_RADIO, "Drive" #device "ExtendImagePolicy", drive_extend_strings, drive_extend_values, NULL },      \
197
231
    { NULL, MUI_TYPE_CHECK, "Drive" #device "RAM6000", NULL, NULL, NULL },                                               \
198
232
    { NULL, MUI_TYPE_CHECK, "Drive" #device "RAM8000", NULL, NULL, NULL },                                               \
199
233
    { NULL, MUI_TYPE_CHECK, "Drive" #device "RAMA000", NULL, NULL, NULL },                                               \
200
 
    { NULL, MUI_TYPE_CHECK, "Drive" #device "ParallelCable", NULL, NULL, NULL },
 
234
    { NULL, MUI_TYPE_RADIO, "Drive" #device "ParallelCable", drive_par_cable, drive_par_cable_values, NULL },
201
235
 
202
236
#define DECL_NUM (9)
203
237
 
248
282
                     MUIA_FrameTitle, translate_text(IDS_IDLE_METHOD),
249
283
                     MUIA_Radio_Entries, drive_idle_strings,
250
284
                   End,
251
 
                   CHECK(data[8].object, translate_text(IDS_PARALLEL_CABLE))
 
285
                   CYCLE(data[8].object, translate_text(IDS_PARALLEL_CABLE), drive_par_cable)
252
286
                 End,
253
287
               End;
254
288
 
267
301
    intl_convert_mui_table(drive_type_strings_translate, drive_type_strings_11);
268
302
    intl_convert_mui_table(drive_extend_strings_translate, drive_extend_strings);
269
303
    intl_convert_mui_table(drive_idle_strings_translate, drive_idle_strings);
 
304
    intl_convert_mui_table(drive_par_cable_translate, drive_par_cable);
270
305
    mui_show_dialog(build_gui(), translate_text(IDS_DRIVE_SETTINGS), ui_to_from);
271
306
}