2014-07-09 04:56:34 -07:00
|
|
|
#ifndef DIALOG_HPP_INCLUDED
|
|
|
|
#define DIALOG_HPP_INCLUDED
|
2014-11-05 11:14:06 -08:00
|
|
|
#include "../common.hpp"
|
|
|
|
#include "../EditorState.hpp"
|
2014-07-09 04:56:34 -07:00
|
|
|
|
|
|
|
class EditorState;
|
|
|
|
class Dialog : public IEventReceiver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Dialog(EditorState *mstate):
|
|
|
|
state(mstate)
|
|
|
|
{}
|
|
|
|
|
2015-02-01 11:31:25 -08:00
|
|
|
virtual bool canClose() { return true; }
|
2014-07-09 04:56:34 -07:00
|
|
|
virtual bool close() = 0;
|
2015-02-01 11:31:25 -08:00
|
|
|
virtual bool OnEvent(const SEvent &event) { return false; }
|
2014-07-16 10:17:15 -07:00
|
|
|
virtual void draw(IVideoDriver *driver) {}
|
2014-07-09 04:56:34 -07:00
|
|
|
protected:
|
|
|
|
EditorState *state;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|