Version: 9.15.0
GLViewer_ObjectTip Class Reference

#include <GLViewer_ToolTip.h>

Inheritance diagram for GLViewer_ObjectTip:
Inheritance graph

Public Member Functions

 GLViewer_ObjectTip (GLViewer_ViewPort2d *)
 
 ~GLViewer_ObjectTip ()
 
virtual bool eventFilter (QObject *, QEvent *)
 
virtual bool maybeTip (const QPoint &)
 
void setText (const QString &theText)
 
QString getText () const
 

Protected Member Functions

void timeIsOut ()
 

Private Slots

void showTip ()
 

Private Member Functions

void hideTipAndSleep ()
 
void wakeup (int mseconds=1000)
 

Private Attributes

GLViewer_ViewPort2dmypViewPort
 
QTimer * mypTimer
 
QPoint myPoint
 
QLabelmypLabel
 
QString myText
 

Detailed Description

ToolTip of GLViewer_Objects

Constructor & Destructor Documentation

◆ GLViewer_ObjectTip()

GLViewer_ObjectTip::GLViewer_ObjectTip ( GLViewer_ViewPort2d theParent)

constructor

References mypLabel, mypTimer, mypViewPort, and showTip().

◆ ~GLViewer_ObjectTip()

GLViewer_ObjectTip::~GLViewer_ObjectTip ( )

destructor

References mypLabel.

Member Function Documentation

◆ eventFilter()

bool GLViewer_ObjectTip::eventFilter ( QObject theObj,
QEvent e 
)
virtual

◆ getText()

QString GLViewer_ObjectTip::getText ( ) const
inline

◆ hideTipAndSleep()

void GLViewer_ObjectTip::hideTipAndSleep ( )
private

Hides tooltip and stops timer

References mypLabel, myPoint, and mypTimer.

◆ maybeTip()

bool GLViewer_ObjectTip::maybeTip ( const QPoint &  )
virtual

It is called when there is a possibility that a tool tip should be shown

Parameters
p- position of tooltip

References GLViewer_Context::getCurrentObject(), GLViewer_Object::getName(), GLViewer_ViewFrame::getViewer(), GLViewer_ViewPort2d::getViewFrame(), mypViewPort, and setText().

◆ setText()

void GLViewer_ObjectTip::setText ( const QString &  theText)
inline

◆ showTip

void GLViewer_ObjectTip::showTip ( )
privateslot

◆ timeIsOut()

void GLViewer_ObjectTip::timeIsOut ( )
protected

◆ wakeup()

void GLViewer_ObjectTip::wakeup ( int  theTime = 1000)
private

Restarts timer

References mypTimer.

Member Data Documentation

◆ mypLabel

QLabel* GLViewer_ObjectTip::mypLabel
private

◆ myPoint

QPoint GLViewer_ObjectTip::myPoint
private

◆ mypTimer

QTimer* GLViewer_ObjectTip::mypTimer
private

◆ mypViewPort

GLViewer_ViewPort2d* GLViewer_ObjectTip::mypViewPort
private

◆ myText

QString GLViewer_ObjectTip::myText
private

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