The Battle for Wesnoth  1.13.4+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)
 
std::vector< std::stringrecent_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 116 of file editor_preferences.cpp.

References schema_validation::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_preferences.cpp.

References preferences::get().

Referenced by gui2::tcustom_tod::select_file().

bool preferences::editor::draw_hex_coordinates ( )

Definition at line 45 of file editor_preferences.cpp.

References preferences::get().

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

bool preferences::editor::draw_terrain_codes ( )

Definition at line 37 of file editor_preferences.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 111 of file editor_preferences.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 134 of file editor_preferences.cpp.

References schema_validation::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_preferences.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_preferences.cpp.

References preferences::set().

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