Public Member Functions | Public Attributes | Static Public Attributes

gui2::tchat_log::model Class Reference

Collaboration diagram for gui2::tchat_log::model:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 model (const vconfig &c, replay *r)
void clear_chat_msg_list ()
std::string replace (std::string str, const std::string &src, const std::string &dst)
std::string escape (const std::string &str)
int count_of_pages ()
void populate_chat_message_list (int first, int last)

Public Attributes

vconfig cfg
tcontrolmsg_label
const std::vector< chat_msg > & chat_log_history
int page
tsliderpage_number
tbuttonprevious_page
tbuttonnext_page

Static Public Attributes

static const int COUNT_PER_PAGE = 1000

Detailed Description

Definition at line 64 of file chat_log.cpp.


Constructor & Destructor Documentation

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

Definition at line 66 of file chat_log.cpp.

References LOG_CHAT_LOG.


Member Function Documentation

void gui2::tchat_log::model::clear_chat_msg_list (  )  [inline]

Definition at line 88 of file chat_log.cpp.

References gui2::tcontrol::set_label().

Here is the call graph for this function:

int gui2::tchat_log::model::count_of_pages (  )  [inline]

Definition at line 111 of file chat_log.cpp.

Referenced by gui2::tchat_log::controller::next_page(), and gui2::tchat_log::controller::update_view_from_model().

Here is the caller graph for this function:

std::string gui2::tchat_log::model::escape ( const std::string &  str  )  [inline]

Definition at line 102 of file chat_log.cpp.

void gui2::tchat_log::model::populate_chat_message_list ( int  first,
int  last 
) [inline]

Definition at line 117 of file chat_log.cpp.

References chat_msg::color(), help::escape(), LOG_CHAT_LOG, chat_msg::nick(), gui2::tcontrol::set_label(), and chat_msg::text().

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

Here is the call graph for this function:

Here is the caller graph for this function:

std::string gui2::tchat_log::model::replace ( std::string  str,
const std::string &  src,
const std::string &  dst 
) [inline]

Definition at line 93 of file chat_log.cpp.

References pos.


Member Data Documentation

Definition at line 79 of file chat_log.cpp.

Definition at line 81 of file chat_log.cpp.

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

const int gui2::tchat_log::model::COUNT_PER_PAGE = 1000 [static]

Definition at line 83 of file chat_log.cpp.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:00 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs