25 #ifndef IMG_GUI_OVERLAY_BASE_H
26 #define IMG_GUI_OVERLAY_BASE_H
38 #include <QMouseEvent>
40 namespace ost {
namespace img {
namespace gui {
43 class DataViewerPanel;
76 const QPoint& lastmouse);
Overlay(const String &name)
initialization requires name
virtual QMenu * GetMenu()
return overlay specific pulldown menu
String GetName() const
retrieve name
virtual bool OnMouseEvent(QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse)
mouse event handler
virtual bool OnKeyEvent(QKeyEvent *e, DataViewerPanel *dvp)
key event handler
virtual void OnMenuEvent(QAction *e)
void InfoTextChanged(const QString &t)
void SetName(const String &name)
set name
void OnMenuEventSlot(QAction *e)
virtual void OnDraw(QPainter &pnt, DataViewerPanel *dvp, bool is_active)
call when redrawing is necessary
#define DLLEXPORT_OST_GUI