Public Member Functions | Private Member Functions | Private Attributes

gui2::tmp_cmd_wrapper Class Reference

#include <mp_cmd_wrapper.hpp>

Inheritance diagram for gui2::tmp_cmd_wrapper:
Inheritance graph
[legend]
Collaboration diagram for gui2::tmp_cmd_wrapper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tmp_cmd_wrapper (const t_string &user)
 Constructor.
const std::string & message () const
const std::string & reason () const
const std::string & time () const

Private Member Functions

void pre_show (CVideo &video, twindow &window)
 Inherited from tdialog.
virtual const std::string & window_id () const
 Inherited from tdialog, implemented by REGISTER_DIALOG.

Private Attributes

std::string message_
 The message to send to another user.
std::string reason_
 The reason for an action; kick, ban.
std::string time_
 The duration of a ban.

Detailed Description

Definition at line 24 of file mp_cmd_wrapper.hpp.


Constructor & Destructor Documentation

gui2::tmp_cmd_wrapper::tmp_cmd_wrapper ( const t_string user  )  [explicit]

Constructor.

The text which shows the selected user.

Definition at line 70 of file mp_cmd_wrapper.cpp.


Member Function Documentation

const std::string& gui2::tmp_cmd_wrapper::message (  )  const [inline]

Definition at line 37 of file mp_cmd_wrapper.hpp.

References message_.

Referenced by mp::ui::handle_event().

Here is the caller graph for this function:

void gui2::tmp_cmd_wrapper::pre_show ( CVideo video,
twindow window 
) [private, virtual]

Inherited from tdialog.

Todo:
Not really happy with the retval code in general. Need to give it some more thought. Therefore seperated the set_retval from the set_active code.

Reimplemented from gui2::tdialog.

Definition at line 83 of file mp_cmd_wrapper.cpp.

const std::string& gui2::tmp_cmd_wrapper::reason (  )  const [inline]

Definition at line 38 of file mp_cmd_wrapper.hpp.

References reason_.

Referenced by mp::ui::handle_event().

Here is the caller graph for this function:

const std::string& gui2::tmp_cmd_wrapper::time (  )  const [inline]

Definition at line 39 of file mp_cmd_wrapper.hpp.

References time_.

Referenced by mp::ui::handle_event().

Here is the caller graph for this function:

virtual const std::string& gui2::tmp_cmd_wrapper::window_id (  )  const [private, virtual]

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.


Member Data Documentation

std::string gui2::tmp_cmd_wrapper::message_ [private]

The message to send to another user.

Definition at line 44 of file mp_cmd_wrapper.hpp.

Referenced by message().

std::string gui2::tmp_cmd_wrapper::reason_ [private]

The reason for an action; kick, ban.

Definition at line 47 of file mp_cmd_wrapper.hpp.

Referenced by reason().

std::string gui2::tmp_cmd_wrapper::time_ [private]

The duration of a ban.

Definition at line 50 of file mp_cmd_wrapper.hpp.

Referenced by time().


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

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