bygfoot/src/treeview.h

253 lines
5.8 KiB
C
Raw Permalink Normal View History

2005-10-20 17:45:00 +02:00
/*
2005-11-26 17:52:51 +01:00
treeview.h
2005-10-20 17:45:00 +02:00
Bygfoot Football Manager -- a small and simple GTK2-based
football management game.
http://bygfoot.sourceforge.net
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
2004-12-23 13:58:39 +01:00
#ifndef TREEVIEW_H
#define TREEVIEW_H
#include "bygfoot.h"
2005-04-13 15:01:59 +02:00
#include "league_struct.h"
2005-01-09 21:21:22 +01:00
#include "live_game_struct.h"
#include "player_struct.h"
#include "user_struct.h"
2005-03-20 21:49:55 +01:00
#include "table_struct.h"
2004-12-23 13:58:39 +01:00
GtkTreeModel*
treeview_create_team_selection_list(gboolean show_cup_teams,
gboolean show_user_teams);
2004-12-23 13:58:39 +01:00
void
treeview_set_up_team_selection_treeview (GtkTreeView *treeview);
void
treeview_show_team_list(GtkTreeView *treeview, gboolean show_cup_teams,
gboolean show_user_teams);
2004-12-23 13:58:39 +01:00
2005-01-09 21:21:22 +01:00
GtkTreeModel*
2005-06-11 18:54:59 +02:00
treeview_create_player_list(GPtrArray *players, gint *attributes, gint max,
gboolean show_separator, gboolean sortable, gboolean status);
2005-01-09 21:21:22 +01:00
void
2009-02-22 20:33:35 +01:00
treeview_set_up_player_list(GtkTreeView *treeview, gint *attributes, gint max,
gboolean show_separator, gboolean transfer_list,
gboolean sortable);
2005-01-09 21:21:22 +01:00
void
2009-02-22 20:33:35 +01:00
treeview_show_player_list(GtkTreeView *treeview, GPtrArray *players,
PlayerListAttribute attribute,
gboolean show_separator, gboolean transfer_list);
2005-01-09 21:21:22 +01:00
void
2005-03-24 21:22:44 +01:00
treeview_show_user_player_list(void);
2005-01-09 21:21:22 +01:00
void
treeview_live_game_show_commentary(const LiveGameUnit *unit);
void
treeview_live_game_show_initial_commentary(const LiveGameUnit *unit);
void
treeview_live_game_set_up_commentary(void);
GtkTreeModel*
treeview_live_game_create_init_commentary(const LiveGameUnit *unit);
GtkTreeModel*
treeview_live_game_create_result(const LiveGameUnit *unit);
void
treeview_live_game_set_up_result(void);
void
treeview_live_game_show_result(const LiveGameUnit *unit);
void
2005-03-27 19:59:57 +02:00
treeview_show_users(GtkTreeView *treeview);
GtkTreeModel*
2005-03-27 19:59:57 +02:00
treeview_create_users(void);
void
2005-03-27 19:59:57 +02:00
treeview_set_up_users(GtkTreeView *treeview);
2005-03-10 21:59:39 +01:00
GtkTreeModel*
treeview_create_game_stats(LiveGame *live_game);
void
treeview_show_game_stats(GtkTreeView *treeview, LiveGame *live_game);
void
treeview_set_up_game_stats(GtkTreeView *treeview);
2005-03-14 18:47:27 +01:00
void
treeview_show_fixtures(GtkTreeView *treeview, gint clid,
gint week_number, gint week_round_number);
void
treeview_set_up_fixtures(GtkTreeView *treeview);
GtkTreeModel*
treeview_create_fixtures(gint clid, gint week_number, gint week_round_number);
void
2005-03-27 19:59:57 +02:00
treeview_create_fixtures_header(const Fixture *fix, GtkListStore *liststore, gboolean blank_line);
2005-03-14 18:47:27 +01:00
void
treeview_create_fixture(const Fixture *fix, GtkListStore *liststore);
void
treeview_show_table(GtkTreeView *treeview, gint clid);
void
treeview_set_up_table(GtkTreeView *treeview);
GtkTreeModel*
treeview_create_table(gint clid);
void
treeview_create_single_table(GtkListStore *liststore, const Table *table, gint table_index);
void
treeview_table_write_header(GtkListStore *ls, const Table *table, gint table_index);
2005-03-16 21:48:25 +01:00
void
treeview_show_finances(GtkTreeView *treeview, const User* user);
void
treeview_set_up_finances(GtkTreeView *treeview);
GtkTreeModel*
treeview_create_finances(const User *user);
2005-03-16 21:48:25 +01:00
2005-03-18 23:03:23 +01:00
void
treeview_show_player_list_team(GtkTreeView *treeview, const Team *tm, gint scout);
2005-03-19 21:04:08 +01:00
void
treeview_show_transfer_list(GtkTreeView *treeview);
2005-03-21 13:39:05 +01:00
void
2005-03-25 21:18:35 +01:00
treeview_show_next_opponent(void);
2005-03-21 13:39:05 +01:00
void
treeview_set_up_next_opponent(GtkTreeView *treeview);
GtkTreeModel*
treeview_create_next_opponent(void);
2005-03-24 21:22:44 +01:00
void
treeview_show_league_results(GtkTreeView *treeview);
void
treeview_set_up_league_results(GtkTreeView *treeview);
GtkTreeModel*
treeview_create_league_results(void);
2005-03-25 11:54:54 +01:00
void
treeview_create_next_opponent_values(GtkListStore *liststore, const Fixture *fix);
2005-03-27 19:59:57 +02:00
void
2005-05-09 19:06:11 +02:00
treeview_show_all_players(gint clid);
2005-03-27 19:59:57 +02:00
GtkTreeModel*
treeview_create_preview(void);
void
treeview_show_preview(void);
2005-04-07 18:44:33 +02:00
void
treeview_show_player_info(const Player *pl);
void
treeview_set_up_player_info(GtkTreeView *treeview);
GtkTreeModel*
treeview_create_player_info(const Player *pl);
2005-04-09 21:18:28 +02:00
void
treeview_create_stadium_summary(GtkListStore *liststore);
void
treeview_show_fixtures_week(gint week_number, gint week_round_number);
2005-04-16 09:46:04 +02:00
GtkTreeModel*
treeview_create_fixtures_week(gint week_number, gint week_round_number);
void
2005-04-16 09:46:04 +02:00
treeview_show_user_history(void);
void
treeview_set_up_user_history(GtkTreeView *treeview);
GtkTreeModel*
2005-04-16 09:46:04 +02:00
treeview_create_user_history(void);
2005-04-29 21:48:02 +02:00
void
treeview_show_league_stats(gint clid);
void
treeview_set_up_league_stats(GtkTreeView *treeview);
void
2005-05-02 16:39:30 +02:00
treeview_create_league_stats(GtkListStore *ls, const LeagueStat *league_stat);
void
treeview_show_season_history(gint page, gint idx);
2005-05-02 16:39:30 +02:00
void
treeview_create_season_history_champions(GtkListStore *ls, const GArray* league_champs,
const GArray *cup_champs);
2005-04-29 21:48:02 +02:00
2005-05-07 16:19:52 +02:00
GtkTreeModel*
treeview_create_country_list(const GPtrArray *country_list);
2005-05-22 15:33:24 +02:00
void
2006-02-15 13:03:48 +01:00
treeview_show_contributors(GtkTreeView *treeview);
2005-05-22 15:33:24 +02:00
2005-06-11 18:54:59 +02:00
GtkTreeModel*
treeview_create_league_list(void);
void
treeview_show_leagues_combo(void);
2005-06-14 17:27:44 +02:00
void
treeview_show_language_combo(void);
2005-06-20 14:46:57 +02:00
GtkTreeModel*
treeview_create_sponsors(const GArray *sponsors);
void
treeview_set_up_sponsors(GtkTreeView *treeview);
void
treeview_show_sponsors(const GArray *sponsors);
2008-05-03 17:03:30 +02:00
GtkTreeModel*
treeview_create_training_hotel_list(void);
void
treeview_show_training_hotels_combo(void);
2004-12-23 13:58:39 +01:00
#endif