OpenMW
|
#include <class.hpp>
Public Types | |
typedef std::vector< std::string > | ButtonList |
typedef MyGUI::delegates::CMultiDelegate1 < int > | EventHandle_Int |
Public Member Functions | |
InfoBoxDialog () | |
void | setText (const std::string &str) |
std::string | getText () const |
void | setButtons (ButtonList &buttons) |
virtual void | open () |
int | getChosenButton () const |
Public Attributes | |
EventHandle_Int | eventButtonSelected |
Protected Member Functions | |
void | onButtonClicked (MyGUI::Widget *_sender) |
Private Member Functions | |
void | fitToText (MyGUI::TextBox *widget) |
void | layoutVertically (MyGUI::Widget *widget, int margin) |
Private Attributes | |
int | mCurrentButton |
MyGUI::Widget * | mTextBox |
MyGUI::TextBox * | mText |
MyGUI::Widget * | mButtonBar |
std::vector< MyGUI::Button * > | mButtons |
typedef std::vector<std::string> MWGui::InfoBoxDialog::ButtonList |
typedef MyGUI::delegates::CMultiDelegate1<int> MWGui::InfoBoxDialog::EventHandle_Int |
void MWGui::InfoBoxDialog::fitToText | ( | MyGUI::TextBox * | widget | ) | [private] |
int MWGui::InfoBoxDialog::getChosenButton | ( | ) | const |
std::string MWGui::InfoBoxDialog::getText | ( | ) | const |
void MWGui::InfoBoxDialog::layoutVertically | ( | MyGUI::Widget * | widget, |
int | margin | ||
) | [private] |
void MWGui::InfoBoxDialog::onButtonClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::InfoBoxDialog::open | ( | ) | [virtual] |
Reimplemented from MWGui::WindowModal.
void MWGui::InfoBoxDialog::setButtons | ( | ButtonList & | buttons | ) |
void MWGui::InfoBoxDialog::setText | ( | const std::string & | str | ) |
Event : Button was clicked.
signature : void method(int index)
MyGUI::Widget* MWGui::InfoBoxDialog::mButtonBar [private] |
std::vector<MyGUI::Button*> MWGui::InfoBoxDialog::mButtons [private] |
int MWGui::InfoBoxDialog::mCurrentButton [private] |
MyGUI::TextBox* MWGui::InfoBoxDialog::mText [private] |
MyGUI::Widget* MWGui::InfoBoxDialog::mTextBox [private] |