OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
MWGui::ItemSelectionDialog Class Reference

#include <itemselection.hpp>

Inheritance diagram for MWGui::ItemSelectionDialog:
Collaboration diagram for MWGui::ItemSelectionDialog:

Public Types

typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
typedef
MyGUI::delegates::CMultiDelegate1
< MWWorld::Ptr
EventHandle_Item
 
- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 

Public Member Functions

 ItemSelectionDialog (const std::string &label)
 
virtual void exit ()
 Gracefully exits the window. More...
 
void openContainer (const MWWorld::Ptr &container)
 
void setCategory (int category)
 
void setFilter (int filter)
 
- Public Member Functions inherited from MWGui::WindowModal
 WindowModal (const std::string &parLayout)
 
virtual void open ()
 Notify that window has been made visible. More...
 
virtual void close ()
 Notify that window has been hidden. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Public Attributes

EventHandle_Item eventItemSelected
 
EventHandle_Void eventDialogCanceled
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 

Private Member Functions

void onSelectedItem (int index)
 
void onCancelButtonClicked (MyGUI::Widget *sender)
 

Private Attributes

ItemViewmItemView
 
SortFilterItemModelmSortModel
 
InventoryItemModelmModel
 

Additional Inherited Members

- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate1<MWWorld::Ptr> MWGui::ItemSelectionDialog::EventHandle_Item
typedef MyGUI::delegates::CMultiDelegate0 MWGui::ItemSelectionDialog::EventHandle_Void

Constructor & Destructor Documentation

MWGui::ItemSelectionDialog::ItemSelectionDialog ( const std::string &  label)

Here is the call graph for this function:

Member Function Documentation

void MWGui::ItemSelectionDialog::exit ( )
virtual

Gracefully exits the window.

Reimplemented from MWGui::WindowModal.

Here is the caller graph for this function:

void MWGui::ItemSelectionDialog::onCancelButtonClicked ( MyGUI::Widget *  sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ItemSelectionDialog::onSelectedItem ( int  index)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ItemSelectionDialog::openContainer ( const MWWorld::Ptr container)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ItemSelectionDialog::setCategory ( int  category)

Here is the call graph for this function:

void MWGui::ItemSelectionDialog::setFilter ( int  filter)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

EventHandle_Void MWGui::ItemSelectionDialog::eventDialogCanceled
EventHandle_Item MWGui::ItemSelectionDialog::eventItemSelected
ItemView* MWGui::ItemSelectionDialog::mItemView
private
InventoryItemModel* MWGui::ItemSelectionDialog::mModel
private
SortFilterItemModel* MWGui::ItemSelectionDialog::mSortModel
private

The documentation for this class was generated from the following files: