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

Public Member Functions

 model (const vconfig &c, const replay &r)
 
void clear_chat_msg_list ()
 
int count_of_pages () const
 
void stream_log (std::ostringstream &s, int first, int last, bool raw=false)
 
void populate_chat_message_list (int first, int last)
 
void chat_message_list_to_clipboard (int first, int last)
 

Public Attributes

vconfig cfg
 
styled_widgetmsg_label
 
const std::vector< chat_msg > & chat_log_history
 
int page
 
sliderpage_number
 
styled_widgetpage_label
 
buttonprevious_page
 
buttonnext_page
 
text_boxfilter
 
buttoncopy_button
 

Static Public Attributes

static const int COUNT_PER_PAGE = 100
 

Detailed Description

Definition at line 52 of file chat_log.cpp.

Constructor & Destructor Documentation

◆ model()

gui2::dialogs::chat_log::model::model ( const vconfig c,
const replay r 
)
inline

Definition at line 55 of file chat_log.cpp.

References LOG_CHAT_LOG.

Member Function Documentation

◆ chat_message_list_to_clipboard()

void gui2::dialogs::chat_log::model::chat_message_list_to_clipboard ( int  first,
int  last 
)
inline

◆ clear_chat_msg_list()

void gui2::dialogs::chat_log::model::clear_chat_msg_list ( )
inline

Definition at line 83 of file chat_log.cpp.

References gui2::styled_widget::set_label().

◆ count_of_pages()

int gui2::dialogs::chat_log::model::count_of_pages ( ) const
inline

◆ populate_chat_message_list()

void gui2::dialogs::chat_log::model::populate_chat_message_list ( int  first,
int  last 
)
inline

◆ stream_log()

void gui2::dialogs::chat_log::model::stream_log ( std::ostringstream &  s,
int  first,
int  last,
bool  raw = false 
)
inline

Member Data Documentation

◆ cfg

vconfig gui2::dialogs::chat_log::model::cfg

Definition at line 71 of file chat_log.cpp.

◆ chat_log_history

const std::vector<chat_msg>& gui2::dialogs::chat_log::model::chat_log_history

◆ copy_button

button* gui2::dialogs::chat_log::model::copy_button

Definition at line 81 of file chat_log.cpp.

Referenced by gui2::dialogs::chat_log::view::bind().

◆ COUNT_PER_PAGE

const int gui2::dialogs::chat_log::model::COUNT_PER_PAGE = 100
static

◆ filter

text_box* gui2::dialogs::chat_log::model::filter

Definition at line 80 of file chat_log.cpp.

Referenced by gui2::dialogs::chat_log::view::bind().

◆ msg_label

styled_widget* gui2::dialogs::chat_log::model::msg_label

◆ next_page

button* gui2::dialogs::chat_log::model::next_page

◆ page

int gui2::dialogs::chat_log::model::page

◆ page_label

styled_widget* gui2::dialogs::chat_log::model::page_label

◆ page_number

slider* gui2::dialogs::chat_log::model::page_number

◆ previous_page

button* gui2::dialogs::chat_log::model::previous_page

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