1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4OpenGLQtMovieDialog.hh,v 1.5 2008/01/30 10:54:13 lgarnier Exp $ |
---|
28 | // GEANT4 tag $Name: |
---|
29 | // |
---|
30 | // |
---|
31 | |
---|
32 | #ifdef G4VIS_BUILD_OPENGLQT_DRIVER |
---|
33 | |
---|
34 | #ifndef G4OPENGLQTMOVIEDIALOG_HH |
---|
35 | #define G4OPENGLQTMOVIEDIALOG_HH |
---|
36 | |
---|
37 | #include <qdialog.h> |
---|
38 | |
---|
39 | class QPushButton; |
---|
40 | class QLabel; |
---|
41 | class QLineEdit; |
---|
42 | class G4OpenGLQtViewer; |
---|
43 | |
---|
44 | #if QT_VERSION >= 0x040000 |
---|
45 | class QGroupBox; |
---|
46 | #endif |
---|
47 | |
---|
48 | /** The G4OpenGLQtMovieDialog class provide a Dialog displaying differents options |
---|
49 | for each file format |
---|
50 | */ |
---|
51 | class G4OpenGLQtMovieDialog : public QDialog |
---|
52 | { |
---|
53 | Q_OBJECT |
---|
54 | |
---|
55 | public: |
---|
56 | /** Construct a G4OpenGLQtMovieDialog |
---|
57 | @param parent : parent widget |
---|
58 | */ |
---|
59 | G4OpenGLQtMovieDialog(G4OpenGLQtViewer*,QWidget*); |
---|
60 | |
---|
61 | /** Destroys G4OpenGLQtMovieDialog */ |
---|
62 | ~G4OpenGLQtMovieDialog(); |
---|
63 | void setRecordingStatus(QString); |
---|
64 | void setRecordingInfos(QString); |
---|
65 | void setEncodeButtonEnabled(bool); |
---|
66 | |
---|
67 | private : |
---|
68 | QLineEdit* fEncoderPath; |
---|
69 | QLineEdit* fTempFolderPath; |
---|
70 | QLineEdit* fSaveFileName; |
---|
71 | G4OpenGLQtViewer *fParentViewer; |
---|
72 | QLabel *fEncoderStatus; |
---|
73 | QLabel *fTempFolderStatus; |
---|
74 | QLabel *fSaveFileStatus; |
---|
75 | QLabel *fRecordingStatus; |
---|
76 | QLabel *fRecordingInfos; |
---|
77 | QPushButton *fButtonEncode; |
---|
78 | |
---|
79 | void checkEncoderParameters(QString); |
---|
80 | void checkTempFolderParameters(QString); |
---|
81 | void checkSaveFileNameParameters(QString); |
---|
82 | |
---|
83 | public slots : |
---|
84 | void checkAllParameters(); |
---|
85 | |
---|
86 | private slots : |
---|
87 | void selectEncoderPathAction(); |
---|
88 | void selectTempPathAction(); |
---|
89 | void selectSaveFileNameAction(); |
---|
90 | void encode(); |
---|
91 | }; |
---|
92 | |
---|
93 | #endif |
---|
94 | |
---|
95 | #endif |
---|