From 5bf5bde946a0cf5fca1c3ffd54edd61a9a50b2d7 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Tue, 14 Jun 2011 16:41:30 +0200 Subject: [PATCH] created new files, conncted MessageBoxManger with WindowManager --- apps/openmw/mwgui/messagebox.cpp | 15 +++++++++++++++ apps/openmw/mwgui/messagebox.hpp | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 apps/openmw/mwgui/messagebox.cpp create mode 100644 apps/openmw/mwgui/messagebox.hpp 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