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

Public Member Functions

 model (const vconfig &c, replay *r)
 
void clear_chat_msg_list ()
 
int count_of_pages ()
 
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
 
tcontrolmsg_label
 
const std::vector< chat_msg > & chat_log_history
 
int page
 
tsliderpage_number
 
tcontrolpage_label
 
tbuttonprevious_page
 
tbuttonnext_page
 
ttext_boxfilter
 
tbuttoncopy_button
 

Static Public Attributes

static const int COUNT_PER_PAGE = 100
 

Detailed Description

Definition at line 68 of file chat_log.cpp.

Constructor & Destructor Documentation

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

Definition at line 71 of file chat_log.cpp.

References LOG_CHAT_LOG.

Member Function Documentation

void gui2::tchat_log::model::chat_message_list_to_clipboard ( int  first,
int  last 
)
inline
void gui2::tchat_log::model::clear_chat_msg_list ( )
inline

Definition at line 99 of file chat_log.cpp.

References gui2::tcontrol::set_label().

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

Member Data Documentation

vconfig gui2::tchat_log::model::cfg

Definition at line 87 of file chat_log.cpp.

const std::vector<chat_msg>& gui2::tchat_log::model::chat_log_history
tbutton* gui2::tchat_log::model::copy_button

Definition at line 97 of file chat_log.cpp.

Referenced by gui2::tchat_log::view::bind().

const int gui2::tchat_log::model::COUNT_PER_PAGE = 100
static

Definition at line 91 of file chat_log.cpp.

Referenced by gui2::tchat_log::controller::calculate_log_line_range().

ttext_box* gui2::tchat_log::model::filter

Definition at line 96 of file chat_log.cpp.

Referenced by gui2::tchat_log::view::bind().

tcontrol* gui2::tchat_log::model::msg_label
tbutton* gui2::tchat_log::model::next_page
int gui2::tchat_log::model::page
tcontrol* gui2::tchat_log::model::page_label
tslider* gui2::tchat_log::model::page_number
tbutton* gui2::tchat_log::model::previous_page

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