Version: 6.3.1
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes

Plot2d_ToolTip Class Reference

#include <Plot2d_ToolTip.h>

Inheritance diagram for Plot2d_ToolTip:
Inheritance graph

Public Slots

void onToolTip (QPoint, QString &, QFont &, QRect &, QRect &)

Signals

void maybeTip (QPoint, QString &, QFont &, QRect &, QRect &)

Public Member Functions

 Plot2d_ToolTip (Plot2d_ViewFrame *)
virtual ~Plot2d_ToolTip ()
virtual bool eventFilter (QObject *, QEvent *)
void hideTip ()
virtual void showTip (const QPoint &aPos, const QString &text, const QRect &aWidgetRegion)
virtual void showTip (const QRect &aRegion, const QString &text, const QRect &aWidgetRegion)
void setWakeUpDelayTime (int)
void setShowDelayTime (int)
int wakeUpDelayTime () const
int showDelayTime () const

Protected Slots

void onSleepTimeOut ()
void onWakeUpTimeOut ()

Protected Member Functions

virtual void maybeTip (const QPoint &)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseDoubleClickEvent (QMouseEvent *)
QTimer * sleepTimer () const
QTimer * wakeUpTimer () const

Private Attributes

Plot2d_ViewFramemyFrame

Constructor & Destructor Documentation

Plot2d_ToolTip::Plot2d_ToolTip ( Plot2d_ViewFrame frame)
Plot2d_ToolTip::~Plot2d_ToolTip ( ) [virtual]

Member Function Documentation

bool Plot2d_ToolTip::eventFilter ( QObject o,
QEvent e 
) [virtual]

Reimplemented from QtxToolTip.

void Plot2d_ToolTip::onToolTip ( QPoint  p,
QString &  str,
QFont &  f,
QRect &  txtRect,
QRect &  rect 
) [slot]
void QtxToolTip::hideTip ( ) [inherited]

Hides tooltip

References QtxToolTip.mySleepTimer, and QtxToolTip.myWidgetRegion.

void QtxToolTip::showTip ( const QPoint &  aPos,
const QString &  text,
const QRect &  aWidgetRegion 
) [virtual, inherited]

Shows tool tip

Parameters:
aPos- position
text- tooltip text
aWidgetRegion- rectangle
void QtxToolTip::showTip ( const QRect &  aRegion,
const QString &  text,
const QRect &  aWidgetRegion 
) [virtual, inherited]

Shows tool tip

Parameters:
aRegion- tooltip region
text- tooltip text
aWidgetRegion- widget rectangle

References QtxToolTip.myShowDelayTime, QtxToolTip.mySleepTimer, and QtxToolTip.myWidgetRegion.

void QtxToolTip::setWakeUpDelayTime ( int  theTime) [inherited]

Sets wake delay time

Parameters:
theTime

References QtxToolTip.myWakeUpDelayTime.

void QtxToolTip::setShowDelayTime ( int  theTime) [inherited]

Sets show delay time

Parameters:
theTime

References QtxToolTip.myShowDelayTime.

int QtxToolTip.wakeUpDelayTime ( ) const [inherited]
int QtxToolTip.showDelayTime ( ) const [inherited]
void QtxToolTip.maybeTip ( QPoint  ,
QString &  ,
QFont &  ,
QRect &  ,
QRect &   
) [signal, inherited]
void QtxToolTip::maybeTip ( const QPoint &  pos) [protected, virtual, inherited]

It is called when there is a possibility that a tool tip should be shown and must decide whether there is a tool tip for the point p in the widget that this QToolTip object relates to

Parameters:
pos- position

References QtxToolTip.maybeTip(), and QtxToolTip.showTip().

void QtxToolTip::onSleepTimeOut ( ) [protected, slot, inherited]

SLOT: called when sleep time is out

References QtxToolTip.hideTip(), and QtxToolTip.mySleepTimer.

void QtxToolTip::onWakeUpTimeOut ( ) [protected, slot, inherited]

SLOT: called when wake time is out

References QtxToolTip.maybeTip(), and QtxToolTip.myWakeUpTimer.

void QtxToolTip::mousePressEvent ( QMouseEvent *  e) [protected, virtual, inherited]

Custom mouse press event handler

References QtxToolTip.hideTip().

void QtxToolTip::mouseDoubleClickEvent ( QMouseEvent *  e) [protected, virtual, inherited]

Custom mouse double click event handler

References QtxToolTip.hideTip().

QTimer * QtxToolTip::sleepTimer ( ) const [protected, inherited]
Returns:
timer measuring time of sleeping

References QtxToolTip.mySleepTimer.

QTimer * QtxToolTip::wakeUpTimer ( ) const [protected, inherited]
Returns:
timer measuring time of waking up

References QtxToolTip.myWakeUpTimer.


Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS