General purpose widgets. More...
Classes | |
| struct | dialog_process_info |
| class | dialog_image |
| class | dialog_textbox |
| class | filter_textbox |
| class | dialog_button |
| class | standard_dialog_button |
| class | dialog |
| class | floating_textbox |
| struct | dialog_manager |
| class | dialog_frame |
| class | dialog_button_action |
| struct | dialog_button_info |
| struct | check_item |
| class | preview_pane |
| class | button |
| class | combo |
| class | combo_drag |
| class | drop_target |
| Handles droping for drag able ui items. More... | |
| class | drop_group_manager |
| Used to create and destroy drop groups. More... | |
| struct | match_begin |
| class | file_menu |
| A widget where the user may navigate through directories and choose a file. More... | |
| class | label |
| class | menu |
| class | progress_bar |
| class | scrollarea |
| class | scrollbar |
| Scrollbar. More... | |
| class | scrollpane |
| Scrollpane. More... | |
| class | slider |
| class | list_slider |
| class | textbox |
| class | widget |
Typedefs | |
| typedef Uint32 | msecs |
| typedef boost::shared_ptr < combo_drag > | combo_drag_ptr |
| typedef boost::shared_ptr < drop_target > | drop_target_ptr |
| typedef int | drop_target_group |
| typedef boost::shared_ptr < drop_group_manager > | drop_group_manager_ptr |
Enumerations | |
| enum | TEXTBOX_MODE { TEXTBOX_NONE, TEXTBOX_SEARCH, TEXTBOX_MESSAGE, TEXTBOX_COMMAND, TEXTBOX_AI } |
| enum | DIALOG_RESULT { DIALOG_BACK = -7, DIALOG_FORWARD = -6, CREATE_ITEM = -5, DELETE_ITEM = -4, ESCAPE_DIALOG = -3, CONTINUE_DIALOG = -2, CLOSE_DIALOG = -1 } |
| enum | DIALOG_TYPE { MESSAGE, OK_ONLY, YES_NO, OK_CANCEL, CANCEL_ONLY, CLOSE_ONLY, NULL_DIALOG } |
Functions | |
| bool | in_dialog () |
| int | show_dialog (display &screen, surface image, const std::string &caption, const std::string &message, DIALOG_TYPE type, const std::vector< std::string > *menu_items, const std::vector< preview_pane * > *preview_panes, const std::string &text_widget_label, std::string *text_widget_text, const int text_widget_max_chars, std::vector< check_item > *options, int xloc, int yloc, const dialog_frame::style *dialog_style, std::vector< dialog_button_info > *action_buttons, const menu::sorter *sorter, menu::style *menu_style) |
| void | check_quit (CVideo &video) |
| static bool | not_image (const std::string &str) |
| static const std::string | dir_picture ("misc/folder-icon.png") |
| static const std::string | path_up ("..") |
| static std::pair< int, int > | parse_fraction (const std::string &s) |
| static int | xp_to_advance (const std::string &s) |
Variables | |
| const int | ButtonHPadding = 10 |
| const int | ButtonVPadding = 10 |
| const int | font_size = font::SIZE_SMALL |
| const int | horizontal_padding = font::SIZE_SMALL |
| const int | checkbox_horizontal_padding = font::SIZE_SMALL / 2 |
| const int | vertical_padding = font::SIZE_SMALL / 2 |
| menu * | empty_menu = NULL |
General purpose widgets.
This module primarily contains a number of common, general purpose widgets for the construction of composite user interfaces.
| typedef boost::shared_ptr<combo_drag> gui::combo_drag_ptr |
Definition at line 25 of file combo_drag.hpp.
| typedef boost::shared_ptr<drop_group_manager> gui::drop_group_manager_ptr |
Definition at line 31 of file drop_target.hpp.
| typedef int gui::drop_target_group |
Definition at line 30 of file drop_target.hpp.
| typedef boost::shared_ptr<drop_target> gui::drop_target_ptr |
Definition at line 27 of file drop_target.hpp.
| typedef Uint32 gui::msecs |
Definition at line 322 of file construct_dialog.hpp.
| enum gui::DIALOG_RESULT |
| DIALOG_BACK | |
| DIALOG_FORWARD | |
| CREATE_ITEM | |
| DELETE_ITEM | |
| ESCAPE_DIALOG | |
| CONTINUE_DIALOG | |
| CLOSE_DIALOG |
Definition at line 34 of file show_dialog.hpp.
| enum gui::DIALOG_TYPE |
Definition at line 156 of file show_dialog.hpp.
| enum gui::TEXTBOX_MODE |
Definition at line 34 of file floating_textbox.hpp.
| void gui::check_quit | ( | CVideo & | video | ) |
| static const std::string gui::dir_picture | ( | "misc/folder-icon.png" | ) | [static] |
| bool gui::in_dialog | ( | ) |
Referenced by hotkey::basic_handler::handle_event(), and controller_base::handle_event().

| static bool gui::not_image | ( | const std::string & | str | ) | [static] |
Definition at line 257 of file button.cpp.
References IMAGE_PREFIX.
| static std::pair<int, int> gui::parse_fraction | ( | const std::string & | s | ) | [static] |
Definition at line 106 of file menu.cpp.
References utils::split().
Referenced by xp_to_advance().


| static const std::string gui::path_up | ( | ".." | ) | [static] |
Referenced by gui::file_menu::add_path(), gui::file_menu::change_directory(), gui::file_menu::display_current_files(), and gui::file_menu::is_directory().

| int gui::show_dialog | ( | display & | screen, | |
| surface | image, | |||
| const std::string & | caption, | |||
| const std::string & | message, | |||
| DIALOG_TYPE | type, | |||
| const std::vector< std::string > * | menu_items, | |||
| const std::vector< preview_pane * > * | preview_panes, | |||
| const std::string & | text_widget_label, | |||
| std::string * | text_widget_text, | |||
| const int | text_widget_max_chars, | |||
| std::vector< check_item > * | options, | |||
| int | xloc, | |||
| int | yloc, | |||
| const dialog_frame::style * | dialog_style, | |||
| std::vector< dialog_button_info > * | action_buttons, | |||
| const menu::sorter * | sorter, | |||
| menu::style * | menu_style | |||
| ) |
Referenced by attack_prediction_displayer::button_pressed(), gui2::tlobby_main::do_game_join(), mp::wait::join_game(), gui::combo::make_drop_down_menu(), mp::lobby::process_event(), events::menu_handler::rename_unit(), and events::mouse_handler::show_attack_dialog().

| static int gui::xp_to_advance | ( | const std::string & | s | ) | [static] |
Definition at line 115 of file menu.cpp.
References parse_fraction().
Referenced by gui::menu::basic_sorter::less().


| const int gui::ButtonHPadding = 10 |
Definition at line 39 of file show_dialog.cpp.
Referenced by gui::dialog_frame::draw(), gui::dialog_frame::layout(), gui::dialog::layout(), mp::create::layout_children(), and mp::connect::layout_children().
| const int gui::ButtonVPadding = 10 |
Definition at line 40 of file show_dialog.cpp.
Referenced by gui::dialog_frame::bottom_padding(), gui::dialog_frame::layout(), mp::wait::layout_children(), mp::lobby::layout_children(), and mp::connect::layout_children().
| const int gui::checkbox_horizontal_padding = font::SIZE_SMALL / 2 |
Definition at line 38 of file button.cpp.
Referenced by gui::button::calculate_size(), and gui::button::draw_contents().
| menu * gui::empty_menu = NULL |
Definition at line 36 of file menu_style.cpp.
Referenced by gui::dialog::get_menu(), gui::dialog::process(), gui::dialog::set_menu(), gui::dialog::set_menu_items(), gui::dialog::~dialog(), and game_controller::~game_controller().
| const int gui::font_size = font::SIZE_SMALL |
Definition at line 36 of file button.cpp.
Referenced by help::help_text_area::add_text_item(), gui::textbox::add_text_line(), gui::button::calculate_size(), gui::button::draw_contents(), wb::recruit::draw_hex(), wb::recall::draw_hex(), help::help_text_area::handle_format_cfg(), gui::menu::style::item_size(), gui::textbox::textbox(), and the_end_old().
| const int gui::horizontal_padding = font::SIZE_SMALL |
Definition at line 37 of file button.cpp.
Referenced by gui::button::calculate_size().
| const int gui::vertical_padding = font::SIZE_SMALL / 2 |
Definition at line 39 of file button.cpp.
Referenced by gui::button::calculate_size().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:20:07 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |