OpenMW
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
MWGui::SpellBuyingWindow Class Reference

#include <spellbuyingwindow.hpp>

List of all members.

Public Member Functions

 SpellBuyingWindow ()
void startSpellBuying (const MWWorld::Ptr &actor)

Protected Member Functions

void onCancelButtonClicked (MyGUI::Widget *_sender)
void onSpellButtonClick (MyGUI::Widget *_sender)
void onMouseWheel (MyGUI::Widget *_sender, int _rel)
void addSpell (const std::string &spellID)
void clearSpells ()
void updateLabels ()
virtual void onReferenceUnavailable ()
 called when reference has become unavailable
bool playerHasSpell (const std::string &id)

Protected Attributes

MyGUI::Button * mCancelButton
MyGUI::TextBox * mPlayerGold
MyGUI::ScrollView * mSpellsView
std::map< MyGUI::Widget
*, std::string > 
mSpellsWidgetMap
int mLastPos
int mCurrentY

Static Protected Attributes

static const int sLineHeight = 18

Constructor & Destructor Documentation


Member Function Documentation

void MWGui::SpellBuyingWindow::addSpell ( const std::string &  spellID) [protected]
void MWGui::SpellBuyingWindow::onCancelButtonClicked ( MyGUI::Widget *  _sender) [protected]
void MWGui::SpellBuyingWindow::onMouseWheel ( MyGUI::Widget *  _sender,
int  _rel 
) [protected]
void MWGui::SpellBuyingWindow::onReferenceUnavailable ( ) [protected, virtual]

called when reference has become unavailable

Implements MWGui::ReferenceInterface.

void MWGui::SpellBuyingWindow::onSpellButtonClick ( MyGUI::Widget *  _sender) [protected]
bool MWGui::SpellBuyingWindow::playerHasSpell ( const std::string &  id) [protected]

Member Data Documentation

MyGUI::Button* MWGui::SpellBuyingWindow::mCancelButton [protected]
MyGUI::TextBox* MWGui::SpellBuyingWindow::mPlayerGold [protected]
MyGUI::ScrollView* MWGui::SpellBuyingWindow::mSpellsView [protected]
std::map<MyGUI::Widget*, std::string> MWGui::SpellBuyingWindow::mSpellsWidgetMap [protected]
const int MWGui::SpellBuyingWindow::sLineHeight = 18 [static, protected]

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