diff --git a/apps/openmw/mwgui/messagebox.cpp b/apps/openmw/mwgui/messagebox.cpp new file mode 100644 index 000000000..9c32ed47d --- /dev/null +++ b/apps/openmw/mwgui/messagebox.cpp @@ -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& buttons) +{ + std::cout << "create interactive message box" << std::endl; + std::copy (buttons.begin(), buttons.end(), std::ostream_iterator (std::cout, ", ")); +} diff --git a/apps/openmw/mwgui/messagebox.hpp b/apps/openmw/mwgui/messagebox.hpp new file mode 100644 index 000000000..0e6f0e45f --- /dev/null +++ b/apps/openmw/mwgui/messagebox.hpp @@ -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& buttons); + }; +} + +#endif