mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 07:56:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			983 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			983 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_GAME_MWGUI_ITEMSELECTION_H
 | 
						|
#define OPENMW_GAME_MWGUI_ITEMSELECTION_H
 | 
						|
 | 
						|
#include "container.hpp"
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
    class ItemView;
 | 
						|
    class SortFilterItemModel;
 | 
						|
    class InventoryItemModel;
 | 
						|
 | 
						|
    class ItemSelectionDialog : public WindowModal
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        ItemSelectionDialog(const std::string& label);
 | 
						|
 | 
						|
        virtual void exit();
 | 
						|
 | 
						|
        typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
 | 
						|
        typedef MyGUI::delegates::CMultiDelegate1<MWWorld::Ptr> EventHandle_Item;
 | 
						|
 | 
						|
        EventHandle_Item eventItemSelected;
 | 
						|
        EventHandle_Void eventDialogCanceled;
 | 
						|
 | 
						|
        void openContainer (const MWWorld::Ptr& container);
 | 
						|
        void setCategory(int category);
 | 
						|
        void setFilter(int filter);
 | 
						|
 | 
						|
    private:
 | 
						|
        ItemView* mItemView;
 | 
						|
        SortFilterItemModel* mSortModel;
 | 
						|
        InventoryItemModel* mModel;
 | 
						|
 | 
						|
        void onSelectedItem(int index);
 | 
						|
 | 
						|
        void onCancelButtonClicked(MyGUI::Widget* sender);
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |