2013-08-06 02:55:32 +03:00
|
|
|
// Various authors.
|
|
|
|
// License: GPL version 2 or later.
|
|
|
|
|
|
|
|
#ifndef HELPPOPUP_H
|
|
|
|
#define HELPPOPUP_H
|
|
|
|
|
|
|
|
#include "layer.h"
|
|
|
|
|
|
|
|
class GMenu2X;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A passive dialog containing some helpful text for the user.
|
|
|
|
*/
|
|
|
|
class HelpPopup : public Layer {
|
|
|
|
public:
|
2014-08-10 05:26:59 +03:00
|
|
|
HelpPopup(GMenu2X& gmenu2x);
|
2013-08-06 02:55:32 +03:00
|
|
|
|
|
|
|
// Layer implementation:
|
2014-08-10 05:26:59 +03:00
|
|
|
virtual void paint(Surface& s);
|
2013-08-06 02:55:32 +03:00
|
|
|
virtual bool handleButtonPress(InputManager::Button button);
|
2014-08-10 05:26:59 +03:00
|
|
|
virtual bool handleTouchscreen(Touchscreen& ts);
|
2013-08-06 02:55:32 +03:00
|
|
|
|
|
|
|
private:
|
2014-08-10 05:26:59 +03:00
|
|
|
GMenu2X& gmenu2x;
|
2013-08-06 02:55:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HELPPOPUP_H
|