Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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_ViewPort2d theParent)

constructor

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

GLViewer_ObjectTip::~GLViewer_ObjectTip ( )

destructor

References mypLabel.

Member Function Documentation

bool GLViewer_ObjectTip::eventFilter ( QObject theObj,
QEvent e 
)
virtual
QString GLViewer_ObjectTip::getText ( ) const
inline
void GLViewer_ObjectTip::hideTipAndSleep ( )
private

Hides tooltip and stops timer

References mypLabel, myPoint, and mypTimer.

bool GLViewer_ObjectTip::maybeTip ( const QPoint &  p)
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().

void GLViewer_ObjectTip::setText ( const QString &  theText)
inline
void GLViewer_ObjectTip::showTip ( )
privateslot
void GLViewer_ObjectTip::timeIsOut ( )
protected
void GLViewer_ObjectTip::wakeup ( int  theTime = 1000)
private

Restarts timer

References mypTimer.

Member Data Documentation

QLabel* GLViewer_ObjectTip::mypLabel
private
QPoint GLViewer_ObjectTip::myPoint
private
QTimer* GLViewer_ObjectTip::mypTimer
private
GLViewer_ViewPort2d* GLViewer_ObjectTip::mypViewPort
private
QString GLViewer_ObjectTip::myText
private

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