The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions
preferences::editor Namespace Reference

Namespaces

 TransitionUpdateMode
 

Functions

int auto_update_transitions ()
 
void set_auto_update_transitions (int value)
 
std::string default_dir ()
 
bool draw_terrain_codes ()
 
void set_draw_terrain_codes (bool value)
 
bool draw_hex_coordinates ()
 
void set_draw_hex_coordinates (bool value)
 
bool draw_num_of_bitmaps ()
 
void set_draw_num_of_bitmaps (bool value)
 
std::vector< std::string > recent_files ()
 Retrieves the list of recently opened files. More...
 
void add_recent_files_entry (const std::string &path)
 Adds an entry to the recent files list. More...
 
void remove_recent_files_entry (const std::string &path)
 Removes a single entry from the recent files list. More...
 

Function Documentation

void preferences::editor::add_recent_files_entry ( const std::string &  path)

Adds an entry to the recent files list.

Definition at line 124 of file editor.cpp.

References game_config::path, and gui2::dialogs::tip::remove().

Referenced by editor::map_context::add_to_recent_files().

int preferences::editor::auto_update_transitions ( )
std::string preferences::editor::default_dir ( )

Definition at line 33 of file editor.cpp.

References preferences::get().

Referenced by gui2::dialogs::custom_tod::select_file().

bool preferences::editor::draw_hex_coordinates ( )

Definition at line 45 of file editor.cpp.

References preferences::get().

Referenced by editor::editor_controller::init_gui().

bool preferences::editor::draw_num_of_bitmaps ( )

Definition at line 53 of file editor.cpp.

References preferences::get().

Referenced by editor::editor_controller::init_gui().

bool preferences::editor::draw_terrain_codes ( )

Definition at line 37 of file editor.cpp.

References preferences::get().

Referenced by editor::editor_controller::init_gui().

std::vector< std::string > preferences::editor::recent_files ( )

Retrieves the list of recently opened files.

Definition at line 119 of file editor.cpp.

Referenced by editor::context_manager::expand_load_mru_menu(), and editor::context_manager::load_mru_item().

void preferences::editor::remove_recent_files_entry ( const std::string &  path)

Removes a single entry from the recent files list.

Definition at line 142 of file editor.cpp.

References game_config::path, and gui2::dialogs::tip::remove().

void preferences::editor::set_auto_update_transitions ( int  value)
void preferences::editor::set_draw_hex_coordinates ( bool  value)

Definition at line 49 of file editor.cpp.

References preferences::set().

Referenced by editor::editor_controller::execute_command().

void preferences::editor::set_draw_num_of_bitmaps ( bool  value)

Definition at line 57 of file editor.cpp.

References preferences::set().

Referenced by editor::editor_controller::execute_command().

void preferences::editor::set_draw_terrain_codes ( bool  value)

Definition at line 41 of file editor.cpp.

References preferences::set().

Referenced by editor::editor_controller::execute_command().