#include <game_version.hpp>
Public Member Functions | |
tgame_version () | |
Constructor. More... | |
Public Member Functions inherited from gui2::tdialog | |
tdialog () | |
virtual | ~tdialog () |
bool | show (CVideo &video, const unsigned auto_close_time=0) |
Shows the window. More... | |
int | get_retval () const |
void | set_always_save_fields (const bool always_save_fields) |
void | set_restore (const bool restore) |
Static Public Member Functions | |
static void | display (CVideo &video) |
The display function. More... | |
Private Types | |
typedef boost::array < std::string, 4 > | deplist_entry |
Private Member Functions | |
void | generate_plain_text_report () |
virtual const std::string & | window_id () const |
Inherited from tdialog, implemented by REGISTER_DIALOG. More... | |
void | pre_show (twindow &window) |
Inherited from tdialog. More... | |
void | tab_switch_callback (twindow &window) |
Callback function called when switching tabs. More... | |
void | report_copy_callback () |
Callback function for the dialog-wide copy-to-clipboard button. More... | |
void | copy_to_clipboard_callback (const std::string &path) |
Callback function for copy-to-clipboard action buttons. More... | |
void | browse_directory_callback (const std::string &path) |
Callback function for browse-directory action buttons. More... | |
Private Attributes | |
const std::string | path_wid_stem_ |
const std::string | copy_wid_stem_ |
const std::string | browse_wid_stem_ |
std::map< std::string, std::string > | path_map_ |
std::vector< deplist_entry > | deps_ |
std::vector < game_config::optional_feature > | opts_ |
std::string | report_ |
Additional Inherited Members | |
Protected Member Functions inherited from gui2::tdialog | |
tfield_bool * | register_bool (const std::string &id, const bool mandatory, const std::function< bool()> &callback_load_value=std::function< bool()>(), const std::function< void(const bool)> &callback_save_value=std::function< void(const bool)>(), const std::function< void(twidget &)> &callback_change=std::function< void(twidget &)>()) |
Creates a new boolean field. More... | |
tfield_bool * | register_bool (const std::string &id, const bool mandatory, bool &linked_variable, const std::function< void(twidget &)> &callback_change=std::function< void(twidget &)>()) |
Creates a new boolean field. More... | |
tfield_integer * | register_integer (const std::string &id, const bool mandatory, const std::function< int()> &callback_load_value=std::function< int()>(), const std::function< void(const int)> &callback_save_value=std::function< void(const int)>()) |
Creates a new integer field. More... | |
tfield_integer * | register_integer (const std::string &id, const bool mandatory, int &linked_variable) |
Creates a new integer field. More... | |
tfield_text * | register_text (const std::string &id, const bool mandatory, const std::function< std::string()> &callback_load_value=std::function< std::string()>(), const std::function< void(const std::string &)> &callback_save_value=std::function< void(const std::string &)>(), const bool capture_focus=false) |
Creates a new text field. More... | |
tfield_text * | register_text (const std::string &id, const bool mandatory, std::string &linked_variable, const bool capture_focus=false) |
Creates a new text field. More... | |
tfield_label * | register_label (const std::string &id, const bool mandatory, const std::string &text, const bool use_markup=false) |
Registers a new control as a label. More... | |
tfield_label * | register_image (const std::string &id, const bool mandatory, const std::string &filename) |
Registers a new control as image. More... | |
Definition at line 36 of file game_version.hpp.
|
private |
Definition at line 65 of file game_version.hpp.
gui2::tgame_version::tgame_version | ( | ) |
Constructor.
Definition at line 90 of file game_version.cpp.
References e, filesystem::get_addons_dir(), filesystem::get_cache_dir(), filesystem::get_saves_dir(), filesystem::get_user_config_dir(), filesystem::get_user_data_dir(), game_config::LIB_COUNT, game_config::library_build_version(), game_config::library_name(), game_config::library_runtime_version(), and game_config::path.
Referenced by display().
|
private |
Callback function for browse-directory action buttons.
path | Filesystem path associated with the widget. |
Definition at line 308 of file game_version.cpp.
References desktop::open_object().
Referenced by pre_show().
|
private |
Callback function for copy-to-clipboard action buttons.
path | Filesystem path associated with the widget. |
Definition at line 313 of file game_version.cpp.
References desktop::clipboard::copy_to_clipboard().
Referenced by pre_show().
The display function.
See tdialog for more information.
Definition at line 49 of file game_version.hpp.
References tgame_version().
Referenced by gui2::ttitle_screen::pre_show().
|
private |
Definition at line 323 of file game_version.cpp.
References game_config::library_versions_report(), game_config::optional_features_report(), desktop::os_version(), path_map_, report_, and game_config::revision.
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 127 of file game_version.cpp.
References _(), gui2::tlistbox::add_row(), desktop::clipboard::available(), browse_directory_callback(), browse_wid_stem_, gui2::event::connect_signal_mouse_left_click(), gui2::event::connect_signal_notify_modified(), copy_to_clipboard_callback(), copy_wid_stem_, deps_, gui2::tlistbox::get_item_count(), gui2::tstacked_widget::get_layer_count(), gui2::twidget::tvisible::invisible, desktop::open_object_is_supported(), opts_, desktop::os_version(), path_map_, path_wid_stem_, report_copy_callback(), game_config::revision, gui2::tstacked_widget::select_layer(), gui2::tlistbox::select_row(), gui2::tbutton::set_active(), gui2::ttext_::set_active(), gui2::tlistbox::set_callback_value_change(), gui2::tcontrol::set_label(), gui2::ttext_::set_value(), gui2::twidget::set_visible(), tab_switch_callback(), VALIDATE, and VGETTEXT.
|
private |
Callback function for the dialog-wide copy-to-clipboard button.
Definition at line 318 of file game_version.cpp.
References desktop::clipboard::copy_to_clipboard(), and report_.
Referenced by pre_show().
Callback function called when switching tabs.
Definition at line 298 of file game_version.cpp.
References gui2::tstacked_widget::select_layer().
Referenced by pre_show().
|
privatevirtual |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
|
private |
Definition at line 57 of file game_version.hpp.
Referenced by pre_show().
|
private |
Definition at line 56 of file game_version.hpp.
Referenced by pre_show().
|
private |
Definition at line 66 of file game_version.hpp.
Referenced by pre_show().
|
private |
Definition at line 68 of file game_version.hpp.
Referenced by pre_show().
|
private |
Definition at line 59 of file game_version.hpp.
Referenced by generate_plain_text_report(), and pre_show().
|
private |
Definition at line 55 of file game_version.hpp.
Referenced by pre_show().
|
private |
Definition at line 70 of file game_version.hpp.
Referenced by generate_plain_text_report(), and report_copy_callback().