2010-09-27 22:18:17 +00:00
|
|
|
// ASE gui library
|
2011-01-20 21:32:31 +00:00
|
|
|
// Copyright (C) 2001-2011 David Capello
|
2010-09-27 22:18:17 +00:00
|
|
|
//
|
|
|
|
// This source file is ditributed under a BSD-like license, please
|
|
|
|
// read LICENSE.txt for more information.
|
2010-03-07 18:10:48 +00:00
|
|
|
|
2011-01-22 14:28:40 +00:00
|
|
|
#ifndef GUI_POPUP_FRAME_H_INCLUDED
|
|
|
|
#define GUI_POPUP_FRAME_H_INCLUDED
|
2010-03-07 18:10:48 +00:00
|
|
|
|
2010-10-02 13:47:58 +00:00
|
|
|
#include "gui/frame.h"
|
2010-03-07 18:10:48 +00:00
|
|
|
|
2011-01-22 14:28:40 +00:00
|
|
|
class PopupFrame : public Frame
|
2010-03-07 18:10:48 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-01-22 14:28:40 +00:00
|
|
|
PopupFrame(const char* text, bool close_on_buttonpressed);
|
|
|
|
~PopupFrame();
|
2010-03-07 18:10:48 +00:00
|
|
|
|
|
|
|
void setHotRegion(JRegion region);
|
|
|
|
|
|
|
|
protected:
|
2010-08-03 00:29:56 +00:00
|
|
|
bool onProcessMessage(JMessage msg);
|
2010-08-03 01:57:41 +00:00
|
|
|
void onPreferredSize(PreferredSizeEvent& ev);
|
2011-02-12 12:32:57 +00:00
|
|
|
void onPaint(PaintEvent& ev);
|
2011-01-22 14:28:40 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_close_on_buttonpressed;
|
|
|
|
JRegion m_hot_region;
|
|
|
|
bool m_filtering;
|
2010-03-07 18:10:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|