#include <construct_dialog.hpp>


Public Member Functions | |
| dialog_button (CVideo &video, const std::string &label, TYPE type=TYPE_PRESS, int simple_result=CONTINUE_DIALOG, dialog_button_action *handler=NULL) | |
| void | set_parent (class dialog *parent) |
| bool | is_option () const |
| virtual int | action (dialog_process_info &info) |
Protected Member Functions | |
| class dialog * | dialog () const |
Protected Attributes | |
| const int | simple_result_ |
Private Attributes | |
| class dialog * | parent_ |
| dialog_button_action * | handler_ |
Definition at line 152 of file construct_dialog.hpp.
| gui::dialog_button::dialog_button | ( | CVideo & | video, | |
| const std::string & | label, | |||
| TYPE | type = TYPE_PRESS, |
|||
| int | simple_result = CONTINUE_DIALOG, |
|||
| dialog_button_action * | handler = NULL | |||
| ) | [inline] |
Definition at line 154 of file construct_dialog.hpp.
| int gui::dialog_button::action | ( | dialog_process_info & | info | ) | [virtual] |
Reimplemented in gui::standard_dialog_button.
Definition at line 768 of file construct_dialog.cpp.
References gui::dialog_button_action::button_pressed(), gui::dialog_process_info::clear_buttons(), gui::CLOSE_DIALOG, gui::DELETE_ITEM, gui::dialog::get_menu(), handler_, parent_, gui::menu::selection(), and simple_result_.

| class dialog* gui::dialog_button::dialog | ( | ) | const [inline, protected] |
Definition at line 167 of file construct_dialog.hpp.
References parent_.
Referenced by gui::standard_dialog_button::action().

| bool gui::dialog_button::is_option | ( | ) | const [inline] |
Definition at line 162 of file construct_dialog.hpp.
References gui::button::type_, and gui::button::TYPE_CHECK.
| void gui::dialog_button::set_parent | ( | class dialog * | parent | ) | [inline] |
Definition at line 159 of file construct_dialog.hpp.
References parent_.
Referenced by gui::dialog::add_button().

dialog_button_action* gui::dialog_button::handler_ [private] |
Definition at line 171 of file construct_dialog.hpp.
Referenced by action().
class dialog* gui::dialog_button::parent_ [private] |
Definition at line 170 of file construct_dialog.hpp.
Referenced by action(), dialog(), and set_parent().
const int gui::dialog_button::simple_result_ [protected] |
Definition at line 168 of file construct_dialog.hpp.
Referenced by gui::standard_dialog_button::action(), and action().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:04 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |