OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MWGui::AlchemyWindow Class Reference

#include <alchemywindow.hpp>

Inheritance diagram for MWGui::AlchemyWindow:
Collaboration diagram for MWGui::AlchemyWindow:

Public Member Functions

 AlchemyWindow ()
 
virtual void onOpen ()
 Notify that window has been made visible. More...
 
void onResChange (int, int)
 Called when GUI viewport changes size. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual MyGUI::Widget * getDefaultKeyFocus ()
 
virtual void setPtr (const MWWorld::Ptr &ptr)
 Open this object in the GUI, for windows that support it. More...
 
virtual void onFrame (float duration)
 Called every frame if the window is in an active GUI mode. More...
 
virtual void onClose ()
 Notify that window has been hidden. More...
 
virtual bool exit ()
 Gracefully exits the window. More...
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
virtual void clear ()
 Clear any state specific to the running game. More...
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Private Member Functions

void onCancelButtonClicked (MyGUI::Widget *_sender)
 
void onCreateButtonClicked (MyGUI::Widget *_sender)
 
void onIngredientSelected (MyGUI::Widget *_sender)
 
void onAccept (MyGUI::EditBox *)
 
void onIncreaseButtonPressed (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
 
void onDecreaseButtonPressed (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
 
void onCountButtonReleased (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
 
void onCountValueChanged (int value)
 
void onRepeatClick (MyGUI::Widget *widget, MyGUI::ControllerItem *controller)
 
void addRepeatController (MyGUI::Widget *widget)
 
void onIncreaseButtonTriggered ()
 
void onDecreaseButtonTriggered ()
 
void onSelectedItem (int index)
 
void removeIngredient (MyGUI::Widget *ingredient)
 
void createPotions (int count)
 
void update ()
 

Private Attributes

std::string mSuggestedPotionName
 
ItemViewmItemView
 
SortFilterItemModelmSortModel
 
MyGUI::Button * mCreateButton
 
MyGUI::Button * mCancelButton
 
MyGUI::Widget * mEffectsBox
 
MyGUI::Button * mIncreaseButton
 
MyGUI::Button * mDecreaseButton
 
MyGUI::EditBox * mNameEdit
 
Gui::NumericEditBoxmBrewCountEdit
 
std::unique_ptr
< MWMechanics::Alchemy
mAlchemy
 
std::vector< ItemWidget * > mApparatus
 
std::vector< ItemWidget * > mIngredients
 

Static Private Attributes

static const float sCountChangeInitialPause = 0.5f
 
static const float sCountChangeInterval = 0.1f
 

Additional Inherited Members

- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Constructor & Destructor Documentation

MWGui::AlchemyWindow::AlchemyWindow ( )

Here is the call graph for this function:

Member Function Documentation

void MWGui::AlchemyWindow::addRepeatController ( MyGUI::Widget *  widget)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::createPotions ( int  count)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onAccept ( MyGUI::EditBox *  sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onCancelButtonClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onCountButtonReleased ( MyGUI::Widget *  _sender,
int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
private

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onCountValueChanged ( int  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onCreateButtonClicked ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onDecreaseButtonPressed ( MyGUI::Widget *  _sender,
int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onDecreaseButtonTriggered ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onIncreaseButtonPressed ( MyGUI::Widget *  _sender,
int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onIncreaseButtonTriggered ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onIngredientSelected ( MyGUI::Widget *  _sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onOpen ( )
virtual

Notify that window has been made visible.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::AlchemyWindow::onRepeatClick ( MyGUI::Widget *  widget,
MyGUI::ControllerItem *  controller 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::onResChange ( int  width,
int  height 
)
inlinevirtual

Called when GUI viewport changes size.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::AlchemyWindow::onSelectedItem ( int  index)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::removeIngredient ( MyGUI::Widget *  ingredient)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::AlchemyWindow::update ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<MWMechanics::Alchemy> MWGui::AlchemyWindow::mAlchemy
private
std::vector<ItemWidget*> MWGui::AlchemyWindow::mApparatus
private
Gui::NumericEditBox* MWGui::AlchemyWindow::mBrewCountEdit
private
MyGUI::Button* MWGui::AlchemyWindow::mCancelButton
private
MyGUI::Button* MWGui::AlchemyWindow::mCreateButton
private
MyGUI::Button* MWGui::AlchemyWindow::mDecreaseButton
private
MyGUI::Widget* MWGui::AlchemyWindow::mEffectsBox
private
MyGUI::Button* MWGui::AlchemyWindow::mIncreaseButton
private
std::vector<ItemWidget*> MWGui::AlchemyWindow::mIngredients
private
ItemView* MWGui::AlchemyWindow::mItemView
private
MyGUI::EditBox* MWGui::AlchemyWindow::mNameEdit
private
SortFilterItemModel* MWGui::AlchemyWindow::mSortModel
private
std::string MWGui::AlchemyWindow::mSuggestedPotionName
private
const float MWGui::AlchemyWindow::sCountChangeInitialPause = 0.5f
staticprivate
const float MWGui::AlchemyWindow::sCountChangeInterval = 0.1f
staticprivate

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