The Battle for Wesnoth  1.15.0-dev
Enumerations | Functions
preferences::editor Namespace Reference

Enumerations

enum  TRANSITION_UPDATE_MODE : int { TRANSITION_UPDATE_OFF = 0, TRANSITION_UPDATE_ON = 1, TRANSITION_UPDATE_PARTIAL = 2, TRANSITION_UPDATE_COUNT = 3 }
 

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...
 

Enumeration Type Documentation

◆ TRANSITION_UPDATE_MODE

Enumerator
TRANSITION_UPDATE_OFF 
TRANSITION_UPDATE_ON 
TRANSITION_UPDATE_PARTIAL 
TRANSITION_UPDATE_COUNT 

Definition at line 24 of file editor.hpp.

Function Documentation

◆ add_recent_files_entry()

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

Adds an entry to the recent files list.

Definition at line 123 of file editor.cpp.

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

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

◆ auto_update_transitions()

int preferences::editor::auto_update_transitions ( )

Definition at line 24 of file editor.cpp.

References preferences::get(), and TRANSITION_UPDATE_PARTIAL.

◆ default_dir()

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

Definition at line 32 of file editor.cpp.

References preferences::get().

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

◆ draw_hex_coordinates()

bool preferences::editor::draw_hex_coordinates ( )

Definition at line 44 of file editor.cpp.

References preferences::get().

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

◆ draw_num_of_bitmaps()

bool preferences::editor::draw_num_of_bitmaps ( )

Definition at line 52 of file editor.cpp.

References preferences::get().

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

◆ draw_terrain_codes()

bool preferences::editor::draw_terrain_codes ( )

Definition at line 36 of file editor.cpp.

References preferences::get().

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

◆ recent_files()

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

Retrieves the list of recently opened files.

Definition at line 118 of file editor.cpp.

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

◆ remove_recent_files_entry()

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

Removes a single entry from the recent files list.

Definition at line 141 of file editor.cpp.

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

◆ set_auto_update_transitions()

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

◆ set_draw_hex_coordinates()

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

Definition at line 48 of file editor.cpp.

References preferences::set().

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

◆ set_draw_num_of_bitmaps()

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

◆ set_draw_terrain_codes()

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

Definition at line 40 of file editor.cpp.

References preferences::set().

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