Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/gui.git] / src / SVTK / SVTK_UpdateRateDlg.h
1 //  SALOME VTKViewer : build VTK viewer into Salome desktop
2 //
3 //  Copyright (C) 2003  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 //
23 //
24 //  File   : 
25 //  Author : 
26 //  Module : SALOME
27 //  $Header$
28
29 #ifndef SVTK_UPDATERATEDLG_H
30 #define SVTK_UPDATERATEDLG_H
31
32 #include "SVTK_DialogBase.h"
33
34 #include <vtkSmartPointer.h>
35
36 class SVTK_MainWindow;
37 class SVTK_RenderWindowInteractor;
38
39 class QtxDblSpinBox;
40 class QtxAction;
41
42 class QGroupBox;
43 class QLineEdit;
44
45 class vtkCallbackCommand;
46 class vtkObject;
47
48
49 class SVTK_UpdateRateDlg : public SVTK_DialogBase
50 {
51   Q_OBJECT;
52
53 public:
54   SVTK_UpdateRateDlg(QtxAction* theAction,
55                      SVTK_MainWindow* theParent,
56                      const char* theName);
57
58   ~SVTK_UpdateRateDlg();
59
60   void Update();
61
62 protected:
63   SVTK_RenderWindowInteractor* myRWInteractor;
64   QtxDblSpinBox* myDesiredUpdateRateSblSpinBox;
65   QtxDblSpinBox* myStillUpdateRateSblSpinBox;
66   QGroupBox* myIsEnableUpdateRateGroupBox;
67
68   QLineEdit* myCurrentUpdateRateLineEdit;
69   QLineEdit* myNumberOfCellsLineEdit;
70
71   QtxAction* myAction;
72
73   //----------------------------------------------------------------------------
74   // Priority at which events are processed
75   vtkFloatingPointType myPriority;
76
77   // Used to process events
78   vtkSmartPointer<vtkCallbackCommand> myEventCallbackCommand;
79
80   // Description:
81   // Main process event method
82   static void ProcessEvents(vtkObject* object, 
83                             unsigned long event,
84                             void* clientdata, 
85                             void* calldata);
86   
87 protected slots:
88   void onClickOk();
89   void onClickApply();
90   void onClickClose();
91 };
92
93 #endif // SVTK_UPDATERATEDLG_H