Salome HOME
5f1468308720313dfbe3ba3559b7b9058b3009b8
[modules/gui.git] / src / SVTK / SVTK_RecorderDlg.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 #ifndef SVTK_RECORDERDLG_H
23 #define SVTK_RECORDERDLG_H
24
25 #include <QDialog>
26
27 class QCheckBox;
28 class QComboBox;
29 class QGroupBox;
30 class QLCDNumber;
31 class QLineEdit;
32 class QPushButton;
33 class QTimer;
34
35 class QtxDoubleSpinBox;
36 class QtxIntSpinBox;
37
38 class SVTK_Recorder;
39
40 class SVTK_RecorderDlg : public QDialog
41 {
42   Q_OBJECT
43
44 public:
45   SVTK_RecorderDlg( QWidget*, SVTK_Recorder* );
46   ~SVTK_RecorderDlg();
47
48   int              exec();
49
50   QString          fileName() const { return myFileName; }
51
52 private:
53   virtual void     keyPressEvent( QKeyEvent* );
54
55 protected slots:
56   void             onStart();
57   void             onClose();
58   void             onHelp();
59
60   bool             onBrowseFile();
61
62 private:
63   SVTK_Recorder*   myRecorder;
64   QString          myFileName;
65
66   QLineEdit*       myFileNameLineEdit;
67
68   QComboBox*        myRecordingModeComboBox;
69   QtxDoubleSpinBox* myFPSSpinBox;
70   QtxIntSpinBox*    myQualitySpinBox;
71   QCheckBox*        myProgressiveCheckBox;
72 };
73
74 #endif