Commit Graph

1695 Commits

Author SHA1 Message Date
Tom Stellard f00c9357b7 Load team stuff 2021-02-01 13:17:50 -08:00
Tom Stellard 27a374f226 Add helper function for getting the list of teams in a league 2021-02-01 13:17:50 -08:00
Tom Stellard d85001d53f XXX country treeview team list 2021-02-01 13:17:50 -08:00
Tom Stellard bcc8716f0f Refactor treeview_create_team_selection_list()
Add a Country parameter so that it does not rely on global variables and
simplify some of the code.
2021-02-01 13:17:50 -08:00
Tom Stellard b423e16a7b XXX network select 2021-02-01 13:17:50 -08:00
Tom Stellard 91fbd1b590 XXX JSON 2021-02-01 13:17:50 -08:00
Tom Stellard deb0a91d4a XXX: Server 2021-02-01 13:17:50 -08:00
Tom Stellard aa4b4ffcb4 XXX COuntry list 2021-02-01 13:17:50 -08:00
Tom Stellard 6f43a62563 CGI 2021-02-01 13:17:49 -08:00
Tom Stellard 11b7057891 XXX JSON 2021-02-01 13:17:49 -08:00
Tom Stellard 8ff4284ca2 WIP: Remove pixmap dir 2021-02-01 13:17:49 -08:00
Tom Stellard 2d935dda2f Add json interface 2021-02-01 13:17:49 -08:00
Tom Stellard bdd28eceb2 Add an interface for fetching the list of countries
This commit introduces the concept of Bygfoot backends.  The only
backend currently supported is the filesystem backend.  An example of
other backends that might be added include: server or database backend.

Creating an interface for fetching the country list will make it easier
to interface with multiple backends.
2021-02-01 13:17:49 -08:00
Tom Stellard 0e72704a73 Move country file validation out of main_init()
We only need to do this validation on program startup and main_init()
may be called multiple times (e.g. if someone starts multiple new games
without exiting)
2021-02-01 13:17:49 -08:00
Tom Stellard 5439513f1c Add Bygfoot* parameter to start_week* functions
In the future, this structure will hold the bygfoot global state.
2021-02-01 13:17:49 -08:00
Tom Stellard ccde766f77 Use a callback for reporting progress of simulating games
This removes the gtk2 dependency from end_week_round_results() so it can
be potentially used with other frontends.
2021-02-01 13:17:49 -08:00
Tom Stellard d2546487d2 Factor some of the code for starting a game out of the UI 2021-02-01 13:17:49 -08:00
Tom Stellard 7352d32327 Move some GUI related code out of start_end.c and into callback_func.c
This helps separate the core logic from the user interface.
2021-02-01 13:17:48 -08:00
Tom Stellard 99104a9909 Factor user creation code out from the gtk callbacks
Also introduce a new Bygfoot struct for holding all the global data.
This will eventually replace all the global variables in bygfoot, but
for now it is an empty struct that we are just passing it through to
functions that access global variables.
2021-02-01 13:17:46 -08:00
Tom Stellard ecbae9da08 Call gtk_init() after main_init()
main_init() would need to be called no matter what user interface is
used, so we should call it before initializing the user interface.
2021-02-01 13:17:17 -08:00
Tom Stellard 6ac8d9cb74 Don't try to open the display when parsing command line arguments
I'm not sure why this was done in the first place, but it doesn't seem
to be necessary.  This change will make it easier to add alternative
user interfaces.
2021-02-01 13:17:17 -08:00
Tom Stellard 7d55035600 Remove unnecessary call to user_event_show_next()
This code path was only hit when query_user_events() returned false,
and user_vent_show_next() returns early and does nothing when this is
false.
2021-02-01 13:17:17 -08:00
mrsmola d90ba9aea8 added svn-properties 2021-02-01 13:17:06 -08:00
mrsmola 74073f6fb9 Added svn properties 2021-02-01 13:17:06 -08:00
mrsmola 6862dca916 Added svn properties 2021-02-01 13:17:06 -08:00
mrsmola 489fe82336 added svn properties 2021-02-01 13:17:06 -08:00
mrsmola 52f93e74be changed svn-properties 2021-02-01 13:17:06 -08:00
mrsmola 069d2223d1 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 6d680ed178 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 76dff194e7 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola d9edfc3218 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola a326e25a8d changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 7346802b74 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 66517feb66 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola cb78a4ff4e changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola e493a2405d changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 23f18d8eae changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 28bcd89556 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola afd5903b0e changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola f4b79e7f35 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola f5d8e13ea9 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 6e59dae1e3 changed mime-type to text/xml 2021-02-01 13:17:06 -08:00
mrsmola 3576267e0b changed mime-type to image/jpeg 2021-02-01 13:17:06 -08:00
mrsmola 99c474fdfd changed mime-type to image/png 2021-02-01 13:17:06 -08:00
mrsmola a85d635b7a changed mime-type to image/png 2021-02-01 13:17:06 -08:00
mrsmola ae43f8ff20 changed mime-type to application/octet-stream 2021-02-01 13:17:06 -08:00
Tom Stellard 30a1638cc1 add san marion 2021-02-01 13:13:38 -08:00
Tom Stellard 0a7f8ad316 DEBUG 2021-02-01 13:13:06 -08:00
Tom Stellard d4476e4285 XXX CUPS 2021-02-01 13:13:02 -08:00
Tom Stellard 517b8eba6e XXX: faroe 2021-02-01 13:12:39 -08:00