1 |
|
/* |
2 |
|
* prefs_editor_gtk.cpp - Preferences editor, Unix implementation using GTK+ |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2005 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
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 |
428 |
|
dialog = gnome_about_new( |
429 |
|
"Basilisk II", |
430 |
|
version, |
431 |
< |
"Copyright (C) 1997-2005 Christian Bauer", |
431 |
> |
"Copyright (C) 1997-2008 Christian Bauer", |
432 |
|
authors, |
433 |
|
"Basilisk II comes with ABSOLUTELY NO WARRANTY." |
434 |
|
"This is free software, and you are welcome to redistribute it" |
444 |
|
char str[512]; |
445 |
|
sprintf(str, |
446 |
|
"Basilisk II\nVersion %d.%d\n\n" |
447 |
< |
"Copyright (C) 1997-2005 Christian Bauer et al.\n" |
447 |
> |
"Copyright (C) 1997-2008 Christian Bauer et al.\n" |
448 |
|
"E-mail: Christian.Bauer@uni-mainz.de\n" |
449 |
|
"http://www.uni-mainz.de/~bauec002/B2Main.html\n\n" |
450 |
|
"Basilisk II comes with ABSOLUTELY NO\n" |
1433 |
|
static GtkWidget *w_ramsize; |
1434 |
|
static GtkWidget *w_rom_file; |
1435 |
|
|
1436 |
+ |
// Don't use CPU when idle? |
1437 |
+ |
static void tb_idlewait(GtkWidget *widget) |
1438 |
+ |
{ |
1439 |
+ |
PrefsReplaceBool("idlewait", GTK_TOGGLE_BUTTON(widget)->active); |
1440 |
+ |
} |
1441 |
+ |
|
1442 |
|
// "Ignore SEGV" button toggled |
1443 |
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION |
1444 |
|
static void tb_ignoresegv(GtkWidget *widget) |
1531 |
|
|
1532 |
|
w_rom_file = table_make_file_entry(table, 4, STR_ROM_FILE_CTRL, "rom"); |
1533 |
|
|
1534 |
+ |
make_checkbox(box, STR_IDLEWAIT_CTRL, "idlewait", GTK_SIGNAL_FUNC(tb_idlewait)); |
1535 |
|
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION |
1536 |
|
make_checkbox(box, STR_IGNORESEGV_CTRL, "ignoresegv", GTK_SIGNAL_FUNC(tb_ignoresegv)); |
1537 |
|
#endif |
1568 |
|
void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_size) { } |
1569 |
|
|
1570 |
|
#if defined __APPLE__ && defined __MACH__ |
1571 |
< |
void DarwinAddCDROMPrefs(void) { } |
1571 |
> |
void DarwinSysInit(void) { } |
1572 |
> |
void DarwinSysExit(void) { } |
1573 |
|
void DarwinAddFloppyPrefs(void) { } |
1574 |
|
void DarwinAddSerialPrefs(void) { } |
1575 |
|
bool DarwinCDReadTOC(char *, uint8 *) { } |
1730 |
|
#endif |
1731 |
|
|
1732 |
|
// Read preferences |
1733 |
< |
PrefsInit(argc, argv); |
1733 |
> |
PrefsInit(NULL, argc, argv); |
1734 |
|
|
1735 |
|
// Show preferences editor |
1736 |
|
bool start = PrefsEditor(); |