#include <construct_dialog.hpp>


Public Member Functions | |
| filter_textbox (CVideo &video, const std::string &header, const std::vector< std::string > &items, const std::vector< std::string > &items_to_filter, size_t header_row, dialog &dialog, int width=250) | |
| int | get_index (int selection) const |
| void | delete_item (int selection) |
Private Member Functions | |
| virtual void | handle_text_changed (const wide_string &text) |
Private Attributes | |
| std::vector< std::string > | items_ |
| std::vector< std::string > | items_to_filter_ |
| std::vector< std::string > | filtered_items_ |
| std::vector< int > | index_map_ |
| std::vector< std::string > | last_words |
| size_t | header_row_ |
| gui::dialog & | dialog_ |
Definition at line 120 of file construct_dialog.hpp.
| gui::filter_textbox::filter_textbox | ( | CVideo & | video, | |
| const std::string & | header, | |||
| const std::vector< std::string > & | items, | |||
| const std::vector< std::string > & | items_to_filter, | |||
| size_t | header_row, | |||
| dialog & | dialog, | |||
| int | width = 250 | |||
| ) | [inline] |
Definition at line 122 of file construct_dialog.hpp.
References gui::textbox::set_text().

| void gui::filter_textbox::delete_item | ( | int | selection | ) |
Definition at line 850 of file construct_dialog.cpp.
References filtered_items_, header_row_, index_map_, items_, and items_to_filter_.
Referenced by events::delete_recall_unit::button_pressed().

| int gui::filter_textbox::get_index | ( | int | selection | ) | const |
Definition at line 834 of file construct_dialog.cpp.
References header_row_, and index_map_.
Referenced by events::delete_recall_unit::button_pressed(), events::menu_handler::create_unit(), events::menu_handler::recall(), and dialogs::unit_preview_pane::set_selection().

| void gui::filter_textbox::handle_text_changed | ( | const wide_string & | text | ) | [private, virtual] |
Reimplemented from gui::textbox.
Definition at line 872 of file construct_dialog.cpp.
References dialog_, filtered_items_, header_row_, index_map_, items_, items_to_filter_, last_words, gui::dialog::set_menu_items(), utils::split(), w, and utils::wstring_to_string().

gui::dialog& gui::filter_textbox::dialog_ [private] |
Definition at line 148 of file construct_dialog.hpp.
Referenced by handle_text_changed().
std::vector<std::string> gui::filter_textbox::filtered_items_ [private] |
Definition at line 144 of file construct_dialog.hpp.
Referenced by delete_item(), and handle_text_changed().
size_t gui::filter_textbox::header_row_ [private] |
Definition at line 147 of file construct_dialog.hpp.
Referenced by delete_item(), get_index(), and handle_text_changed().
std::vector<int> gui::filter_textbox::index_map_ [private] |
Definition at line 145 of file construct_dialog.hpp.
Referenced by delete_item(), get_index(), and handle_text_changed().
std::vector<std::string> gui::filter_textbox::items_ [private] |
Definition at line 144 of file construct_dialog.hpp.
Referenced by delete_item(), and handle_text_changed().
std::vector<std::string> gui::filter_textbox::items_to_filter_ [private] |
Definition at line 144 of file construct_dialog.hpp.
Referenced by delete_item(), and handle_text_changed().
std::vector<std::string> gui::filter_textbox::last_words [private] |
Definition at line 146 of file construct_dialog.hpp.
Referenced by handle_text_changed().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:03 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |