xoreos
0.0.5
|
#include <buttonsgroup.h>
Public Member Functions | |
ButtonsGroup (WidgetEditBox *helpBox) | |
~ButtonsGroup () | |
void | addButton (WidgetButton *button, const Common::UString &helpTitle, const Common::UString &helpText) |
void | removeButton (WidgetButton *button) |
void | setActive (WidgetButton *button) |
void | setActive (size_t button) |
void | setAllInactive () |
size_t | getChoice () const |
const std::vector< WidgetButton * > & | getButtonsList () const |
Private Attributes | |
std::vector< WidgetButton * > | _buttonsList |
WidgetEditBox * | _helpBox |
std::vector< Common::UString > | _helpTitles |
std::vector< Common::UString > | _helpTexts |
Definition at line 42 of file buttonsgroup.h.
Engines::NWN::ButtonsGroup::ButtonsGroup | ( | WidgetEditBox * | helpBox | ) |
Definition at line 37 of file buttonsgroup.cpp.
References _helpBox.
Engines::NWN::ButtonsGroup::~ButtonsGroup | ( | ) |
Definition at line 41 of file buttonsgroup.cpp.
void Engines::NWN::ButtonsGroup::addButton | ( | WidgetButton * | button, |
const Common::UString & | helpTitle, | ||
const Common::UString & | helpText | ||
) |
Definition at line 44 of file buttonsgroup.cpp.
References _buttonsList, _helpTexts, _helpTitles, Engines::NWN::WidgetButton::kModeToggle, and Engines::NWN::WidgetButton::setMode().
const std::vector< WidgetButton *> & Engines::NWN::ButtonsGroup::getButtonsList | ( | ) | const |
Definition at line 115 of file buttonsgroup.cpp.
References _buttonsList.
size_t Engines::NWN::ButtonsGroup::getChoice | ( | ) | const |
Definition at line 104 of file buttonsgroup.cpp.
References _buttonsList, and warning().
void Engines::NWN::ButtonsGroup::removeButton | ( | WidgetButton * | button | ) |
Definition at line 52 of file buttonsgroup.cpp.
References _buttonsList.
void Engines::NWN::ButtonsGroup::setActive | ( | WidgetButton * | button | ) |
Definition at line 61 of file buttonsgroup.cpp.
References _buttonsList, _helpBox, _helpTexts, _helpTitles, Engines::NWN::WidgetButton::kModeUnchanged, Engines::NWN::WidgetListBox::setText(), and Engines::NWN::WidgetEditBox::setTitle().
Referenced by setActive().
void Engines::NWN::ButtonsGroup::setActive | ( | size_t | button | ) |
Definition at line 91 of file buttonsgroup.cpp.
References _buttonsList, error(), and setActive().
void Engines::NWN::ButtonsGroup::setAllInactive | ( | ) |
Definition at line 99 of file buttonsgroup.cpp.
References _buttonsList.
|
private |
Definition at line 59 of file buttonsgroup.h.
Referenced by addButton(), getButtonsList(), getChoice(), removeButton(), setActive(), and setAllInactive().
|
private |
Definition at line 61 of file buttonsgroup.h.
Referenced by ButtonsGroup(), and setActive().
|
private |
Definition at line 63 of file buttonsgroup.h.
Referenced by addButton(), and setActive().
|
private |
Definition at line 62 of file buttonsgroup.h.
Referenced by addButton(), and setActive().