1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 06:53:52 +00:00

created new files, conncted MessageBoxManger with WindowManager

This commit is contained in:
Sebastian Wick 2011-06-14 16:41:30 +02:00
parent 5fb3dc854b
commit 5bf5bde946
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#include "messagebox.hpp"
//#include "window_manager.hpp"
using namespace MWGui;
void MessageBoxManager::createMessageBox (const std::string& message)
{
std::cout << "create non-interactive message box" << std::endl;
}
void MessageBoxManager::createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons)
{
std::cout << "create interactive message box" << std::endl;
std::copy (buttons.begin(), buttons.end(), std::ostream_iterator<std::string> (std::cout, ", "));
}

View file

@ -0,0 +1,25 @@
#ifndef MWGUI_MESSAGE_BOX_H
#define MWGUI_MESSAGE_BOX_H
#include "window_base.hpp"
namespace MWGui
{
class WindowManager;
}
namespace MWGui
{
using namespace MyGUI;
class WindowManager;
class MessageBoxManager
{
public:
void createMessageBox (const std::string& message);
void createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons);
};
}
#endif