Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/gui.git] / src / Plot2d / Plot2d_ToolTip.h
1 // Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
2 // 
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either 
6 // version 2.1 of the License.
7 // 
8 // This library is distributed in the hope that it will be useful 
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public  
14 // License along with this library; if not, write to the Free Software 
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // File:      Plot2d_ToolTip.h
20 // Author:    Alexandre SOLOVYOV
21
22 #ifndef PLOT2D_TOOLTIP_H
23 #define PLOT2D_TOOLTIP_H
24
25 #include <Plot2d.h>
26 #include <QtxToolTip.h>
27
28 class Plot2d_ViewFrame;
29 class Plot2d_Plot2d;
30
31 class PLOT2D_EXPORT Plot2d_ToolTip : public QtxToolTip
32 {
33   Q_OBJECT
34
35 public:
36   Plot2d_ToolTip( Plot2d_ViewFrame*, Plot2d_Plot2d* );
37   virtual ~Plot2d_ToolTip();
38
39 public slots:
40   void onToolTip( QPoint, QString&, QFont&, QRect&, QRect& );
41
42 protected:
43   virtual bool eventFilter( QObject*, QEvent* );
44
45 private:
46   Plot2d_ViewFrame* myFrame;
47   Plot2d_Plot2d*    myPlot;
48 };
49
50 #endif