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

#include <messagebox.hpp>

Collaboration diagram for MWGui::MessageBoxManager:

Public Types

typedef
MyGUI::delegates::CMultiDelegate1
< int
EventHandle_Int
 

Public Member Functions

 MessageBoxManager (float timePerChar)
 
 ~MessageBoxManager ()
 
void onFrame (float frameDuration)
 
void createMessageBox (const std::string &message, bool stat=false)
 
void removeStaticMessageBox ()
 
bool createInteractiveMessageBox (const std::string &message, const std::vector< std::string > &buttons)
 
bool isInteractiveMessageBox ()
 
void clear ()
 Remove all message boxes. More...
 
bool removeMessageBox (MessageBox *msgbox)
 
int readPressedButton (bool reset=true)
 
void onButtonPressed (int button)
 

Public Attributes

EventHandle_Int eventButtonPressed
 

Private Attributes

std::vector< MessageBox * > mMessageBoxes
 
InteractiveMessageBoxmInterMessageBoxe
 
MessageBoxmStaticMessageBox
 
float mMessageBoxSpeed
 
int mLastButtonPressed
 

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate1<int> MWGui::MessageBoxManager::EventHandle_Int

Constructor & Destructor Documentation

MWGui::MessageBoxManager::MessageBoxManager ( float  timePerChar)
MWGui::MessageBoxManager::~MessageBoxManager ( )

Member Function Documentation

void MWGui::MessageBoxManager::clear ( )

Remove all message boxes.

Here is the caller graph for this function:

bool MWGui::MessageBoxManager::createInteractiveMessageBox ( const std::string &  message,
const std::vector< std::string > &  buttons 
)

Here is the caller graph for this function:

void MWGui::MessageBoxManager::createMessageBox ( const std::string &  message,
bool  stat = false 
)

Here is the caller graph for this function:

bool MWGui::MessageBoxManager::isInteractiveMessageBox ( )

Here is the caller graph for this function:

void MWGui::MessageBoxManager::onButtonPressed ( int  button)
inline

Here is the caller graph for this function:

void MWGui::MessageBoxManager::onFrame ( float  frameDuration)

Here is the call graph for this function:

Here is the caller graph for this function:

int MWGui::MessageBoxManager::readPressedButton ( bool  reset = true)
Parameters
resetReset the pressed button to -1 after reading it.

Here is the caller graph for this function:

bool MWGui::MessageBoxManager::removeMessageBox ( MessageBox msgbox)

Here is the caller graph for this function:

void MWGui::MessageBoxManager::removeStaticMessageBox ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

EventHandle_Int MWGui::MessageBoxManager::eventButtonPressed
InteractiveMessageBox* MWGui::MessageBoxManager::mInterMessageBoxe
private
int MWGui::MessageBoxManager::mLastButtonPressed
private
std::vector<MessageBox*> MWGui::MessageBoxManager::mMessageBoxes
private
float MWGui::MessageBoxManager::mMessageBoxSpeed
private
MessageBox* MWGui::MessageBoxManager::mStaticMessageBox
private

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