From aea565d558f929729c0cb889f9c3296f2f487d0d Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 22 May 2020 00:50:40 +0200 Subject: Added GDB server on CpuCfg UI dialog, rearranged layout The layout was rearranged to make it fit on smaller screens e.g.: 768pix height as featured on many laptops. GDB server not implemented yet. --- gui/ConfDlg.c | 11 +++--- gui/data/pcsxr.ui | 113 ++++++++++++++++++++++++++++++------------------------ 2 files changed, 68 insertions(+), 56 deletions(-) (limited to 'gui') diff --git a/gui/ConfDlg.c b/gui/ConfDlg.c index d55234f8..e40a99fa 100644 --- a/gui/ConfDlg.c +++ b/gui/ConfDlg.c @@ -109,7 +109,7 @@ void ConfigurePlugins() { UpdatePluginsBIOS_UpdateGUI(builder); ConfDlg = GTK_WIDGET(gtk_builder_get_object(builder, "ConfDlg")); - + gtk_window_set_title(GTK_WINDOW(ConfDlg), _("Configure PCSXR")); gtk_widget_show (ConfDlg); @@ -219,7 +219,7 @@ void OnConf_Net() { } NetDlg = GTK_WIDGET(gtk_builder_get_object(builder, "NetDlg")); - + gtk_widget_show (NetDlg); FindNetPlugin(builder); @@ -791,7 +791,7 @@ static void FindNetPlugin() { char plugin[MAXPATHLEN],name[MAXPATHLEN]; NetConfS.plugins = 0; - NetConfS.glist = NULL; + NetConfS.glist = NULL; NetConfS.plugins += 2; strcpy(NetConfS.plist[NetConfS.plugins - 1], "Disabled"); @@ -894,7 +894,7 @@ void OnCpu_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data) { // If nothing chosen, default to NTSC tmp = gtk_combo_box_get_active (GTK_COMBO_BOX (widget)); - if (tmp == -1) + if (tmp == -1) tmp = PSX_TYPE_NTSC; if (!strcmp("NTSC", psxtypes[tmp])) @@ -920,6 +920,7 @@ void OnCpu_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data) { Config.Cdda = gtk_combo_box_get_active(GTK_COMBO_BOX(gtk_builder_get_object(builder, "GtkCombo_CDDA"))); Config.SlowBoot = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_SlowBoot"))); Config.PsxAuto = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_PsxAuto"))); + Config.GdbServer = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_GdbServer"))); t = Config.Debug; Config.Debug = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_Dbg"))); @@ -974,7 +975,7 @@ void OnConf_Cpu() { char buf[25]; builder = gtk_builder_new(); - + if (!gtk_builder_add_from_resource(builder, "/org/pcsxr/gui/pcsxr.ui", NULL)) { g_warning("Error: interface could not be loaded!"); return; diff --git a/gui/data/pcsxr.ui b/gui/data/pcsxr.ui index 6f6a9b12..1426911b 100644 --- a/gui/data/pcsxr.ui +++ b/gui/data/pcsxr.ui @@ -1,5 +1,5 @@ - + @@ -10,6 +10,9 @@ dialog pcsxr image-missing + + + False @@ -32,9 +35,6 @@ - - - False @@ -43,6 +43,9 @@ True center-on-parent dialog + + + True @@ -217,9 +220,6 @@ closbutton1 - - - False @@ -228,6 +228,9 @@ True center-on-parent dialog + + + True @@ -916,9 +919,6 @@ btn_ConfClose - - - False @@ -928,6 +928,9 @@ 688 400 dialog + + + True @@ -1750,9 +1753,6 @@ McdClose - - - False @@ -1762,6 +1762,9 @@ True center-on-parent dialog + + + True @@ -2032,9 +2035,6 @@ memview_close - - - False @@ -2044,6 +2044,9 @@ center-on-parent dialog + + + True @@ -2191,9 +2194,6 @@ closebutton2 - - - @@ -2219,6 +2219,9 @@ True center-on-parent dialog + + + False @@ -2454,9 +2457,6 @@ PgxpDlg_close - - - 0.5 @@ -2638,6 +2638,9 @@ False pcsxr-icon.png + + + True @@ -3444,9 +3447,6 @@ - - - @@ -3536,6 +3536,9 @@ True center-on-parent dialog + + + True @@ -4055,9 +4058,6 @@ closebutton - - - @@ -4083,6 +4083,9 @@ True center-on-parent dialog + + + True @@ -4143,8 +4146,8 @@ True - 0 - 2 + 1 + 1 @@ -4158,7 +4161,7 @@ 0 - 3 + 1 @@ -4171,8 +4174,8 @@ True - 0 - 1 + 1 + 0 @@ -4200,7 +4203,7 @@ 0 - 5 + 2 @@ -4214,7 +4217,7 @@ 0 - 7 + 3 @@ -4227,8 +4230,8 @@ True - 0 - 6 + 1 + 2 @@ -4241,8 +4244,8 @@ True - 0 - 8 + 1 + 3 @@ -4255,8 +4258,8 @@ True - 0 - 9 + 1 + 6 @@ -4269,8 +4272,8 @@ True - 0 - 10 + 1 + 4 @@ -4284,7 +4287,7 @@ 0 - 11 + 5 @@ -4297,8 +4300,8 @@ True - 0 - 12 + 1 + 5 @@ -4312,11 +4315,22 @@ 0 - 13 + 6 - + + Enable GDB server + True + True + False + True + True + + + 0 + 4 + @@ -4810,8 +4824,5 @@ closebutton1 - - - -- cgit v1.2.3