The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
gui2::tgame_version Class Reference

#include <game_version.hpp>

Inheritance diagram for gui2::tgame_version:
Inheritance graph

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::stringwindow_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_entrydeps_
 
std::vector
< game_config::optional_feature
opts_
 
std::string report_
 

Additional Inherited Members

- Protected Member Functions inherited from gui2::tdialog
tfield_boolregister_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_boolregister_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_integerregister_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_integerregister_integer (const std::string &id, const bool mandatory, int &linked_variable)
 Creates a new integer field. More...
 
tfield_textregister_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_textregister_text (const std::string &id, const bool mandatory, std::string &linked_variable, const bool capture_focus=false)
 Creates a new text field. More...
 
tfield_labelregister_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_labelregister_image (const std::string &id, const bool mandatory, const std::string &filename)
 Registers a new control as image. More...
 

Detailed Description

Definition at line 36 of file game_version.hpp.

Member Typedef Documentation

Definition at line 65 of file game_version.hpp.

Constructor & Destructor Documentation

gui2::tgame_version::tgame_version ( )

Member Function Documentation

void gui2::tgame_version::browse_directory_callback ( const std::string path)
private

Callback function for browse-directory action buttons.

Parameters
pathFilesystem path associated with the widget.

Definition at line 308 of file game_version.cpp.

References desktop::open_object().

Referenced by pre_show().

void gui2::tgame_version::copy_to_clipboard_callback ( const std::string path)
private

Callback function for copy-to-clipboard action buttons.

Parameters
pathFilesystem path associated with the widget.

Definition at line 313 of file game_version.cpp.

References desktop::clipboard::copy_to_clipboard().

Referenced by pre_show().

static void gui2::tgame_version::display ( CVideo video)
inlinestatic

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

void gui2::tgame_version::generate_plain_text_report ( )
private
void gui2::tgame_version::pre_show ( twindow window)
privatevirtual
void gui2::tgame_version::report_copy_callback ( )
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().

void gui2::tgame_version::tab_switch_callback ( twindow window)
private

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

virtual const std::string& gui2::tgame_version::window_id ( ) const
privatevirtual

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.

Member Data Documentation

const std::string gui2::tgame_version::browse_wid_stem_
private

Definition at line 57 of file game_version.hpp.

Referenced by pre_show().

const std::string gui2::tgame_version::copy_wid_stem_
private

Definition at line 56 of file game_version.hpp.

Referenced by pre_show().

std::vector<deplist_entry> gui2::tgame_version::deps_
private

Definition at line 66 of file game_version.hpp.

Referenced by pre_show().

std::vector<game_config::optional_feature> gui2::tgame_version::opts_
private

Definition at line 68 of file game_version.hpp.

Referenced by pre_show().

std::map<std::string, std::string> gui2::tgame_version::path_map_
private

Definition at line 59 of file game_version.hpp.

Referenced by generate_plain_text_report(), and pre_show().

const std::string gui2::tgame_version::path_wid_stem_
private

Definition at line 55 of file game_version.hpp.

Referenced by pre_show().

std::string gui2::tgame_version::report_
private

Definition at line 70 of file game_version.hpp.

Referenced by generate_plain_text_report(), and report_copy_callback().


The documentation for this class was generated from the following files: