Freeciv-3.1
|
#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 } |
Functions | |
static GtkListStore * | meswin_dialog_store_new (void) |
static void | meswin_dialog_visited_get_attr (bool visited, gint *weight, gint *style) |
static void | meswin_dialog_set_visited (GtkTreeModel *model, GtkTreeIter *iter, bool visited) |
static void | meswin_dialog_refresh (struct meswin_dialog *pdialog) |
static void | meswin_dialog_selection_callback (GtkTreeSelection *selection, gpointer data) |
static void | meswin_dialog_row_activated_callback (GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col, gpointer data) |
static gboolean | meswin_dialog_button_press_callback (GtkGestureClick *gesture, int n_press, double x, double y) |
static void | meswin_dialog_response_callback (struct gui_dialog *pgui_dialog, int response, gpointer data) |
static void | meswin_dialog_init (struct meswin_dialog *pdialog) |
static void | meswin_dialog_free (struct meswin_dialog *pdialog) |
void | meswin_dialog_popup (bool raise) |
void | meswin_dialog_popdown (void) |
bool | meswin_dialog_is_open (void) |
void | real_meswin_dialog_update (void *unused) |
Variables | |
static struct meswin_dialog | meswin = { NULL, } |
enum meswin_columns |
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.
enum meswin_responses |
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.
|
static |
Closes a message window dialog.
Definition at line 407 of file messagewin.c.
|
static |
Initialize a message window dialog.
Definition at line 317 of file messagewin.c.
bool meswin_dialog_is_open | ( | void | ) |
Return TRUE iff the message window is open.
Definition at line 446 of file messagewin.c.
void meswin_dialog_popdown | ( | void | ) |
Closes the message window dialog.
Definition at line 435 of file messagewin.c.
void meswin_dialog_popup | ( | bool | raise | ) |
Popup the dialog inside the main-window, and optionally raise it.
Definition at line 420 of file messagewin.c.
|
static |
Refresh a message window dialog.
Definition at line 119 of file messagewin.c.
|
static |
Dialog response callback.
Definition at line 278 of file messagewin.c.
|
static |
A row has been activated by the user.
Definition at line 221 of file messagewin.c.
|
static |
Selection changed callback.
Definition at line 196 of file messagewin.c.
|
static |
Set the visited state of the store.
Definition at line 102 of file messagewin.c.
|
static |
Create a tree model for the message window.
Definition at line 75 of file messagewin.c.
|
static |
Get the pango attributes for the visited state.
Definition at line 88 of file messagewin.c.
void real_meswin_dialog_update | ( | void * | unused | ) |
Update the message window dialog.
Definition at line 454 of file messagewin.c.
|
static |
Definition at line 70 of file messagewin.c.