Public Member Functions | Public Attributes

gui2::tsub_player_list Struct Reference

#include <lobby_main.hpp>

Collaboration diagram for gui2::tsub_player_list:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void init (twindow &w, const std::string &id)
void show_toggle_callback (twidget *widget)
void auto_hide ()

Public Attributes

tlabellabel
tlabelcount
ttoggle_buttonshow_toggle
tlistboxlist
ttree_view_nodetree
tlabeltree_label

Detailed Description

Definition at line 56 of file lobby_main.hpp.


Member Function Documentation

void gui2::tsub_player_list::auto_hide (  ) 

Todo:
Make sure setting visible resizes the widget.

It doesn't work here since invalidate_layout is blocked, but the widget should also be able to handle it itself. Once done the setting of the label text can also be removed.

Definition at line 119 of file lobby_main.cpp.

References gui2::ttree_view_node::empty(), gui2::tcontrol::label(), label, gui2::tcontrol::set_label(), gui2::ttree_view_node::size(), tree, and tree_label.

Referenced by gui2::tlobby_main::update_playerlist().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tsub_player_list::init ( gui2::twindow w,
const std::string &  id 
)

Definition at line 77 of file lobby_main.cpp.

References preferences::editor::TransitionUpdateMode::count, and show_toggle_callback().

Referenced by gui2::tplayer_list::init().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tsub_player_list::show_toggle_callback ( gui2::twidget widget  ) 

Definition at line 108 of file lobby_main.cpp.

References gui2::ttoggle_button::get_value(), gui2::twidget::INVISIBLE, list, gui2::ttoggle_button::set_icon_name(), gui2::twidget::set_visible(), show_toggle, and gui2::twidget::VISIBLE.

Referenced by init().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 62 of file lobby_main.hpp.

Definition at line 61 of file lobby_main.hpp.

Referenced by auto_hide().

Definition at line 64 of file lobby_main.hpp.

Referenced by show_toggle_callback(), and gui2::tlobby_main::update_playerlist().

Definition at line 63 of file lobby_main.hpp.

Referenced by show_toggle_callback().

Definition at line 66 of file lobby_main.hpp.

Referenced by auto_hide().


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

Generated by doxygen 1.7.1 on Fri May 25 2012 01:21:35 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs