1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU VISUGUI : GUI of VISU component
23 // File : VisuGUI_Slider.h
24 // Author : Oleg UVAROV
27 #ifndef VisuGUI_Slider_HeaderFile
28 #define VisuGUI_Slider_HeaderFile
35 #include "SALOMEconfig.h"
36 #include CORBA_SERVER_HEADER(VISU_Gen)
40 class ColoredPrs3dHolder_i;
55 class QtxDoubleSpinBox;
56 class LightApp_SelectionMgr;
59 class VisuGUI_Slider : public QWidget
64 VisuGUI_Slider( VisuGUI* theModule,
65 QMainWindow* theParent,
66 LightApp_SelectionMgr* theSelectionMgr );
68 virtual ~VisuGUI_Slider();
70 QAction* toggleViewAction();
73 virtual void onSelectionChanged();
75 virtual void onTimeStampActivated( int );
77 virtual void onFirst();
78 virtual void onPrevious();
79 virtual void onPlay( bool );
80 virtual void onNext();
81 virtual void onLast();
83 virtual void onValueChanged( int );
85 virtual void onSpeedChanged( int );
87 virtual void onTimeout();
89 virtual void onToggleView( bool );
91 void onMemoryModeChanged( bool );
92 void onMemorySizeChanged( double );
95 void onModuleDeactivated();
96 void onModuleActivated();
99 virtual void enableControls( bool );
100 virtual void updateMemoryState();
101 virtual bool checkHolderList();
104 LightApp_SelectionMgr* mySelectionMgr;
105 VISU::ViewManager_var myViewManager;
109 QLabel* myFirstTimeStamp;
110 QLabel* myLastTimeStamp;
114 QToolButton* myIsCycled;
115 QToolButton* myFirstButton;
116 QToolButton* myPreviousButton;
117 QToolButton* myPlayButton;
118 QToolButton* myNextButton;
119 QToolButton* myLastButton;
121 QComboBox* myTimeStampStrings;
122 QComboBox* myTimeStampIndexes;
124 QSlider* mySpeedSlider;
126 QRadioButton* myMinimalMemoryButton;
127 QRadioButton* myLimitedMemoryButton;
128 QtxDoubleSpinBox* myLimitedMemory;
130 QLineEdit* myUsedMemory;
131 QLineEdit* myFreeMemory;
133 typedef std::vector<VISU::ColoredPrs3dHolder_var> THolderList;
134 THolderList myHolderList;
137 QPixmap myPlayPixmap;
138 QPixmap myPausePixmap;
139 QAction* myToggleViewAction;