2009-11-29 10:29:26 +01:00
|
|
|
#ifndef __DIALOGUE_BOX_HH__
|
|
|
|
#define __DIALOGUE_BOX_HH__
|
|
|
|
|
|
|
|
#include "menu.hh"
|
|
|
|
|
|
|
|
class DialogueBox : public Menu
|
|
|
|
{
|
2009-12-05 13:04:00 +01:00
|
|
|
public:
|
2009-11-29 10:29:26 +01:00
|
|
|
DialogueBox(Font *font, const char *msgs[], int cancel = 1);
|
|
|
|
|
|
|
|
virtual void selectCallback(int which);
|
|
|
|
|
|
|
|
virtual void escapeCallback(int which);
|
|
|
|
|
2009-12-05 13:04:00 +01:00
|
|
|
virtual void hoverCallback(int which);
|
|
|
|
|
|
|
|
virtual int selectNext(event_t ev);
|
|
|
|
|
2009-11-29 10:29:26 +01:00
|
|
|
int selected()
|
|
|
|
{
|
|
|
|
return this->m_selected;
|
|
|
|
}
|
|
|
|
|
2009-12-05 13:04:00 +01:00
|
|
|
protected:
|
2009-11-29 10:29:26 +01:00
|
|
|
int m_selected;
|
|
|
|
int m_cancel;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __DIALOGUE_BOX_HH__ */
|