2010-11-03 20:21:08 +00:00
|
|
|
#ifndef MWGUI_DIALOGE_H
|
|
|
|
#define MWGUI_DIALOGE_H
|
|
|
|
|
2010-11-06 10:47:46 +00:00
|
|
|
#include "window_base.hpp"
|
2010-11-03 20:21:08 +00:00
|
|
|
#include <boost/array.hpp>
|
|
|
|
|
2011-02-21 19:36:35 +00:00
|
|
|
namespace MWGui
|
2010-11-03 20:21:08 +00:00
|
|
|
{
|
2011-02-21 19:36:35 +00:00
|
|
|
class WindowManager;
|
2010-11-03 20:21:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
This file contains the dialouge window
|
|
|
|
Layout is defined by resources/mygui/openmw_dialogue_window_layout.xml.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class DialogeHistory;
|
|
|
|
|
|
|
|
using namespace MyGUI;
|
|
|
|
|
2010-11-06 10:47:46 +00:00
|
|
|
class DialogueWindow: public WindowBase
|
2010-11-03 20:21:08 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-02-21 19:36:35 +00:00
|
|
|
DialogueWindow(WindowManager& parWindowManager);
|
2010-11-03 20:21:08 +00:00
|
|
|
|
|
|
|
void open();
|
|
|
|
|
|
|
|
// Events
|
|
|
|
typedef delegates::CDelegate0 EventHandle_Void;
|
|
|
|
|
|
|
|
/** Event : Dialog finished, OK button clicked.\n
|
|
|
|
signature : void method()\n
|
|
|
|
*/
|
|
|
|
EventHandle_Void eventBye;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void onSelectTopic(MyGUI::List* _sender, size_t _index);
|
|
|
|
void onByeClicked(MyGUI::Widget* _sender);
|
|
|
|
void onHistoryClicked(MyGUI::Widget* _sender);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void updateOptions();
|
|
|
|
|
|
|
|
DialogeHistory* history;
|
|
|
|
MyGUI::ListPtr topicsList;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|