gui::dialog_button Class Reference

#include <construct_dialog.hpp>

Inheritance diagram for gui::dialog_button:

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

Collaboration graph
[legend]

List of all members.

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 dialogdialog () const

Protected Attributes

const int simple_result_

Private Attributes

class dialogparent_
dialog_button_actionhandler_


Detailed Description

Definition at line 120 of file construct_dialog.hpp.


Constructor & Destructor Documentation

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 122 of file construct_dialog.hpp.


Member Function Documentation

void gui::dialog_button::set_parent ( class dialog parent  )  [inline]

Definition at line 127 of file construct_dialog.hpp.

References parent_.

Referenced by gui::dialog::add_button().

bool gui::dialog_button::is_option (  )  const [inline]

Definition at line 130 of file construct_dialog.hpp.

References gui::button::type_, and gui::button::TYPE_CHECK.

int gui::dialog_button::action ( dialog_process_info info  )  [virtual]

class dialog* gui::dialog_button::dialog (  )  const [inline, protected]

Definition at line 135 of file construct_dialog.hpp.

References parent_.

Referenced by gui::standard_dialog_button::action().


Member Data Documentation

const int gui::dialog_button::simple_result_ [protected]

Definition at line 136 of file construct_dialog.hpp.

Referenced by gui::standard_dialog_button::action(), and action().

Definition at line 138 of file construct_dialog.hpp.

Referenced by action(), dialog(), and set_parent().

Definition at line 139 of file construct_dialog.hpp.

Referenced by action().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs