The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
gui2::dialogs::gamestate_inspector::model Class Reference

Public Member Functions

std::string get_data_full () const
 
std::string get_data_paged (int which_page)
 
void clear_data ()
 
void set_data (const std::string &new_data)
 
int count_pages ()
 

Public Attributes

std::string name
 

Private Member Functions

void repaginate ()
 

Private Attributes

std::string data
 
std::vector< std::pair< std::size_t, int > > pages
 

Static Private Attributes

static const unsigned int max_inspect_win_len = 20000
 

Detailed Description

Definition at line 99 of file gamestate_inspector.cpp.

Member Function Documentation

◆ clear_data()

void gui2::dialogs::gamestate_inspector::model::clear_data ( )
inline

◆ count_pages()

int gui2::dialogs::gamestate_inspector::model::count_pages ( )
inline

Definition at line 128 of file gamestate_inspector.cpp.

References pages.

Referenced by gui2::dialogs::gamestate_inspector::view::update().

◆ get_data_full()

std::string gui2::dialogs::gamestate_inspector::model::get_data_full ( ) const
inline

Definition at line 104 of file gamestate_inspector.cpp.

References data.

◆ get_data_paged()

std::string gui2::dialogs::gamestate_inspector::model::get_data_paged ( int  which_page)
inline

Definition at line 109 of file gamestate_inspector.cpp.

References data, and pages.

Referenced by gui2::dialogs::gamestate_inspector::view::update().

◆ repaginate()

void gui2::dialogs::gamestate_inspector::model::repaginate ( )
inlineprivate

Definition at line 134 of file gamestate_inspector.cpp.

References data, max_inspect_win_len, pages, and editor::start().

Referenced by set_data().

◆ set_data()

void gui2::dialogs::gamestate_inspector::model::set_data ( const std::string &  new_data)
inline

Member Data Documentation

◆ data

std::string gui2::dialogs::gamestate_inspector::model::data
private

◆ max_inspect_win_len

const unsigned int gui2::dialogs::gamestate_inspector::model::max_inspect_win_len = 20000
staticprivate

Definition at line 148 of file gamestate_inspector.cpp.

Referenced by repaginate().

◆ name

std::string gui2::dialogs::gamestate_inspector::model::name

◆ pages

std::vector<std::pair<std::size_t,int> > gui2::dialogs::gamestate_inspector::model::pages
private

Definition at line 150 of file gamestate_inspector.cpp.

Referenced by count_pages(), get_data_paged(), and repaginate().


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