#include <floating_textbox.hpp>
Public Member Functions | |
floating_textbox () | |
TEXTBOX_MODE | mode () const |
const util::scoped_ptr < gui::button > & | check () const |
const util::scoped_ptr < gui::textbox > & | box () const |
void | close (game_display &gui) |
void | update_location (game_display &gui) |
void | show (gui::TEXTBOX_MODE mode, const std::string &label, const std::string &check_label, bool checked, game_display &gui) |
void | tab (std::vector< team > &teams, const unit_map &units, game_display &gui) |
bool | active () const |
Private Attributes | |
util::scoped_ptr< gui::textbox > | box_ |
util::scoped_ptr< gui::button > | check_ |
TEXTBOX_MODE | mode_ |
std::string | label_string_ |
int | label_ |
Definition at line 33 of file floating_textbox.hpp.
gui::floating_textbox::floating_textbox | ( | ) |
Definition at line 28 of file floating_textbox.cpp.
TEXTBOX_MODE gui::floating_textbox::mode | ( | ) | const [inline] |
Definition at line 37 of file floating_textbox.hpp.
References mode_.
Referenced by play_controller::enter_textbox().
const util::scoped_ptr<gui::button>& gui::floating_textbox::check | ( | ) | const [inline] |
Definition at line 38 of file floating_textbox.hpp.
References check_.
Referenced by events::menu_handler::do_speak().
const util::scoped_ptr<gui::textbox>& gui::floating_textbox::box | ( | ) | const [inline] |
Definition at line 39 of file floating_textbox.hpp.
References box_.
Referenced by events::menu_handler::do_speak(), and play_controller::enter_textbox().
void gui::floating_textbox::close | ( | game_display & | gui | ) |
Definition at line 36 of file floating_textbox.cpp.
References active(), util::scoped_resource< T, ReleasePolicy >::assign(), box_, check_, display::invalidate_all(), label_, mode_, font::remove_floating_label(), preferences::set_message_private(), gui::TEXTBOX_MESSAGE, and gui::TEXTBOX_NONE.
Referenced by events::console_handler::do_control(), events::console_handler::do_droid(), play_controller::enter_textbox(), play_controller::handle_event(), and show().
void gui::floating_textbox::update_location | ( | game_display & | gui | ) |
Definition at line 53 of file floating_textbox.cpp.
References font::add_floating_label(), box_, check_, font::get_floating_label_rect(), label_, label_string_, font::LEFT_ALIGN, display::map_outside_area(), rect, font::remove_floating_label(), font::SIZE_NORMAL, and font::YELLOW_COLOUR.
Referenced by show().
void gui::floating_textbox::show | ( | gui::TEXTBOX_MODE | mode, | |
const std::string & | label, | |||
const std::string & | check_label, | |||
bool | checked, | |||
game_display & | gui | |||
) |
Definition at line 96 of file floating_textbox.cpp.
References util::scoped_resource< T, ReleasePolicy >::assign(), box_, check_, close(), label_string_, mode_, gui::button::TYPE_CHECK, update_location(), and display::video().
Referenced by events::menu_handler::ai_formula(), events::menu_handler::search(), events::menu_handler::speak(), and events::menu_handler::user_command().
void gui::floating_textbox::tab | ( | std::vector< team > & | teams, | |
const unit_map & | units, | |||
game_display & | gui | |||
) |
Definition at line 115 of file floating_textbox.cpp.
References active(), game_display::add_chat_message(), box_, lg::err, utils::join(), LOG_STREAM, preferences::login(), game_display::MESSAGE_PRIVATE, mode_, game_display::observers(), halo::remove(), text, gui::TEXTBOX_COMMAND, gui::TEXTBOX_MESSAGE, gui::TEXTBOX_SEARCH, and utils::word_completion().
Referenced by play_controller::handle_event().
bool gui::floating_textbox::active | ( | ) | const [inline] |
Definition at line 46 of file floating_textbox.hpp.
References box_, and util::scoped_resource< T, ReleasePolicy >::get().
Referenced by close(), play_controller::enter_textbox(), play_controller::handle_event(), play_controller::play_slice(), and tab().
Definition at line 49 of file floating_textbox.hpp.
Referenced by active(), box(), close(), show(), tab(), and update_location().
Definition at line 50 of file floating_textbox.hpp.
Referenced by check(), close(), show(), and update_location().
TEXTBOX_MODE gui::floating_textbox::mode_ [private] |
std::string gui::floating_textbox::label_string_ [private] |
int gui::floating_textbox::label_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |