2013-03-31 12:36:03 +00:00
|
|
|
#ifndef OPENMW_MWGUI_COMPANIONWINDOW_H
|
|
|
|
#define OPENMW_MWGUI_COMPANIONWINDOW_H
|
|
|
|
|
|
|
|
#include "container.hpp"
|
|
|
|
#include "widgets.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class MessageBoxManager;
|
|
|
|
|
|
|
|
class CompanionWindow : public ContainerBase, public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 18:46:21 +00:00
|
|
|
CompanionWindow(DragAndDrop* dragAndDrop, MessageBoxManager* manager);
|
2013-03-31 12:36:03 +00:00
|
|
|
virtual ~CompanionWindow() {}
|
|
|
|
|
|
|
|
void open(MWWorld::Ptr npc);
|
|
|
|
|
|
|
|
virtual void notifyItemDragged(MWWorld::Ptr item, int count);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
MyGUI::Button* mCloseButton;
|
|
|
|
MyGUI::TextBox* mProfitLabel;
|
|
|
|
Widgets::MWDynamicStat* mEncumbranceBar;
|
|
|
|
MessageBoxManager* mMessageBoxManager;
|
|
|
|
|
|
|
|
void onMessageBoxButtonClicked(int button);
|
|
|
|
|
|
|
|
void updateEncumbranceBar();
|
|
|
|
|
|
|
|
void onWindowResize(MyGUI::Window* window);
|
|
|
|
void onCloseButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
|
|
|
|
virtual void onReferenceUnavailable();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|