1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-02-21 22:07:39 +01:00

Options gui.

This commit is contained in:
gyboth 2005-03-24 07:22:50 +00:00
parent 8ad67f43f1
commit a7ceaac784
5 changed files with 550 additions and 68 deletions

View File

@ -245,7 +245,7 @@
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">1</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
@ -269,7 +269,7 @@
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">1</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
@ -335,7 +335,7 @@
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">1</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
@ -359,7 +359,7 @@
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">1</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
@ -383,7 +383,7 @@
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">1</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
@ -494,7 +494,215 @@
</child>
<child>
<placeholder/>
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_live">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show live game</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_tendency">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show tendency bar</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox5">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="label" translatable="yes">Live game speed factor </property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkSpinButton" id="spinbutton_live_speed">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
<property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 -10 20 1 10 10</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_auto_sub">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Automatic substitutions</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVSeparator" id="vseparator2">
<property name="width_request">10</property>
<property name="height_request">1</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox5">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_pause_injury">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Pause when injury</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_pause_red">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Pause when red card</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_pause_break">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Pause when break</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
<property name="tab_fill">True</property>
</packing>
</child>
<child>
@ -517,7 +725,144 @@
</child>
<child>
<placeholder/>
<widget class="GtkHBox" id="hbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_conf_unfit">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Confirm when unfit</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_job">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show job offers</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVSeparator" id="vseparator3">
<property name="width_request">10</property>
<property name="height_request">1</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox7">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_rearrange_adapts">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Rearrange adapts structure</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_swap_adapts">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Swap adapts structure</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_overall">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show overall games/goals</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
<property name="tab_fill">True</property>
</packing>
</child>
<child>

View File

@ -33,7 +33,7 @@ bygfoot_SOURCES = \
misc2_callback_func.c finance.h game_gui.h maths.h misc2_callback_func.h option.h player.h team.h treeview.h transfer.h user.h \
misc2_interface.c misc2_interface.h misc2_callbacks.h support.h \
option.c option.h variables.h \
option_gui.c option_gui.h option.h variables.h support.h \
option_gui.c option_gui.h option.h variables.h support.h user.h \
options_callbacks.c options_callbacks.h \
options_interface.c options_interface.h options_callbacks.h support.h \
player.c cup.h free.h game_gui.h league.h maths.h misc.h option.h player.h team.h user.h \

View File

@ -1,6 +1,7 @@
#include "option.h"
#include "option_gui.h"
#include "support.h"
#include "user.h"
#include "variables.h"
/** An enumeration for all the options that are boolean,
@ -13,17 +14,17 @@ enum BooleanOptions
BOOL_OPT_MAXIMIZE,
BOOL_OPT_PREFER_MESS,
BOOL_OPT_AUTOSAVE,
/* BOOL_OPT_CONF_UNFIT, */
/* BOOL_OPT_SHOW_LIVE, */
/* BOOL_OPT_SHOW_TENDENCY, */
/* BOOL_OPT_PAUSE_INJURY, */
/* BOOL_OPT_PAUSE_RED, */
/* BOOL_OPT_PAUSE_BREAK, */
/* BOOL_OPT_AUTO_SUB, */
/* BOOL_OPT_SHOW_JOB, */
/* BOOL_OPT_REARRANGE, */
/* BOOL_OPT_SWAP, */
/* BOOL_OPT_SHOW_OVERALL, */
BOOL_OPT_CONF_UNFIT,
BOOL_OPT_SHOW_LIVE,
BOOL_OPT_SHOW_TENDENCY,
BOOL_OPT_PAUSE_INJURY,
BOOL_OPT_PAUSE_RED,
BOOL_OPT_PAUSE_BREAK,
BOOL_OPT_AUTO_SUB,
BOOL_OPT_SHOW_JOB,
BOOL_OPT_REARRANGE,
BOOL_OPT_SWAP,
BOOL_OPT_SHOW_OVERALL,
/* BOOL_OPT_PL1_ATT_NAME, */
/* BOOL_OPT_PL1_ATT_CPOS, */
/* BOOL_OPT_PL1_ATT_POS, */
@ -92,49 +93,49 @@ option_gui_write_bool_widgets(gint **bool_options, GtkToggleButton **bool_widget
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_autosave"));
bool_options[BOOL_OPT_AUTOSAVE] = opt_intp("int_opt_autosave");
/* bool_widgets[BOOL_OPT_CONF_UNFIT] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_CONF_UNFIT] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_CONF_UNFIT] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_conf_unfit"));
bool_options[BOOL_OPT_CONF_UNFIT] = opt_user_intp("int_opt_user_confirm_unfit");
/* bool_widgets[BOOL_OPT_SHOW_LIVE] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_SHOW_LIVE] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_SHOW_LIVE] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_show_live"));
bool_options[BOOL_OPT_SHOW_LIVE] = opt_user_intp("int_opt_user_show_live_game");
/* bool_widgets[BOOL_OPT_SHOW_TENDENCY] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_SHOW_TENDENCY] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_SHOW_TENDENCY] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_show_tendency"));
bool_options[BOOL_OPT_SHOW_TENDENCY] = opt_user_intp("int_opt_user_show_tendency_bar");
/* bool_widgets[BOOL_OPT_PAUSE_INJURY] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_PAUSE_INJURY] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_PAUSE_INJURY] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_pause_injury"));
bool_options[BOOL_OPT_PAUSE_INJURY] = opt_user_intp("int_opt_user_pause_injury");
/* bool_widgets[BOOL_OPT_PAUSE_RED] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_PAUSE_RED] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_PAUSE_RED] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_pause_red"));
bool_options[BOOL_OPT_PAUSE_RED] = opt_user_intp("int_opt_user_pause_red");
/* bool_widgets[BOOL_OPT_PAUSE_BREAK] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_PAUSE_BREAK] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_PAUSE_BREAK] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_pause_break"));
bool_options[BOOL_OPT_PAUSE_BREAK] = opt_user_intp("int_opt_user_pause_break");
/* bool_widgets[BOOL_OPT_AUTO_SUB] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_AUTO_SUB] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_AUTO_SUB] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_auto_sub"));
bool_options[BOOL_OPT_AUTO_SUB] = opt_user_intp("int_opt_user_auto_sub");
/* bool_widgets[BOOL_OPT_SHOW_JOB] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_SHOW_JOB] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_SHOW_JOB] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_show_job"));
bool_options[BOOL_OPT_SHOW_JOB] = opt_user_intp("int_opt_user_show_job_offers");
/* bool_widgets[BOOL_OPT_REARRANGE] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_REARRANGE] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_REARRANGE] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_rearrange_adapts"));
bool_options[BOOL_OPT_REARRANGE] = opt_user_intp("int_opt_user_reaarrange_adapts");
/* bool_widgets[BOOL_OPT_SWAP] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_SWAP] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_SWAP] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_swap_adapts"));
bool_options[BOOL_OPT_SWAP] = opt_user_intp("int_opt_user_swap_adapts");
/* bool_widgets[BOOL_OPT_SHOW_OVERALL] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
/* bool_options[BOOL_OPT_SHOW_OVERALL] = opt_user_intp("int_opt_user_"); */
bool_widgets[BOOL_OPT_SHOW_OVERALL] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_show_overall"));
bool_options[BOOL_OPT_SHOW_OVERALL] = opt_user_intp("int_opt_user_show_overall");
/* bool_widgets[BOOL_OPT_PL1_ATT_NAME] = */
/* GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_")); */
@ -286,8 +287,8 @@ enum SpinOptions
{
SPIN_OPT_AUTOSAVE = 0,
SPIN_OPT_PRECISION,
/* SPIN_OPT_REFRESH, */
/* SPIN_OPT_LIVE_SPEED, */
SPIN_OPT_REFRESH,
SPIN_OPT_LIVE_SPEED,
SPIN_OPT_END
};
@ -303,13 +304,13 @@ option_gui_write_spin_widgets(gint **spin_options, GtkSpinButton **spin_widgets)
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_precision"));
spin_options[SPIN_OPT_PRECISION] = opt_intp("int_opt_player_precision");
/* spin_widgets[SPIN_OPT_REFRESH] = */
/* GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_refresh")); */
/* spin_options[SPIN_OPT_REFRESH] = opt_intp("int_opt_live_game_player_list_refresh"); */
spin_widgets[SPIN_OPT_REFRESH] =
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_refresh"));
spin_options[SPIN_OPT_REFRESH] = opt_intp("int_opt_live_game_player_list_refresh");
/* spin_widgets[SPIN_OPT_LIVE_SPEED] = */
/* GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_")); */
/* spin_options[SPIN_OPT_LIVE_SPEED] = opt_user_intp("int_opt_user_live_game_speed"); */
spin_widgets[SPIN_OPT_LIVE_SPEED] =
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_live_speed"));
spin_options[SPIN_OPT_LIVE_SPEED] = opt_user_intp("int_opt_user_live_game_speed");
}
@ -367,3 +368,4 @@ option_gui_set_up_window(void)
for(i=0;i<ENTRY_OPT_END;i++)
gtk_entry_set_text(entry_widgets[i], (entry_options[i])->str);
}

View File

@ -59,9 +59,32 @@ create_window_options (void)
GtkWidget *entry_constants_file;
GtkWidget *entry_user_file;
GtkWidget *label1;
GtkWidget *empty_notebook_page;
GtkWidget *hbox4;
GtkWidget *vbox4;
GtkWidget *checkbutton_show_live;
GtkWidget *checkbutton_show_tendency;
GtkWidget *hbox5;
GtkWidget *label12;
GtkObject *spinbutton_live_speed_adj;
GtkWidget *spinbutton_live_speed;
GtkWidget *checkbutton_auto_sub;
GtkWidget *vseparator2;
GtkWidget *vbox5;
GtkWidget *checkbutton_pause_injury;
GtkWidget *checkbutton_pause_red;
GtkWidget *checkbutton_pause_break;
GtkWidget *label2;
GtkWidget *hbox6;
GtkWidget *vbox6;
GtkWidget *checkbutton_conf_unfit;
GtkWidget *checkbutton_show_job;
GtkWidget *vseparator3;
GtkWidget *vbox7;
GtkWidget *checkbutton_rearrange_adapts;
GtkWidget *checkbutton_swap_adapts;
GtkWidget *checkbutton_show_overall;
GtkWidget *label3;
GtkWidget *empty_notebook_page;
GtkWidget *label4;
GtkWidget *label5;
GtkWidget *hseparator1;
@ -159,6 +182,7 @@ create_window_options (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_label_set_justify (GTK_LABEL (label7), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (label7), 1, 0.5);
label8 = gtk_label_new (_("Player list refresh rate "));
gtk_widget_show (label8);
@ -166,6 +190,7 @@ create_window_options (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_label_set_justify (GTK_LABEL (label8), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (label8), 1, 0.5);
spinbutton_precision_adj = gtk_adjustment_new (1, 0, 3, 1, 10, 10);
spinbutton_precision = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_precision_adj), 1, 0);
@ -189,6 +214,7 @@ create_window_options (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_label_set_justify (GTK_LABEL (label9), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (label9), 1, 0.5);
label10 = gtk_label_new (_("Constants file "));
gtk_widget_show (label10);
@ -196,6 +222,7 @@ create_window_options (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_label_set_justify (GTK_LABEL (label10), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (label10), 1, 0.5);
label11 = gtk_label_new (_("Default user conf file "));
gtk_widget_show (label11);
@ -203,6 +230,7 @@ create_window_options (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_label_set_justify (GTK_LABEL (label11), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (label11), 1, 0.5);
entry_names_file = gtk_entry_new ();
gtk_widget_show (entry_names_file);
@ -227,18 +255,103 @@ create_window_options (void)
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1);
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);
empty_notebook_page = gtk_vbox_new (FALSE, 0);
gtk_widget_show (empty_notebook_page);
gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page);
hbox4 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox4);
gtk_container_add (GTK_CONTAINER (notebook1), hbox4);
vbox4 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox4);
gtk_box_pack_start (GTK_BOX (hbox4), vbox4, TRUE, TRUE, 0);
checkbutton_show_live = gtk_check_button_new_with_mnemonic (_("Show live game"));
gtk_widget_show (checkbutton_show_live);
gtk_box_pack_start (GTK_BOX (vbox4), checkbutton_show_live, FALSE, FALSE, 0);
checkbutton_show_tendency = gtk_check_button_new_with_mnemonic (_("Show tendency bar"));
gtk_widget_show (checkbutton_show_tendency);
gtk_box_pack_start (GTK_BOX (vbox4), checkbutton_show_tendency, FALSE, FALSE, 0);
hbox5 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox5);
gtk_box_pack_start (GTK_BOX (vbox4), hbox5, FALSE, FALSE, 0);
label12 = gtk_label_new (_("Live game speed factor "));
gtk_widget_show (label12);
gtk_box_pack_start (GTK_BOX (hbox5), label12, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label12), GTK_JUSTIFY_LEFT);
spinbutton_live_speed_adj = gtk_adjustment_new (0, -10, 20, 1, 10, 10);
spinbutton_live_speed = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_live_speed_adj), 1, 0);
gtk_widget_show (spinbutton_live_speed);
gtk_box_pack_start (GTK_BOX (hbox5), spinbutton_live_speed, FALSE, FALSE, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_live_speed), TRUE);
checkbutton_auto_sub = gtk_check_button_new_with_mnemonic (_("Automatic substitutions"));
gtk_widget_show (checkbutton_auto_sub);
gtk_box_pack_start (GTK_BOX (vbox4), checkbutton_auto_sub, FALSE, FALSE, 0);
vseparator2 = gtk_vseparator_new ();
gtk_widget_show (vseparator2);
gtk_box_pack_start (GTK_BOX (hbox4), vseparator2, FALSE, TRUE, 0);
gtk_widget_set_size_request (vseparator2, 10, 1);
vbox5 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox5);
gtk_box_pack_start (GTK_BOX (hbox4), vbox5, TRUE, TRUE, 0);
checkbutton_pause_injury = gtk_check_button_new_with_mnemonic (_("Pause when injury"));
gtk_widget_show (checkbutton_pause_injury);
gtk_box_pack_start (GTK_BOX (vbox5), checkbutton_pause_injury, FALSE, FALSE, 0);
checkbutton_pause_red = gtk_check_button_new_with_mnemonic (_("Pause when red card"));
gtk_widget_show (checkbutton_pause_red);
gtk_box_pack_start (GTK_BOX (vbox5), checkbutton_pause_red, FALSE, FALSE, 0);
checkbutton_pause_break = gtk_check_button_new_with_mnemonic (_("Pause when break"));
gtk_widget_show (checkbutton_pause_break);
gtk_box_pack_start (GTK_BOX (vbox5), checkbutton_pause_break, FALSE, FALSE, 0);
label2 = gtk_label_new (_("Live game"));
gtk_widget_show (label2);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label2);
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
empty_notebook_page = gtk_vbox_new (FALSE, 0);
gtk_widget_show (empty_notebook_page);
gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page);
hbox6 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox6);
gtk_container_add (GTK_CONTAINER (notebook1), hbox6);
vbox6 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox6);
gtk_box_pack_start (GTK_BOX (hbox6), vbox6, TRUE, TRUE, 0);
checkbutton_conf_unfit = gtk_check_button_new_with_mnemonic (_("Confirm when unfit"));
gtk_widget_show (checkbutton_conf_unfit);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_conf_unfit, FALSE, FALSE, 0);
checkbutton_show_job = gtk_check_button_new_with_mnemonic (_("Show job offers"));
gtk_widget_show (checkbutton_show_job);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_show_job, FALSE, FALSE, 0);
vseparator3 = gtk_vseparator_new ();
gtk_widget_show (vseparator3);
gtk_box_pack_start (GTK_BOX (hbox6), vseparator3, FALSE, FALSE, 0);
gtk_widget_set_size_request (vseparator3, 10, 1);
vbox7 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox7);
gtk_box_pack_start (GTK_BOX (hbox6), vbox7, TRUE, TRUE, 0);
checkbutton_rearrange_adapts = gtk_check_button_new_with_mnemonic (_("Rearrange adapts structure"));
gtk_widget_show (checkbutton_rearrange_adapts);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_rearrange_adapts, FALSE, FALSE, 0);
checkbutton_swap_adapts = gtk_check_button_new_with_mnemonic (_("Swap adapts structure"));
gtk_widget_show (checkbutton_swap_adapts);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_swap_adapts, FALSE, FALSE, 0);
checkbutton_show_overall = gtk_check_button_new_with_mnemonic (_("Show overall games/goals"));
gtk_widget_show (checkbutton_show_overall);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_show_overall, FALSE, FALSE, 0);
label3 = gtk_label_new (_("Misc."));
gtk_widget_show (label3);
@ -331,7 +444,29 @@ create_window_options (void)
GLADE_HOOKUP_OBJECT (window_options, entry_constants_file, "entry_constants_file");
GLADE_HOOKUP_OBJECT (window_options, entry_user_file, "entry_user_file");
GLADE_HOOKUP_OBJECT (window_options, label1, "label1");
GLADE_HOOKUP_OBJECT (window_options, hbox4, "hbox4");
GLADE_HOOKUP_OBJECT (window_options, vbox4, "vbox4");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_live, "checkbutton_show_live");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_tendency, "checkbutton_show_tendency");
GLADE_HOOKUP_OBJECT (window_options, hbox5, "hbox5");
GLADE_HOOKUP_OBJECT (window_options, label12, "label12");
GLADE_HOOKUP_OBJECT (window_options, spinbutton_live_speed, "spinbutton_live_speed");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_auto_sub, "checkbutton_auto_sub");
GLADE_HOOKUP_OBJECT (window_options, vseparator2, "vseparator2");
GLADE_HOOKUP_OBJECT (window_options, vbox5, "vbox5");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_pause_injury, "checkbutton_pause_injury");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_pause_red, "checkbutton_pause_red");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_pause_break, "checkbutton_pause_break");
GLADE_HOOKUP_OBJECT (window_options, label2, "label2");
GLADE_HOOKUP_OBJECT (window_options, hbox6, "hbox6");
GLADE_HOOKUP_OBJECT (window_options, vbox6, "vbox6");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_conf_unfit, "checkbutton_conf_unfit");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_job, "checkbutton_show_job");
GLADE_HOOKUP_OBJECT (window_options, vseparator3, "vseparator3");
GLADE_HOOKUP_OBJECT (window_options, vbox7, "vbox7");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_rearrange_adapts, "checkbutton_rearrange_adapts");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_swap_adapts, "checkbutton_swap_adapts");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_overall, "checkbutton_show_overall");
GLADE_HOOKUP_OBJECT (window_options, label3, "label3");
GLADE_HOOKUP_OBJECT (window_options, label4, "label4");
GLADE_HOOKUP_OBJECT (window_options, label5, "label5");

View File

@ -4,7 +4,6 @@
# Most of these options are uncommented because their meaning
# is rather clear if you take a look at the options window in the game.
int_opt_user_confirm_unfit 1
int_opt_user_show_live_game 0
int_opt_user_live_game_speed -10
int_opt_user_show_tendency_bar 1
@ -12,6 +11,7 @@ int_opt_user_pause_injury 1
int_opt_user_pause_red 1
int_opt_user_pause_break 1
int_opt_user_auto_sub 1
int_opt_user_confirm_unfit 1
int_opt_user_show_job_offers 1
int_opt_user_reaarrange_adapts 1
int_opt_user_swap_adapts 1