The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | Private Member Functions | 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

unsigned int page_characters = 10000 / video::get_pixel_scale()
std::string data
std::vector< std::pair< std::size_t, int > > pages

Detailed Description

Definition at line 70 of file gamestate_inspector.cpp.

Member Function Documentation

◆ clear_data()

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

◆ count_pages()

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

Definition at line 100 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

◆ get_data_paged()

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

Definition at line 80 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 ( )

Definition at line 106 of file gamestate_inspector.cpp.

References data, gui2::container_base::end(), page_characters, pages, and editor::start().

Referenced by set_data().

◆ set_data()

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

Member Data Documentation

◆ data

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

◆ name

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

Definition at line 73 of file gamestate_inspector.cpp.

◆ page_characters

unsigned int gui2::dialogs::gamestate_inspector::model::page_characters = 10000 / video::get_pixel_scale()

Definition at line 127 of file gamestate_inspector.cpp.

Referenced by repaginate().

◆ pages

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

Definition at line 129 of file gamestate_inspector.cpp.

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

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