16 #define GETTEXT_DOMAIN "wesnoth-lib"
57 , path_wid_stem_("path_")
58 , copy_wid_stem_("copy_")
59 , browse_wid_stem_("browse_")
65 , start_page_(start_page)
91 generate_plain_text_report();
135 const std::string& path_id = path_ent.first;
158 button& stderr_button = find_widget<button>(
"open_stderr");
170 listbox& deps_listbox = find_widget<listbox>(
"deps_listbox");
172 for(
const auto& dep :
deps_)
174 list_data[
"dep_name"][
"label"] = dep[0];
175 list_data[
"dep_build_version"][
"label"] = dep[1];
181 deps_listbox.
add_row(list_data);
192 listbox& opts_listbox = find_widget<listbox>(
"opts_listbox");
194 for(
const auto& opt :
opts_)
196 list_data[
"opt_name"][
"label"] = opt.name;
197 list_data[
"opt_status"][
"label"] = opt.enabled ? text_feature_on : text_feature_off;
198 list_data[
"opt_status"][
"use_markup"] =
"true";
200 opts_listbox.
add_row(list_data);
244 find_widget<button>(btn_id).set_success(
true);
250 find_widget<button>(
"copy_all").set_success(
true);
259 gui2::dialogs::end_credits::display();
const std::string path_wid_stem_
The display function.
void report_issue()
Open browser to report issue.
std::array< std::string, 4 > deplist_entry
const std::string copy_wid_stem_
const std::string browse_wid_stem_
void report_copy_callback()
Callback function for the dialog-wide copy-to-clipboard button.
std::map< std::string, std::string > path_map_
const std::string log_path_
path to current log file
void show_license()
Show license.
void run_migrator()
Re-runs the version migration dialog.
void show_credits_dialog()
Show credits dialogs.
std::vector< deplist_entry > deps_
void generate_plain_text_report()
void copy_to_clipboard_callback(const std::string &path, const std::string &btn_id)
Callback function for copy-to-clipboard action buttons.
void browse_directory_callback(const std::string &path)
Callback function for browse-directory action buttons.
std::vector< game_config::optional_feature > opts_
virtual void pre_show() override
Actions to be taken before showing the window.
void show_manual()
Opens the game manual in the platform's browser.
@ auto_close
Enables auto close.
Abstract base class for all modal dialogs.
grid & add_row(const widget_item &item, const int index=-1)
When an item in the list is selected by the user we need to update the state.
bool select_row(const unsigned row, const bool select=true)
Selects a row.
A container widget that shows one of its pages of widgets depending on which tab the user clicked.
void select_tab(unsigned index)
Abstract base class for text items.
virtual void set_value(const std::string &text)
The set_value is virtual for the password_box class.
Platform identification and version information functions.
Declarations for File-IO.
static std::string _(const char *str)
const language_def & get_language()
void copy_to_clipboard(const std::string &text)
Copies text to the clipboard.
bool open_object([[maybe_unused]] const std::string &path_or_url)
constexpr bool open_object_is_supported()
Returns whether open_object() is supported/implemented for the current platform.
std::string os_version()
Returns a string with the running OS name and version information.
std::string get_cache_dir()
std::string get_user_data_dir()
static bool file_exists(const bfs::path &fpath)
std::string get_saves_dir()
std::string get_screenshot_dir()
std::string get_logs_dir()
std::string get_addons_dir()
std::string normalize_path(const std::string &fpath, bool normalize_separators, bool resolve_dot_entries)
Returns the absolute path of a file.
const std::string unicode_em_dash
Game configuration data as global variables.
const std::string & library_name(LIBRARY_ID lib)
Retrieve the user-visible name for the given library.
std::string full_build_report()
Produce a bug report-style info dump.
std::vector< optional_feature > optional_features_table(bool localize)
Retrieve the features table.
const std::string & library_runtime_version(LIBRARY_ID lib)
Retrieve the runtime version number of the given library.
const std::string & library_build_version(LIBRARY_ID lib)
Retrieve the build-time version number of the given library.
std::string build_arch()
Obtain the processor architecture for this build.
const std::string revision
REGISTER_DIALOG(editor_edit_unit)
void connect_signal_mouse_left_click(dispatcher &dispatcher, const signal &signal)
Connects a signal handler for a left mouse button click.
std::map< std::string, widget_item > widget_data
void show_message(const std::string &title, const std::string &msg, const std::string &button_caption, const bool auto_close, const bool message_use_markup, const bool title_use_markup)
Shows a message to the user.
void show_help(const std::string &show_topic)
Open the help browser, show topic with id show_topic.
std::string get_log_file_path()
std::string italic(Args &&... data)
std::string span_color(const color_t &color, Args &&... data)
std::map< std::string, t_string > string_map
std::vector< std::string > split(const config_attribute_value &val)
Desktop environment interaction functions.