1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00
OpenMW/apps/openmw/mwgui/spellwindow.hpp

35 lines
776 B
C++
Raw Normal View History

#ifndef MWGUI_SPELLWINDOW_H
#define MWGUI_SPELLWINDOW_H
#include "window_pinnable_base.hpp"
namespace MWGui
{
class SpellWindow : public WindowPinnableBase
{
public:
SpellWindow(WindowManager& parWindowManager);
2012-05-29 10:35:03 +00:00
void updateSpells();
protected:
MyGUI::ScrollView* mSpellView;
MyGUI::Widget* mEffectBox;
2012-05-29 10:35:03 +00:00
int mHeight;
int mWidth;
void addGroup(const std::string& label, const std::string& label2);
int estimateHeight(int numSpells) const;
virtual void onPinToggled();
2012-05-29 10:35:03 +00:00
void onWindowResize(MyGUI::Window* _sender);
void onEnchantedItemSelected(MyGUI::Widget* _sender);
void onSpellSelected(MyGUI::Widget* _sender);
virtual void open();
};
}
#endif