Freeciv-3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <gtk/gtk.h>
#include "fcintl.h"
#include "mem.h"
#include "shared.h"
#include "support.h"
#include "city.h"
#include "game.h"
#include "government.h"
#include "movement.h"
#include "nation.h"
#include "specialist.h"
#include "tech.h"
#include "unit.h"
#include "map.h"
#include "research.h"
#include "version.h"
#include "client_main.h"
#include "climisc.h"
#include "helpdata.h"
#include "options.h"
#include "tilespec.h"
#include "colors.h"
#include "graphics.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "helpdlg.h"
Go to the source code of this file.
Data Structures | |
struct | help_page_selection |
Macros | |
#define | TECH_TREE_DEPTH 20 |
#define | REQ_LABEL_NONE _("?tech:None") |
#define | REQ_LABEL_NEVER _("(Never)") |
|
static |
New topic activated from help dialog
Definition at line 469 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Add a line for an activity linking to help for result
Definition at line 1243 of file helpdlg.c.
Referenced by help_extras_of_act_for_terrain(), and help_update_terrain().
Create help dialog
Definition at line 509 of file helpdlg.c.
Referenced by popup_help_dialog_typed().
|
static |
Called by help_update_tech and itself Creates a node in the given tree for the given tech, and creates child nodes for any children it has up to levels deep. These are then expanded if they are less than expanded_levels deep. Avoids generating redundant subtrees, so that if Literacy occurs twice in a tech tree, only the first will have children. Color codes the node based on when it will be discovered: red >2 turns, yellow 1 turn, green 0 turns (discovered).
Definition at line 226 of file helpdlg.c.
Referenced by create_tech_tree(), help_update_tech(), help_update_unit_type(), and popup_tech_info().
Cut str to at max len bytes in a utf8 friendly way
Definition at line 1051 of file helpdlg.c.
Referenced by help_update_tech().
User gave response to help dialog
Definition at line 1731 of file helpdlg.c.
Referenced by create_help_dialog().
Set sensitivity of help dialog response buttons.
Definition at line 1708 of file helpdlg.c.
Referenced by activated_topic(), and help_command_callback().
Completely destroy help dialog
Definition at line 460 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Create widgets about all extras of one cause activity to the terrain.
Definition at line 1266 of file helpdlg.c.
Referenced by help_update_terrain().
|
static |
Create new hyperlink button
Definition at line 380 of file helpdlg.c.
Referenced by create_help_dialog(), help_hyperlink_new_page(), and help_slink_new().
|
static |
Create new hyperlink button for a known page
Definition at line 402 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Return path to help item.
Definition at line 1644 of file helpdlg.c.
Referenced by help_command_callback(), and select_help_item_string().
|
static |
Add item at path to selection and scroll to its cell
Definition at line 1618 of file helpdlg.c.
Referenced by help_command_callback(), and select_help_item_string().
Create new hyperlink button with text
Definition at line 411 of file helpdlg.c.
Referenced by help_slink_new_page().
Create new hyperlink button with text for known page
Definition at line 427 of file helpdlg.c.
Referenced by add_act_help_for_terrain(), and help_update_tech().
Initialize help system.
Definition at line 157 of file helpdlg.c.
Referenced by activate_gui(), and ui_main().
|
static |
Selects the help page for the tech in the tree that was double clicked.
Definition at line 312 of file helpdlg.c.
Referenced by create_help_dialog().
Called when "Collapse All" button is clicked
Definition at line 337 of file helpdlg.c.
Referenced by create_help_dialog().
Called when "Expand All" button is clicked
Definition at line 329 of file helpdlg.c.
Referenced by create_help_dialog().
Display updated help dialog
Definition at line 1559 of file helpdlg.c.
Referenced by activated_topic(), and help_command_callback().
Help page for extras.
Definition at line 1401 of file helpdlg.c.
Referenced by help_update_dialog().
This is currently just a text page, with special text:
Definition at line 1480 of file helpdlg.c.
Referenced by help_update_dialog().
This is currently just a text page, with special text:
Definition at line 1520 of file helpdlg.c.
Referenced by help_update_dialog().
Display updated help about improvement
Definition at line 876 of file helpdlg.c.
Referenced by help_update_dialog().
|
static |
Show nation flag and legend.
Definition at line 1539 of file helpdlg.c.
Referenced by help_update_dialog().
This is currently just a text page, with special text:
Definition at line 1500 of file helpdlg.c.
Referenced by help_update_dialog().
Display updated help about tech
Definition at line 1071 of file helpdlg.c.
Referenced by help_update_dialog().
Display updated help about terrain
Definition at line 1286 of file helpdlg.c.
Referenced by help_update_dialog().
Display updated help about unit type
Definition at line 986 of file helpdlg.c.
Referenced by help_update_dialog().
Display updated help about wonder
Definition at line 924 of file helpdlg.c.
Referenced by help_update_dialog().
Close help dialog
Definition at line 186 of file helpdlg.c.
Referenced by boot_help_texts(), exit_help_dlg_callback(), popdown_all_game_dialogs(), popup_impr_info(), popup_tech_info(), and popup_unit_info().
Not sure if this should call Q_(item) as it does, or whether all callers of this function should do so themselves... –dwp
Definition at line 212 of file helpdlg.c.
Referenced by help_about_callback(), help_about_callback(), help_callback(), help_callback(), help_chatline_callback(), help_chatline_callback(), help_cities_callback(), help_cities_callback(), help_cma_callback(), help_combat_callback(), help_combat_callback(), help_connecting_callback(), help_connecting_callback(), help_controls_callback(), help_controls_callback(), help_copying_callback(), help_copying_callback(), help_diplomacy_callback(), help_diplomacy_callback(), help_economy_callback(), help_economy_callback(), help_government_callback(), help_government_callback(), help_governor_callback(), help_improvements_callback(), help_improvements_callback(), help_language_callback(), help_language_callback(), help_musicset_callback(), help_musicset_callback(), help_nations_callback(), help_nations_callback(), help_overview_callback(), help_overview_callback(), help_playing_callback(), help_playing_callback(), help_policies_callback(), help_policies_callback(), help_ruleset_callback(), help_ruleset_callback(), help_space_race_callback(), help_space_race_callback(), help_tech_callback(), help_tech_callback(), help_terrain_callback(), help_terrain_callback(), help_tileset_callback(), help_tileset_callback(), help_units_callback(), help_units_callback(), help_wonders_callback(), help_wonders_callback(), help_worklist_editor_callback(), help_worklist_editor_callback(), help_zoc_callback(), and help_zoc_callback().
void popup_help_dialog_typed | ( | const char * | item, |
enum help_page_type | htype | ||
) |
Popup help dialog for given item of given type.
Definition at line 196 of file helpdlg.c.
Referenced by help_widget::anchor_clicked(), help_callback(), impr_callback(), impr_callback(), research_diagram::mousePressEvent(), popup_help_dialog_string(), science_diagram_button_release_callback(), science_diagram_right_button_up(), science_report_current_callback(), science_report_goal_callback(), show_tech_gained_dialog(), mr_menu::slot_help(), and wl_help_from_iter().
Add item to selection
Definition at line 1686 of file helpdlg.c.
Referenced by help_hyperlink_callback(), help_tech_tree_activated_callback(), and popup_help_dialog_typed().
|
static |
Set sprite to show for current extra.
Definition at line 848 of file helpdlg.c.
Referenced by help_update_extra().
Set sprite to show for current help item.
Definition at line 804 of file helpdlg.c.
Referenced by help_update_improvement(), help_update_nation(), help_update_tech(), help_update_unit_type(), and help_update_wonder().
Set sprite to show for current terrain.
Definition at line 817 of file helpdlg.c.
Referenced by help_update_terrain().
Set topic specific title for help_frame
Definition at line 173 of file helpdlg.c.
Referenced by help_update_dialog().
Definition at line 93 of file helpdlg.c.
Referenced by create_tech_tree(), and help_update_tech().
|
static |
Definition at line 74 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_dialog().
|
static |
Definition at line 64 of file helpdlg.c.
Referenced by create_help_dialog(), help_command_callback(), help_command_update(), help_destroy_callback(), popdown_help_dialog(), and popup_help_dialog_typed().
|
static |
Definition at line 91 of file helpdlg.c.
Referenced by create_help_dialog(), and help_update_extra().
|
static |
Definition at line 79 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_extra().
|
static |
Definition at line 69 of file helpdlg.c.
Referenced by create_help_dialog(), and set_title_topic().
|
static |
Definition at line 95 of file helpdlg.c.
Referenced by activated_topic(), create_help_dialog(), help_command_callback(), help_command_update(), and help_destroy_callback().
|
static |
Definition at line 96 of file helpdlg.c.
Referenced by activated_topic(), create_help_dialog(), help_command_callback(), and help_command_update().
|
static |
Definition at line 87 of file helpdlg.c.
Referenced by create_help_dialog(), and help_update_improvement().
|
static |
Definition at line 109 of file helpdlg.c.
Referenced by create_help_dialog(), help_system_init(), and help_update_improvement().
|
static |
Definition at line 75 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_improvement().
|
static |
Definition at line 70 of file helpdlg.c.
Referenced by client_option_help_text(), create_help_dialog(), help_update_dialog(), help_update_extra(), help_update_goods(), help_update_government(), help_update_improvement(), help_update_nation(), help_update_specialist(), help_update_terrain(), help_update_unit_type(), help_update_wonder(), and option_widget_new().
|
static |
Definition at line 71 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), help_update_dialog(), help_update_extra(), help_update_goods(), help_update_government(), help_update_improvement(), help_update_nation(), help_update_specialist(), help_update_terrain(), help_update_unit_type(), and help_update_wonder().
|
static |
Definition at line 73 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), set_help_tile_from_extra(), set_help_tile_from_sprite(), and set_help_tile_from_terrain().
|
static |
Definition at line 90 of file helpdlg.c.
Referenced by create_help_dialog(), and help_update_terrain().
|
static |
Definition at line 80 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Definition at line 86 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_tech().
|
static |
Definition at line 85 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Definition at line 84 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Definition at line 83 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_tech().
|
static |
Definition at line 78 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_terrain().
|
static |
Definition at line 89 of file helpdlg.c.
Referenced by create_help_dialog(), and help_update_unit_type().
|
static |
Definition at line 77 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_unit_type().
|
static |
Definition at line 72 of file helpdlg.c.
Referenced by add_act_help_for_terrain(), create_help_dialog(), help_box_add(), help_box_clear(), help_box_hide(), help_update_tech(), and help_update_terrain().
|
static |
Definition at line 67 of file helpdlg.c.
Referenced by create_help_dialog(), help_item_zoom(), and select_help_item_string().
|
static |
Definition at line 65 of file helpdlg.c.
Referenced by create_help_dialog().
|
static |
Definition at line 88 of file helpdlg.c.
Referenced by create_help_dialog(), and help_update_wonder().
|
static |
Definition at line 113 of file helpdlg.c.
Referenced by create_help_dialog(), help_system_init(), and help_update_wonder().
|
static |
Definition at line 76 of file helpdlg.c.
Referenced by create_help_dialog(), help_box_hide(), and help_update_wonder().
|
static |
Definition at line 115 of file helpdlg.c.
Referenced by help_hyperlink_new_page(), help_slink_new_page(), and help_system_init().
|
static |
Definition at line 81 of file helpdlg.c.
Referenced by create_help_dialog(), create_tech_tree(), help_tech_tree_activated_callback(), and help_update_tech().