The main_window is ported to GtkBuilder instead of using generated code, the other screens will follow. The old glade files have been converted to GtkBuilder format and renamed to *.ui

This commit is contained in:
gunnar_g 2009-10-16 11:52:32 +00:00
parent ebd72039d9
commit f0ae9f71cd
49 changed files with 23981 additions and 33083 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>Bygfoot</name>
<program_name>bygfoot</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<backup_source_files>FALSE</backup_source_files>
</glade-project>

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>bygfoot_editor</name>
<program_name>bygfoot_editor</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>editor_interface.c</main_source_file>
<main_header_file>editor_interface.h</main_header_file>
<handler_source_file>editor_callbacks.c</handler_source_file>
<handler_header_file>editor_callbacks.h</handler_header_file>
</glade-project>

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>bygfoot_misc</name>
<program_name>bygfoot_misc</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>misc_interface.c</main_source_file>
<main_header_file>misc_interface.h</main_header_file>
<handler_source_file>misc_callbacks.c</handler_source_file>
<handler_header_file>misc_callbacks.h</handler_header_file>
</glade-project>

1849
bygfoot_misc.ui Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>bygfoot_misc2</name>
<program_name>bygfoot_misc2</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>misc2_interface.c</main_source_file>
<main_header_file>misc2_interface.h</main_header_file>
<handler_source_file>misc2_callbacks.c</handler_source_file>
<handler_header_file>misc2_callbacks.h</handler_header_file>
</glade-project>

1861
bygfoot_misc2.ui Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>bygfoot_misc3</name>
<program_name>bygfoot_misc3</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>misc3_interface.c</main_source_file>
<main_header_file>misc3_interface.h</main_header_file>
<handler_source_file>misc3_callbacks.c</handler_source_file>
<handler_header_file>misc3_callbacks.h</handler_header_file>
</glade-project>

1053
bygfoot_misc3.ui Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>bygfoot_options</name>
<program_name>bygfoot_options</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>options_interface.c</main_source_file>
<main_header_file>options_interface.h</main_header_file>
<handler_source_file>options_callbacks.c</handler_source_file>
<handler_header_file>options_callbacks.h</handler_header_file>
</glade-project>

2725
bygfoot_options.ui Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,100 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window_league_table">
<property name="visible">True</property>
<property name="title" translatable="yes">League table</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="modal">True</property>
<property name="resizable">False</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<signal name="delete_event" handler="on_window_league_table_delete_event" last_modification_time="Tue, 29 Jan 2008 11:59:46 GMT"/>
<child>
<widget class="GtkFixed" id="panel_table">
<property name="width_request">500</property>
<property name="height_request">290</property>
<property name="visible">True</property>
<child>
<widget class="GtkLabel" id="l_headline">
<property name="width_request">90</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Headline</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">208</property>
<property name="y">32</property>
</packing>
</child>
<child>
<widget class="GtkHSeparator" id="hs_table2">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="x">25</property>
<property name="y">88</property>
</packing>
</child>
<child>
<widget class="GtkHSeparator" id="hs_table1">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="x">25</property>
<property name="y">235</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_ok">
<property name="width_request">110</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-ok</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_lt_b_ok_clicked" last_modification_time="Tue, 29 Jan 2008 12:28:26 GMT"/>
</widget>
<packing>
<property name="x">376</property>
<property name="y">254</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>Bygfoot_league_table</name>
<program_name>bygfoot_league_table</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>league_table_interface.c</main_source_file>
<main_header_file>league_table_interface.h</main_header_file>
<handler_source_file>league_table_callbacks.c</handler_source_file>
<handler_header_file>league_table_callbacks.h</handler_header_file>
</glade-project>

70
bygfoot_table.ui Normal file
View File

@ -0,0 +1,70 @@
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkWindow" id="window_league_table">
<property name="visible">True</property>
<property name="title" translatable="yes">League table</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="window_position">center</property>
<signal name="delete_event" handler="on_window_league_table_delete_event"/>
<child>
<object class="GtkFixed" id="panel_table">
<property name="width_request">500</property>
<property name="height_request">290</property>
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="l_headline">
<property name="width_request">90</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Headline</property>
</object>
<packing>
<property name="x">208</property>
<property name="y">32</property>
</packing>
</child>
<child>
<object class="GtkHSeparator" id="hs_table2">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</object>
<packing>
<property name="x">25</property>
<property name="y">88</property>
</packing>
</child>
<child>
<object class="GtkHSeparator" id="hs_table1">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</object>
<packing>
<property name="x">25</property>
<property name="y">235</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_ok">
<property name="label">gtk-ok</property>
<property name="width_request">110</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_lt_b_ok_clicked"/>
</object>
<packing>
<property name="x">376</property>
<property name="y">254</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

View File

@ -1,463 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window_training_camp">
<property name="visible">True</property>
<property name="title" translatable="yes">Training camp</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="modal">True</property>
<property name="resizable">False</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<signal name="delete_event" handler="on_window_training_camp_delete_event" last_modification_time="Sun, 25 Feb 2007 14:37:31 GMT"/>
<child>
<widget class="GtkFixed" id="panel_camp">
<property name="width_request">500</property>
<property name="height_request">290</property>
<property name="visible">True</property>
<child>
<widget class="GtkEntry" id="tf_costs">
<property name="width_request">130</property>
<property name="height_request">22</property>
<property name="visible">True</property>
<property name="editable">False</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">False</property>
<property name="invisible_char">●</property>
<property name="activates_default">False</property>
</widget>
<packing>
<property name="x">336</property>
<property name="y">40</property>
</packing>
</child>
<child>
<widget class="GtkHSeparator" id="hs_camp2">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="x">25</property>
<property name="y">90</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="l_camp_points">
<property name="width_request">140</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Camp points</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">24</property>
<property name="y">192</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_inc_recreation">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_b_inc_recreation_clicked" last_modification_time="Mon, 12 Feb 2007 08:47:02 GMT"/>
<child>
<widget class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="pixbuf">increase_green.png</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="x">425</property>
<property name="y">125</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="l_recreation">
<property name="width_request">140</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Recreation</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">24</property>
<property name="y">128</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="l_costs">
<property name="width_request">90</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Costs</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">255</property>
<property name="y">41</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_dec_training">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_b_dec_training_clicked" last_modification_time="Mon, 12 Feb 2007 09:55:01 GMT"/>
<child>
<widget class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="pixbuf">decrease_red.png</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="x">176</property>
<property name="y">157</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="l_training">
<property name="width_request">140</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Training</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">24</property>
<property name="y">160</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_inc_training">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_b_inc_training_clicked" last_modification_time="Mon, 12 Feb 2007 09:55:11 GMT"/>
<child>
<widget class="GtkImage" id="image4">
<property name="visible">True</property>
<property name="pixbuf">increase_green.png</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="x">425</property>
<property name="y">157</property>
</packing>
</child>
<child>
<widget class="GtkHScale" id="hs_camp_points">
<property name="width_request">200</property>
<property name="height_request">36</property>
<property name="visible">True</property>
<property name="draw_value">True</property>
<property name="value_pos">GTK_POS_RIGHT</property>
<property name="digits">1</property>
<property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
<property name="inverted">False</property>
<property name="adjustment">0 1 10 1 0 0</property>
</widget>
<packing>
<property name="x">220</property>
<property name="y">184</property>
</packing>
</child>
<child>
<widget class="GtkHScale" id="hs_training">
<property name="width_request">200</property>
<property name="height_request">36</property>
<property name="visible">True</property>
<property name="draw_value">True</property>
<property name="value_pos">GTK_POS_RIGHT</property>
<property name="digits">1</property>
<property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
<property name="inverted">False</property>
<property name="adjustment">0 1 10 1 0 0</property>
</widget>
<packing>
<property name="x">220</property>
<property name="y">152</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_dec_recreation">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_b_dec_recreation_clicked" last_modification_time="Mon, 12 Feb 2007 08:46:47 GMT"/>
<child>
<widget class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="pixbuf">decrease_red.png</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="x">176</property>
<property name="y">125</property>
</packing>
</child>
<child>
<widget class="GtkHScale" id="hs_recreation">
<property name="width_request">200</property>
<property name="height_request">36</property>
<property name="visible">True</property>
<property name="draw_value">True</property>
<property name="value_pos">GTK_POS_RIGHT</property>
<property name="digits">1</property>
<property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
<property name="inverted">False</property>
<property name="adjustment">0 1 10 1 0 0</property>
</widget>
<packing>
<property name="x">220</property>
<property name="y">120</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="rb_camp1">
<property name="width_request">200</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="label" translatable="yes">Good Hotel</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="clicked" handler="on_rb_camp1_clicked" last_modification_time="Sun, 03 Dec 2006 16:50:23 GMT"/>
</widget>
<packing>
<property name="x">24</property>
<property name="y">16</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="rb_camp2">
<property name="width_request">200</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">First-Class Hotel</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">rb_camp1</property>
<signal name="clicked" handler="on_rb_camp2_clicked" last_modification_time="Sun, 03 Dec 2006 16:50:34 GMT"/>
</widget>
<packing>
<property name="x">24</property>
<property name="y">40</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="rb_camp3">
<property name="width_request">200</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Premium Hotel</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">rb_camp1</property>
<signal name="clicked" handler="on_rb_camp3_clicked" last_modification_time="Sun, 03 Dec 2006 16:50:53 GMT"/>
</widget>
<packing>
<property name="x">24</property>
<property name="y">64</property>
</packing>
</child>
<child>
<widget class="GtkHSeparator" id="hs_camp1">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="x">25</property>
<property name="y">232</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_ok">
<property name="width_request">110</property>
<property name="height_request">35</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-apply</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_b_ok_clicked" last_modification_time="Sun, 03 Dec 2006 16:09:36 GMT"/>
</widget>
<packing>
<property name="x">256</property>
<property name="y">254</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="b_cancel">
<property name="width_request">110</property>
<property name="height_request">35</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-cancel</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_b_cancel_clicked" last_modification_time="Sun, 03 Dec 2006 16:09:00 GMT"/>
</widget>
<packing>
<property name="x">376</property>
<property name="y">254</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_save">
<property name="width_request">208</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Save settings as default</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="x">24</property>
<property name="y">264</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>

View File

@ -1,17 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>Bygfoot_training</name>
<program_name>bygfoot_training</program_name>
<pixmaps_directory>support_files/pixmaps</pixmaps_directory>
<gnome_support>FALSE</gnome_support>
<output_main_file>FALSE</output_main_file>
<output_support_files>FALSE</output_support_files>
<output_build_files>FALSE</output_build_files>
<backup_source_files>FALSE</backup_source_files>
<main_source_file>training_interface.c</main_source_file>
<main_header_file>training_interface.h</main_header_file>
<handler_source_file>training_callbacks.c</handler_source_file>
<handler_header_file>training_callbacks.h</handler_header_file>
</glade-project>

325
bygfoot_training.ui Executable file
View File

@ -0,0 +1,325 @@
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkWindow" id="window_training_camp">
<property name="visible">True</property>
<property name="title" translatable="yes">Training camp</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="window_position">center</property>
<signal name="delete_event" handler="on_window_training_camp_delete_event"/>
<child>
<object class="GtkFixed" id="panel_camp">
<property name="width_request">500</property>
<property name="height_request">290</property>
<property name="visible">True</property>
<child>
<object class="GtkEntry" id="tf_costs">
<property name="width_request">130</property>
<property name="height_request">22</property>
<property name="visible">True</property>
<property name="editable">False</property>
<property name="has_frame">False</property>
<property name="invisible_char">&#x25CF;</property>
</object>
<packing>
<property name="x">336</property>
<property name="y">40</property>
</packing>
</child>
<child>
<object class="GtkHSeparator" id="hs_camp2">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</object>
<packing>
<property name="x">25</property>
<property name="y">90</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="l_camp_points">
<property name="width_request">140</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Camp points</property>
</object>
<packing>
<property name="x">24</property>
<property name="y">192</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_inc_recreation">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_b_inc_recreation_clicked"/>
<child>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="pixbuf">increase_green.png</property>
</object>
</child>
</object>
<packing>
<property name="x">425</property>
<property name="y">125</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="l_recreation">
<property name="width_request">140</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Recreation</property>
</object>
<packing>
<property name="x">24</property>
<property name="y">128</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="l_costs">
<property name="width_request">90</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Costs</property>
</object>
<packing>
<property name="x">255</property>
<property name="y">41</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_dec_training">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_b_dec_training_clicked"/>
<child>
<object class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="pixbuf">decrease_red.png</property>
</object>
</child>
</object>
<packing>
<property name="x">176</property>
<property name="y">157</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="l_training">
<property name="width_request">140</property>
<property name="height_request">20</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Training</property>
</object>
<packing>
<property name="x">24</property>
<property name="y">160</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_inc_training">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_b_inc_training_clicked"/>
<child>
<object class="GtkImage" id="image4">
<property name="visible">True</property>
<property name="pixbuf">increase_green.png</property>
</object>
</child>
</object>
<packing>
<property name="x">425</property>
<property name="y">157</property>
</packing>
</child>
<child>
<object class="GtkHScale" id="hs_camp_points">
<property name="width_request">200</property>
<property name="height_request">36</property>
<property name="visible">True</property>
<property name="adjustment"></property>
<property name="value_pos">right</property>
</object>
<packing>
<property name="x">220</property>
<property name="y">184</property>
</packing>
</child>
<child>
<object class="GtkHScale" id="hs_training">
<property name="width_request">200</property>
<property name="height_request">36</property>
<property name="visible">True</property>
<property name="adjustment"></property>
<property name="value_pos">right</property>
</object>
<packing>
<property name="x">220</property>
<property name="y">152</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_dec_recreation">
<property name="width_request">30</property>
<property name="height_request">26</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_b_dec_recreation_clicked"/>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="pixbuf">decrease_red.png</property>
</object>
</child>
</object>
<packing>
<property name="x">176</property>
<property name="y">125</property>
</packing>
</child>
<child>
<object class="GtkHScale" id="hs_recreation">
<property name="width_request">200</property>
<property name="height_request">36</property>
<property name="visible">True</property>
<property name="adjustment"></property>
<property name="value_pos">right</property>
</object>
<packing>
<property name="x">220</property>
<property name="y">120</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="rb_camp1">
<property name="label" translatable="yes">Good Hotel</property>
<property name="width_request">200</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="clicked" handler="on_rb_camp1_clicked"/>
</object>
<packing>
<property name="x">24</property>
<property name="y">16</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="rb_camp2">
<property name="label" translatable="yes">First-Class Hotel</property>
<property name="width_request">200</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">rb_camp1</property>
<signal name="clicked" handler="on_rb_camp2_clicked"/>
</object>
<packing>
<property name="x">24</property>
<property name="y">40</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="rb_camp3">
<property name="label" translatable="yes">Premium Hotel</property>
<property name="width_request">200</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">rb_camp1</property>
<signal name="clicked" handler="on_rb_camp3_clicked"/>
</object>
<packing>
<property name="x">24</property>
<property name="y">64</property>
</packing>
</child>
<child>
<object class="GtkHSeparator" id="hs_camp1">
<property name="width_request">450</property>
<property name="height_request">16</property>
<property name="visible">True</property>
</object>
<packing>
<property name="x">25</property>
<property name="y">232</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_ok">
<property name="label">gtk-apply</property>
<property name="width_request">110</property>
<property name="height_request">35</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_b_ok_clicked"/>
</object>
<packing>
<property name="x">256</property>
<property name="y">254</property>
</packing>
</child>
<child>
<object class="GtkButton" id="b_cancel">
<property name="label">gtk-cancel</property>
<property name="width_request">110</property>
<property name="height_request">35</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_b_cancel_clicked"/>
</object>
<packing>
<property name="x">376</property>
<property name="y">254</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkbutton_save">
<property name="label" translatable="yes">Save settings as default</property>
<property name="width_request">208</property>
<property name="height_request">21</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="x">24</property>
<property name="y">264</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

21
configure vendored
View File

@ -661,6 +661,8 @@ GETTEXT_PACKAGE
PACKAGE_LIBS
PACKAGE_CFLAGS
PKG_CONFIG
HAVE_WINDRES_FALSE
HAVE_WINDRES_TRUE
EGREP
GREP
CPP
@ -5696,8 +5698,16 @@ _ACEOF
fi
if which windres > /dev/null; then
HAVE_WINDRES_TRUE=
HAVE_WINDRES_FALSE='#'
else
HAVE_WINDRES_TRUE='#'
HAVE_WINDRES_FALSE=
fi
pkg_modules="gtk+-2.0 >= 2.6 glib-2.0 >= 2.12"
pkg_modules="gtk+-2.0 >= 2.14 glib-2.0 >= 2.12 gmodule-export-2.0"
@ -5940,7 +5950,7 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
ALL_LINGUAS="de nl fr pl pt_PT pt_BR ro bg zh es da sv it"
ALL_LINGUAS="de nl fr pl pt_PT pt_BR ro bg zh es da sv it el"
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
@ -7865,6 +7875,13 @@ $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_WINDRES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"HAVE_WINDRES\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
: ${CONFIG_STATUS=./config.status}
ac_write_fail=0

View File

@ -9,8 +9,9 @@ AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AM_CONDITIONAL(HAVE_WINDRES, which windres > /dev/null)
pkg_modules="gtk+-2.0 >= 2.6 glib-2.0 >= 2.12"
pkg_modules="gtk+-2.0 >= 2.14 glib-2.0 >= 2.12 gmodule-export-2.0"
dnl echo -n "checking for gthread-2.0 ... "
dnl if pkg-config --exists gthread-2.0 ; then
@ -30,7 +31,7 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
dnl Add the languages which your application supports here.
ALL_LINGUAS="de nl fr pl pt_PT pt_BR ro bg zh es da sv it"
ALL_LINGUAS="de nl fr pl pt_PT pt_BR ro bg zh es da sv it el"
AM_GLIB_GNU_GETTEXT
dnl gstreamer checking

View File

@ -54,14 +54,14 @@ INCLUDES = -I.. -I$(top_srcdir)/intl
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
SOURCES =
POFILES = de.po nl.po fr.po pl.po pt_PT.po pt_BR.po ro.po bg.po zh.po es.po da.po sv.po it.po
GMOFILES = de.gmo nl.gmo fr.gmo pl.gmo pt_PT.gmo pt_BR.gmo ro.gmo bg.gmo zh.gmo es.gmo da.gmo sv.gmo it.gmo
POFILES = de.po nl.po fr.po pl.po pt_PT.po pt_BR.po ro.po bg.po zh.po es.po da.po sv.po it.po el.po
GMOFILES = de.gmo nl.gmo fr.gmo pl.gmo pt_PT.gmo pt_BR.gmo ro.gmo bg.gmo zh.gmo es.gmo da.gmo sv.gmo it.gmo el.gmo
DISTFILES = LINGUAS ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
$(POFILES) $(GMOFILES) $(SOURCES)
POTFILES = \
CATALOGS = de.gmo nl.gmo fr.gmo pl.gmo pt_PT.gmo pt_BR.gmo ro.gmo bg.gmo zh.gmo es.gmo da.gmo sv.gmo it.gmo
CATALOGS = de.gmo nl.gmo fr.gmo pl.gmo pt_PT.gmo pt_BR.gmo ro.gmo bg.gmo zh.gmo es.gmo da.gmo sv.gmo it.gmo el.gmo
CATOBJEXT = .gmo
INSTOBJEXT = .mo

View File

@ -37,3 +37,4 @@ src/user.c
src/window.c
src/xml.c
src/youth_academy.c
bygfoot.ui.h

822
po/bg.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

818
po/da.po

File diff suppressed because it is too large Load Diff

816
po/de.po

File diff suppressed because it is too large Load Diff

884
po/el.po

File diff suppressed because it is too large Load Diff

815
po/es.po

File diff suppressed because it is too large Load Diff

822
po/fr.po

File diff suppressed because it is too large Load Diff

6961
po/it.po

File diff suppressed because it is too large Load Diff

816
po/nl.po

File diff suppressed because it is too large Load Diff

816
po/pl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1640
po/ro.po

File diff suppressed because it is too large Load Diff

816
po/sv.po

File diff suppressed because it is too large Load Diff

814
po/tr.po

File diff suppressed because it is too large Load Diff

1434
po/zh.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,3 @@
/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
GtkWidget* create_main_window (void);
GtkWidget* create_menu_player (void);

View File

@ -14,6 +14,7 @@
#include <gtk/gtk.h>
#include "main.h"
#include "support.h"
GtkWidget*
@ -42,6 +43,28 @@ lookup_widget (GtkWidget *widget,
return found_widget;
}
/** This will load the ui file, connect the signals and return the builder
*/
GtkBuilder*
load_ui (const gchar *filename)
{
GtkBuilder *builder;
GError *error = NULL;
builder = gtk_builder_new ();
if (!gtk_builder_add_from_file (builder, filename, &error))
{
main_exit_program(EXIT_FILE_NOT_FOUND,
": File not found %s\n", filename);
}
gtk_builder_connect_signals (builder, NULL);
return builder;
}
static GList *pixmaps_directories = NULL;
/* Use this function to set the directory containing installed pixmaps. */
@ -50,6 +73,10 @@ add_pixmap_directory (const gchar *directory)
{
pixmaps_directories = g_list_prepend (pixmaps_directories,
g_strdup (directory));
GtkIconTheme *icon_theme;
icon_theme = gtk_icon_theme_get_default ();
gtk_icon_theme_append_search_path (icon_theme, g_strdup(directory));
}
/* This is an internally used function to find pixmap files. */

View File

@ -46,6 +46,10 @@
GtkWidget* lookup_widget (GtkWidget *widget,
const gchar *widget_name);
/** This will load the ui file, connect the signals and return the builder
*/
GtkBuilder*
load_ui (const gchar *filename);
/* Use this function to set the directory containing installed pixmaps. */
void add_pixmap_directory (const gchar *directory);

1860
support_files/bygfoot.ui Normal file

File diff suppressed because it is too large Load Diff