openmw-tes3coop/apps/openmw/mwgui/messagebox.hpp

36 lines
835 B
C++
Raw Normal View History

#ifndef MWGUI_MESSAGE_BOX_H
#define MWGUI_MESSAGE_BOX_H
2011-06-14 16:29:55 +00:00
#include <openengine/gui/layout.hpp>
#include <MyGUI.h>
2011-06-14 16:29:55 +00:00
#include "window_base.hpp"
namespace MWGui
{
2011-06-14 16:29:55 +00:00
class MessageBoxManager;
class MessageBox;
class MessageBoxManager
{
2011-06-14 16:29:55 +00:00
private:
std::vector<MessageBox*> mMessageBoxes;
public:
void createMessageBox (const std::string& message);
void createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons);
};
2011-06-14 16:29:55 +00:00
class MessageBox : public OEngine::GUI::Layout
{
public:
MessageBox(MessageBoxManager& parMessageBoxManager, const std::string& message);
void setMessage(const std::string& message);
protected:
MessageBoxManager& mMessageBoxManager;
};
}
#endif