#include <menu.hpp>
Public Member Functions | |
basic_sorter () | |
virtual | ~basic_sorter () |
basic_sorter & | set_alpha_sort (int column) |
basic_sorter & | set_numeric_sort (int column) |
basic_sorter & | set_xp_sort (int column) |
basic_sorter & | set_level_sort (int level_column, int xp_column) |
basic_sorter & | set_id_sort (int column) |
basic_sorter & | set_redirect_sort (int column, int to) |
basic_sorter & | set_position_sort (int column, const std::vector< int > &pos) |
Public Member Functions inherited from gui::menu::sorter | |
virtual | ~sorter () |
Protected Member Functions | |
virtual bool | column_sortable (int column) const |
virtual bool | less (int column, const item &row1, const item &row2) const |
Private Attributes | |
std::set< int > | alpha_sort_ |
std::set< int > | numeric_sort_ |
std::set< int > | id_sort_ |
std::set< int > | xp_sort_ |
std::set< int > | level_sort_ |
std::map< int, int > | redirect_sort_ |
std::map< int, std::vector< int > > | pos_sort_ |
int | xp_col_ |
gui::menu::basic_sorter::basic_sorter | ( | ) |
Definition at line 35 of file menu.cpp.
References set_id_sort().
|
inlinevirtual |
|
protectedvirtual |
Implements gui::menu::sorter.
Reimplemented in mp::lobby::lobby_sorter.
|
protectedvirtual |
Implements gui::menu::sorter.
Reimplemented in mp::lobby::lobby_sorter.
Definition at line 125 of file menu.cpp.
References chars_less_insensitive(), font::del_tags(), gui::menu::item::fields, gui::menu::item::id, is_wml_separator(), itor, pos, and gui::xp_to_advance().
menu::basic_sorter & gui::menu::basic_sorter::set_alpha_sort | ( | int | column | ) |
Definition at line 48 of file menu.cpp.
Referenced by mp::lobby::lobby_sorter::lobby_sorter(), dialogs::recall_dialog(), dialogs::recruit_dialog(), events::menu_handler::scenario_settings_table(), dialogs::show_unit_list(), and events::menu_handler::status_table().
menu::basic_sorter & gui::menu::basic_sorter::set_id_sort | ( | int | column | ) |
Definition at line 73 of file menu.cpp.
Referenced by basic_sorter().
menu::basic_sorter & gui::menu::basic_sorter::set_level_sort | ( | int | level_column, |
int | xp_column | ||
) |
Definition at line 66 of file menu.cpp.
Referenced by dialogs::recall_dialog(), and dialogs::show_unit_list().
menu::basic_sorter & gui::menu::basic_sorter::set_numeric_sort | ( | int | column | ) |
Definition at line 54 of file menu.cpp.
Referenced by events::menu_handler::scenario_settings_table(), dialogs::show_unit_list(), and events::menu_handler::status_table().
menu::basic_sorter & gui::menu::basic_sorter::set_position_sort | ( | int | column, |
const std::vector< int > & | pos | ||
) |
menu::basic_sorter & gui::menu::basic_sorter::set_redirect_sort | ( | int | column, |
int | to | ||
) |
Definition at line 79 of file menu.cpp.
Referenced by events::menu_handler::scenario_settings_table(), and events::menu_handler::status_table().
menu::basic_sorter & gui::menu::basic_sorter::set_xp_sort | ( | int | column | ) |
Definition at line 60 of file menu.cpp.
Referenced by dialogs::recall_dialog(), and dialogs::show_unit_list().
|
private |