1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/openmw/mwgui/messagebox.hpp

46 lines
1.1 KiB
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"
2011-06-14 20:11:36 +00:00
#include "window_manager.hpp"
namespace MWGui
{
2011-06-14 16:29:55 +00:00
class MessageBoxManager;
class MessageBox;
class MessageBoxManager
{
public:
2011-06-14 20:11:36 +00:00
MessageBoxManager (WindowManager* windowManager);
void createMessageBox (const std::string& message);
void createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons);
2011-06-14 20:11:36 +00:00
WindowManager *mWindowManager;
private:
std::vector<MessageBox*> mMessageBoxes;
};
2011-06-14 16:29:55 +00:00
class MessageBox : public OEngine::GUI::Layout
{
public:
2011-06-14 20:11:36 +00:00
MessageBox (MessageBoxManager& parMessageBoxManager, const std::string& message);
void setMessage (const std::string& message);
int getHeight ();
void update (int height);
void del ();
2011-06-14 20:11:36 +00:00
2011-06-14 16:29:55 +00:00
protected:
MessageBoxManager& mMessageBoxManager;
int mHeight;
2011-06-14 16:29:55 +00:00
};
}
#endif