xoreos
0.0.5
|
#include <listbox.h>
Public Types | |
enum | Mode { kModeStatic = 0, kModeSelectable } |
Public Member Functions | |
WidgetListBox (::Engines::GUI &gui, const Common::UString &tag, const Common::UString &model) | |
~WidgetListBox () | |
Mode | getMode () const |
void | setMode (Mode mode) |
void | show () |
Show the widget. More... | |
void | hide () |
Hide the widget. More... | |
void | setPosition (float x, float y, float z) |
Set the widget's position. More... | |
float | getContentWidth () const |
float | getContentHeight () const |
void | lock () |
void | clear () |
void | reserve (size_t n) |
void | add (WidgetListItem *item, bool noTag=false) |
void | remove (WidgetListItem *item) |
void | unlock () |
void | sortByTag () |
void | setText (const Common::UString &font, const Common::UString &text, float spacing=0.0f) |
void | select (size_t item) |
size_t | getSelected () const |
WidgetListItem * | getSelectedItem () const |
void | deselect () |
void | setStartItem (size_t firstItem) |
Set the first item to show in the list. More... | |
size_t | getStartItem () const |
Get the first item shown in the list. More... | |
std::vector< WidgetListItem * >::iterator | begin () |
Get begin iterator from all the items in WidgetListBox. More... | |
std::vector< WidgetListItem * >::iterator | end () |
Get end iterator from all the items in WidgetListBox. More... | |
bool | wasDblClicked () |
void | mouseDown (uint8 state, float x, float y) |
A mouse button was pressed on the widget. More... | |
void | mouseWheel (uint8 state, int x, int y) |
A mouse wheel was used on the widget. More... | |
void | subActive (Widget &widget) |
A sub-widget was activated. More... | |
Public Member Functions inherited from Engines::NWN::ModelWidget | |
ModelWidget (::Engines::GUI &gui, const Common::UString &tag, const Common::UString &model) | |
~ModelWidget () | |
void | show () |
Show the widget. More... | |
void | hide () |
Hide the widget. More... | |
void | setPosition (float x, float y, float z) |
Set the widget's position. More... | |
float | getWidth () const |
Get the widget's width. More... | |
float | getHeight () const |
Get the widget's height. More... | |
void | setTag (const Common::UString &tag) |
Set the widget's tag. More... | |
Graphics::Aurora::ModelNode * | getNode (const Common::UString &nodeName) const |
Public Member Functions inherited from Engines::NWN::NWNWidgetWithCaption | |
NWNWidgetWithCaption (::Engines::GUI &gui, const Common::UString &tag) | |
~NWNWidgetWithCaption () | |
void | show () |
Show the widget. More... | |
void | hide () |
Hide the widget. More... | |
virtual void | initCaption (const Common::UString &font, const Common::UString &text, float r=1.0f, float g=1.0f, float b=1.0f, float a=1.0f, float halign=Graphics::Aurora::kHAlignLeft, float valign=Graphics::Aurora::kVAlignTop) |
void | setPosition (float x, float y, float z) |
Set the widget's position. More... | |
void | setColor (float r, float g, float b, float a) |
void | setText (const Common::UString &text) |
const Common::UString | getText () const |
float | getWidth () const |
Get the widget's width. More... | |
float | getHeight () const |
Get the widget's height. More... | |
float | getHorizontalAlign () const |
float | getVerticalAlign () const |
void | setDisabled (bool disabled) |
Disable/Enable the widget. More... | |
Public Member Functions inherited from Engines::NWN::NWNWidget | |
NWNWidget (::Engines::GUI &gui, const Common::UString &tag) | |
~NWNWidget () | |
void | enter () |
The mouse entered the widget. More... | |
void | leave () |
The mouse left the widget. More... | |
void | setTooltip (const Common::UString &text) |
void | setTooltipPosition (float x, float y, float z) |
Public Member Functions inherited from Engines::Widget | |
Widget (GUI &gui, const Common::UString &tag) | |
virtual | ~Widget () |
const Common::UString & | getTag () const |
Get the widget's tag. More... | |
bool | isActive () const |
Was the widget activated? More... | |
bool | isVisible () const |
Is the widget visible? More... | |
bool | isDisabled () const |
Is the widget disabled? More... | |
bool | isInvisible () const |
Is the widget invisible (never visible)? More... | |
Widget * | getParent () |
const Widget * | getParent () const |
Widget * | getChild (const Common::UString &childTag) |
Get the widget's child by tag. More... | |
virtual void | movePosition (float x, float y, float z) |
Move the widget, relative to its current position. More... | |
virtual void | getPosition (float &x, float &y, float &z) const |
Get the widget's position. More... | |
virtual void | setInvisible (bool invisible) |
Make the widget invisible. More... | |
virtual void | mouseMove (uint8 state, float x, float y) |
The mouse was moved over the widget. More... | |
virtual void | mouseUp (uint8 state, float x, float y) |
A mouse button was released on the widget. More... | |
virtual void | mouseDblClick (uint8 state, float x, float y) |
A mouse button was double-clicked on the widget. More... | |
void | remove () |
Remove the widget from the GUI. More... | |
virtual void | addSub (Widget &widget) |
Add a sub-widget to the widget. More... | |
virtual void | addChild (Widget &widget) |
Add a child to the widget. More... | |
virtual void | addGroupMember (Widget &widget) |
Add a fellow group member to the widget. More... | |
virtual void | removeSub (Widget &widget) |
Remove a sub-widget from the widget. More... | |
virtual void | removeChild (Widget &widget) |
Remove a child from the widget. More... | |
virtual void | removeGroupMember (Widget &widget) |
Remove fellow group member from the widget. More... | |
Protected Member Functions | |
virtual void | updateScrollbarLength () |
virtual void | updateScrollbarPosition () |
virtual void | scrollUp (size_t n) |
virtual void | scrollDown (size_t n) |
virtual void | updateVisible () |
Protected Member Functions inherited from Engines::Widget | |
virtual void | signalGroupMemberActive () |
A fellow group member signaled that it is now active. More... | |
void | setActive (bool active) |
The widget's active state. More... | |
void | raiseCallbackActive (Widget &widget) |
Protected Attributes | |
float | _contentX |
float | _contentY |
float | _contentZ |
float | _contentWidth |
float | _contentHeight |
std::vector< WidgetListItem * > | _items |
std::vector< WidgetListItem * > | _visibleItems |
size_t | _startItem |
size_t | _selectedItem |
WidgetButton * | _up |
WidgetButton * | _down |
WidgetScrollbar * | _scrollbar |
bool | _locked |
Protected Attributes inherited from Engines::NWN::ModelWidget | |
Graphics::Aurora::Model * | _model |
Protected Attributes inherited from Engines::NWN::NWNWidgetWithCaption | |
Common::ScopedPtr< Graphics::Aurora::Text > | _caption |
float | _r |
float | _g |
float | _b |
float | _a |
Protected Attributes inherited from Engines::Widget | |
GUI * | _gui |
The GUI the widget belongs to. More... | |
Common::UString | _tag |
The widget's tag. More... | |
Widget * | _parent |
The widget's parent, if any. More... | |
Widget * | _owner |
The widget's owner, if any. More... | |
std::list< Widget * > | _subWidgets |
The widget's sub-widgets. More... | |
std::list< Widget * > | _children |
The widget's children. More... | |
std::list< Widget * > | _groupMembers |
The widget's fellow group members. More... | |
Private Member Functions | |
void | getProperties () |
void | createScrollbar () |
void | itemDblClicked () |
Private Attributes | |
Mode | _mode |
bool | _hasScrollbar |
bool | _dblClicked |
Friends | |
class | WidgetListItem |
Engines::NWN::WidgetListBox::WidgetListBox | ( | ::Engines::GUI & | gui, |
const Common::UString & | tag, | ||
const Common::UString & | model | ||
) |
Definition at line 232 of file listbox.cpp.
References Engines::NWN::ModelWidget::_model, createScrollbar(), getProperties(), and Graphics::Renderable::setClickable().
Engines::NWN::WidgetListBox::~WidgetListBox | ( | ) |
Definition at line 245 of file listbox.cpp.
void Engines::NWN::WidgetListBox::add | ( | WidgetListItem * | item, |
bool | noTag = false |
||
) |
Definition at line 411 of file listbox.cpp.
References Engines::NWN::WidgetListItem::_itemNumber, _items, _locked, Engines::Widget::addGroupMember(), Engines::Widget::addSub(), Common::UString::format(), Engines::Widget::getHeight(), Engines::Widget::getTag(), Engines::Widget::isVisible(), Engines::Widget::setTag(), updateScrollbarLength(), and updateScrollbarPosition().
Referenced by Engines::NWN::CharPortrait::buildPortraitBox(), Engines::NWN::CharClass::createClassList(), Engines::NWN::CharDomain::createDomainList(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharSkills::createSkillsList(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), Engines::NWN::NewPremiumMenu::initModuleList(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::NWN::CharInfoVoice::initVoicesList(), Engines::NWN::CharFeats::makeAvailList(), Engines::NWN::CharFeats::makeKnownList(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharSpells::moveSpell(), Engines::NWN::CharFeatsPopup::setFeats(), setText(), and Engines::NWN::CharSpells::showSpellLevel().
std::vector< WidgetListItem * >::iterator Engines::NWN::WidgetListBox::begin | ( | ) |
Get begin iterator from all the items in WidgetListBox.
Definition at line 654 of file listbox.cpp.
References _items.
Referenced by Engines::NWN::CharFeats::callbackActive(), Engines::NWN::CharSkills::callbackActive(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharSkills::reset(), Engines::NWN::CharDomain::setRecommendedDomains(), and Engines::NWN::CharSkills::setRecommendedSkills().
void Engines::NWN::WidgetListBox::clear | ( | ) |
Definition at line 388 of file listbox.cpp.
References _items, _locked, _selectedItem, _startItem, _visibleItems, and updateScrollbarLength().
Referenced by Engines::NWN::CharPortrait::buildPortraitBox(), Engines::NWN::CharFeats::changeAvailFeats(), Engines::NWN::CharClass::createClassList(), Engines::NWN::CharDomain::createDomainList(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), Engines::NWN::NewPremiumMenu::initModuleList(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::NWN::CharInfoVoice::initVoicesList(), Engines::NWN::CharFeats::makeAvailList(), Engines::NWN::CharFeats::makeKnownList(), Engines::NWN::CharFeatsPopup::setFeats(), setText(), Engines::NWN::CharSpells::showSpellLevel(), Engines::NWN::CharDomain::~CharDomain(), Engines::NWN::CharFeats::~CharFeats(), Engines::NWN::CharPortrait::~CharPortrait(), and Engines::NWN::CharSpells::~CharSpells().
|
private |
Definition at line 271 of file listbox.cpp.
References _down, Engines::Widget::_gui, _hasScrollbar, Engines::NWN::ModelWidget::_model, _scrollbar, _up, Engines::Widget::addSub(), Engines::NWN::ModelWidget::getHeight(), Graphics::Aurora::Model::getNode(), Graphics::Aurora::ModelNode::getPosition(), Engines::Widget::getTag(), Engines::NWN::ModelWidget::getWidth(), Engines::NWN::WidgetScrollbar::getWidth(), Engines::NWN::Scrollbar::kTypeVertical, Engines::NWN::WidgetButton::setPosition(), and Engines::NWN::WidgetScrollbar::setPosition().
Referenced by WidgetListBox().
void Engines::NWN::WidgetListBox::deselect | ( | ) |
Definition at line 636 of file listbox.cpp.
References _items, and _selectedItem.
Referenced by Engines::NWN::CharFeatsPopup::callbackActive(), and Engines::NWN::CharSkills::reset().
std::vector< WidgetListItem * >::iterator Engines::NWN::WidgetListBox::end | ( | ) |
Get end iterator from all the items in WidgetListBox.
Definition at line 658 of file listbox.cpp.
References _items.
Referenced by Engines::NWN::CharFeats::callbackActive(), Engines::NWN::CharSkills::callbackActive(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharSkills::reset(), Engines::NWN::CharDomain::setRecommendedDomains(), and Engines::NWN::CharSkills::setRecommendedSkills().
float Engines::NWN::WidgetListBox::getContentHeight | ( | ) | const |
Definition at line 377 of file listbox.cpp.
References _contentHeight.
float Engines::NWN::WidgetListBox::getContentWidth | ( | ) | const |
Definition at line 373 of file listbox.cpp.
References _contentWidth.
Referenced by setText().
WidgetListBox::Mode Engines::NWN::WidgetListBox::getMode | ( | ) | const |
Definition at line 309 of file listbox.cpp.
References _mode.
Referenced by Engines::NWN::WidgetListItem::activate(), and Engines::NWN::WidgetListItem::deactivate().
|
private |
Definition at line 248 of file listbox.cpp.
References _contentHeight, _contentWidth, _contentX, _contentY, _hasScrollbar, Engines::NWN::ModelWidget::_model, Engines::NWN::ModelWidget::getHeight(), Graphics::Aurora::Model::getNode(), Graphics::Aurora::ModelNode::getPosition(), Engines::NWN::ModelWidget::getWidth(), and Graphics::Aurora::Model::hasNode().
Referenced by WidgetListBox().
size_t Engines::NWN::WidgetListBox::getSelected | ( | ) | const |
Definition at line 626 of file listbox.cpp.
References _selectedItem.
Referenced by Engines::NWN::CharFeatsPopup::callbackActive(), Engines::NWN::CharClass::callbackActive(), Engines::NWN::CharPackage::callbackActive(), Engines::NWN::CharPremadeMenu::getSelectedCharacter(), Engines::NWN::NewModuleMenu::getSelectedModule(), and Engines::NWN::NewPremiumMenu::getSelectedModule().
WidgetListItem * Engines::NWN::WidgetListBox::getSelectedItem | ( | ) | const |
Definition at line 630 of file listbox.cpp.
References _items, and _selectedItem.
Referenced by Engines::NWN::CharInfoVoice::callbackActive(), Engines::NWN::CharSkills::callbackActive(), and Engines::NWN::CharInfoVoice::show().
size_t Engines::NWN::WidgetListBox::getStartItem | ( | ) | const |
Get the first item shown in the list.
Definition at line 650 of file listbox.cpp.
References _startItem.
Referenced by Engines::NWN::CharFeats::changeAvailFeats().
|
virtual |
Hide the widget.
Reimplemented from Engines::Widget.
Definition at line 332 of file listbox.cpp.
References _down, _hasScrollbar, _scrollbar, _up, _visibleItems, Engines::NWN::ModelWidget::hide(), and Engines::NWN::WidgetScrollbar::hide().
Referenced by Engines::NWN::WidgetEditBox::hide(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().
|
private |
Definition at line 586 of file listbox.cpp.
References _dblClicked, and Engines::Widget::setActive().
Referenced by Engines::NWN::WidgetListItem::mouseDblClick().
void Engines::NWN::WidgetListBox::lock | ( | ) |
Definition at line 381 of file listbox.cpp.
References _locked, and GfxMan.
Referenced by Engines::NWN::CharPortrait::buildPortraitBox(), Engines::NWN::CharFeats::changeAvailFeats(), Engines::NWN::CharClass::createClassList(), Engines::NWN::CharDomain::createDomainList(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharSkills::createSkillsList(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), Engines::NWN::NewPremiumMenu::initModuleList(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::NWN::CharInfoVoice::initVoicesList(), Engines::NWN::CharFeats::makeAvailList(), Engines::NWN::CharFeats::makeKnownList(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharFeats::moveFeat(), Engines::NWN::CharSpells::moveSpell(), Engines::NWN::CharFeatsPopup::setFeats(), setText(), Engines::NWN::CharSpells::showSpellLevel(), Engines::NWN::CharDomain::~CharDomain(), Engines::NWN::CharFeats::~CharFeats(), Engines::NWN::CharPortrait::~CharPortrait(), and Engines::NWN::CharSpells::~CharSpells().
|
virtual |
A mouse button was pressed on the widget.
Reimplemented from Engines::Widget.
Definition at line 705 of file listbox.cpp.
References _scrollbar, _visibleItems, Engines::NWN::WidgetScrollbar::getBarPosition(), Engines::Widget::getPosition(), Engines::NWN::ModelWidget::getWidth(), Engines::Widget::isDisabled(), scrollDown(), and scrollUp().
|
virtual |
A mouse wheel was used on the widget.
Reimplemented from Engines::Widget.
Definition at line 725 of file listbox.cpp.
References Engines::Widget::isDisabled(), scrollDown(), and scrollUp().
void Engines::NWN::WidgetListBox::remove | ( | WidgetListItem * | item | ) |
Definition at line 438 of file listbox.cpp.
References Engines::NWN::WidgetListItem::_itemNumber, _items, _locked, _scrollbar, _selectedItem, _startItem, _visibleItems, Engines::NWN::WidgetScrollbar::getState(), Engines::NWN::NWNWidget::hide(), Engines::Widget::isVisible(), Engines::Widget::removeGroupMember(), and Engines::Widget::removeSub().
Referenced by Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharFeats::moveFeat(), and Engines::NWN::CharSpells::moveSpell().
void Engines::NWN::WidgetListBox::reserve | ( | size_t | n | ) |
Definition at line 405 of file listbox.cpp.
References _items, and _locked.
Referenced by Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), and Engines::NWN::NewPremiumMenu::initModuleList().
|
protectedvirtual |
Reimplemented in Engines::NWN::WidgetGridBox.
Definition at line 605 of file listbox.cpp.
References _items, _startItem, _visibleItems, updateScrollbarPosition(), and updateVisible().
Referenced by mouseDown(), mouseWheel(), and subActive().
|
protectedvirtual |
Reimplemented in Engines::NWN::WidgetGridBox.
Definition at line 592 of file listbox.cpp.
References _startItem, _visibleItems, updateScrollbarPosition(), and updateVisible().
Referenced by mouseDown(), mouseWheel(), and subActive().
void Engines::NWN::WidgetListBox::select | ( | size_t | item | ) |
Definition at line 618 of file listbox.cpp.
References _items, and _selectedItem.
Referenced by Engines::NWN::CharClass::callbackActive(), Engines::NWN::CharPackage::callbackActive(), Engines::NWN::CharClass::createClassList(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharClass::hide(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), Engines::NWN::NewPremiumMenu::initModuleList(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::NWN::CharInfoVoice::initVoicesList(), and Engines::NWN::CharClass::reset().
void Engines::NWN::WidgetListBox::setMode | ( | Mode | mode | ) |
Definition at line 313 of file listbox.cpp.
References _mode.
Referenced by Engines::NWN::CharPortrait::CharPortrait(), Engines::NWN::CharSpells::CharSpells(), Engines::NWN::CharClass::createClassList(), Engines::NWN::CharDomain::createDomainList(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharSkills::createSkillsList(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), Engines::NWN::NewPremiumMenu::initModuleList(), Engines::NWN::CharInfoVoice::initVoicesList(), Engines::NWN::CharFeats::makeAvailList(), Engines::NWN::CharFeats::makeKnownList(), and Engines::NWN::CharFeatsPopup::setFeats().
|
virtual |
Set the widget's position.
Reimplemented from Engines::Widget.
Definition at line 347 of file listbox.cpp.
References _contentX, _contentY, _contentZ, Engines::Widget::_subWidgets, Engines::Widget::getPosition(), and Engines::NWN::ModelWidget::setPosition().
Referenced by Engines::NWN::CharPortrait::CharPortrait().
void Engines::NWN::WidgetListBox::setStartItem | ( | size_t | firstItem | ) |
Set the first item to show in the list.
Definition at line 643 of file listbox.cpp.
References _items, _startItem, _visibleItems, updateScrollbarPosition(), and updateVisible().
Referenced by Engines::NWN::CharFeats::changeAvailFeats().
void Engines::NWN::WidgetListBox::setText | ( | const Common::UString & | font, |
const Common::UString & | text, | ||
float | spacing = 0.0f |
||
) |
Definition at line 523 of file listbox.cpp.
References Engines::Widget::_gui, add(), clear(), FontMan, getContentWidth(), Graphics::Aurora::FontHandle::getFont(), lock(), Graphics::Font::split(), and unlock().
Referenced by Engines::NWN::CharClass::callbackActive(), Engines::NWN::CharPackage::callbackActive(), Engines::NWN::CharAlignment::CharAlignment(), Engines::NWN::CharClass::CharClass(), Engines::NWN::CharSex::CharSex(), Engines::NWN::CharSkills::CharSkills(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharClass::hide(), Engines::NWN::CharAttributes::init(), Engines::NWN::WidgetListItemDomain::mouseUp(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharClass::reset(), Engines::NWN::CharRace::reset(), Engines::NWN::CharSchool::reset(), Engines::NWN::CharSex::reset(), Engines::NWN::CharAlignment::reset(), Engines::NWN::CharAttributes::reset(), Engines::NWN::CharPackage::reset(), Engines::NWN::CharSkills::reset(), Engines::NWN::NewModuleMenu::selectedModule(), Engines::NWN::NewPremiumMenu::selectedModule(), Engines::NWN::ButtonsGroup::setActive(), Engines::NWN::CharHelp::setContent(), Engines::NWN::CharSkills::setHelpText(), Engines::NWN::CharAlignment::show(), and Engines::NWN::OptionsGameMenu::updateDifficulty().
|
virtual |
Show the widget.
Reimplemented from Engines::Widget.
Definition at line 317 of file listbox.cpp.
References _down, _hasScrollbar, _scrollbar, _up, _visibleItems, Engines::NWN::ModelWidget::show(), and Engines::NWN::WidgetScrollbar::show().
Referenced by Engines::NWN::WidgetEditBox::show().
void Engines::NWN::WidgetListBox::sortByTag | ( | ) |
Definition at line 513 of file listbox.cpp.
References _items, Engines::NWN::compPtrItem(), Engines::Widget::isVisible(), and updateVisible().
Referenced by Engines::NWN::CharDomain::createDomainList(), Engines::NWN::CharSkills::createSkillsList(), Engines::NWN::CharFeats::makeAvailList(), Engines::NWN::CharFeats::makeKnownList(), Engines::NWN::CharDomain::moveDomain(), and Engines::NWN::CharSpells::moveSpell().
|
virtual |
A sub-widget was activated.
Reimplemented from Engines::Widget.
Definition at line 670 of file listbox.cpp.
References Engines::NWN::WidgetListItem::_itemNumber, _items, _scrollbar, _selectedItem, _startItem, _visibleItems, Common::UString::endsWith(), Engines::NWN::WidgetScrollbar::getState(), Engines::Widget::getTag(), scrollDown(), scrollUp(), Engines::Widget::setActive(), and updateVisible().
void Engines::NWN::WidgetListBox::unlock | ( | ) |
Definition at line 471 of file listbox.cpp.
References _contentHeight, _contentX, _contentY, _contentZ, _items, _locked, _startItem, _visibleItems, GfxMan, Engines::Widget::isVisible(), Engines::NWN::NWNWidget::setPosition(), updateScrollbarLength(), updateScrollbarPosition(), and updateVisible().
Referenced by Engines::NWN::CharFeats::changeAvailFeats(), Engines::NWN::CharClass::createClassList(), Engines::NWN::CharDomain::createDomainList(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::CharSkills::createSkillsList(), Engines::NWN::CharPremadeMenu::initCharacterList(), Engines::NWN::NewModuleMenu::initModuleList(), Engines::NWN::NewPremiumMenu::initModuleList(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::NWN::CharInfoVoice::initVoicesList(), Engines::NWN::CharFeats::makeAvailList(), Engines::NWN::CharFeats::makeKnownList(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::CharFeats::moveFeat(), Engines::NWN::CharSpells::moveSpell(), Engines::NWN::CharFeatsPopup::setFeats(), setText(), Engines::NWN::CharSpells::showSpellLevel(), Engines::NWN::CharDomain::~CharDomain(), Engines::NWN::CharFeats::~CharFeats(), and Engines::NWN::CharSpells::~CharSpells().
|
protectedvirtual |
Reimplemented in Engines::NWN::WidgetGridBox.
Definition at line 539 of file listbox.cpp.
References _items, _scrollbar, _visibleItems, and Engines::NWN::WidgetScrollbar::setLength().
Referenced by add(), clear(), and unlock().
|
protectedvirtual |
Definition at line 549 of file listbox.cpp.
References _items, _scrollbar, _startItem, _visibleItems, and Engines::NWN::WidgetScrollbar::setState().
Referenced by add(), Engines::NWN::WidgetGridBox::scrollDown(), scrollDown(), Engines::NWN::WidgetGridBox::scrollUp(), scrollUp(), setStartItem(), Engines::NWN::WidgetGridBox::unlock(), and unlock().
|
protectedvirtual |
Reimplemented in Engines::NWN::WidgetGridBox.
Definition at line 560 of file listbox.cpp.
References _contentX, _contentY, _contentZ, _items, _startItem, _visibleItems, GfxMan, hide(), Engines::Widget::isVisible(), and Engines::NWN::NWNWidget::setPosition().
Referenced by scrollDown(), scrollUp(), setStartItem(), sortByTag(), subActive(), and unlock().
bool Engines::NWN::WidgetListBox::wasDblClicked | ( | ) |
Definition at line 662 of file listbox.cpp.
References _dblClicked.
|
friend |
|
protected |
Definition at line 185 of file listbox.h.
Referenced by getContentHeight(), getProperties(), Engines::NWN::WidgetGridBox::unlock(), and unlock().
|
protected |
Definition at line 184 of file listbox.h.
Referenced by getContentWidth(), getProperties(), and Engines::NWN::WidgetGridBox::unlock().
|
protected |
Definition at line 180 of file listbox.h.
Referenced by getProperties(), setPosition(), Engines::NWN::WidgetGridBox::unlock(), unlock(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().
|
protected |
Definition at line 181 of file listbox.h.
Referenced by getProperties(), setPosition(), Engines::NWN::WidgetGridBox::unlock(), unlock(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().
|
protected |
Definition at line 182 of file listbox.h.
Referenced by setPosition(), Engines::NWN::WidgetGridBox::unlock(), unlock(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().
|
private |
Definition at line 202 of file listbox.h.
Referenced by itemDblClicked(), and wasDblClicked().
|
protected |
Definition at line 193 of file listbox.h.
Referenced by createScrollbar(), hide(), and show().
|
private |
Definition at line 201 of file listbox.h.
Referenced by createScrollbar(), getProperties(), hide(), and show().
|
protected |
Definition at line 187 of file listbox.h.
Referenced by add(), begin(), clear(), deselect(), end(), getSelectedItem(), remove(), reserve(), Engines::NWN::WidgetGridBox::scrollDown(), scrollDown(), select(), setStartItem(), sortByTag(), Engines::NWN::WidgetGridBox::subActive(), subActive(), Engines::NWN::WidgetGridBox::unlock(), unlock(), Engines::NWN::WidgetGridBox::updateScrollbarLength(), updateScrollbarLength(), updateScrollbarPosition(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().
|
protected |
|
private |
|
protected |
Definition at line 194 of file listbox.h.
Referenced by createScrollbar(), hide(), Engines::NWN::WidgetGridBox::mouseDown(), mouseDown(), remove(), show(), Engines::NWN::WidgetGridBox::subActive(), subActive(), Engines::NWN::WidgetGridBox::updateScrollbarLength(), updateScrollbarLength(), and updateScrollbarPosition().
|
protected |
Definition at line 191 of file listbox.h.
Referenced by clear(), deselect(), getSelected(), getSelectedItem(), remove(), select(), Engines::NWN::WidgetGridBox::subActive(), and subActive().
|
protected |
Definition at line 190 of file listbox.h.
Referenced by clear(), getStartItem(), remove(), Engines::NWN::WidgetGridBox::scrollDown(), scrollDown(), Engines::NWN::WidgetGridBox::scrollUp(), scrollUp(), setStartItem(), Engines::NWN::WidgetGridBox::subActive(), subActive(), Engines::NWN::WidgetGridBox::unlock(), unlock(), updateScrollbarPosition(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().
|
protected |
Definition at line 192 of file listbox.h.
Referenced by createScrollbar(), hide(), and show().
|
protected |
Definition at line 188 of file listbox.h.
Referenced by clear(), hide(), Engines::NWN::WidgetGridBox::mouseDown(), mouseDown(), remove(), Engines::NWN::WidgetGridBox::scrollDown(), scrollDown(), Engines::NWN::WidgetGridBox::scrollUp(), scrollUp(), setStartItem(), show(), Engines::NWN::WidgetGridBox::subActive(), subActive(), Engines::NWN::WidgetGridBox::unlock(), unlock(), Engines::NWN::WidgetGridBox::updateScrollbarLength(), updateScrollbarLength(), updateScrollbarPosition(), Engines::NWN::WidgetGridBox::updateVisible(), and updateVisible().