15 #define GETTEXT_DOMAIN "wesnoth-lib"
39 #include <boost/math/common_factor_rt.hpp>
55 switch (initial_view) {
122 if (themes.empty()) {
124 _(
"No known themes. Try changing from within an existing game."));
131 for (
size_t k = 0; k < themes.size(); ++k) {
155 size_t offset = old_path.rfind(
"/");
156 if (offset != std::string::npos)
158 old_path = old_path.substr(0, offset);
166 #ifndef WESNOTH_PREFIX
167 #define WESNOTH_PREFIX "/usr"
175 const std::string filename =
"wesnothd.exe";
178 if (!old_path.empty()
186 symbols[
"filename"] = filename;
189 _(
"Find $filename server binary")
void set_turbo(bool ison)
void _set_turbo(bool ison)
void _set_grid(bool ison)
void set_preference_display_settings()
void show_wesnothd_server_search(CVideo &video)
static display * get_singleton()
Returns the display object if a display object exists.
std::string interpolate_variables_into_string(const std::string &str, const string_map *const symbols)
Function which will interpolate variables, starting with '$' in the string 'str' with the equivalent ...
void set(CURSOR_TYPE type)
Use the default parameter to reset cursors.
void set_selected_index(int index)
Sets the initially selected item index (-1 by default).
void set_grid(const bool grid)
Determines whether a grid should be overlayed on the game board.
void _set_color_cursors(bool value)
bool show(CVideo &video, const unsigned auto_close_time=0)
Shows the window.
void set_turbo(const bool turbo)
Set/Get whether 'turbo' mode is on.
void set_idle_anim_rate(int rate)
void save_turbo_speed(const double speed)
void set_selected_index(std::pair< int, int > index)
void show_transient_message(CVideo &video, const std::string &title, const std::string &message, const std::string &image, const bool message_use_markup, const bool title_use_markup, const bool restore_background)
Shows a transient message to the user.
bool show_theme_dialog(CVideo &video)
void set_mp_server_program_name(const std::string &path)
static UNUSEDNOWARN std::string _(const char *str)
std::string get(const std::string &key)
GLsizei const char ** path
std::map< std::string, t_string > string_map
void set_idle_anim_rate(int rate)
void set_theme(const std::string &theme)
void show_preferences_dialog(CVideo &video, const config &game_cfg, const DIALOG_OPEN_TO initial_view)
GLsizei const GLfloat * value
void set_turbo_speed(double speed)
void set_idle_anim(bool ison)
bool is_directory(const std::string &fname)
Returns true if the given file is a directory.
Modify, read and display user preferences.
int selected_index() const
Returns the selected item index after displaying.
int show_file_chooser_dialog(CVideo &video, std::string &filename, std::string const &title, bool show_directory_buttons, const std::string &type_a_head, int xloc, int yloc)
Show a dialog where the user can navigate through files and select a file.
map_display and display: classes which take care of displaying the map and game-data on the screen...
void set_color_cursors(bool value)
void _set_idle_anim(const bool ison)
std::string get_mp_server_program_name()
static std::vector< theme_info > get_known_themes()
void set_turbo_speed(const double speed)
Declarations for File-IO.
void set_idle_anim(bool ison)
control unit idle animations and their frequency
Standard logging facilities (interface).
A config object defines a single node in a WML file, with access to child nodes.
void _set_idle_anim_rate(const int rate)
GLsizei const GLcharARB ** string