OpenStructure
Public Member Functions
NullOverlay Class Reference

#include <null_overlay.hh>

Inherits Overlay.

Public Member Functions

 NullOverlay ()
 
virtual void OnDraw (QPainter &pnt, DataViewerPanel *dvp, bool is_active)
 
virtual bool OnMouseEvent (QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse)
 
virtual bool OnKeyEvent (QKeyEvent *e, DataViewerPanel *dvp)
 
virtual void OnMenuEvent (QAction *e)
 
virtual QMenu * GetMenu ()
 
- Public Member Functions inherited from Overlay
 Overlay (const String &name)
 
void SetName (const String &name)
 
String GetName () const
 

Additional Inherited Members

- Public Slots inherited from Overlay
void OnMenuEventSlot (QAction *e)
 
- Signals inherited from Overlay
void SettingsChanged ()
 
void InfoTextChanged (const QString &t)
 

Detailed Description

Definition at line 30 of file null_overlay.hh.

Constructor & Destructor Documentation

◆ NullOverlay()

Member Function Documentation

◆ GetMenu()

virtual QMenu* GetMenu ( )
virtual

return overlay specific pulldown menu

Reimplemented from Overlay.

◆ OnDraw()

virtual void OnDraw ( QPainter &  pnt,
DataViewerPanel dvp,
bool  is_active 
)
virtual

call when redrawing is necessary

params: the drawing context, the parent data viewer, as well as a flag to indicate wether this overlay is currently active

Reimplemented from Overlay.

◆ OnKeyEvent()

virtual bool OnKeyEvent ( QKeyEvent *  e,
DataViewerPanel dvp 
)
virtual

key event handler

see comments for the mouse events

Reimplemented from Overlay.

◆ OnMenuEvent()

virtual void OnMenuEvent ( QAction *  e)
virtual

Reimplemented from Overlay.

◆ OnMouseEvent()

virtual bool OnMouseEvent ( QMouseEvent *  e,
DataViewerPanel dvp,
const QPoint &  lastmouse 
)
virtual

mouse event handler

if an overlay is active, it receives the mouse events. if it handles the event for itself, it should return true, otherwise false should be returned to give the data viewer a chance to handle the event for itself

Reimplemented from Overlay.


The documentation for this class was generated from the following file: