#ifndef OPENMW_MWGUI_RECHARGE_H
#define OPENMW_MWGUI_RECHARGE_H

#include "windowbase.hpp"

#include "../mwworld/ptr.hpp"

namespace MWGui
{

class Recharge : public WindowBase
{
public:
    Recharge();

    virtual void open();

    virtual void exit();

    void start (const MWWorld::Ptr& gem);

protected:
    MyGUI::Widget* mBox;
    MyGUI::ScrollView* mView;

    MyGUI::Widget* mGemBox;

    MyGUI::ImageBox* mGemIcon;

    MyGUI::TextBox* mChargeLabel;

    MyGUI::Button* mCancelButton;

    void updateView();

    void onItemClicked (MyGUI::Widget* sender);
    void onCancel (MyGUI::Widget* sender);
    void onMouseWheel(MyGUI::Widget* _sender, int _rel);

};

}

#endif