OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
itemselection.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_GAME_MWGUI_ITEMSELECTION_H
2 #define OPENMW_GAME_MWGUI_ITEMSELECTION_H
3 
4 #include <MyGUI_Delegate.h>
5 
6 #include "windowbase.hpp"
7 
8 namespace MWWorld
9 {
10  class Ptr;
11 }
12 
13 namespace MWGui
14 {
15  class ItemView;
16  class SortFilterItemModel;
17  class InventoryItemModel;
18 
20  {
21  public:
22  ItemSelectionDialog(const std::string& label);
23 
24  virtual void exit();
25 
26  typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
27  typedef MyGUI::delegates::CMultiDelegate1<MWWorld::Ptr> EventHandle_Item;
28 
31 
32  void openContainer (const MWWorld::Ptr& container);
33  void setCategory(int category);
34  void setFilter(int filter);
35 
36  private:
40 
41  void onSelectedItem(int index);
42 
43  void onCancelButtonClicked(MyGUI::Widget* sender);
44  };
45 
46 }
47 
48 #endif
InventoryItemModel * mModel
Definition: itemselection.hpp:39
Definition: itemview.hpp:11
EventHandle_Void eventDialogCanceled
Definition: itemselection.hpp:30
Definition: itemselection.hpp:19
void openContainer(const MWWorld::Ptr &container)
Definition: itemselection.cpp:37
SortFilterItemModel * mSortModel
Definition: itemselection.hpp:38
virtual void exit()
Gracefully exits the window.
Definition: itemselection.cpp:32
EventHandle_Item eventItemSelected
Definition: itemselection.hpp:29
Definition: sortfilteritemmodel.hpp:9
ItemSelectionDialog(const std::string &label)
Definition: itemselection.cpp:13
void setCategory(int category)
Definition: itemselection.cpp:45
MyGUI::delegates::CMultiDelegate1< MWWorld::Ptr > EventHandle_Item
Definition: itemselection.hpp:27
void onSelectedItem(int index)
Definition: itemselection.cpp:57
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: itemselection.hpp:26
Definition: inventoryitemmodel.hpp:9
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
ItemView * mItemView
Definition: itemselection.hpp:37
void onCancelButtonClicked(MyGUI::Widget *sender)
Definition: itemselection.cpp:63
void setFilter(int filter)
Definition: itemselection.cpp:51
Definition: windowbase.hpp:41