ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/dlgInput.cpp
Revision: 1.1
Committed: 2007-01-28T19:00:01Z (15 years, 10 months ago) by berlac
Branch: MAIN
CVS Tags: HEAD
Log Message:
Initial revision.

File Contents

# Content
1 /*
2 * dlgInput.cpp - SDL GUI dialog for C64 input options
3 *
4 * (C) 2006 Bernd Lachner
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #include "sysdeps.h"
22 #include "sdlgui.h"
23
24 #include "Prefs.h"
25
26 enum INPUTDLG {
27 box_main,
28 box_timing,
29 text_timing,
30 text_line_cpu,
31 LINE_CPU,
32 LINE_UP_CPU,
33 LINE_DOWN_CPU,
34 text_bad_line_cpu,
35 BAD_LINE_CPU,
36 BAD_LINE_UP_CPU,
37 BAD_LINE_DOWN_CPU,
38 text_line_cia,
39 LINE_CIA,
40 LINE_UP_CIA,
41 LINE_DOWN_CIA,
42 text_line_1541,
43 LINE_1541,
44 LINE_UP_1541,
45 LINE_DOWN_1541,
46 box_advancedoptions,
47 text_advancedoptions,
48 CLEAR_CIA_ICR,
49 OK,
50 CANCEL
51 };
52
53 /* The keyboard dialog: */
54 /* Spalte, Zeile, Länge, Höhe*/
55 static SGOBJ inputdlg[] =
56 {
57 { SGBOX, SG_BACKGROUND, 0, 0,0, 35,20, NULL },
58 { SGBOX, 0, 0, 1,2, 33,9, NULL },
59 { SGTEXT, 0, 0, 2, 1, 11, 1, " Joysticks"},
60 { SGCHECKBOX, SG_SELECTABLE, 0, 2, 3, 30, 1, "Swap Joysticks"},
61
62 {SGBUTTON, SG_SELECTABLE|SG_EXIT|SG_DEFAULT, 0, 1, 18, 6, 1, "OK"},
63 {SGBUTTON, SG_SELECTABLE|SG_EXIT, 0, 9, 18, 6, 1, "Cancel"},
64
65 { -1, 0, 0, 0,0, 0,0, NULL }
66 };
67
68 void Dialog_Input(Prefs &prefs)
69 {
70 switch (SDLGui_DoDialog(inputdlg))
71 {
72 }
73 }
74