OpenMW
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
MWGui::ItemView Class Reference

#include <itemview.hpp>

List of all members.

Public Types

typedef
MyGUI::delegates::CMultiDelegate1
< ItemModel::ModelIndex
EventHandle_ModelIndex
typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void

Public Member Functions

 ItemView ()
virtual ~ItemView ()
void setModel (ItemModel *model)
 Takes ownership of model.
void update ()

Static Public Member Functions

static void registerComponents ()
 Register needed components with MyGUI's factory manager.

Public Attributes

EventHandle_ModelIndex eventItemClicked
 Fired when an item was clicked.
EventHandle_Void eventBackgroundClicked
 Fired when the background was clicked (useful for drag and drop)

Private Member Functions

virtual void initialiseOverride ()
virtual void setSize (const MyGUI::IntSize &_value)
virtual void setCoord (const MyGUI::IntCoord &_value)
void setSize (int _width, int _height)
void setCoord (int _left, int _top, int _width, int _height)
void onSelectedItem (MyGUI::Widget *sender)
void onSelectedBackground (MyGUI::Widget *sender)
void onMouseWheel (MyGUI::Widget *_sender, int _rel)

Private Attributes

ItemModelmModel
MyGUI::ScrollView * mScrollView

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate1<ItemModel::ModelIndex> MWGui::ItemView::EventHandle_ModelIndex
typedef MyGUI::delegates::CMultiDelegate0 MWGui::ItemView::EventHandle_Void

Constructor & Destructor Documentation


Member Function Documentation

void MWGui::ItemView::initialiseOverride ( ) [private, virtual]
void MWGui::ItemView::onMouseWheel ( MyGUI::Widget *  _sender,
int  _rel 
) [private]
void MWGui::ItemView::onSelectedBackground ( MyGUI::Widget *  sender) [private]
void MWGui::ItemView::onSelectedItem ( MyGUI::Widget *  sender) [private]

Register needed components with MyGUI's factory manager.

void MWGui::ItemView::setCoord ( const MyGUI::IntCoord &  _value) [private, virtual]
void MWGui::ItemView::setCoord ( int  _left,
int  _top,
int  _width,
int  _height 
) [private]

Takes ownership of model.

void MWGui::ItemView::setSize ( const MyGUI::IntSize &  _value) [private, virtual]
void MWGui::ItemView::setSize ( int  _width,
int  _height 
) [private]
Todo:
performance improvement: don't create/destroy all the widgets everytime the container window changes size, only reposition them

Member Data Documentation

Fired when the background was clicked (useful for drag and drop)

Fired when an item was clicked.

MyGUI::ScrollView* MWGui::ItemView::mScrollView [private]

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