mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 18:29:21 +01:00
Add the possibility to change the ticket prices - gui part
This commit is contained in:
parent
ed565d3be5
commit
de876bbf7c
@ -1739,93 +1739,9 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="n_rows">5</property>
|
||||
<property name="n_columns">2</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="row_spacing">3</property>
|
||||
<property name="column_spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label106">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Status:</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_stadium_status">
|
||||
<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">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</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="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label101">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Current capacity</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="row_spacing">0</property>
|
||||
<property name="column_spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox69">
|
||||
@ -1893,80 +1809,6 @@
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label103">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Current safety</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkProgressBar" id="progressbar_safety">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
|
||||
<property name="fraction">0</property>
|
||||
<property name="pulse_step">0.10000000149</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label109">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Average attendance</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">3</property>
|
||||
<property name="bottom_attach">4</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_average_attendance">
|
||||
<property name="visible">True</property>
|
||||
@ -1995,6 +1837,176 @@
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkProgressBar" id="progressbar_average_attendance">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
|
||||
<property name="fraction">0</property>
|
||||
<property name="pulse_step">0.10000000149</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">4</property>
|
||||
<property name="bottom_attach">5</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label106">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Status:</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_stadium_status">
|
||||
<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">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</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="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label101">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Current capacity</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkProgressBar" id="progressbar_safety">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
|
||||
<property name="fraction">0</property>
|
||||
<property name="pulse_step">0.10000000149</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label103">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Current safety</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">2</property>
|
||||
<property name="bottom_attach">3</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label109">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Average attendance</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</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">3</property>
|
||||
<property name="bottom_attach">4</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label111">
|
||||
<property name="visible">True</property>
|
||||
@ -2018,25 +2030,109 @@
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">4</property>
|
||||
<property name="bottom_attach">5</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHSeparator" id="hseparator17">
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTable" id="table3">
|
||||
<property name="visible">True</property>
|
||||
<property name="n_rows">2</property>
|
||||
<property name="n_columns">2</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="row_spacing">3</property>
|
||||
<property name="column_spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="digits">2</property>
|
||||
<property name="numeric">False</property>
|
||||
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
|
||||
<property name="snap_to_ticks">False</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="adjustment">1 0 100 1 10 10</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkProgressBar" id="progressbar_average_attendance">
|
||||
<widget class="GtkLabel" id="label124">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
|
||||
<property name="fraction">0</property>
|
||||
<property name="pulse_step">0.10000000149</property>
|
||||
<property name="label" translatable="yes">Change ticket price</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">False</property>
|
||||
<property name="xalign">0</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="left_attach">1</property>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">4</property>
|
||||
<property name="bottom_attach">5</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="x_options"></property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label123">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Price per ticket</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</property>
|
||||
<property name="yalign">0</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
@ -2575,6 +2671,7 @@
|
||||
</widget>
|
||||
|
||||
<widget class="GtkFileChooserDialog" id="window_file_chooser">
|
||||
<property name="border_width">5</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="action">GTK_FILE_CHOOSER_ACTION_OPEN</property>
|
||||
<property name="local_only">True</property>
|
||||
|
@ -35,6 +35,7 @@ subdir = po
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
|
||||
|
||||
CC = @CC@
|
||||
GENCAT = @GENCAT@
|
||||
@ -119,7 +120,11 @@ install-exec:
|
||||
install-data: install-data-@USE_NLS@
|
||||
install-data-no: all
|
||||
install-data-yes: all
|
||||
@mkdir_p@ $(DESTDIR)$(datadir)
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
|
||||
fi
|
||||
@catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
@ -129,7 +134,11 @@ install-data-yes: all
|
||||
esac; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
|
||||
@mkdir_p@ $$dir; \
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $$dir; \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
|
||||
fi; \
|
||||
if test -r $$cat; then \
|
||||
$(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
|
||||
@ -153,7 +162,11 @@ install-data-yes: all
|
||||
fi; \
|
||||
done
|
||||
if test "$(PACKAGE)" = "glib"; then \
|
||||
@mkdir_p@ $(DESTDIR)$(gettextsrcdir); \
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
|
||||
fi; \
|
||||
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
|
||||
$(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
||||
else \
|
||||
|
@ -847,18 +847,24 @@ create_window_stadium (void)
|
||||
GtkWidget *vbox39;
|
||||
GtkWidget *label_stadium_name;
|
||||
GtkWidget *table1;
|
||||
GtkWidget *label106;
|
||||
GtkWidget *label_stadium_status;
|
||||
GtkWidget *label101;
|
||||
GtkWidget *hbox69;
|
||||
GtkWidget *label_capacity;
|
||||
GtkWidget *label102;
|
||||
GtkWidget *label103;
|
||||
GtkWidget *progressbar_safety;
|
||||
GtkWidget *label109;
|
||||
GtkWidget *label_average_attendance;
|
||||
GtkWidget *label111;
|
||||
GtkWidget *progressbar_average_attendance;
|
||||
GtkWidget *label106;
|
||||
GtkWidget *label_stadium_status;
|
||||
GtkWidget *label101;
|
||||
GtkWidget *progressbar_safety;
|
||||
GtkWidget *label103;
|
||||
GtkWidget *label109;
|
||||
GtkWidget *label111;
|
||||
GtkWidget *hseparator17;
|
||||
GtkWidget *table3;
|
||||
GtkObject *spinbutton1_adj;
|
||||
GtkWidget *spinbutton1;
|
||||
GtkWidget *label124;
|
||||
GtkWidget *label123;
|
||||
GtkWidget *hseparator14;
|
||||
GtkWidget *vbox43;
|
||||
GtkWidget *label90;
|
||||
@ -908,32 +914,9 @@ create_window_stadium (void)
|
||||
gtk_widget_show (label_stadium_name);
|
||||
gtk_box_pack_start (GTK_BOX (vbox39), label_stadium_name, FALSE, FALSE, 0);
|
||||
|
||||
table1 = gtk_table_new (5, 2, FALSE);
|
||||
table1 = gtk_table_new (5, 2, TRUE);
|
||||
gtk_widget_show (table1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox39), table1, FALSE, FALSE, 0);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table1), 3);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table1), 3);
|
||||
|
||||
label106 = gtk_label_new (_("Status:"));
|
||||
gtk_widget_show (label106);
|
||||
gtk_table_attach (GTK_TABLE (table1), label106, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label106), 0, 0.5);
|
||||
|
||||
label_stadium_status = gtk_label_new ("");
|
||||
gtk_widget_show (label_stadium_status);
|
||||
gtk_table_attach (GTK_TABLE (table1), label_stadium_status, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label_stadium_status), 0, 0.5);
|
||||
|
||||
label101 = gtk_label_new (_("Current capacity"));
|
||||
gtk_widget_show (label101);
|
||||
gtk_table_attach (GTK_TABLE (table1), label101, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label101), 0, 0.5);
|
||||
|
||||
hbox69 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox69);
|
||||
@ -950,26 +933,6 @@ create_window_stadium (void)
|
||||
gtk_widget_show (label102);
|
||||
gtk_box_pack_start (GTK_BOX (hbox69), label102, FALSE, FALSE, 0);
|
||||
|
||||
label103 = gtk_label_new (_("Current safety"));
|
||||
gtk_widget_show (label103);
|
||||
gtk_table_attach (GTK_TABLE (table1), label103, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label103), 0, 0.5);
|
||||
|
||||
progressbar_safety = gtk_progress_bar_new ();
|
||||
gtk_widget_show (progressbar_safety);
|
||||
gtk_table_attach (GTK_TABLE (table1), progressbar_safety, 1, 2, 2, 3,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
label109 = gtk_label_new (_("Average attendance"));
|
||||
gtk_widget_show (label109);
|
||||
gtk_table_attach (GTK_TABLE (table1), label109, 0, 1, 3, 4,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label109), 0, 0.5);
|
||||
|
||||
label_average_attendance = gtk_label_new ("");
|
||||
gtk_widget_show (label_average_attendance);
|
||||
gtk_table_attach (GTK_TABLE (table1), label_average_attendance, 1, 2, 3, 4,
|
||||
@ -977,19 +940,92 @@ create_window_stadium (void)
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label_average_attendance), 0, 0.5);
|
||||
|
||||
label111 = gtk_label_new (_("Average attendance %"));
|
||||
gtk_widget_show (label111);
|
||||
gtk_table_attach (GTK_TABLE (table1), label111, 0, 1, 4, 5,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label111), 0, 0.5);
|
||||
|
||||
progressbar_average_attendance = gtk_progress_bar_new ();
|
||||
gtk_widget_show (progressbar_average_attendance);
|
||||
gtk_table_attach (GTK_TABLE (table1), progressbar_average_attendance, 1, 2, 4, 5,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
label106 = gtk_label_new (_("Status:"));
|
||||
gtk_widget_show (label106);
|
||||
gtk_table_attach (GTK_TABLE (table1), label106, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label106), 0, 0.5);
|
||||
|
||||
label_stadium_status = gtk_label_new ("");
|
||||
gtk_widget_show (label_stadium_status);
|
||||
gtk_table_attach (GTK_TABLE (table1), label_stadium_status, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label_stadium_status), 0, 0.5);
|
||||
|
||||
label101 = gtk_label_new (_("Current capacity"));
|
||||
gtk_widget_show (label101);
|
||||
gtk_table_attach (GTK_TABLE (table1), label101, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label101), 0, 0.5);
|
||||
|
||||
progressbar_safety = gtk_progress_bar_new ();
|
||||
gtk_widget_show (progressbar_safety);
|
||||
gtk_table_attach (GTK_TABLE (table1), progressbar_safety, 1, 2, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
label103 = gtk_label_new (_("Current safety"));
|
||||
gtk_widget_show (label103);
|
||||
gtk_table_attach (GTK_TABLE (table1), label103, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label103), 0, 0.5);
|
||||
|
||||
label109 = gtk_label_new (_("Average attendance"));
|
||||
gtk_widget_show (label109);
|
||||
gtk_table_attach (GTK_TABLE (table1), label109, 0, 1, 3, 4,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label109), 0, 0.5);
|
||||
|
||||
label111 = gtk_label_new (_("Average attendance %"));
|
||||
gtk_widget_show (label111);
|
||||
gtk_table_attach (GTK_TABLE (table1), label111, 0, 1, 4, 5,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label111), 0, 0.5);
|
||||
|
||||
hseparator17 = gtk_hseparator_new ();
|
||||
gtk_widget_show (hseparator17);
|
||||
gtk_box_pack_start (GTK_BOX (vbox39), hseparator17, FALSE, FALSE, 0);
|
||||
|
||||
table3 = gtk_table_new (2, 2, TRUE);
|
||||
gtk_widget_show (table3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox39), table3, FALSE, FALSE, 0);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table3), 3);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table3), 3);
|
||||
|
||||
spinbutton1_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
|
||||
spinbutton1 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton1_adj), 1, 2);
|
||||
gtk_widget_show (spinbutton1);
|
||||
gtk_table_attach (GTK_TABLE (table3), spinbutton1, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
label124 = gtk_label_new (_("Change ticket price"));
|
||||
gtk_widget_show (label124);
|
||||
gtk_table_attach (GTK_TABLE (table3), label124, 0, 2, 0, 1,
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label124), GTK_JUSTIFY_CENTER);
|
||||
gtk_misc_set_alignment (GTK_MISC (label124), 0, 0.5);
|
||||
|
||||
label123 = gtk_label_new (_("Price per ticket"));
|
||||
gtk_widget_show (label123);
|
||||
gtk_table_attach (GTK_TABLE (table3), label123, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label123), 0, 0);
|
||||
|
||||
hseparator14 = gtk_hseparator_new ();
|
||||
gtk_widget_show (hseparator14);
|
||||
gtk_box_pack_start (GTK_BOX (vbox39), hseparator14, FALSE, FALSE, 0);
|
||||
@ -1139,18 +1175,23 @@ create_window_stadium (void)
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, vbox39, "vbox39");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label_stadium_name, "label_stadium_name");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, table1, "table1");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label106, "label106");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label_stadium_status, "label_stadium_status");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label101, "label101");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, hbox69, "hbox69");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label_capacity, "label_capacity");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label102, "label102");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label103, "label103");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, progressbar_safety, "progressbar_safety");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label109, "label109");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label_average_attendance, "label_average_attendance");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label111, "label111");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, progressbar_average_attendance, "progressbar_average_attendance");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label106, "label106");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label_stadium_status, "label_stadium_status");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label101, "label101");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, progressbar_safety, "progressbar_safety");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label103, "label103");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label109, "label109");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label111, "label111");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, hseparator17, "hseparator17");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, table3, "table3");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, spinbutton1, "spinbutton1");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label124, "label124");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label123, "label123");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, hseparator14, "hseparator14");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, vbox43, "vbox43");
|
||||
GLADE_HOOKUP_OBJECT (window_stadium, label90, "label90");
|
||||
@ -1195,6 +1236,7 @@ create_window_file_chooser (void)
|
||||
GtkWidget *button2;
|
||||
|
||||
window_file_chooser = gtk_file_chooser_dialog_new (_("Choose file"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (window_file_chooser), 5);
|
||||
g_object_set (window_file_chooser,
|
||||
"show-hidden", TRUE,
|
||||
NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user