2012-08-26 08:52:06 +00:00
|
|
|
#include "container.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class ItemSelectionDialog : public ContainerBase, public WindowModal
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 18:46:21 +00:00
|
|
|
ItemSelectionDialog(const std::string& label, int filter);
|
2012-08-26 08:52:06 +00:00
|
|
|
|
|
|
|
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
|
|
|
typedef MyGUI::delegates::CMultiDelegate1<MWWorld::Ptr> EventHandle_Item;
|
|
|
|
|
|
|
|
EventHandle_Item eventItemSelected;
|
|
|
|
EventHandle_Void eventDialogCanceled;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
virtual void onReferenceUnavailable() { ; }
|
|
|
|
|
|
|
|
virtual void onSelectedItemImpl(MWWorld::Ptr item);
|
|
|
|
|
|
|
|
void onCancelButtonClicked(MyGUI::Widget* sender);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|