| 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.1 2008/03/10 16:57:04 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 |
|
|---|
| 66 | private :
|
|---|
| 67 | QLineEdit* fEncoderPath;
|
|---|
| 68 | QLineEdit* fTempFolderPath;
|
|---|
| 69 | QLineEdit* fSaveFileName;
|
|---|
| 70 | G4OpenGLQtViewer *fParentViewer;
|
|---|
| 71 | QLabel *fEncoderStatus;
|
|---|
| 72 | QLabel *fTempFolderStatus;
|
|---|
| 73 | QLabel *fSaveFileStatus;
|
|---|
| 74 | QLabel *fRecordingStatus;
|
|---|
| 75 | QLabel *fRecordingInfos;
|
|---|
| 76 | QPushButton *fButtonEncode;
|
|---|
| 77 | QPushButton *fButtonApply;
|
|---|
| 78 |
|
|---|
| 79 | bool checkEncoderParameters(QString);
|
|---|
| 80 | bool checkTempFolderParameters(QString);
|
|---|
| 81 | bool 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 | void resetRecording();
|
|---|
| 92 | void enabledApplyButton();
|
|---|
| 93 | };
|
|---|
| 94 |
|
|---|
| 95 | #endif
|
|---|
| 96 |
|
|---|
| 97 | #endif
|
|---|