xoreos
0.0.5
|
#include <widget.h>
Public Member Functions | |
Widget (GUI &gui, const Common::UString &tag) | |
virtual | ~Widget () |
const Common::UString & | getTag () const |
Get the widget's tag. More... | |
virtual void | setTag (const Common::UString &tag) |
Set 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... | |
virtual void | show () |
Show the widget. More... | |
virtual void | hide () |
Hide the widget. More... | |
Widget * | getParent () |
const Widget * | getParent () const |
Widget * | getChild (const Common::UString &childTag) |
Get the widget's child by tag. More... | |
virtual void | setPosition (float x, float y, float z) |
Set the widget's position. 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 float | getWidth () const |
Get the widget's width. More... | |
virtual float | getHeight () const |
Get the widget's height. More... | |
virtual void | setDisabled (bool disabled) |
Disable/Enable the widget. More... | |
virtual void | setInvisible (bool invisible) |
Make the widget invisible. More... | |
virtual void | enter () |
The mouse entered the widget. More... | |
virtual void | leave () |
The mouse left the widget. More... | |
virtual void | mouseMove (uint8 state, float x, float y) |
The mouse was moved over the widget. More... | |
virtual void | mouseDown (uint8 state, float x, float y) |
A mouse button was pressed on the widget. More... | |
virtual void | mouseUp (uint8 state, float x, float y) |
A mouse button was released on the widget. More... | |
virtual void | mouseWheel (uint8 state, int x, int y) |
A mouse wheel was used on the widget. More... | |
virtual void | mouseDblClick (uint8 state, float x, float y) |
A mouse button was double-clicked on the widget. More... | |
virtual void | subActive (Widget &widget) |
A sub-widget was activated. 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 | 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 | |
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 Attributes | |
bool | _active |
Was the widget activated? More... | |
bool | _visible |
Is the widget visible? More... | |
bool | _disabled |
Is the widget disabled? More... | |
bool | _invisible |
Is the widget invisible (never visible)? More... | |
float | _x |
The widget X position. More... | |
float | _y |
The widget Y position. More... | |
float | _z |
The widget Z position. More... | |
uint8 | _lastClickButton |
uint32 | _lastClickTime |
float | _lastClickX |
float | _lastClickY |
Friends | |
class | GUI |
Engines::Widget::Widget | ( | GUI & | gui, |
const Common::UString & | tag | ||
) |
Definition at line 34 of file widget.cpp.
|
virtual |
Definition at line 42 of file widget.cpp.
|
virtual |
Add a child to the widget.
Definition at line 215 of file widget.cpp.
References _children, and _parent.
Referenced by Engines::NWN::CharHelp::CharHelp(), Engines::WidgetListBox::createItemWidgets(), Engines::WidgetListBox::createScrollbar(), Engines::NWN::GUI::loadWidget(), Engines::NWN::WidgetGridItemPortrait::WidgetGridItemPortrait(), and Engines::NWN::WidgetListItemSkill::WidgetListItemSkill().
|
virtual |
Add a fellow group member to the widget.
Definition at line 222 of file widget.cpp.
References _groupMembers.
Referenced by Engines::NWN::WidgetListBox::add(), and Engines::NWN::CharDomain::moveDomain().
|
virtual |
Add a sub-widget to the widget.
Definition at line 206 of file widget.cpp.
References _gui, _owner, _subWidgets, Engines::GUI::addWidget(), getTag(), and Engines::GUI::hasWidget().
Referenced by Engines::NWN::WidgetListBox::add(), Engines::WidgetListBox::createItemWidgets(), Engines::WidgetListBox::createScrollbar(), Engines::NWN::WidgetListBox::createScrollbar(), Engines::NWN::CharDomain::moveDomain(), Engines::NWN::WidgetGridItemPortrait::WidgetGridItemPortrait(), Engines::NWN::WidgetListItemButton::WidgetListItemButton(), and Engines::NWN::WidgetListItemSkill::WidgetListItemSkill().
|
virtual |
The mouse entered the widget.
Reimplemented in Engines::NWN::WidgetListItemButton, Engines::NWN::NWNWidget, Engines::NWN::WidgetButton, Engines::NWN::WidgetCheckBox, Engines::WidgetButton, Engines::WidgetProtoItem, Engines::WidgetCheckBox, and Engines::WidgetLabel.
Definition at line 182 of file widget.cpp.
Referenced by Engines::GUI::changedWidget().
Widget * Engines::Widget::getChild | ( | const Common::UString & | childTag | ) |
Get the widget's child by tag.
Definition at line 110 of file widget.cpp.
References _children.
Referenced by Engines::NWN::CharSpells::showSpellLevel().
|
virtual |
Get the widget's height.
Reimplemented in Engines::NWN::PortraitWidget, Engines::NWN::WidgetScrollbar, Engines::KotORJadeWidget, Engines::NWN::WidgetListItemTextLine, Engines::NWN::QuadWidget, Engines::NWN::NWNWidgetWithCaption, Engines::NWN::WidgetListItemModule, Engines::NWN::WidgetListItemPremium, Engines::NWN::ModelWidget, Engines::NWN::QuickbarButton, Engines::NWN::WidgetListItemBaseButton, Engines::NWN::WidgetLabel, and Engines::NWN::WidgetGridItemPortrait.
Definition at line 150 of file widget.cpp.
Referenced by Engines::NWN::WidgetListBox::add().
Widget * Engines::Widget::getParent | ( | ) |
Definition at line 102 of file widget.cpp.
References _parent.
Referenced by Engines::NWN::CharAttributes::callbackActive().
const Widget * Engines::Widget::getParent | ( | ) | const |
Definition at line 106 of file widget.cpp.
References _parent.
|
virtual |
Get the widget's position.
Definition at line 140 of file widget.cpp.
Referenced by Engines::NWN::CharAppearance::adjustButtons(), Engines::NWN::WidgetSlider::changedValue(), Engines::NWN::CharHelp::CharHelp(), Engines::WidgetListBox::createScrollbar(), Engines::KotORJadeWidget::createText(), Engines::NWN::Tooltip::getParentPosition(), Engines::NWN::WidgetLabel::initCaption(), Engines::NWN::NWNWidgetWithCaption::initCaption(), Engines::KotOR2::GUI::initWidget(), Engines::KotOR::MainMenu::initWidget(), Engines::NWN::GUI::initWidget(), Engines::WidgetScrollbar::load(), Engines::KotORInventoryItem::load(), Engines::WidgetProgressbar::load(), Engines::Jade::GUI::loadWidget(), Engines::KotOR::GUI::loadWidget(), Engines::Jade::MainMenu::MainMenu(), Engines::KotOR::Menu::Menu(), Engines::NWN::WidgetGridBox::mouseDown(), Engines::NWN::WidgetListBox::mouseDown(), Engines::WidgetListBox::positionItemWidgets(), Engines::WidgetListBox::refreshItemWidgets(), Engines::KotORJadeWidget::setFill(), Engines::WidgetScrollbar::setHeight(), Engines::KotORJadeWidget::setHighlight(), Engines::WidgetScrollbar::setPosition(), Engines::WidgetProgressbar::setPosition(), Engines::KotORInventoryItem::setPosition(), Engines::NWN::WidgetListItemBaseButton::setPosition(), Engines::NWN::QuickbarButton::setPosition(), Engines::NWN::WidgetListItemPremium::setPosition(), Engines::NWN::WidgetListItemModule::setPosition(), Engines::NWN::ModelWidget::setPosition(), Engines::NWN::WidgetListItemCharacter::setPosition(), Engines::NWN::NWNWidgetWithCaption::setPosition(), Engines::NWN::QuadWidget::setPosition(), Engines::NWN::WidgetListItemTextLine::setPosition(), Engines::KotORJadeWidget::setPosition(), Engines::GUI::setPosition(), Engines::NWN::WidgetListBox::setPosition(), Engines::NWN::PortraitWidget::setPosition(), Engines::NWN::WidgetScrollbar::setState(), Engines::KotORJadeWidget::setSubScene(), Engines::NWN::WidgetLabel::setText(), Engines::NWN::WidgetEditBox::setTitle(), Engines::WidgetScrollbar::setWidth(), Engines::NWN::YesNoCancelDialog::show(), Engines::NWN::OKCancelDialog::show(), Engines::KotOR::HUD::update(), and Engines::NWN::CharDomain::updateChosenDomains().
const Common::UString & Engines::Widget::getTag | ( | ) | const |
Get the widget's tag.
Definition at line 45 of file widget.cpp.
References _tag.
Referenced by Engines::NWN::WidgetListBox::add(), addSub(), Engines::GUI::addWidget(), Engines::Jade::ControlOptionsMenu::callbackActive(), Engines::Jade::DifficultyOptionsMenu::callbackActive(), Engines::Jade::GameInfoOptionsMenu::callbackActive(), Engines::Jade::VideoOptionsMenu::callbackActive(), Engines::KotOR2::CharacterGenerationPortraitMenu::callbackActive(), Engines::KotOR::MenuAbilities::callbackActive(), Engines::KotOR::MenuCharacter::callbackActive(), Engines::KotOR::MenuInventory::callbackActive(), Engines::Jade::AudioOptionsMenu::callbackActive(), Engines::KotOR::MenuJournal::callbackActive(), Engines::KotOR::MenuMessages::callbackActive(), Engines::KotOR::OptionsFeedbackMenu::callbackActive(), Engines::KotOR::OptionsKeyboardConfigurationMenu::callbackActive(), Engines::KotOR2::CustomCharPanel::callbackActive(), Engines::KotOR2::QuickOrCustomPanel::callbackActive(), Engines::KotOR::MoviesMenu::callbackActive(), Engines::KotOR::OptionsResolutionMenu::callbackActive(), Engines::KotOR::CustomCharPanel::callbackActive(), Engines::KotOR::QuickCharPanel::callbackActive(), Engines::KotOR2::QuickCharPanel::callbackActive(), Engines::NWN::MoviesBaseMenu::callbackActive(), Engines::NWN::OptionsControlsMenu::callbackActive(), Engines::NWN::OptionsGorePasswordMenu::callbackActive(), Engines::KotOR::OptionsAutoPauseMenu::callbackActive(), Engines::KotOR::OptionsGraphicsAdvancedMenu::callbackActive(), Engines::KotOR::OptionsMouseSettingsMenu::callbackActive(), Engines::KotOR::OptionsSoundMenu::callbackActive(), Engines::KotOR::OptionsSoundAdvancedMenu::callbackActive(), Engines::KotOR::QuickOrCustomPanel::callbackActive(), Engines::KotOR::PartySelectionGUI::callbackActive(), Engines::KotOR::CharacterGenerationNameMenu::callbackActive(), Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive(), Engines::NWN::OptionsSoundAdvancedMenu::callbackActive(), Engines::NWN::MoviesCampMenu::callbackActive(), Engines::KotOR2::MainMenu::callbackActive(), Engines::KotOR::OptionsGameplayMenu::callbackActive(), Engines::KotOR::OptionsGraphicsMenu::callbackActive(), Engines::NWN::NewXP2Menu::callbackActive(), Engines::KotOR2::CharacterGenerationNameMenu::callbackActive(), Engines::KotOR::ConfirmDialog::callbackActive(), Engines::NWN::NewXP1Menu::callbackActive(), Engines::NWN::OptionsFeedbackMenu::callbackActive(), Engines::KotOR::ContainerMenu::callbackActive(), Engines::NWN::CharTypeMenu::callbackActive(), Engines::NWN::NewMenu::callbackActive(), Engines::NWN::NewCampMenu::callbackActive(), Engines::NWN::OptionsVideoAdvancedMenu::callbackActive(), Engines::Jade::MainMenu::callbackActive(), Engines::NWN::OptionsVideoMenu::callbackActive(), Engines::KotOR2::ClassSelection::callbackActive(), Engines::NWN::CharAppearance::callbackActive(), Engines::NWN::CharFeatsPopup::callbackActive(), Engines::NWN::CharHelp::callbackActive(), Engines::NWN::OptionsMenu::callbackActive(), Engines::KotOR::MenuMap::callbackActive(), Engines::NWN::IngameMainMenu::callbackActive(), Engines::NWN::CharRace::callbackActive(), Engines::NWN::CharSchool::callbackActive(), Engines::NWN::CharSex::callbackActive(), Engines::KotOR::OptionsMenu::callbackActive(), Engines::NWN::OptionsGameMenu::callbackActive(), Engines::NWN::OptionsSoundMenu::callbackActive(), Engines::NWN::CharAlignment::callbackActive(), Engines::NWN::CharClass::callbackActive(), Engines::KotOR::MainMenu::callbackActive(), Engines::NWN::CharGenMenu::callbackActive(), Engines::NWN::CharPackage::callbackActive(), Engines::NWN::MainMenu::callbackActive(), Engines::NWN::OKCancelDialog::callbackActive(), Engines::NWN::YesNoCancelDialog::callbackActive(), Engines::NWN::OptionsResolutionMenu::callbackActive(), Engines::KotOR::MenuOptions::callbackActive(), Engines::KotOR::MenuEquipment::callbackActive(), Engines::KotOR::ClassSelectionMenu::callbackActive(), Engines::KotOR::DialogGUIBase::callbackActive(), Engines::NWN::CharAttributes::callbackActive(), Engines::KotOR::SaveLoadMenu::callbackActive(), Engines::NWN::PartyLeader::callbackActive(), Engines::NWN::CharInfoVoice::callbackActive(), Engines::NWN::CharDomain::callbackActive(), Engines::NWN::CharPortrait::callbackActive(), Engines::NWN::CharSkills::callbackActive(), Engines::NWN::CharFeats::callbackActive(), Engines::NWN::CharSpells::callbackActive(), Engines::NWN::CharPremadeMenu::callbackActive(), Engines::Jade::OptionsMenu::callbackActive(), Engines::KotOR::HUD::callbackActive(), Engines::NWN::NewModuleMenu::callbackActive(), Engines::KotOR::Menu::callbackActive(), Engines::NWN::NewPremiumMenu::callbackActive(), Engines::NWN::WidgetListBox::createScrollbar(), Engines::KotORJadeWidget::createText(), Engines::NWN::NWNWidgetWithCaption::initCaption(), Engines::KotOR2::GUI::initWidget(), Engines::KotOR2::HUD::initWidget(), Engines::KotOR2::MainMenu::initWidget(), Engines::NWN::OptionsFeedbackMenu::initWidget(), Engines::NWN::NewXP1Menu::initWidget(), Engines::NWN::NewXP2Menu::initWidget(), Engines::NWN::OptionsVideoAdvancedMenu::initWidget(), Engines::NWN::IngameMainMenu::initWidget(), Engines::NWN::OptionsVideoMenu::initWidget(), Engines::NWN::OptionsMenu::initWidget(), Engines::NWN::OKCancelDialog::initWidget(), Engines::KotOR::MainMenu::initWidget(), Engines::NWN::OptionsGameMenu::initWidget(), Engines::NWN::OptionsSoundMenu::initWidget(), Engines::NWN::YesNoCancelDialog::initWidget(), Engines::NWN::OptionsResolutionMenu::initWidget(), Engines::KotOR::HUD::initWidget(), Engines::NWN::NewPremiumMenu::initWidget(), Engines::KotORJadeWidget::load(), Engines::NWN::GUI::loadWidget(), Engines::NWN::CharFeats::moveFeat(), Engines::NWN::WidgetListItem::operator<(), Engines::NWN::QuickbarButton::QuickbarButton(), Engines::GUI::removeWidget(), Engines::KotORJadeWidget::setFill(), Engines::KotORJadeWidget::setHighlight(), Engines::KotORJadeWidget::setTag(), Engines::NWN::PortraitWidget::setTag(), Engines::NWN::WidgetListItemDomain::subActive(), Engines::NWN::WidgetGridBox::subActive(), Engines::NWN::WidgetListItemSkill::subActive(), Engines::NWN::WidgetListItemFeat::subActive(), Engines::NWN::WidgetListItemSpell::subActive(), Engines::WidgetListBox::subActive(), and Engines::NWN::WidgetListBox::subActive().
|
virtual |
Get the widget's width.
Reimplemented in Engines::NWN::PortraitWidget, Engines::NWN::WidgetScrollbar, Engines::KotORJadeWidget, Engines::NWN::WidgetListItemTextLine, Engines::NWN::QuadWidget, Engines::NWN::NWNWidgetWithCaption, Engines::NWN::WidgetListItemModule, Engines::NWN::WidgetListItemPremium, Engines::NWN::ModelWidget, Engines::NWN::QuickbarButton, Engines::NWN::WidgetListItemBaseButton, Engines::NWN::WidgetLabel, and Engines::NWN::WidgetGridItemPortrait.
Definition at line 146 of file widget.cpp.
|
virtual |
Hide the widget.
Reimplemented in Engines::NWN::WidgetListBox, Engines::NWN::PortraitWidget, Engines::NWN::WidgetScrollbar, Engines::KotORJadeWidget, Engines::NWN::WidgetListItemTextLine, Engines::NWN::WidgetListItemButton, Engines::NWN::QuadWidget, Engines::NWN::WidgetListItemCharacter, Engines::NWN::NWNWidgetWithCaption, Engines::NWN::WidgetListItemModule, Engines::NWN::WidgetListItemPremium, Engines::NWN::ModelWidget, Engines::NWN::QuickbarButton, Engines::NWN::WidgetEditBox, Engines::NWN::NWNWidget, Engines::NWN::WidgetListItemBaseButton, Engines::KotORInventoryItem, Engines::WidgetProgressbar, and Engines::WidgetScrollbar.
Definition at line 90 of file widget.cpp.
References _children, and _visible.
Referenced by Engines::NWN::NWNWidget::hide(), Engines::KotORJadeWidget::hide(), remove(), Engines::GUI::removeWidget(), and Engines::NWN::CharSpells::showSpellLevel().
bool Engines::Widget::isActive | ( | ) | const |
Was the widget activated?
Definition at line 55 of file widget.cpp.
References _active.
Referenced by Engines::GUI::checkWidgetActive().
bool Engines::Widget::isDisabled | ( | ) | const |
Is the widget disabled?
Definition at line 63 of file widget.cpp.
References _disabled.
Referenced by Engines::NWN::WidgetCheckBox::enter(), Engines::NWN::WidgetButton::enter(), Engines::NWN::WidgetClose::leave(), Engines::NWN::WidgetCheckBox::leave(), Engines::NWN::WidgetButton::leave(), Engines::NWN::WidgetListItem::mouseDblClick(), Engines::NWN::WidgetGridBox::mouseDown(), Engines::NWN::WidgetClose::mouseDown(), Engines::NWN::WidgetCheckBox::mouseDown(), Engines::NWN::WidgetSlider::mouseDown(), Engines::NWN::WidgetButton::mouseDown(), Engines::NWN::WidgetScrollbar::mouseDown(), Engines::NWN::WidgetListBox::mouseDown(), Engines::NWN::WidgetSlider::mouseMove(), Engines::NWN::WidgetScrollbar::mouseMove(), Engines::WidgetCheckBox::mouseUp(), Engines::NWN::WidgetClose::mouseUp(), Engines::WidgetButton::mouseUp(), Engines::NWN::WidgetCheckBox::mouseUp(), Engines::NWN::WidgetListItem::mouseUp(), Engines::NWN::WidgetButton::mouseUp(), Engines::NWN::WidgetListItem::mouseWheel(), Engines::NWN::WidgetScrollbar::mouseWheel(), Engines::NWN::WidgetListBox::mouseWheel(), Engines::NWN::WidgetListItem::select(), Engines::NWN::WidgetButton::setDisabled(), and Engines::NWN::NWNWidgetWithCaption::setDisabled().
bool Engines::Widget::isInvisible | ( | ) | const |
Is the widget invisible (never visible)?
Definition at line 67 of file widget.cpp.
References _invisible.
Referenced by Engines::WidgetProgressbar::show(), Engines::WidgetScrollbar::show(), Engines::KotORInventoryItem::show(), Engines::NWN::ModelWidget::show(), Engines::NWN::NWNWidgetWithCaption::show(), Engines::KotORJadeWidget::show(), Engines::NWN::WidgetScrollbar::show(), and Engines::NWN::PortraitWidget::show().
bool Engines::Widget::isVisible | ( | ) | const |
Is the widget visible?
Definition at line 59 of file widget.cpp.
References _visible.
Referenced by Engines::NWN::WidgetListBox::add(), Engines::NWN::WidgetListItemButton::changeArrowDirection(), Engines::WidgetProgressbar::hide(), Engines::WidgetScrollbar::hide(), Engines::KotORInventoryItem::hide(), Engines::NWN::NWNWidget::hide(), Engines::NWN::ModelWidget::hide(), Engines::NWN::NWNWidgetWithCaption::hide(), Engines::KotORJadeWidget::hide(), Engines::NWN::WidgetScrollbar::hide(), Engines::NWN::PortraitWidget::hide(), Engines::WidgetListBox::refreshItemWidgets(), Engines::NWN::WidgetListBox::remove(), Engines::KotORJadeWidget::setFill(), Engines::KotORJadeWidget::setHighlight(), Engines::NWN::WidgetEditBox::setTitle(), Engines::WidgetProgressbar::show(), Engines::WidgetScrollbar::show(), Engines::KotORInventoryItem::show(), Engines::NWN::ModelWidget::show(), Engines::NWN::NWNWidgetWithCaption::show(), Engines::NWN::WidgetListItemButton::show(), Engines::NWN::WidgetScrollbar::show(), Engines::NWN::PortraitWidget::show(), Engines::NWN::CharSpells::showSpellLevel(), Engines::NWN::WidgetListBox::sortByTag(), Engines::NWN::WidgetGridBox::unlock(), Engines::NWN::WidgetListBox::unlock(), Engines::NWN::WidgetGridBox::updateVisible(), and Engines::NWN::WidgetListBox::updateVisible().
|
virtual |
The mouse left the widget.
Reimplemented in Engines::NWN::WidgetListItemButton, Engines::NWN::NWNWidget, Engines::NWN::WidgetButton, Engines::NWN::WidgetCheckBox, Engines::WidgetButton, Engines::WidgetProtoItem, Engines::NWN::WidgetClose, Engines::WidgetCheckBox, and Engines::WidgetLabel.
Definition at line 185 of file widget.cpp.
Referenced by Engines::GUI::changedWidget().
|
virtual |
A mouse button was double-clicked on the widget.
Reimplemented in Engines::NWN::WidgetListItem, and Engines::NWN::WidgetListItemDomain.
Definition at line 200 of file widget.cpp.
Referenced by Engines::GUI::mouseUp().
|
virtual |
A mouse button was pressed on the widget.
Reimplemented in Engines::NWN::WidgetListBox, Engines::NWN::PortraitWidget, Engines::NWN::WidgetScrollbar, Engines::NWN::WidgetListItemButton, Engines::NWN::WidgetButton, Engines::NWN::WidgetSlider, Engines::NWN::WidgetCheckBox, Engines::NWN::WidgetListItemBaseButton, Engines::NWN::WidgetClose, Engines::NWN::WidgetListItemVoice, Engines::NWN::WidgetGridItemPortrait, Engines::NWN::WidgetListItemSkill, and Engines::NWN::WidgetGridBox.
Definition at line 191 of file widget.cpp.
Referenced by Engines::NWN::WidgetGridItemPortrait::mouseDown(), Engines::NWN::WidgetListItemSkill::mouseDown(), Engines::NWN::WidgetListItemBaseButton::mouseDown(), Engines::NWN::WidgetScrollbar::mouseDown(), Engines::NWN::PortraitWidget::mouseDown(), and Engines::GUI::mouseDown().
|
virtual |
The mouse was moved over the widget.
Reimplemented in Engines::NWN::WidgetScrollbar, and Engines::NWN::WidgetSlider.
Definition at line 188 of file widget.cpp.
Referenced by Engines::GUI::mouseMove().
|
virtual |
A mouse button was released on the widget.
Reimplemented in Engines::NWN::WidgetListItemButton, Engines::NWN::WidgetButton, Engines::NWN::WidgetListItem, Engines::NWN::WidgetCheckBox, Engines::WidgetButton, Engines::WidgetProtoItem, Engines::NWN::WidgetClose, Engines::WidgetCheckBox, Engines::WidgetLabel, and Engines::NWN::WidgetListItemDomain.
Definition at line 194 of file widget.cpp.
Referenced by Engines::GUI::mouseUp().
|
virtual |
A mouse wheel was used on the widget.
Reimplemented in Engines::NWN::WidgetListBox, Engines::NWN::PortraitWidget, Engines::NWN::WidgetScrollbar, Engines::WidgetListBox, Engines::NWN::WidgetButton, Engines::NWN::WidgetListItem, and Engines::WidgetProtoItem.
Definition at line 197 of file widget.cpp.
Referenced by Engines::NWN::WidgetListItem::mouseWheel(), Engines::NWN::WidgetButton::mouseWheel(), Engines::NWN::WidgetScrollbar::mouseWheel(), Engines::NWN::PortraitWidget::mouseWheel(), and Engines::GUI::mouseWheel().
|
virtual |
Move the widget, relative to its current position.
Definition at line 136 of file widget.cpp.
References _x, _y, _z, and setPosition().
Referenced by Engines::NWN::CharSkills::CharSkills().
|
protected |
Definition at line 281 of file widget.cpp.
References _gui, and Engines::GUI::callbackActive().
Referenced by Engines::WidgetListBox::subActive().
void Engines::Widget::remove | ( | ) |
Remove the widget from the GUI.
Definition at line 258 of file widget.cpp.
References _gui, hide(), and Engines::GUI::removeWidget().
Referenced by Engines::NWN::CharHelp::CharHelp(), Engines::NWN::WidgetGridItemPortrait::~WidgetGridItemPortrait(), and Engines::NWN::WidgetListItemSkill::~WidgetListItemSkill().
|
virtual |
Remove a child from the widget.
Definition at line 238 of file widget.cpp.
References _children, and _parent.
Referenced by Engines::GUI::removeWidget().
|
virtual |
Remove fellow group member from the widget.
Definition at line 249 of file widget.cpp.
References _groupMembers.
Referenced by Engines::NWN::WidgetListBox::remove().
|
virtual |
Remove a sub-widget from the widget.
Definition at line 227 of file widget.cpp.
References _owner, and _subWidgets.
Referenced by Engines::NWN::WidgetListBox::remove(), and Engines::GUI::removeWidget().
|
protected |
The widget's active state.
Definition at line 268 of file widget.cpp.
References _active, and _groupMembers.
Referenced by Engines::NWN::WidgetListItem::activate(), Engines::NWN::WidgetSlider::changedValue(), Engines::GUI::checkWidgetActive(), Engines::NWN::WidgetListBox::itemDblClicked(), Engines::NWN::WidgetScrollbar::mouseMove(), Engines::WidgetLabel::mouseUp(), Engines::WidgetCheckBox::mouseUp(), Engines::WidgetProtoItem::mouseUp(), Engines::NWN::WidgetClose::mouseUp(), Engines::WidgetButton::mouseUp(), Engines::NWN::WidgetCheckBox::mouseUp(), Engines::NWN::WidgetButton::mouseUp(), Engines::WidgetCheckBox::setState(), Engines::NWN::WidgetCheckBox::setState(), Engines::NWN::WidgetGridBox::subActive(), and Engines::NWN::WidgetListBox::subActive().
|
virtual |
Disable/Enable the widget.
Reimplemented in Engines::NWN::NWNWidgetWithCaption, and Engines::NWN::WidgetButton.
Definition at line 154 of file widget.cpp.
References _children, _disabled, and _subWidgets.
Referenced by Engines::NWN::CharGenMenu::CharGenMenu(), Engines::NWN::CharInfoVoice::CharInfoVoice(), Engines::NWN::CharPremadeMenu::CharPremadeMenu(), Engines::NWN::CharRace::CharRace(), Engines::NWN::IngameMainMenu::IngameMainMenu(), Engines::KotOR::PartySelectionGUI::loadConfiguration(), Engines::NWN::MainMenu::MainMenu(), Engines::NWN::MoviesCampMenu::MoviesCampMenu(), Engines::NWN::NewCampMenu::NewCampMenu(), Engines::NWN::OptionsControlsMenu::OptionsControlsMenu(), Engines::NWN::OptionsFeedbackMenu::OptionsFeedbackMenu(), Engines::NWN::OptionsGameMenu::OptionsGameMenu(), Engines::NWN::OptionsGorePasswordMenu::OptionsGorePasswordMenu(), Engines::NWN::OptionsSoundAdvancedMenu::OptionsSoundAdvancedMenu(), Engines::NWN::OptionsSoundMenu::OptionsSoundMenu(), Engines::NWN::OptionsVideoAdvancedMenu::OptionsVideoAdvancedMenu(), Engines::NWN::OptionsVideoMenu::OptionsVideoMenu(), Engines::NWN::PartyLeader::PartyLeader(), Engines::NWN::NWNWidgetWithCaption::setDisabled(), Engines::KotOR::MenuMap::setReturnEnabled(), Engines::NWN::OptionsVideoMenu::show(), Engines::NWN::CharPremadeMenu::show(), Engines::KotOR2::QuickCharPanel::updateButtons(), and Engines::KotOR::QuickCharPanel::updateButtons().
|
virtual |
Make the widget invisible.
Reimplemented in Engines::KotORJadeWidget.
Definition at line 168 of file widget.cpp.
References _children, _invisible, and _subWidgets.
Referenced by Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), Engines::KotOR2::HUD::initWidget(), Engines::KotOR2::MainMenu::initWidget(), Engines::KotOR::MainMenu::initWidget(), Engines::KotOR::HUD::initWidget(), Engines::NWN::NewMenu::NewMenu(), Engines::NWN::NewXP1Menu::NewXP1Menu(), Engines::NWN::NewXP2Menu::NewXP2Menu(), Engines::KotORJadeWidget::setInvisible(), Engines::NWN::CharSpells::showSpellLevel(), and Engines::KotOR::HUD::update().
|
virtual |
Set the widget's position.
Reimplemented in Engines::NWN::PortraitWidget, Engines::NWN::WidgetListBox, Engines::NWN::WidgetScrollbar, Engines::KotORJadeWidget, Engines::NWN::WidgetListItemTextLine, Engines::NWN::WidgetListItemButton, Engines::NWN::QuadWidget, Engines::NWN::NWNWidgetWithCaption, Engines::NWN::WidgetListItemCharacter, Engines::NWN::NWNWidget, Engines::NWN::WidgetListItemModule, Engines::NWN::WidgetListItemPremium, Engines::NWN::WidgetButton, Engines::NWN::ModelWidget, Engines::NWN::QuickbarButton, Engines::NWN::WidgetListItemBaseButton, Engines::NWN::WidgetSlider, Engines::KotORInventoryItem, Engines::WidgetProgressbar, Engines::NWN::WidgetListItemSkill, and Engines::WidgetScrollbar.
Definition at line 119 of file widget.cpp.
References _children, _x, _y, and _z.
Referenced by Engines::NWN::CharAppearance::adjustButtons(), Engines::KotOR::MainMenu::initWidget(), Engines::NWN::GUI::initWidget(), Engines::KotORJadeWidget::load(), movePosition(), Engines::NWN::NWNWidget::setPosition(), Engines::KotORJadeWidget::setPosition(), Engines::GUI::setPosition(), Engines::KotOR::HUD::update(), and Engines::WidgetPanel::WidgetPanel().
|
virtual |
Set the widget's tag.
Reimplemented in Engines::NWN::PortraitWidget, Engines::NWN::WidgetListItemTextLine, Engines::KotORJadeWidget, Engines::NWN::WidgetListItemModule, Engines::NWN::WidgetListItemPremium, Engines::NWN::ModelWidget, Engines::NWN::QuickbarButton, and Engines::NWN::WidgetListItemBaseButton.
Definition at line 49 of file widget.cpp.
References _tag, and Common::UString::empty().
Referenced by Engines::NWN::WidgetListBox::add(), Engines::NWN::QuickbarButton::QuickbarButton(), Engines::NWN::WidgetListItemBaseButton::setTag(), Engines::NWN::ModelWidget::setTag(), Engines::NWN::WidgetListItemModule::setTag(), Engines::NWN::WidgetListItemPremium::setTag(), Engines::KotORJadeWidget::setTag(), Engines::NWN::WidgetListItemTextLine::setTag(), and Engines::NWN::PortraitWidget::setTag().
|
virtual |
Show the widget.
Reimplemented in Engines::NWN::WidgetListBox, Engines::NWN::PortraitWidget, Engines::NWN::WidgetScrollbar, Engines::KotORJadeWidget, Engines::NWN::WidgetListItemTextLine, Engines::NWN::WidgetListItemButton, Engines::NWN::QuadWidget, Engines::NWN::WidgetListItemCharacter, Engines::NWN::NWNWidgetWithCaption, Engines::NWN::WidgetListItemModule, Engines::NWN::WidgetListItemPremium, Engines::NWN::ModelWidget, Engines::NWN::QuickbarButton, Engines::NWN::WidgetEditBox, Engines::NWN::WidgetListItemBaseButton, Engines::KotORInventoryItem, Engines::WidgetProgressbar, and Engines::WidgetScrollbar.
Definition at line 71 of file widget.cpp.
References _children, _invisible, _lastClickButton, _lastClickTime, _lastClickX, _lastClickY, and _visible.
Referenced by Engines::NWN::MainMenu::show(), Engines::NWN::WidgetListItemBaseButton::show(), Engines::NWN::NWNWidgetWithCaption::show(), Engines::GUI::show(), Engines::KotORJadeWidget::show(), Engines::NWN::WidgetScrollbar::show(), Engines::NWN::PortraitWidget::show(), and Engines::NWN::CharSpells::showSpellLevel().
|
protectedvirtual |
A fellow group member signaled that it is now active.
Reimplemented in Engines::NWN::WidgetListItem, and Engines::NWN::WidgetCheckBox.
Definition at line 264 of file widget.cpp.
References _active.
Referenced by Engines::NWN::WidgetCheckBox::signalGroupMemberActive(), and Engines::NWN::WidgetListItem::signalGroupMemberActive().
|
virtual |
A sub-widget was activated.
Reimplemented in Engines::NWN::WidgetListBox, Engines::WidgetListBox, Engines::NWN::WidgetListItemSpell, Engines::NWN::WidgetListItemFeat, Engines::NWN::WidgetListItemSkill, Engines::NWN::WidgetGridBox, and Engines::NWN::WidgetListItemDomain.
Definition at line 203 of file widget.cpp.
Referenced by Engines::GUI::checkWidgetActive().
|
private |
Was the widget activated?
Definition at line 126 of file widget.h.
Referenced by isActive(), setActive(), and signalGroupMemberActive().
|
protected |
The widget's children.
Definition at line 116 of file widget.h.
Referenced by addChild(), getChild(), hide(), removeChild(), setDisabled(), setInvisible(), setPosition(), and show().
|
private |
Is the widget disabled?
Definition at line 128 of file widget.h.
Referenced by isDisabled(), and setDisabled().
|
protected |
The widget's fellow group members.
Definition at line 117 of file widget.h.
Referenced by addGroupMember(), Engines::NWN::WidgetCheckBox::mouseUp(), removeGroupMember(), Engines::GUI::removeWidget(), setActive(), and Engines::NWN::WidgetCheckBox::setState().
|
protected |
The GUI the widget belongs to.
Definition at line 108 of file widget.h.
Referenced by addSub(), Engines::WidgetListBox::createItemWidgets(), Engines::WidgetListBox::createScrollbar(), Engines::NWN::WidgetListBox::createScrollbar(), raiseCallbackActive(), remove(), and Engines::NWN::WidgetListBox::setText().
|
private |
Is the widget invisible (never visible)?
Definition at line 129 of file widget.h.
Referenced by isInvisible(), setInvisible(), and show().
|
private |
Definition at line 135 of file widget.h.
Referenced by Engines::GUI::mouseUp(), and show().
|
private |
Definition at line 136 of file widget.h.
Referenced by Engines::GUI::mouseUp(), and show().
|
private |
Definition at line 137 of file widget.h.
Referenced by Engines::GUI::mouseUp(), and show().
|
private |
Definition at line 138 of file widget.h.
Referenced by Engines::GUI::mouseUp(), and show().
|
protected |
The widget's owner, if any.
Definition at line 113 of file widget.h.
Referenced by Engines::NWN::WidgetListItem::activate(), addSub(), Engines::GUI::checkWidgetActive(), Engines::NWN::WidgetListItem::deactivate(), Engines::NWN::WidgetListItem::mouseDblClick(), Engines::NWN::WidgetGridItemPortrait::mouseDown(), Engines::NWN::WidgetScrollbar::mouseDown(), Engines::NWN::PortraitWidget::mouseDown(), Engines::NWN::WidgetListItem::mouseWheel(), Engines::NWN::WidgetButton::mouseWheel(), Engines::NWN::WidgetScrollbar::mouseWheel(), Engines::NWN::PortraitWidget::mouseWheel(), Engines::NWN::CharFeats::moveFeat(), Engines::NWN::CharSpells::moveSpell(), removeSub(), Engines::GUI::removeWidget(), and Engines::GUI::show().
|
protected |
The widget's parent, if any.
Definition at line 112 of file widget.h.
Referenced by addChild(), getParent(), removeChild(), Engines::GUI::removeWidget(), and Engines::GUI::setPosition().
|
protected |
The widget's sub-widgets.
Definition at line 115 of file widget.h.
Referenced by addSub(), removeSub(), setDisabled(), setInvisible(), and Engines::NWN::WidgetListBox::setPosition().
|
protected |
The widget's tag.
Definition at line 110 of file widget.h.
Referenced by Engines::WidgetListBox::createItemWidgets(), Engines::WidgetListBox::createScrollbar(), getTag(), Engines::WidgetListBox::selectItemByWidgetTag(), setTag(), and Engines::NWN::WidgetListItemSkill::WidgetListItemSkill().
|
private |
Is the widget visible?
Definition at line 127 of file widget.h.
Referenced by hide(), isVisible(), and show().
|
private |
The widget X position.
Definition at line 131 of file widget.h.
Referenced by getPosition(), movePosition(), and setPosition().
|
private |
The widget Y position.
Definition at line 132 of file widget.h.
Referenced by getPosition(), movePosition(), and setPosition().
|
private |
The widget Z position.
Definition at line 133 of file widget.h.
Referenced by getPosition(), movePosition(), and setPosition().