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)
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 ***********************************************************************/
14 /**********************************************************************
15 mapctrl.h - description
17 begin : Thu Sep 05 2002
18 copyright : (C) 2002 by Rafał Bursig
19 email : Rafał Bursig <bursig@poczta.fm>
20 *********************************************************************/
32 #include "mapctrl_g.h"
38 #define DEFAULT_OVERVIEW_W 78
39 #define DEFAULT_OVERVIEW_H 52
40 #define DEFAULT_UNITS_W (78 + BLOCKU_W)
41 #define DEFAULT_UNITS_H 52
43 #else /* SMALL_SCREEN */
47 #define DEFAULT_OVERVIEW_W 156
48 #define DEFAULT_OVERVIEW_H 104
49 #define DEFAULT_UNITS_W (158 + BLOCKU_W)
50 #define DEFAULT_UNITS_H 104
52 #endif /* SMALL_SCREEN */
54 extern int overview_w
;
55 extern int overview_h
;
57 void popdown_newcity_dialog(void);
59 void popup_minimap_window(void);
60 void show_minimap_window_buttons(void);
61 void hide_minimap_window_buttons(void);
62 void disable_minimap_window_buttons(void);
63 void redraw_minimap_window_buttons(void);
64 void popdown_minimap_window(void);
66 void popup_unitinfo_window(void);
67 void show_unitinfo_window_buttons(void);
68 void hide_unitinfo_window_buttons(void);
69 void disable_unitinfo_window_buttons(void);
70 void popdown_unitinfo_window(void);
72 void show_game_page(void);
73 void close_game_page(void);
75 void set_new_unitinfo_window_pos(void);
76 void set_new_minimap_window_pos(void);
77 int resize_minimap(void);
78 int resize_unit_info(void);
79 struct widget
* get_unit_info_window_widget(void);
80 struct widget
* get_minimap_window_widget(void);
81 struct widget
* get_tax_rates_widget(void);
82 struct widget
* get_research_widget(void);
83 struct widget
* get_revolution_widget(void);
84 void enable_and_redraw_find_city_button(void);
85 void enable_and_redraw_revolution_button(void);
86 void enable_main_widgets(void);
87 void disable_main_widgets(void);
88 bool map_event_handler(SDL_keysym Key
);
90 void button_down_on_map(struct mouse_button_behavior
*button_behavior
);
91 void button_up_on_map(struct mouse_button_behavior
*button_behavior
);
93 #endif /* FC__MAPCTRL_H */