Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
infradlg.c File Reference
#include <gtk/gtk.h>
#include "fcintl.h"
#include "extras.h"
#include "game.h"
#include "client_main.h"
#include "dialogs_g.h"
#include "mapview_common.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "infradlg.h"

Go to the source code of this file.

Data Structures

struct  infra_cb_data
 

Functions

static bool infra_dialog_open (void)
 
static void infra_response_callback (GtkWidget *dlg, gint arg)
 
static void infra_selected_callback (GtkButton *but, gpointer userdata)
 
void infra_dialog_popup (void)
 
void update_infra_dialog (void)
 
bool infra_placement_mode (void)
 
void infra_placement_set_tile (struct tile *ptile)
 

Variables

static GtkWidgetinfra_list_grid = NULL
 
static GtkWidgetinstruction_label = NULL
 
static GtkWidgetpoints_label = NULL
 
static int infra_rows = 0
 

Function Documentation

◆ infra_dialog_open()

static bool infra_dialog_open ( void  )
static

Is infra dialog currently open?

Definition at line 51 of file infradlg.c.

Referenced by infra_dialog_popup(), and update_infra_dialog().

◆ infra_dialog_popup()

void infra_dialog_popup ( void  )

Open infra placement dialog

Definition at line 85 of file infradlg.c.

Referenced by infra_dialog_callback(), and infra_dialog_callback().

◆ infra_placement_mode()

bool infra_placement_mode ( void  )

Are we in infra placement mode at the moment?

Definition at line 155 of file infradlg.c.

Referenced by butt_down_mapcanvas(), and left_butt_down_mapcanvas().

◆ infra_placement_set_tile()

void infra_placement_set_tile ( struct tile ptile)

Set tile for the infra placement.

Definition at line 163 of file infradlg.c.

Referenced by butt_down_mapcanvas(), and left_butt_down_mapcanvas().

◆ infra_response_callback()

static void infra_response_callback ( GtkWidget dlg,
gint  arg 
)
static

Handle infra dialog closing.

Definition at line 59 of file infradlg.c.

Referenced by infra_dialog_popup().

◆ infra_selected_callback()

static void infra_selected_callback ( GtkButton but,
gpointer  userdata 
)
static

Handle user infra selection.

Definition at line 74 of file infradlg.c.

Referenced by infra_placement_set_tile().

◆ update_infra_dialog()

void update_infra_dialog ( void  )

Refresh infra dialog

Definition at line 138 of file infradlg.c.

Referenced by handle_player_info(), and infra_dialog_popup().

Variable Documentation

◆ infra_list_grid

GtkWidget* infra_list_grid = NULL
static

◆ infra_rows

int infra_rows = 0
static

Definition at line 41 of file infradlg.c.

Referenced by infra_placement_set_tile(), and infra_response_callback().

◆ instruction_label

GtkWidget* instruction_label = NULL
static

◆ points_label

GtkWidget* points_label = NULL
static

Definition at line 40 of file infradlg.c.

Referenced by infra_dialog_popup(), infra_response_callback(), and update_infra_dialog().