Freeciv-3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "fcintl.h"
#include "log.h"
#include "events.h"
#include "game.h"
#include "map.h"
#include "player.h"
#include "options.h"
#include "chatline.h"
#include "citydlg.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "mapview.h"
#include "messagewin.h"
Go to the source code of this file.
Data Structures | |
struct | meswin_dialog |
Enumerations | |
enum | meswin_columns { MESWIN_COL_ICON , MESWIN_COL_MESSAGE , MESWIN_COL_WEIGHT , MESWIN_COL_STYLE , MESWIN_COL_ID , MESWIN_COL_NUM } |
enum | meswin_responses { MESWIN_RES_GOTO = 1 , MESWIN_RES_POPUP_CITY } |
Variables | |
static struct meswin_dialog | meswin = { NULL, } |
Enumerator | |
---|---|
MESWIN_COL_ICON | |
MESWIN_COL_MESSAGE | |
MESWIN_COL_WEIGHT | |
MESWIN_COL_STYLE | |
MESWIN_COL_ID | |
MESWIN_COL_NUM |
Definition at line 53 of file messagewin.c.
Enumerator | |
---|---|
MESWIN_RES_GOTO | |
MESWIN_RES_POPUP_CITY |
Definition at line 65 of file messagewin.c.
|
static |
Mouse button press handler for the message window treeview. We only care about right clicks on a row; this action centers on the tile associated with the event at that row (if applicable).
Definition at line 247 of file messagewin.c.
Referenced by meswin_dialog_init().
|
static |
Closes a message window dialog.
Definition at line 404 of file messagewin.c.
Referenced by meswin_dialog_popdown().
|
static |
Initialize a message window dialog.
Definition at line 319 of file messagewin.c.
Referenced by meswin_dialog_popup().
Return TRUE iff the message window is open.
Definition at line 443 of file messagewin.c.
Referenced by main_key_down_handler(), main_key_down_handler(), meswin_dialog_update(), popup_optiondlg(), and toggle_msg_window_callback().
Closes the message window dialog.
Definition at line 432 of file messagewin.c.
Referenced by main_key_down_handler(), main_key_down_handler(), popdown_all_game_dialogs(), popup_conn_list_dialog(), popup_connection_dialog(), toggle_msg_window_callback(), and ui_main().
Popup the dialog inside the main-window, and optionally raise it.
Definition at line 417 of file messagewin.c.
Referenced by exit_meta_server_dlg_callback(), main_key_down_handler(), main_key_down_handler(), meswin_dialog_update(), popdown_optiondlg(), popup_connection_dialog(), real_meswin_dialog_update(), report_messages_callback(), report_messages_callback(), setup_widgets(), show_main_page(), and toggle_msg_window_callback().
|
static |
Refresh a message window dialog.
Definition at line 119 of file messagewin.c.
Referenced by meswin_dialog_init(), and real_meswin_dialog_update().
|
static |
Dialog response callback.
Definition at line 280 of file messagewin.c.
Referenced by meswin_dialog_init().
|
static |
A row has been activated by the user.
Definition at line 221 of file messagewin.c.
Referenced by meswin_dialog_init().
|
static |
Selection changed callback.
Definition at line 196 of file messagewin.c.
Referenced by meswin_dialog_init().
|
static |
Set the visited state of the store.
Definition at line 102 of file messagewin.c.
Referenced by meswin_dialog_response_callback(), and meswin_dialog_row_activated_callback().
|
static |
Create a tree model for the message window.
Definition at line 75 of file messagewin.c.
Referenced by meswin_dialog_init().
Get the pango attributes for the visited state.
Definition at line 88 of file messagewin.c.
Referenced by meswin_dialog_refresh(), and meswin_dialog_set_visited().
Update the message window dialog.
Definition at line 451 of file messagewin.c.
Referenced by meswin_dialog_popup(), and meswin_dialog_update().
|
static |
Definition at line 70 of file messagewin.c.
Referenced by meswin_dialog_is_open(), meswin_dialog_popdown(), meswin_dialog_popup(), and real_meswin_dialog_update().