OpenMW
|
a very simple list widget that supports word-wrapping entries More...
#include <list.hpp>
Public Types | |
typedef MyGUI::delegates::CMultiDelegate2 < const std::string &, int > | EventHandle_StringInt |
typedef MyGUI::delegates::CMultiDelegate1 < MyGUI::Widget * > | EventHandle_Widget |
Public Member Functions | |
MWList () | |
void | adjustSize () |
void | addItem (const std::string &name) |
void | addSeparator () |
add a seperator between the current and the next item. | |
void | removeItem (const std::string &name) |
bool | hasItem (const std::string &name) |
unsigned int | getItemCount () |
std::string | getItemNameAt (unsigned int at) |
void | clear () |
MyGUI::Widget * | getItemWidget (const std::string &name) |
get widget for an item name, useful to set up tooltip | |
Public Attributes | |
EventHandle_StringInt | eventItemSelected |
EventHandle_Widget | eventWidgetSelected |
Protected Member Functions | |
void | initialiseOverride () |
void | redraw (bool scrollbarShown=false) |
void | onMouseWheel (MyGUI::Widget *_sender, int _rel) |
void | onItemSelected (MyGUI::Widget *_sender) |
Private Attributes | |
MWGui::Widgets::MWScrollView * | mScrollView |
MyGUI::Widget * | mClient |
std::vector< std::string > | mItems |
int | mItemHeight |
a very simple list widget that supports word-wrapping entries
typedef MyGUI::delegates::CMultiDelegate2<const std::string&, int> MWGui::Widgets::MWList::EventHandle_StringInt |
typedef MyGUI::delegates::CMultiDelegate1<MyGUI::Widget*> MWGui::Widgets::MWList::EventHandle_Widget |
void MWGui::Widgets::MWList::addItem | ( | const std::string & | name | ) |
void MWGui::Widgets::MWList::addSeparator | ( | ) |
add a seperator between the current and the next item.
void MWGui::Widgets::MWList::adjustSize | ( | ) |
Call after the size of the list changed, or items were inserted/removed
void MWGui::Widgets::MWList::clear | ( | ) |
unsigned int MWGui::Widgets::MWList::getItemCount | ( | ) |
std::string MWGui::Widgets::MWList::getItemNameAt | ( | unsigned int | at | ) |
MyGUI::Widget * MWGui::Widgets::MWList::getItemWidget | ( | const std::string & | name | ) |
get widget for an item name, useful to set up tooltip
bool MWGui::Widgets::MWList::hasItem | ( | const std::string & | name | ) |
void MWGui::Widgets::MWList::initialiseOverride | ( | ) | [protected] |
void MWGui::Widgets::MWList::onItemSelected | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::Widgets::MWList::onMouseWheel | ( | MyGUI::Widget * | _sender, |
int | _rel | ||
) | [protected] |
void MWGui::Widgets::MWList::redraw | ( | bool | scrollbarShown = false | ) | [protected] |
void MWGui::Widgets::MWList::removeItem | ( | const std::string & | name | ) |
Event: Item selected with the mouse. signature: void method(std::string itemName)
Event: Item selected with the mouse. signature: void method(MyGUI::Widget* sender)
MyGUI::Widget* MWGui::Widgets::MWList::mClient [private] |
int MWGui::Widgets::MWList::mItemHeight [private] |
std::vector<std::string> MWGui::Widgets::MWList::mItems [private] |