Added new GUI based on wxWidgets. Patch from bit.
This commit is contained in:
parent
a2f44b8ea7
commit
7fe91626d6
60 changed files with 11647 additions and 78 deletions
34
src/wx-common.c
Normal file
34
src/wx-common.c
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#include "wx-common.h"
|
||||
#include "config.h"
|
||||
|
||||
void wx_loadconfig()
|
||||
{
|
||||
show_machine_info = config_get_int(CFG_GLOBAL, "wxWidgets", "show_machine_info", show_machine_info);
|
||||
show_disc_activity = config_get_int(CFG_GLOBAL, "wxWidgets", "show_disc_activity", show_disc_activity);
|
||||
show_speed_history = config_get_int(CFG_GLOBAL, "wxWidgets", "show_speed_history", show_speed_history);
|
||||
show_mount_paths = config_get_int(CFG_GLOBAL, "wxWidgets", "show_mount_paths", show_mount_paths);
|
||||
show_status = config_get_int(CFG_GLOBAL, "wxWidgets", "show_status", show_status);
|
||||
show_machine_on_start = config_get_int(CFG_GLOBAL, "wxWidgets", "show_machine_on_start", show_machine_on_start);
|
||||
|
||||
confirm_on_reset_machine = config_get_int(CFG_GLOBAL, "wxWidgets", "confirm_on_reset_machine", confirm_on_reset_machine);
|
||||
confirm_on_stop_emulation = config_get_int(CFG_GLOBAL, "wxWidgets", "confirm_on_stop_emulation", confirm_on_stop_emulation);
|
||||
|
||||
wx_window_x = config_get_int(CFG_GLOBAL, "wxWidgets", "window_x", wx_window_x);
|
||||
wx_window_y = config_get_int(CFG_GLOBAL, "wxWidgets", "window_y", wx_window_y);
|
||||
}
|
||||
|
||||
void wx_saveconfig()
|
||||
{
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "show_machine_info", show_machine_info);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "show_disc_activity", show_disc_activity);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "show_speed_history", show_speed_history);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "show_mount_paths", show_mount_paths);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "show_status", show_status);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "show_machine_on_start", show_machine_on_start);
|
||||
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "confirm_on_reset_machine", confirm_on_reset_machine);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "confirm_on_stop_emulation", confirm_on_stop_emulation);
|
||||
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "window_x", wx_window_x);
|
||||
config_set_int(CFG_GLOBAL, "wxWidgets", "window_y", wx_window_y);
|
||||
}
|
||||
Loading…
Reference in a new issue