Freeciv-3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "log.h"
#include "shared.h"
#include "string_vector.h"
#include "support.h"
#include "events.h"
#include "fcintl.h"
#include "government.h"
#include "multipliers.h"
#include "client_main.h"
#include "options.h"
#include "chatline.h"
#include "cityrep.h"
#include "dialogs.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "ratesdlg.h"
#include "gamedlgs.h"
Go to the source code of this file.
Functions | |
static void | rates_changed_callback (GtkWidget *range) |
static void | rates_set_values (int tax, int no_tax_scroll, int lux, int no_lux_scroll, int sci, int no_sci_scroll) |
static void | rates_command_callback (GtkWidget *w, gint response_id) |
static int | mult_to_scale (const struct multiplier *pmul, int val) |
static int | scale_to_mult (const struct multiplier *pmul, int scale) |
static gchar * | multiplier_value_callback (GtkScale *scale, gdouble value, void *udata) |
static void | multipliers_command_callback (GtkWidget *w, gint response_id) |
static void | multiplier_dialog_update_values (bool set_positions) |
void | real_multipliers_dialog_update (void *unused) |
static GtkWidget * | create_multiplier_dialog (void) |
void | popup_multiplier_dialog (void) |
static GtkWidget * | create_rates_dialog (void) |
void | popup_rates_dialog (void) |
Create multipliers dialog
Definition at line 308 of file gamedlgs.c.
Referenced by popup_multiplier_dialog().
Convert real multiplier display value to scale value
Definition at line 219 of file gamedlgs.c.
Referenced by create_multiplier_dialog(), multipler_rates_dialog::multipler_rates_dialog(), and multiplier_dialog_update_values().
Update values in multipliers dialog
Definition at line 266 of file gamedlgs.c.
Referenced by create_multiplier_dialog(), and real_multipliers_dialog_update().
Format value for multiplier scales
Definition at line 235 of file gamedlgs.c.
Referenced by create_multiplier_dialog().
User has responded to multipliers dialog
Definition at line 246 of file gamedlgs.c.
Referenced by create_multiplier_dialog().
Popup multipliers dialog
Definition at line 383 of file gamedlgs.c.
Referenced by multiplier_callback(), multiplier_callback(), and mr_menu::slot_popup_mult_rates().
Popup rates dialog
Definition at line 533 of file gamedlgs.c.
Referenced by side_rates_wdg(), mr_menu::slot_popup_tax_rates(), tax_rate_callback(), and tax_rate_callback().
User has responded to rates dialog
Definition at line 207 of file gamedlgs.c.
Referenced by create_rates_dialog().
|
static |
Set tax values to display
Definition at line 71 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_changed_callback().
Callback when server indicates multiplier values have changed
Definition at line 293 of file gamedlgs.c.
Referenced by multipliers_dialog_update().
Convert scale units to real multiplier display value
Definition at line 227 of file gamedlgs.c.
Referenced by multiplier_dialog_update_values(), multiplier_value_callback(), multipliers_command_callback(), and multipler_rates_dialog::slot_ok_button_pressed().
|
static |
Definition at line 58 of file gamedlgs.c.
Referenced by create_multiplier_dialog(), multipliers_command_callback(), popup_multiplier_dialog(), and real_multipliers_dialog_update().
|
static |
Definition at line 59 of file gamedlgs.c.
Referenced by create_multiplier_dialog(), multiplier_dialog_update_values(), and multipliers_command_callback().
|
static |
Definition at line 52 of file gamedlgs.c.
Referenced by create_rates_dialog(), popup_rates_dialog(), and rates_command_callback().
|
static |
Definition at line 53 of file gamedlgs.c.
Referenced by create_rates_dialog(), and popup_rates_dialog().
|
static |
Definition at line 55 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 56 of file gamedlgs.c.
Referenced by create_rates_dialog(), popup_rates_dialog(), rates_changed_callback(), and rates_set_values().
|
static |
Definition at line 61 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 54 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 64 of file gamedlgs.c.
Referenced by create_rates_dialog(), rates_changed_callback(), rates_command_callback(), and rates_set_values().
|
static |
Definition at line 55 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 56 of file gamedlgs.c.
Referenced by create_rates_dialog(), popup_rates_dialog(), and rates_set_values().
|
static |
Definition at line 61 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 54 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 64 of file gamedlgs.c.
Referenced by create_rates_dialog(), rates_changed_callback(), rates_command_callback(), and rates_set_values().
|
static |
Definition at line 55 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 56 of file gamedlgs.c.
Referenced by create_rates_dialog(), popup_rates_dialog(), rates_changed_callback(), and rates_set_values().
|
static |
Definition at line 61 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 54 of file gamedlgs.c.
Referenced by create_rates_dialog(), and rates_set_values().
|
static |
Definition at line 64 of file gamedlgs.c.
Referenced by create_rates_dialog(), rates_changed_callback(), rates_command_callback(), and rates_set_values().