You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/openmw/mwgui/spellwindow.hpp

44 lines
974 B
C++

#ifndef MWGUI_SPELLWINDOW_H
#define MWGUI_SPELLWINDOW_H
#include "windowpinnablebase.hpp"
11 years ago
#include "../mwworld/ptr.hpp"
#include "spellmodel.hpp"
namespace MWGui
{
class SpellIcons;
class SpellView;
class SpellWindow : public WindowPinnableBase, public NoDrop
{
public:
SpellWindow(DragAndDrop* drag);
virtual ~SpellWindow();
void updateSpells();
void onFrame(float dt) { NoDrop::onFrame(dt); }
protected:
MyGUI::Widget* mEffectBox;
std::string mSpellToDelete;
void onEnchantedItemSelected(MWWorld::Ptr item, bool alreadyEquipped);
void onSpellSelected(const std::string& spellId);
void onModelIndexSelected(SpellModel::ModelIndex index);
void onDeleteSpellAccept();
virtual void onPinToggled();
virtual void onTitleDoubleClicked();
virtual void open();
SpellView* mSpellView;
SpellIcons* mSpellIcons;
};
}
#endif