Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/include/pages_g.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
pages_g.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__PAGES_G_H
14#define FC__PAGES_G_H
15
16/**************************************************************************
17 Toplevel window pages modes.
18**************************************************************************/
19#define SPECENUM_NAME client_pages
20#define SPECENUM_VALUE0 PAGE_MAIN /* Main menu, aka intro page. */
21#define SPECENUM_VALUE1 PAGE_START /* Start new game page. */
22#define SPECENUM_VALUE2 PAGE_SCENARIO /* Start new scenario page. */
23#define SPECENUM_VALUE3 PAGE_LOAD /* Load saved game page. */
24#define SPECENUM_VALUE4 PAGE_NETWORK /* Connect to network page. */
25#define SPECENUM_VALUE5 PAGE_GAME /* In game page. */
26#include "specenum_gen.h"
27
28#include "gui_proto_constructor.h"
29
30 GUI_FUNC_PROTO(void, real_set_client_page, enum client_pages page)
31 GUI_FUNC_PROTO(enum client_pages, get_current_client_page, void)
32 GUI_FUNC_PROTO(void, update_start_page, void)
33
34/* Actually defined in update_queue.c */
35void set_client_page(enum client_pages page);
36void client_start_server_and_set_page(enum client_pages page);
37enum client_pages get_client_page(void);
38
39#endif /* FC__PAGES_G_H */
get_current_client_page
enum client_pages get_current_client_page(void)
Definition pages.c:3343
real_set_client_page
void real_set_client_page(enum client_pages new_page)
Definition pages.c:3351
update_start_page
void update_start_page(void)
Definition pages.c:1670
gui_proto_constructor.h
GUI_FUNC_PROTO
#define GUI_FUNC_PROTO(_type, _func,...)
Definition gui_proto_constructor.h:22
client_start_server_and_set_page
void client_start_server_and_set_page(enum client_pages page)
Definition update_queue.c:506
set_client_page
void set_client_page(enum client_pages page)
Definition update_queue.c:496
get_client_page
enum client_pages get_client_page(void)
Definition update_queue.c:520
specenum_gen.h