xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Engines::NWN::ButtonsGroup Class Reference

#include <buttonsgroup.h>

Collaboration diagram for Engines::NWN::ButtonsGroup:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 42 of file buttonsgroup.h.

Constructor & Destructor Documentation

◆ ButtonsGroup()

Engines::NWN::ButtonsGroup::ButtonsGroup ( WidgetEditBox helpBox)

Definition at line 37 of file buttonsgroup.cpp.

References _helpBox.

◆ ~ButtonsGroup()

Engines::NWN::ButtonsGroup::~ButtonsGroup ( )

Definition at line 41 of file buttonsgroup.cpp.

Member Function Documentation

◆ addButton()

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().

Here is the call graph for this function:

◆ getButtonsList()

const std::vector< WidgetButton *> & Engines::NWN::ButtonsGroup::getButtonsList ( ) const

Definition at line 115 of file buttonsgroup.cpp.

References _buttonsList.

◆ getChoice()

size_t Engines::NWN::ButtonsGroup::getChoice ( ) const

Definition at line 104 of file buttonsgroup.cpp.

References _buttonsList, and warning().

Here is the call graph for this function:

◆ removeButton()

void Engines::NWN::ButtonsGroup::removeButton ( WidgetButton button)

Definition at line 52 of file buttonsgroup.cpp.

References _buttonsList.

◆ setActive() [1/2]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setActive() [2/2]

void Engines::NWN::ButtonsGroup::setActive ( size_t  button)

Definition at line 91 of file buttonsgroup.cpp.

References _buttonsList, error(), and setActive().

Here is the call graph for this function:

◆ setAllInactive()

void Engines::NWN::ButtonsGroup::setAllInactive ( )

Definition at line 99 of file buttonsgroup.cpp.

References _buttonsList.

Member Data Documentation

◆ _buttonsList

std::vector<WidgetButton *> Engines::NWN::ButtonsGroup::_buttonsList
private

◆ _helpBox

WidgetEditBox* Engines::NWN::ButtonsGroup::_helpBox
private

Definition at line 61 of file buttonsgroup.h.

Referenced by ButtonsGroup(), and setActive().

◆ _helpTexts

std::vector<Common::UString> Engines::NWN::ButtonsGroup::_helpTexts
private

Definition at line 63 of file buttonsgroup.h.

Referenced by addButton(), and setActive().

◆ _helpTitles

std::vector<Common::UString> Engines::NWN::ButtonsGroup::_helpTitles
private

Definition at line 62 of file buttonsgroup.h.

Referenced by addButton(), and setActive().


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