1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00
OpenMW/apps/openmw/mwgui/container.hpp

64 lines
1.3 KiB
C++
Raw Normal View History

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-15 15:52:39 +00:00
protected:
MWWorld::Environment& mEnvironment;
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);
void onSelectedItem(MyGUI::ItemBox* _sender, size_t _index);
2012-04-15 15:52:39 +00:00
//MWWorld::Ptr& mContainer;
};
}
#endif // CONTAINER_H