|
xoreos
0.0.5
|
#include <charskills.h>


Public Member Functions | |
| WidgetListItemSkill (::Engines::GUI &gui, SkillItem skill) | |
| ~WidgetListItemSkill () | |
| void | setPosition (float x, float y, float z) |
| Set the widget's position. More... | |
| void | reset () |
| void | mouseDown (uint8 state, float x, float y) |
| A mouse button was pressed on the widget. More... | |
Public Member Functions inherited from Engines::NWN::WidgetListItemButton | |
| WidgetListItemButton (::Engines::GUI &gui, const Common::UString &button, const Common::UString &text, const Common::UString &icon, uint32 otherButtons=0x04, const Common::UString &soundClick="gui_button") | |
| ~WidgetListItemButton () | |
| 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... | |
| void | mouseDown (uint8 state, float x, float y) |
| A mouse button was pressed on the widget. More... | |
| void | mouseUp (uint8 state, float x, float y) |
| A mouse button was released on the widget. More... | |
| void | enter () |
| The mouse entered the widget. More... | |
| void | leave () |
| The mouse left the widget. More... | |
| bool | movable () const |
| void | setUnmovable () |
| void | setTextColor (float r, float g, float b, float a) |
| void | changeArrowDirection () |
Public Member Functions inherited from Engines::NWN::WidgetListItemBaseButton | |
| WidgetListItemBaseButton (::Engines::GUI &gui, const Common::UString &button, float spacing=0.0f, const Common::UString &soundClick="gui_button") | |
| ~WidgetListItemBaseButton () | |
| 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... | |
| void | setSound (const Common::UString &sound) |
Public Member Functions inherited from Engines::NWN::WidgetListItem | |
| WidgetListItem (::Engines::GUI &gui) | |
| ~WidgetListItem () | |
| bool | operator< (const WidgetListItem &item) const |
| void | mouseWheel (uint8 state, int x, int y) |
| A mouse wheel was used on the widget. More... | |
| void | mouseDblClick (uint8 state, float x, float y) |
| A mouse button was double-clicked on the widget. More... | |
| void | select () |
| size_t | getItemNumber () const |
Public Member Functions inherited from Engines::NWN::NWNWidget | |
| NWNWidget (::Engines::GUI &gui, const Common::UString &tag) | |
| ~NWNWidget () | |
| void | hide () |
| Hide the widget. More... | |
| void | enter () |
| The mouse entered the widget. More... | |
| void | leave () |
| The mouse left the widget. More... | |
| void | setPosition (float x, float y, float z) |
| Set the widget's position. 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 | setDisabled (bool disabled) |
| Disable/Enable the widget. 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... | |
| 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... | |
Private Member Functions | |
| void | subActive (Widget &widget) |
| A sub-widget was activated. More... | |
| bool | changeRank (bool isIncreasing) |
Private Attributes | |
| WidgetButton * | _upButton |
| WidgetButton * | _downButton |
| WidgetPanel * | _skillPointPanel |
| SkillItem | _skill |
Friends | |
| class | CharSkills |
Additional Inherited Members | |
Protected Member Functions inherited from Engines::NWN::WidgetListItemButton | |
| virtual void | callbackHelp () |
Protected Member Functions inherited from Engines::NWN::WidgetListItemBaseButton | |
| bool | activate () |
| bool | deactivate () |
Protected Member Functions inherited from Engines::NWN::WidgetListItem | |
| bool | getState () |
| void | signalGroupMemberActive () |
| A fellow group member signaled that it is now active. More... | |
Protected Member Functions inherited from Engines::Widget | |
| void | setActive (bool active) |
| The widget's active state. More... | |
| void | raiseCallbackActive (Widget &widget) |
Protected Attributes inherited from Engines::NWN::WidgetListItemButton | |
| Common::ScopedPtr< Graphics::Aurora::Text > | _text |
| Common::ScopedPtr< Portrait > | _icon |
| bool | _isRight |
| bool | _isMovable |
| Common::ScopedPtr< Graphics::Aurora::Model > | _helpButton |
| WidgetButton * | _moveButtonRight |
| WidgetButton * | _moveButtonLeft |
Protected Attributes inherited from Engines::NWN::WidgetListItemBaseButton | |
| Common::ScopedPtr< Graphics::Aurora::Model > | _button |
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... | |
Definition at line 39 of file charskills.h.
| Engines::NWN::WidgetListItemSkill::WidgetListItemSkill | ( | ::Engines::GUI & | gui, |
| SkillItem | skill | ||
| ) |
Definition at line 50 of file charskills.cpp.
References _downButton, _skillPointPanel, Engines::Widget::_tag, Engines::NWN::WidgetListItemButton::_text, _upButton, Engines::Widget::addChild(), Engines::Widget::addSub(), Engines::NWN::NWNWidgetWithCaption::initCaption(), Graphics::Aurora::kHAlignCenter, Graphics::Aurora::kVAlignMiddle, Engines::NWN::SkillItem::name, and Engines::NWN::WidgetListItemBaseButton::setTag().

| Engines::NWN::WidgetListItemSkill::~WidgetListItemSkill | ( | ) |
Definition at line 74 of file charskills.cpp.
References _skillPointPanel, and Engines::Widget::remove().

|
private |
Definition at line 117 of file charskills.cpp.
References _skill, _skillPointPanel, Engines::NWN::CharSkills::changeAvailableSkillRank(), Engines::NWN::SkillItem::isClassSkill, Engines::NWN::SkillItem::maxRank, Engines::NWN::SkillItem::minRank, Engines::NWN::SkillItem::rank, and Engines::NWN::NWNWidgetWithCaption::setText().
Referenced by Engines::NWN::CharSkills::setRecommendedSkills(), and subActive().


|
virtual |
A mouse button was pressed on the widget.
Reimplemented from Engines::Widget.
Definition at line 96 of file charskills.cpp.
References _skill, Engines::NWN::SkillItem::isClassSkill, Engines::Widget::mouseDown(), and Engines::NWN::CharSkills::setSkillCost().

| void Engines::NWN::WidgetListItemSkill::reset | ( | ) |
Definition at line 91 of file charskills.cpp.
References _skill, _skillPointPanel, Engines::NWN::SkillItem::minRank, Engines::NWN::SkillItem::rank, and Engines::NWN::NWNWidgetWithCaption::setText().
Referenced by Engines::NWN::CharSkills::reset().


|
virtual |
Set the widget's position.
Reimplemented from Engines::Widget.
Definition at line 78 of file charskills.cpp.
References Engines::NWN::WidgetListItemBaseButton::_button, _downButton, _skillPointPanel, _upButton, Engines::NWN::ModelWidget::setPosition(), Engines::NWN::WidgetButton::setPosition(), and Engines::NWN::WidgetListItemButton::setPosition().

|
privatevirtual |
A sub-widget was activated.
Reimplemented from Engines::Widget.
Definition at line 103 of file charskills.cpp.
References _skill, changeRank(), Common::UString::endsWith(), Engines::Widget::getTag(), Engines::NWN::SkillItem::help, Engines::NWN::SkillItem::isClassSkill, Engines::NWN::SkillItem::name, Engines::NWN::WidgetListItem::select(), Engines::NWN::CharSkills::setHelpText(), and Engines::NWN::CharSkills::setSkillCost().

|
friend |
Definition at line 59 of file charskills.h.
|
private |
Definition at line 54 of file charskills.h.
Referenced by setPosition(), and WidgetListItemSkill().
|
private |
Definition at line 57 of file charskills.h.
Referenced by Engines::NWN::CharSkills::callbackActive(), changeRank(), mouseDown(), reset(), Engines::NWN::CharSkills::reset(), Engines::NWN::CharSkills::setRecommendedSkills(), and subActive().
|
private |
Definition at line 55 of file charskills.h.
Referenced by changeRank(), reset(), setPosition(), WidgetListItemSkill(), and ~WidgetListItemSkill().
|
private |
Definition at line 53 of file charskills.h.
Referenced by setPosition(), and WidgetListItemSkill().
1.8.14