2012-04-15 15:52:39 +00:00
|
|
|
#ifndef MGUI_CONTAINER_H
|
|
|
|
#define MGUI_CONTAINER_H
|
|
|
|
|
|
|
|
#include <components/esm_store/store.hpp>
|
|
|
|
#include "../mwclass/container.hpp"
|
|
|
|
#include <sstream>
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
#include <utility>
|
|
|
|
#include "window_base.hpp"
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include "../mwworld/containerstore.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Environment;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Gui;
|
|
|
|
class Widget;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class ContainerWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ContainerWindow(WindowManager& parWindowManager,MWWorld::Environment& environment);
|
2012-04-21 08:51:01 +00:00
|
|
|
ContainerWindow(WindowManager& parWindowManager,MWWorld::Environment& environment,std::string guiFile);
|
2012-04-15 15:52:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
void open(MWWorld::Ptr& container);
|
|
|
|
void setName(std::string contName);
|
|
|
|
void Update();
|
|
|
|
|
|
|
|
virtual ~ContainerWindow();
|
2012-04-21 09:05:30 +00:00
|
|
|
|
2012-04-15 15:52:39 +00:00
|
|
|
protected:
|
|
|
|
MWWorld::Environment& mEnvironment;
|
2012-04-21 18:35:45 +00:00
|
|
|
std::vector<MyGUI::WidgetPtr> mContainerWidgets;
|
|
|
|
MyGUI::ItemBoxPtr mContainerWidget;
|
2012-04-15 15:52:39 +00:00
|
|
|
|
|
|
|
MyGUI::ButtonPtr takeButton;
|
|
|
|
MyGUI::ButtonPtr closeButton;
|
|
|
|
|
|
|
|
|
2012-04-15 19:02:54 +00:00
|
|
|
void onByeClicked(MyGUI::Widget* _sender);
|
2012-04-21 18:35:45 +00:00
|
|
|
void onSelectedItem(MyGUI::ItemBox* _sender, size_t _index);
|
2012-04-15 15:52:39 +00:00
|
|
|
|
|
|
|
//MWWorld::Ptr& mContainer;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // CONTAINER_H
|