created new files, conncted MessageBoxManger with WindowManager

actorid
Sebastian Wick 14 years ago
parent 5fb3dc854b
commit 5bf5bde946

@ -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, ", "));
}

@ -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
Loading…
Cancel
Save