1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 15:49:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/itemselection.hpp

35 lines
860 B
C++
Raw Normal View History

#include "container.hpp"
namespace MWGui
{
2013-05-11 16:38:27 +00:00
class ItemView;
class SortFilterItemModel;
class InventoryItemModel;
2013-05-11 16:38:27 +00:00
class ItemSelectionDialog : public WindowModal
{
public:
2013-05-11 16:38:27 +00:00
ItemSelectionDialog(const std::string& label);
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
typedef MyGUI::delegates::CMultiDelegate1<MWWorld::Ptr> EventHandle_Item;
EventHandle_Item eventItemSelected;
EventHandle_Void eventDialogCanceled;
2013-05-11 16:38:27 +00:00
void openContainer (const MWWorld::Ptr& container);
void setCategory(int category);
void setFilter(int filter);
private:
2013-05-11 16:38:27 +00:00
ItemView* mItemView;
SortFilterItemModel* mSortModel;
InventoryItemModel* mModel;
2013-05-11 16:38:27 +00:00
void onSelectedItem(int index);
void onCancelButtonClicked(MyGUI::Widget* sender);
};
}