Public Member Functions | Private Member Functions | Private Attributes

gui::filter_textbox Class Reference

#include <construct_dialog.hpp>

Inheritance diagram for gui::filter_textbox:
Inheritance graph
[legend]
Collaboration diagram for gui::filter_textbox:
Collaboration graph
[legend]

List of all members.

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::dialogdialog_

Detailed Description

Definition at line 120 of file construct_dialog.hpp.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the caller graph for this function:

int gui::filter_textbox::get_index ( int  selection  )  const
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().

Here is the call graph for this function:


Member Data Documentation

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().

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().


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:21:03 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs