Salome HOME
f744080580ff96323eb85fd96089a503972e466a
[modules/visu.git] / src / VISUGUI / VisuGUI_ScalarBarDlg.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  VISU VISUGUI : GUI of VISU component
23 //  File   : VisuGUI_ScalarBarDlg.h
24 //  Author : Laurent CORNABE & Hubert ROLLAND
25 //  Module : VISU
26 //  $Header$
27 //
28 #ifndef VISUGUI_SCALARBARDLG_H
29 #define VISUGUI_SCALARBARDLG_H
30
31 #include "VisuGUI_Prs3dDlg.h"
32
33 class QTabWidget;
34
35
36 class VisuGUI_InputPane;
37
38 namespace VISU
39 {
40   class ScalarMap_i;
41 }
42
43 class VisuGUI_ScalarBarDlg : public VisuGUI_ScalarBarBaseDlg
44 {
45   Q_OBJECT;
46
47  public:
48   VisuGUI_ScalarBarDlg (SalomeApp_Module* theModule);
49   ~VisuGUI_ScalarBarDlg();
50
51   virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
52                                   bool theInit );
53
54   virtual int  storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
55
56  protected:
57   virtual QString        GetContextHelpFilePath();
58
59  protected:
60   VisuGUI_InputPane* myInputPane;
61   QTabWidget* myTabBox;
62
63   SALOME::GenericObjPtr<VISU::ScalarMap_i> myPrsCopy;
64 };
65
66 #endif // VISUGUI_SCALARBARDLG_H