1 #ifndef OPENMW_COMPONENTS_WIDGETS_LIST_HPP
2 #define OPENMW_COMPONENTS_WIDGETS_LIST_HPP
4 #include <MyGUI_ScrollView.h>
56 void redraw(
bool scrollbarShown =
false);
MyGUI::Widget * mClient
Definition: list.hpp:63
virtual void setPropertyOverride(const std::string &_key, const std::string &_value)
Definition: list.cpp:108
std::string mListItemSkin
Definition: list.hpp:64
a very simple list widget that supports word-wrapping entries
Definition: list.hpp:12
MyGUI::delegates::CMultiDelegate2< const std::string &, int > EventHandle_StringInt
Definition: list.hpp:18
std::vector< std::string > mItems
Definition: list.hpp:66
void redraw(bool scrollbarShown=false)
Definition: list.cpp:46
void clear()
Definition: list.cpp:133
MyGUI::Button * getItemWidget(const std::string &name)
get widget for an item name, useful to set up tooltip
Definition: list.cpp:155
void adjustSize()
Definition: list.cpp:41
void scrollToTop()
Definition: list.cpp:160
MyGUI::delegates::CMultiDelegate1< MyGUI::Widget * > EventHandle_Widget
Definition: list.hpp:19
void removeItem(const std::string &name)
Definition: list.cpp:127
void onMouseWheelMoved(MyGUI::Widget *_sender, int _rel)
Definition: list.cpp:138
void onItemSelected(MyGUI::Widget *_sender)
Definition: list.cpp:147
MWList()
Definition: list.cpp:11
void addItem(const std::string &name)
Definition: list.cpp:31
std::string getItemNameAt(unsigned int at)
Definition: list.cpp:121
EventHandle_Widget eventWidgetSelected
Definition: list.hpp:31
void addSeparator()
add a seperator between the current and the next item.
Definition: list.cpp:36
void initialiseOverride()
Definition: list.cpp:18
int mItemHeight
Definition: list.hpp:68
EventHandle_StringInt eventItemSelected
Definition: list.hpp:25
MyGUI::ScrollView * mScrollView
Definition: list.hpp:62
unsigned int getItemCount()
Definition: list.cpp:116
const char * name
Definition: crashcatcher.cpp:59