mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-02-28 09:18:06 +01:00
"Help stuff added."
This commit is contained in:
parent
a6c830e73e
commit
0d488fa09c
111
bygfoot.glade
111
bygfoot.glade
@ -69,7 +69,7 @@
|
||||
<accelerator key="l" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image311">
|
||||
<widget class="GtkImage" id="image335">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-open</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -137,7 +137,7 @@
|
||||
<accelerator key="p" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image312">
|
||||
<widget class="GtkImage" id="image336">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-preferences</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -291,7 +291,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">All Out Defend</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:16:56 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
@ -301,7 +301,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Defend</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_all_out_defend</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:17:07 GMT"/>
|
||||
</widget>
|
||||
@ -312,7 +312,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Balanced</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_all_out_defend</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:17:14 GMT"/>
|
||||
</widget>
|
||||
@ -323,7 +323,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Attack</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_all_out_defend</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:17:20 GMT"/>
|
||||
</widget>
|
||||
@ -358,7 +358,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Best</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:15:47 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
@ -368,7 +368,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Good</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_scout_best</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:15:35 GMT"/>
|
||||
</widget>
|
||||
@ -379,7 +379,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Average</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_scout_best</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:15:54 GMT"/>
|
||||
</widget>
|
||||
@ -414,7 +414,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Best</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:16:14 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
@ -424,7 +424,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Good</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_physio_best</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:16:21 GMT"/>
|
||||
</widget>
|
||||
@ -435,7 +435,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Average</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_physio_best</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Mon, 28 Feb 2005 08:16:28 GMT"/>
|
||||
</widget>
|
||||
@ -470,7 +470,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">On</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Tue, 08 Mar 2005 16:37:57 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
@ -480,7 +480,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Off</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="group">menu_boost_on</property>
|
||||
<signal name="button_press_event" handler="on_menu_team_button_press_event" last_modification_time="Tue, 08 Mar 2005 16:37:48 GMT"/>
|
||||
</widget>
|
||||
@ -696,7 +696,7 @@
|
||||
<accelerator key="F9" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image313">
|
||||
<widget class="GtkImage" id="image337">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-go-forward</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -718,7 +718,7 @@
|
||||
<accelerator key="F8" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image314">
|
||||
<widget class="GtkImage" id="image338">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-go-back</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -740,7 +740,7 @@
|
||||
<accelerator key="F12" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image315">
|
||||
<widget class="GtkImage" id="image339">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-justify-fill</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -791,13 +791,13 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenuItem" id="menu_help">
|
||||
<widget class="GtkMenuItem" id="menu_help1">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_Help</property>
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenu" id="menu_help_menu">
|
||||
<widget class="GtkMenu" id="menu_help1_menu">
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="menu_about">
|
||||
@ -807,6 +807,48 @@
|
||||
<signal name="activate" handler="on_menu_about_activate" last_modification_time="Sun, 18 Jan 2004 15:58:22 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="menu_contributors">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Contributors</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_menu_contributors_activate" last_modification_time="Sun, 22 May 2005 06:42:11 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image340">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-add</property>
|
||||
<property name="icon_size">1</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>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="menu_help">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Help</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_menu_help_activate" last_modification_time="Sun, 22 May 2005 06:42:11 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image341">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-help</property>
|
||||
<property name="icon_size">1</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>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
@ -1070,37 +1112,6 @@
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_help">
|
||||
<property name="border_width">2</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Help (H)</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_button_help_clicked" last_modification_time="Wed, 11 Feb 2004 12:34:21 GMT"/>
|
||||
<accelerator key="h" modifiers="0" signal="clicked"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image39">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-help</property>
|
||||
<property name="icon_size">4</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="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkEntry" id="entry_message">
|
||||
<property name="visible">True</property>
|
||||
|
@ -1449,148 +1449,6 @@
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget class="GtkWindow" id="help_window">
|
||||
<property name="border_width">6</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">Bygfoot help</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_CENTER</property>
|
||||
<property name="modal">False</property>
|
||||
<property name="default_width">550</property>
|
||||
<property name="default_height">650</property>
|
||||
<property name="resizable">True</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>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox27">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow5">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTextView" id="text_view_help">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">False</property>
|
||||
<property name="overwrite">False</property>
|
||||
<property name="accepts_tab">True</property>
|
||||
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap_mode">GTK_WRAP_WORD</property>
|
||||
<property name="cursor_visible">True</property>
|
||||
<property name="pixels_above_lines">0</property>
|
||||
<property name="pixels_below_lines">0</property>
|
||||
<property name="pixels_inside_wrap">0</property>
|
||||
<property name="left_margin">0</property>
|
||||
<property name="right_margin">0</property>
|
||||
<property name="indent">5</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_help_close">
|
||||
<property name="border_width">2</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Esc / Return / Space</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_button_help_close_clicked" last_modification_time="Wed, 11 Feb 2004 12:37:17 GMT"/>
|
||||
<accelerator key="Escape" modifiers="0" signal="clicked"/>
|
||||
<accelerator key="Return" modifiers="0" signal="clicked"/>
|
||||
<accelerator key="space" modifiers="0" signal="clicked"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment11">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</property>
|
||||
<property name="top_padding">0</property>
|
||||
<property name="bottom_padding">0</property>
|
||||
<property name="left_padding">0</property>
|
||||
<property name="right_padding">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox40">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image40">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-close</property>
|
||||
<property name="icon_size">4</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="GtkLabel" id="label59">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Close</property>
|
||||
<property name="use_underline">True</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>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget class="GtkWindow" id="window_stadium">
|
||||
<property name="border_width">5</property>
|
||||
<property name="visible">True</property>
|
||||
|
@ -1904,4 +1904,272 @@
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget class="GtkWindow" id="window_help">
|
||||
<property name="border_width">5</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">window1</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_CENTER</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="default_width">400</property>
|
||||
<property name="default_height">400</property>
|
||||
<property name="resizable">True</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>
|
||||
<signal name="delete_event" handler="on_window_help_delete_event" last_modification_time="Sat, 21 May 2005 19:25:09 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox23">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="show_tabs">True</property>
|
||||
<property name="show_border">True</property>
|
||||
<property name="tab_pos">GTK_POS_TOP</property>
|
||||
<property name="scrollable">False</property>
|
||||
<property name="enable_popup">False</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox24">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">5</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image12">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">bygfoot_icon.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">5</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_about">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_CENTER</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">True</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>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label49">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">About</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="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="treeview_contributors">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="headers_visible">True</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label50">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Contributors</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="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox25">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image13">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-help</property>
|
||||
<property name="icon_size">6</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="GtkLabel" id="label_help_text1">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">True</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="GtkLabel" id="label_help_text2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="selectable">True</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>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label51">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Help</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="type">tab</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="GtkButton" id="button_help_close">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Esc</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-close</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_button_help_close_clicked" last_modification_time="Sat, 21 May 2005 19:25:01 GMT"/>
|
||||
<accelerator key="Escape" modifiers="0" signal="clicked"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
</glade-interface>
|
||||
|
@ -119,6 +119,7 @@ typedef struct
|
||||
*contract,
|
||||
*menu_player,
|
||||
*user_management,
|
||||
*wdebug;
|
||||
*wdebug,
|
||||
*help;
|
||||
} Windows;
|
||||
#endif
|
||||
|
@ -83,11 +83,29 @@ on_menu_quit_activate (GtkMenuItem *menuitem,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
on_menu_help_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
{
|
||||
window_show_help(2);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_menu_contributors_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
{
|
||||
window_show_help(1);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_menu_about_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
||||
window_show_help(0);
|
||||
}
|
||||
|
||||
|
||||
@ -162,14 +180,6 @@ on_button_new_week_clicked (GtkButton *button,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_help_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
on_player_list1_button_press_event (GtkWidget *widget,
|
||||
GdkEventButton *event,
|
||||
@ -888,4 +898,3 @@ on_button_quit_button_press_event (GtkWidget *widget,
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -57,10 +57,6 @@ void
|
||||
on_button_new_week_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_help_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean
|
||||
on_player_list2_button_press_event (GtkWidget *widget,
|
||||
GdkEventButton *event,
|
||||
@ -262,3 +258,11 @@ gboolean
|
||||
on_button_quit_button_press_event (GtkWidget *widget,
|
||||
GdkEventButton *event,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_menu_help_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_menu_contributors_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
|
@ -359,8 +359,8 @@ file_get_next_opt_line(FILE *fil, gchar *opt_name, gchar *opt_value)
|
||||
|
||||
if(buf[0] != '#' && strlen(buf) != 0)
|
||||
{
|
||||
if(strlen(buf) > 100)
|
||||
g_warning("\n the text file I'm reading contains a line longer than 100 chars.\n\n");
|
||||
if(strlen(buf) > 1000)
|
||||
g_warning("\n the text file I'm reading contains a line longer than 1000 chars.\n\n");
|
||||
|
||||
for(i=0;i<strlen(buf);i++)
|
||||
if(buf[i] == '#')
|
||||
|
@ -575,3 +575,33 @@ game_gui_read_check_items(GtkWidget *widget)
|
||||
|
||||
game_gui_print_message(buf);
|
||||
}
|
||||
|
||||
/** Set the appropriate text into the labels in the help window.
|
||||
@param help_list The stuff loaded from the bygfoot_help file. */
|
||||
void
|
||||
game_gui_set_help_labels(const OptionList *help_list)
|
||||
{
|
||||
gint i;
|
||||
GtkLabel *label_help_text1 = GTK_LABEL(lookup_widget(window.help, "label_help_text1")),
|
||||
*label_help_text2 = GTK_LABEL(lookup_widget(window.help, "label_help_text2"));
|
||||
GString *text = g_string_new("");
|
||||
|
||||
for(i=0;i<help_list->list->len;i++)
|
||||
{
|
||||
if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name->str,
|
||||
"string_help_text1"))
|
||||
gtk_label_set_text(label_help_text1,
|
||||
g_array_index(help_list->list, Option, i).string_value->str);
|
||||
else if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name->str,
|
||||
"string_help_desc"))
|
||||
g_string_append_printf(text, "\n%s\n",
|
||||
g_array_index(help_list->list, Option, i).string_value->str);
|
||||
else if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name->str,
|
||||
"string_help_url"))
|
||||
g_string_append_printf(text, "%s\n",
|
||||
g_array_index(help_list->list, Option, i).string_value->str);
|
||||
}
|
||||
|
||||
gtk_label_set_text(label_help_text2, text->str);
|
||||
g_string_free(text, TRUE);
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#include "bygfoot.h"
|
||||
#include "live_game_struct.h"
|
||||
#include "option_struct.h"
|
||||
|
||||
#define setsav1 gtk_widget_set_sensitive(lookup_widget(window.main, "button_save"), FALSE)
|
||||
#define setsav0 gtk_widget_set_sensitive(lookup_widget(window.main, "button_save"), TRUE)
|
||||
@ -57,4 +58,7 @@ game_gui_write_check_items(void);
|
||||
void
|
||||
game_gui_read_check_items(GtkWidget *widget);
|
||||
|
||||
void
|
||||
game_gui_set_help_labels(const OptionList *help_list);
|
||||
|
||||
#endif
|
||||
|
132
src/interface.c
132
src/interface.c
@ -38,7 +38,7 @@ create_main_window (void)
|
||||
GtkWidget *menu_new;
|
||||
GtkWidget *menu_open;
|
||||
GtkWidget *menu_load_last_save;
|
||||
GtkWidget *image311;
|
||||
GtkWidget *image335;
|
||||
GtkWidget *menu_save;
|
||||
GtkWidget *menu_save_as;
|
||||
GtkWidget *trennlinie1;
|
||||
@ -46,7 +46,7 @@ create_main_window (void)
|
||||
GtkWidget *menu_options;
|
||||
GtkWidget *menu_options_menu;
|
||||
GtkWidget *menu_preferences;
|
||||
GtkWidget *image312;
|
||||
GtkWidget *image336;
|
||||
GtkWidget *trennlinie7;
|
||||
GtkWidget *menu_job_offers;
|
||||
GtkWidget *menu_live_game;
|
||||
@ -114,18 +114,22 @@ create_main_window (void)
|
||||
GtkWidget *menu_user_show_history;
|
||||
GtkWidget *trennlinie9;
|
||||
GtkWidget *menu_next_user;
|
||||
GtkWidget *image313;
|
||||
GtkWidget *image337;
|
||||
GtkWidget *menu_previous_user;
|
||||
GtkWidget *image314;
|
||||
GtkWidget *image338;
|
||||
GtkWidget *menu_manage_users;
|
||||
GtkWidget *image315;
|
||||
GtkWidget *image339;
|
||||
GtkWidget *menu_finances_stadium;
|
||||
GtkWidget *menu_finances_stadium_menu;
|
||||
GtkWidget *menu_show_finances;
|
||||
GtkWidget *menu_show_stadium;
|
||||
GtkWidget *menu_help;
|
||||
GtkWidget *menu_help_menu;
|
||||
GtkWidget *menu_help1;
|
||||
GtkWidget *menu_help1_menu;
|
||||
GtkWidget *menu_about;
|
||||
GtkWidget *menu_contributors;
|
||||
GtkWidget *image340;
|
||||
GtkWidget *menu_help;
|
||||
GtkWidget *image341;
|
||||
GtkWidget *hbox1;
|
||||
GtkWidget *button_load;
|
||||
GtkWidget *image11;
|
||||
@ -144,8 +148,6 @@ create_main_window (void)
|
||||
GtkWidget *vseparator16;
|
||||
GtkWidget *button_new_week;
|
||||
GtkWidget *image23;
|
||||
GtkWidget *button_help;
|
||||
GtkWidget *image39;
|
||||
GtkWidget *entry_message;
|
||||
GtkWidget *hseparator1;
|
||||
GtkWidget *eventbox_main_info;
|
||||
@ -250,9 +252,9 @@ create_main_window (void)
|
||||
GDK_l, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image311 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image311);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_load_last_save), image311);
|
||||
image335 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image335);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_load_last_save), image335);
|
||||
|
||||
menu_save = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group);
|
||||
gtk_widget_show (menu_save);
|
||||
@ -285,9 +287,9 @@ create_main_window (void)
|
||||
GDK_p, GDK_CONTROL_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image312 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image312);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_preferences), image312);
|
||||
image336 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image336);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_preferences), image336);
|
||||
|
||||
trennlinie7 = gtk_separator_menu_item_new ();
|
||||
gtk_widget_show (trennlinie7);
|
||||
@ -377,25 +379,21 @@ create_main_window (void)
|
||||
menu_all_out_defend_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_all_out_defend));
|
||||
gtk_widget_show (menu_all_out_defend);
|
||||
gtk_container_add (GTK_CONTAINER (menu_playing_style_menu), menu_all_out_defend);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_all_out_defend), TRUE);
|
||||
|
||||
menu_defend = gtk_radio_menu_item_new_with_mnemonic (menu_all_out_defend_group, _("Defend"));
|
||||
menu_all_out_defend_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_defend));
|
||||
gtk_widget_show (menu_defend);
|
||||
gtk_container_add (GTK_CONTAINER (menu_playing_style_menu), menu_defend);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_defend), TRUE);
|
||||
|
||||
menu_balanced = gtk_radio_menu_item_new_with_mnemonic (menu_all_out_defend_group, _("Balanced"));
|
||||
menu_all_out_defend_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_balanced));
|
||||
gtk_widget_show (menu_balanced);
|
||||
gtk_container_add (GTK_CONTAINER (menu_playing_style_menu), menu_balanced);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_balanced), TRUE);
|
||||
|
||||
menu_attack = gtk_radio_menu_item_new_with_mnemonic (menu_all_out_defend_group, _("Attack"));
|
||||
menu_all_out_defend_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_attack));
|
||||
gtk_widget_show (menu_attack);
|
||||
gtk_container_add (GTK_CONTAINER (menu_playing_style_menu), menu_attack);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_attack), TRUE);
|
||||
|
||||
menu_all_out_attack = gtk_radio_menu_item_new_with_mnemonic (menu_all_out_defend_group, _("All Out Attack"));
|
||||
menu_all_out_defend_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_all_out_attack));
|
||||
@ -414,19 +412,16 @@ create_main_window (void)
|
||||
menu_scout_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_scout_best));
|
||||
gtk_widget_show (menu_scout_best);
|
||||
gtk_container_add (GTK_CONTAINER (menu_scout_menu), menu_scout_best);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_scout_best), TRUE);
|
||||
|
||||
menu_scout_good = gtk_radio_menu_item_new_with_mnemonic (menu_scout_best_group, _("Good"));
|
||||
menu_scout_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_scout_good));
|
||||
gtk_widget_show (menu_scout_good);
|
||||
gtk_container_add (GTK_CONTAINER (menu_scout_menu), menu_scout_good);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_scout_good), TRUE);
|
||||
|
||||
menu_scout_average = gtk_radio_menu_item_new_with_mnemonic (menu_scout_best_group, _("Average"));
|
||||
menu_scout_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_scout_average));
|
||||
gtk_widget_show (menu_scout_average);
|
||||
gtk_container_add (GTK_CONTAINER (menu_scout_menu), menu_scout_average);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_scout_average), TRUE);
|
||||
|
||||
menu_scout_bad = gtk_radio_menu_item_new_with_mnemonic (menu_scout_best_group, _("Bad"));
|
||||
menu_scout_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_scout_bad));
|
||||
@ -445,19 +440,16 @@ create_main_window (void)
|
||||
menu_physio_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_physio_best));
|
||||
gtk_widget_show (menu_physio_best);
|
||||
gtk_container_add (GTK_CONTAINER (menu_physio_menu), menu_physio_best);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_physio_best), TRUE);
|
||||
|
||||
menu_physio_good = gtk_radio_menu_item_new_with_mnemonic (menu_physio_best_group, _("Good"));
|
||||
menu_physio_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_physio_good));
|
||||
gtk_widget_show (menu_physio_good);
|
||||
gtk_container_add (GTK_CONTAINER (menu_physio_menu), menu_physio_good);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_physio_good), TRUE);
|
||||
|
||||
menu_physio_average = gtk_radio_menu_item_new_with_mnemonic (menu_physio_best_group, _("Average"));
|
||||
menu_physio_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_physio_average));
|
||||
gtk_widget_show (menu_physio_average);
|
||||
gtk_container_add (GTK_CONTAINER (menu_physio_menu), menu_physio_average);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_physio_average), TRUE);
|
||||
|
||||
menu_physio_bad = gtk_radio_menu_item_new_with_mnemonic (menu_physio_best_group, _("Bad"));
|
||||
menu_physio_best_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_physio_bad));
|
||||
@ -476,13 +468,11 @@ create_main_window (void)
|
||||
menu_boost_on_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_boost_on));
|
||||
gtk_widget_show (menu_boost_on);
|
||||
gtk_container_add (GTK_CONTAINER (menu_boost_menu), menu_boost_on);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_boost_on), TRUE);
|
||||
|
||||
menu_boost_off = gtk_radio_menu_item_new_with_mnemonic (menu_boost_on_group, _("Off"));
|
||||
menu_boost_on_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_boost_off));
|
||||
gtk_widget_show (menu_boost_off);
|
||||
gtk_container_add (GTK_CONTAINER (menu_boost_menu), menu_boost_off);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_boost_off), TRUE);
|
||||
|
||||
menu_boost_anti = gtk_radio_menu_item_new_with_mnemonic (menu_boost_on_group, _("Anti"));
|
||||
menu_boost_on_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_boost_anti));
|
||||
@ -602,9 +592,9 @@ create_main_window (void)
|
||||
GDK_F9, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image313 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image313);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_next_user), image313);
|
||||
image337 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image337);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_next_user), image337);
|
||||
|
||||
menu_previous_user = gtk_image_menu_item_new_with_mnemonic (_("Previous user"));
|
||||
gtk_widget_show (menu_previous_user);
|
||||
@ -613,9 +603,9 @@ create_main_window (void)
|
||||
GDK_F8, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image314 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image314);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_previous_user), image314);
|
||||
image338 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image338);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_previous_user), image338);
|
||||
|
||||
menu_manage_users = gtk_image_menu_item_new_with_mnemonic (_("Manage users"));
|
||||
gtk_widget_show (menu_manage_users);
|
||||
@ -624,9 +614,9 @@ create_main_window (void)
|
||||
GDK_F12, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image315 = gtk_image_new_from_stock ("gtk-justify-fill", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image315);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_manage_users), image315);
|
||||
image339 = gtk_image_new_from_stock ("gtk-justify-fill", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image339);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_manage_users), image339);
|
||||
|
||||
menu_finances_stadium = gtk_menu_item_new_with_mnemonic (_("Fin_Stad"));
|
||||
gtk_widget_show (menu_finances_stadium);
|
||||
@ -649,16 +639,32 @@ create_main_window (void)
|
||||
GDK_f, GDK_CONTROL_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
menu_help = gtk_menu_item_new_with_mnemonic (_("_Help"));
|
||||
gtk_widget_show (menu_help);
|
||||
gtk_container_add (GTK_CONTAINER (menubar1), menu_help);
|
||||
menu_help1 = gtk_menu_item_new_with_mnemonic (_("_Help"));
|
||||
gtk_widget_show (menu_help1);
|
||||
gtk_container_add (GTK_CONTAINER (menubar1), menu_help1);
|
||||
|
||||
menu_help_menu = gtk_menu_new ();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_help), menu_help_menu);
|
||||
menu_help1_menu = gtk_menu_new ();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_help1), menu_help1_menu);
|
||||
|
||||
menu_about = gtk_image_menu_item_new_from_stock ("gtk-dialog-info", accel_group);
|
||||
gtk_widget_show (menu_about);
|
||||
gtk_container_add (GTK_CONTAINER (menu_help_menu), menu_about);
|
||||
gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_about);
|
||||
|
||||
menu_contributors = gtk_image_menu_item_new_with_mnemonic (_("Contributors"));
|
||||
gtk_widget_show (menu_contributors);
|
||||
gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_contributors);
|
||||
|
||||
image340 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image340);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_contributors), image340);
|
||||
|
||||
menu_help = gtk_image_menu_item_new_with_mnemonic (_("Help"));
|
||||
gtk_widget_show (menu_help);
|
||||
gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_help);
|
||||
|
||||
image341 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image341);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_help), image341);
|
||||
|
||||
hbox1 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox1);
|
||||
@ -761,19 +767,6 @@ create_main_window (void)
|
||||
gtk_widget_show (image23);
|
||||
gtk_container_add (GTK_CONTAINER (button_new_week), image23);
|
||||
|
||||
button_help = gtk_button_new ();
|
||||
gtk_widget_show (button_help);
|
||||
gtk_box_pack_end (GTK_BOX (hbox1), button_help, FALSE, FALSE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (button_help), 2);
|
||||
gtk_tooltips_set_tip (tooltips, button_help, _("Help (H)"), NULL);
|
||||
gtk_widget_add_accelerator (button_help, "clicked", accel_group,
|
||||
GDK_h, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image39 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image39);
|
||||
gtk_container_add (GTK_CONTAINER (button_help), image39);
|
||||
|
||||
entry_message = gtk_entry_new ();
|
||||
gtk_widget_show (entry_message);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), entry_message, TRUE, TRUE, 5);
|
||||
@ -1206,6 +1199,12 @@ create_main_window (void)
|
||||
g_signal_connect ((gpointer) menu_about, "activate",
|
||||
G_CALLBACK (on_menu_about_activate),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) menu_contributors, "activate",
|
||||
G_CALLBACK (on_menu_contributors_activate),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) menu_help, "activate",
|
||||
G_CALLBACK (on_menu_help_activate),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_load, "clicked",
|
||||
G_CALLBACK (on_button_load_clicked),
|
||||
NULL);
|
||||
@ -1230,9 +1229,6 @@ create_main_window (void)
|
||||
g_signal_connect ((gpointer) button_new_week, "clicked",
|
||||
G_CALLBACK (on_button_new_week_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_help, "clicked",
|
||||
G_CALLBACK (on_button_help_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) eventbox_style, "button_press_event",
|
||||
G_CALLBACK (on_eventbox_style_button_press_event),
|
||||
NULL);
|
||||
@ -1273,7 +1269,7 @@ create_main_window (void)
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_new, "menu_new");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_open, "menu_open");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_load_last_save, "menu_load_last_save");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image311, "image311");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image335, "image335");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_save, "menu_save");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_save_as, "menu_save_as");
|
||||
GLADE_HOOKUP_OBJECT (main_window, trennlinie1, "trennlinie1");
|
||||
@ -1281,7 +1277,7 @@ create_main_window (void)
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_options, "menu_options");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_options_menu, "menu_options_menu");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_preferences, "menu_preferences");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image312, "image312");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image336, "image336");
|
||||
GLADE_HOOKUP_OBJECT (main_window, trennlinie7, "trennlinie7");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_job_offers, "menu_job_offers");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_live_game, "menu_live_game");
|
||||
@ -1345,18 +1341,22 @@ create_main_window (void)
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_history, "menu_user_show_history");
|
||||
GLADE_HOOKUP_OBJECT (main_window, trennlinie9, "trennlinie9");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_next_user, "menu_next_user");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image313, "image313");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image337, "image337");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_previous_user, "menu_previous_user");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image314, "image314");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image338, "image338");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_manage_users, "menu_manage_users");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image315, "image315");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image339, "image339");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_finances_stadium, "menu_finances_stadium");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_finances_stadium_menu, "menu_finances_stadium_menu");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_show_finances, "menu_show_finances");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_show_stadium, "menu_show_stadium");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_help, "menu_help");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_help_menu, "menu_help_menu");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_help1, "menu_help1");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_help1_menu, "menu_help1_menu");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_about, "menu_about");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_contributors, "menu_contributors");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image340, "image340");
|
||||
GLADE_HOOKUP_OBJECT (main_window, menu_help, "menu_help");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image341, "image341");
|
||||
GLADE_HOOKUP_OBJECT (main_window, hbox1, "hbox1");
|
||||
GLADE_HOOKUP_OBJECT (main_window, button_load, "button_load");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image11, "image11");
|
||||
@ -1375,8 +1375,6 @@ create_main_window (void)
|
||||
GLADE_HOOKUP_OBJECT (main_window, vseparator16, "vseparator16");
|
||||
GLADE_HOOKUP_OBJECT (main_window, button_new_week, "button_new_week");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image23, "image23");
|
||||
GLADE_HOOKUP_OBJECT (main_window, button_help, "button_help");
|
||||
GLADE_HOOKUP_OBJECT (main_window, image39, "image39");
|
||||
GLADE_HOOKUP_OBJECT (main_window, entry_message, "entry_message");
|
||||
GLADE_HOOKUP_OBJECT (main_window, hseparator1, "hseparator1");
|
||||
GLADE_HOOKUP_OBJECT (main_window, eventbox_main_info, "eventbox_main_info");
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "user.h"
|
||||
#include "window.h"
|
||||
|
||||
|
||||
gboolean
|
||||
on_button_cancel_clicked (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
@ -357,3 +356,21 @@ on_window_user_management_delete_event (GtkWidget *widget,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
on_window_help_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
on_button_help_close_clicked(NULL, NULL);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_help_close_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
window_destroy(&window.help, FALSE);
|
||||
}
|
||||
|
@ -115,4 +115,13 @@ gboolean
|
||||
on_window_user_management_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean
|
||||
on_window_help_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_help_close_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
#endif
|
||||
|
@ -980,3 +980,145 @@ create_window_debug (void)
|
||||
return window_debug;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_window_help (void)
|
||||
{
|
||||
GtkWidget *window_help;
|
||||
GtkWidget *vbox23;
|
||||
GtkWidget *notebook1;
|
||||
GtkWidget *vbox24;
|
||||
GtkWidget *image12;
|
||||
GtkWidget *label_about;
|
||||
GtkWidget *label49;
|
||||
GtkWidget *scrolledwindow4;
|
||||
GtkWidget *treeview_contributors;
|
||||
GtkWidget *label50;
|
||||
GtkWidget *vbox25;
|
||||
GtkWidget *image13;
|
||||
GtkWidget *label_help_text1;
|
||||
GtkWidget *label_help_text2;
|
||||
GtkWidget *label51;
|
||||
GtkWidget *button_help_close;
|
||||
GtkAccelGroup *accel_group;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
tooltips = gtk_tooltips_new ();
|
||||
|
||||
accel_group = gtk_accel_group_new ();
|
||||
|
||||
window_help = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (window_help), 5);
|
||||
gtk_window_set_title (GTK_WINDOW (window_help), _("window1"));
|
||||
gtk_window_set_position (GTK_WINDOW (window_help), GTK_WIN_POS_CENTER);
|
||||
gtk_window_set_modal (GTK_WINDOW (window_help), TRUE);
|
||||
gtk_window_set_default_size (GTK_WINDOW (window_help), 400, 400);
|
||||
|
||||
vbox23 = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_show (vbox23);
|
||||
gtk_container_add (GTK_CONTAINER (window_help), vbox23);
|
||||
|
||||
notebook1 = gtk_notebook_new ();
|
||||
gtk_widget_show (notebook1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox23), notebook1, TRUE, TRUE, 0);
|
||||
|
||||
vbox24 = gtk_vbox_new (FALSE, 5);
|
||||
gtk_widget_show (vbox24);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), vbox24);
|
||||
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox24,
|
||||
FALSE, FALSE, GTK_PACK_START);
|
||||
|
||||
image12 = create_pixmap (window_help, "bygfoot_icon.png");
|
||||
gtk_widget_show (image12);
|
||||
gtk_box_pack_start (GTK_BOX (vbox24), image12, FALSE, FALSE, 0);
|
||||
gtk_misc_set_padding (GTK_MISC (image12), 0, 5);
|
||||
|
||||
label_about = gtk_label_new ("");
|
||||
gtk_widget_show (label_about);
|
||||
gtk_box_pack_start (GTK_BOX (vbox24), label_about, FALSE, FALSE, 0);
|
||||
GTK_WIDGET_SET_FLAGS (label_about, GTK_CAN_FOCUS);
|
||||
gtk_label_set_justify (GTK_LABEL (label_about), GTK_JUSTIFY_CENTER);
|
||||
gtk_label_set_selectable (GTK_LABEL (label_about), TRUE);
|
||||
|
||||
label49 = gtk_label_new (_("About"));
|
||||
gtk_widget_show (label49);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label49);
|
||||
|
||||
scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_show (scrolledwindow4);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), scrolledwindow4);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
|
||||
|
||||
treeview_contributors = gtk_tree_view_new ();
|
||||
gtk_widget_show (treeview_contributors);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow4), treeview_contributors);
|
||||
|
||||
label50 = gtk_label_new (_("Contributors"));
|
||||
gtk_widget_show (label50);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label50);
|
||||
|
||||
vbox25 = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_show (vbox25);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), vbox25);
|
||||
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox25,
|
||||
FALSE, FALSE, GTK_PACK_START);
|
||||
|
||||
image13 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_DIALOG);
|
||||
gtk_widget_show (image13);
|
||||
gtk_box_pack_start (GTK_BOX (vbox25), image13, FALSE, FALSE, 0);
|
||||
|
||||
label_help_text1 = gtk_label_new ("");
|
||||
gtk_widget_show (label_help_text1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox25), label_help_text1, FALSE, FALSE, 0);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label_help_text1), TRUE);
|
||||
|
||||
label_help_text2 = gtk_label_new ("");
|
||||
gtk_widget_show (label_help_text2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox25), label_help_text2, FALSE, FALSE, 0);
|
||||
GTK_WIDGET_SET_FLAGS (label_help_text2, GTK_CAN_FOCUS);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label_help_text2), TRUE);
|
||||
gtk_label_set_selectable (GTK_LABEL (label_help_text2), TRUE);
|
||||
|
||||
label51 = gtk_label_new (_("Help"));
|
||||
gtk_widget_show (label51);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label51);
|
||||
|
||||
button_help_close = gtk_button_new_from_stock ("gtk-close");
|
||||
gtk_widget_show (button_help_close);
|
||||
gtk_box_pack_start (GTK_BOX (vbox23), button_help_close, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_help_close, _("Esc"), NULL);
|
||||
gtk_widget_add_accelerator (button_help_close, "clicked", accel_group,
|
||||
GDK_Escape, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
g_signal_connect ((gpointer) window_help, "delete_event",
|
||||
G_CALLBACK (on_window_help_delete_event),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_help_close, "clicked",
|
||||
G_CALLBACK (on_button_help_close_clicked),
|
||||
NULL);
|
||||
|
||||
/* Store pointers to all widgets, for use by lookup_widget(). */
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_help, window_help, "window_help");
|
||||
GLADE_HOOKUP_OBJECT (window_help, vbox23, "vbox23");
|
||||
GLADE_HOOKUP_OBJECT (window_help, notebook1, "notebook1");
|
||||
GLADE_HOOKUP_OBJECT (window_help, vbox24, "vbox24");
|
||||
GLADE_HOOKUP_OBJECT (window_help, image12, "image12");
|
||||
GLADE_HOOKUP_OBJECT (window_help, label_about, "label_about");
|
||||
GLADE_HOOKUP_OBJECT (window_help, label49, "label49");
|
||||
GLADE_HOOKUP_OBJECT (window_help, scrolledwindow4, "scrolledwindow4");
|
||||
GLADE_HOOKUP_OBJECT (window_help, treeview_contributors, "treeview_contributors");
|
||||
GLADE_HOOKUP_OBJECT (window_help, label50, "label50");
|
||||
GLADE_HOOKUP_OBJECT (window_help, vbox25, "vbox25");
|
||||
GLADE_HOOKUP_OBJECT (window_help, image13, "image13");
|
||||
GLADE_HOOKUP_OBJECT (window_help, label_help_text1, "label_help_text1");
|
||||
GLADE_HOOKUP_OBJECT (window_help, label_help_text2, "label_help_text2");
|
||||
GLADE_HOOKUP_OBJECT (window_help, label51, "label51");
|
||||
GLADE_HOOKUP_OBJECT (window_help, button_help_close, "button_help_close");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_help, tooltips, "tooltips");
|
||||
|
||||
gtk_window_add_accel_group (GTK_WINDOW (window_help), accel_group);
|
||||
|
||||
return window_help;
|
||||
}
|
||||
|
||||
|
@ -10,3 +10,4 @@ GtkWidget* create_window_yesno (void);
|
||||
GtkWidget* create_window_contract (void);
|
||||
GtkWidget* create_window_user_management (void);
|
||||
GtkWidget* create_window_debug (void);
|
||||
GtkWidget* create_window_help (void);
|
||||
|
@ -181,14 +181,6 @@ on_button_live_close_clicked (GtkButton *button,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_help_close_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_pause_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
|
@ -57,10 +57,6 @@ void
|
||||
on_button_live_close_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_help_close_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_pause_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
@ -825,99 +825,6 @@ create_window_live (void)
|
||||
return window_live;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_help_window (void)
|
||||
{
|
||||
GtkWidget *help_window;
|
||||
GtkWidget *vbox27;
|
||||
GtkWidget *scrolledwindow5;
|
||||
GtkWidget *text_view_help;
|
||||
GtkWidget *button_help_close;
|
||||
GtkWidget *alignment11;
|
||||
GtkWidget *hbox40;
|
||||
GtkWidget *image40;
|
||||
GtkWidget *label59;
|
||||
GtkAccelGroup *accel_group;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
tooltips = gtk_tooltips_new ();
|
||||
|
||||
accel_group = gtk_accel_group_new ();
|
||||
|
||||
help_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (help_window), 6);
|
||||
gtk_window_set_title (GTK_WINDOW (help_window), _("Bygfoot help"));
|
||||
gtk_window_set_position (GTK_WINDOW (help_window), GTK_WIN_POS_CENTER);
|
||||
gtk_window_set_default_size (GTK_WINDOW (help_window), 550, 650);
|
||||
|
||||
vbox27 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox27);
|
||||
gtk_container_add (GTK_CONTAINER (help_window), vbox27);
|
||||
|
||||
scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_show (scrolledwindow5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox27), scrolledwindow5, TRUE, TRUE, 0);
|
||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);
|
||||
|
||||
text_view_help = gtk_text_view_new ();
|
||||
gtk_widget_show (text_view_help);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow5), text_view_help);
|
||||
gtk_text_view_set_editable (GTK_TEXT_VIEW (text_view_help), FALSE);
|
||||
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (text_view_help), GTK_WRAP_WORD);
|
||||
gtk_text_view_set_indent (GTK_TEXT_VIEW (text_view_help), 5);
|
||||
|
||||
button_help_close = gtk_button_new ();
|
||||
gtk_widget_show (button_help_close);
|
||||
gtk_box_pack_start (GTK_BOX (vbox27), button_help_close, FALSE, FALSE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (button_help_close), 2);
|
||||
gtk_tooltips_set_tip (tooltips, button_help_close, _("Esc / Return / Space"), NULL);
|
||||
gtk_widget_add_accelerator (button_help_close, "clicked", accel_group,
|
||||
GDK_Escape, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
gtk_widget_add_accelerator (button_help_close, "clicked", accel_group,
|
||||
GDK_Return, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
gtk_widget_add_accelerator (button_help_close, "clicked", accel_group,
|
||||
GDK_space, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
alignment11 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment11);
|
||||
gtk_container_add (GTK_CONTAINER (button_help_close), alignment11);
|
||||
|
||||
hbox40 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox40);
|
||||
gtk_container_add (GTK_CONTAINER (alignment11), hbox40);
|
||||
|
||||
image40 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image40);
|
||||
gtk_box_pack_start (GTK_BOX (hbox40), image40, FALSE, FALSE, 0);
|
||||
|
||||
label59 = gtk_label_new_with_mnemonic (_("Close"));
|
||||
gtk_widget_show (label59);
|
||||
gtk_box_pack_start (GTK_BOX (hbox40), label59, FALSE, FALSE, 0);
|
||||
|
||||
g_signal_connect ((gpointer) button_help_close, "clicked",
|
||||
G_CALLBACK (on_button_help_close_clicked),
|
||||
NULL);
|
||||
|
||||
/* Store pointers to all widgets, for use by lookup_widget(). */
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (help_window, help_window, "help_window");
|
||||
GLADE_HOOKUP_OBJECT (help_window, vbox27, "vbox27");
|
||||
GLADE_HOOKUP_OBJECT (help_window, scrolledwindow5, "scrolledwindow5");
|
||||
GLADE_HOOKUP_OBJECT (help_window, text_view_help, "text_view_help");
|
||||
GLADE_HOOKUP_OBJECT (help_window, button_help_close, "button_help_close");
|
||||
GLADE_HOOKUP_OBJECT (help_window, alignment11, "alignment11");
|
||||
GLADE_HOOKUP_OBJECT (help_window, hbox40, "hbox40");
|
||||
GLADE_HOOKUP_OBJECT (help_window, image40, "image40");
|
||||
GLADE_HOOKUP_OBJECT (help_window, label59, "label59");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (help_window, tooltips, "tooltips");
|
||||
|
||||
gtk_window_add_accel_group (GTK_WINDOW (help_window), accel_group);
|
||||
|
||||
return help_window;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_window_stadium (void)
|
||||
{
|
||||
|
@ -6,5 +6,4 @@ GtkWidget* create_window_startup (void);
|
||||
GtkWidget* create_window_file_sel (void);
|
||||
GtkWidget* create_window_font_sel (void);
|
||||
GtkWidget* create_window_live (void);
|
||||
GtkWidget* create_help_window (void);
|
||||
GtkWidget* create_window_stadium (void);
|
||||
|
@ -2290,3 +2290,52 @@ treeview_create_country_list(const GPtrArray *country_list)
|
||||
|
||||
return GTK_TREE_MODEL(ls);
|
||||
}
|
||||
|
||||
/** Show the list of contributors in the help window.*/
|
||||
void
|
||||
treeview_show_contributors(const OptionList *help_list)
|
||||
{
|
||||
GtkTreeView *treeview = GTK_TREE_VIEW(lookup_widget(window.help, "treeview_contributors"));
|
||||
GtkListStore *ls = gtk_list_store_new(1, G_TYPE_STRING);
|
||||
GtkTreeIter iter;
|
||||
GtkTreeViewColumn *col;
|
||||
GtkCellRenderer *renderer;
|
||||
gint i;
|
||||
gchar buf[SMALL];
|
||||
|
||||
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(treeview),
|
||||
GTK_SELECTION_NONE);
|
||||
gtk_tree_view_set_rules_hint(treeview, FALSE);
|
||||
gtk_tree_view_set_headers_visible(treeview, FALSE);
|
||||
|
||||
col = gtk_tree_view_column_new();
|
||||
gtk_tree_view_append_column(treeview, col);
|
||||
renderer = treeview_helper_cell_renderer_text_new();
|
||||
gtk_tree_view_column_pack_start(col, renderer, TRUE);
|
||||
gtk_tree_view_column_add_attribute(col, renderer,
|
||||
"markup", 0);
|
||||
|
||||
for(i=0;i<help_list->list->len;i++)
|
||||
{
|
||||
gtk_list_store_append(ls, &iter);
|
||||
|
||||
if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name->str,
|
||||
"string_contrib_title"))
|
||||
{
|
||||
sprintf(buf, "\n<span %s>%s</span>",
|
||||
const_app("string_help_window_title_attribute"),
|
||||
g_array_index(help_list->list, Option, i).string_value->str);
|
||||
gtk_list_store_set(ls, &iter, 0, buf, -1);
|
||||
}
|
||||
else if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name->str,
|
||||
"string_contrib_"))
|
||||
{
|
||||
strcpy(buf, g_array_index(help_list->list, Option, i).string_value->str);
|
||||
gtk_list_store_set(ls, &iter, 0, buf, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(ls));
|
||||
g_object_unref(ls);
|
||||
}
|
||||
|
@ -202,4 +202,7 @@ treeview_create_season_history_champions(GtkListStore *ls, const GArray* league_
|
||||
GtkTreeModel*
|
||||
treeview_create_country_list(const GPtrArray *country_list);
|
||||
|
||||
void
|
||||
treeview_show_contributors(const OptionList *help_list);
|
||||
|
||||
#endif
|
||||
|
@ -710,7 +710,7 @@ user_history_to_string(const UserHistory *history, gchar *buf)
|
||||
team_of_id(history->team_id)->name->str);
|
||||
break;
|
||||
case USER_HISTORY_END_SEASON:
|
||||
sprintf(buf, "You finish the season in %s on rank %d.",
|
||||
sprintf(buf, "You finish the season in the %s on rank %d.",
|
||||
league_cup_get_name_string(history->value1),
|
||||
history->value2);
|
||||
break;
|
||||
|
41
src/window.c
41
src/window.c
@ -16,6 +16,40 @@
|
||||
#include "user.h"
|
||||
#include "window.h"
|
||||
|
||||
/** Show the help/about window.
|
||||
@param page Which notebook page to display. */
|
||||
void
|
||||
window_show_help(gint page)
|
||||
{
|
||||
gchar buf[SMALL];
|
||||
gchar *help_file = file_find_support_file("bygfoot_help", TRUE);
|
||||
OptionList help_list;
|
||||
|
||||
if(help_file == NULL)
|
||||
{
|
||||
game_gui_show_warning("Didn't find file 'bygfoot_help'.");
|
||||
return;
|
||||
}
|
||||
|
||||
help_list.list = NULL;
|
||||
help_list.datalist = NULL;
|
||||
file_load_opt_file(help_file, &help_list);
|
||||
|
||||
window_create(WINDOW_HELP);
|
||||
|
||||
sprintf(buf, "Bygfoot Football Manager\n%s\n(c) 2005 Győző Both (gyboth@bygfoot.com)\nhttp://bygfoot.sourceforge.net", VERS);
|
||||
gtk_label_set_text(GTK_LABEL(lookup_widget(window.help, "label_about")), buf);
|
||||
|
||||
treeview_show_contributors(&help_list);
|
||||
|
||||
game_gui_set_help_labels(&help_list);
|
||||
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(lookup_widget(window.help, "notebook1")), page);
|
||||
|
||||
g_free(help_file);
|
||||
free_option_list(&help_list, FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
Show the country selection window. All files with prefix
|
||||
'country_' from $HOME/.bygfoot/definitions are appended to a combo box.
|
||||
@ -379,6 +413,13 @@ window_create(gint window_type)
|
||||
wind = window.wdebug;
|
||||
strcpy(buf, "Bygfoot debug window");
|
||||
break;
|
||||
case WINDOW_HELP:
|
||||
if(window.help != NULL)
|
||||
g_warning("window_create: called on already existing window\n");
|
||||
else
|
||||
window.help = create_window_help();
|
||||
wind = window.help;
|
||||
break;
|
||||
}
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(wind), buf);
|
||||
|
@ -22,9 +22,13 @@ enum Windows
|
||||
WINDOW_CONTRACT,
|
||||
WINDOW_USER_MANAGEMENT,
|
||||
WINDOW_DEBUG,
|
||||
WINDOW_HELP,
|
||||
WINDOW_END
|
||||
};
|
||||
|
||||
void
|
||||
window_show_help(gint page);
|
||||
|
||||
void
|
||||
window_show_startup(void);
|
||||
|
||||
|
@ -6,6 +6,9 @@
|
||||
# treeview background and foreground colours ######
|
||||
###################################################
|
||||
|
||||
# font attributes for the help window
|
||||
string_help_window_title_attribute size='large'
|
||||
|
||||
# colours of the live game commentary for the away team
|
||||
string_treeview_live_game_commentary_away_fg black
|
||||
string_treeview_live_game_commentary_away_bg lightgrey
|
||||
|
@ -22,7 +22,7 @@
|
||||
<rank_start>9</rank_start>
|
||||
<rank_end>10</rank_end>
|
||||
<dest_sid>scotland3</dest_sid>
|
||||
<prom_rel_type>promotion</prom_rel_type>
|
||||
<prom_rel_type>relegation</prom_rel_type>
|
||||
</prom_rel_element>
|
||||
</prom_rel>
|
||||
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user