| [730] | 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 | //
|
|---|
| [866] | 27 | // $Id: G4OpenGLQtMovieDialog.hh,v 1.4 2008/10/07 05:36:11 lgarnier Exp $
|
|---|
| [730] | 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;
|
|---|
| [731] | 42 | class G4OpenGLQtViewer;
|
|---|
| [730] | 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 | */
|
|---|
| [731] | 59 | G4OpenGLQtMovieDialog(G4OpenGLQtViewer*,QWidget*);
|
|---|
| [730] | 60 |
|
|---|
| 61 | /** Destroys G4OpenGLQtMovieDialog */
|
|---|
| 62 | ~G4OpenGLQtMovieDialog();
|
|---|
| [744] | 63 | void setRecordingStatus(QString);
|
|---|
| 64 | void setRecordingInfos(QString);
|
|---|
| [730] | 65 |
|
|---|
| 66 | private :
|
|---|
| [732] | 67 | QLineEdit* fEncoderPath;
|
|---|
| [733] | 68 | QLineEdit* fTempFolderPath;
|
|---|
| 69 | QLineEdit* fSaveFileName;
|
|---|
| [731] | 70 | G4OpenGLQtViewer *fParentViewer;
|
|---|
| [733] | 71 | QLabel *fEncoderStatus;
|
|---|
| 72 | QLabel *fTempFolderStatus;
|
|---|
| 73 | QLabel *fSaveFileStatus;
|
|---|
| [744] | 74 | QLabel *fRecordingStatus;
|
|---|
| 75 | QLabel *fRecordingInfos;
|
|---|
| [857] | 76 | QPushButton *fButtonStopFinishClose;
|
|---|
| 77 | QPushButton *fButtonSave;
|
|---|
| 78 | QPushButton *fButtonStartPause;
|
|---|
| [730] | 79 |
|
|---|
| [740] | 80 | public slots :
|
|---|
| [857] | 81 | void stopFinishClose();
|
|---|
| 82 | void save();
|
|---|
| 83 | bool checkEncoderSwParameters();
|
|---|
| 84 | bool checkSaveFileNameParameters();
|
|---|
| 85 | bool checkTempFolderParameters();
|
|---|
| [740] | 86 |
|
|---|
| [730] | 87 | private slots :
|
|---|
| [733] | 88 | void selectEncoderPathAction();
|
|---|
| 89 | void selectTempPathAction();
|
|---|
| 90 | void selectSaveFileNameAction();
|
|---|
| [750] | 91 | void resetRecording();
|
|---|
| [751] | 92 | void enabledApplyButton();
|
|---|
| [730] | 93 | };
|
|---|
| 94 |
|
|---|
| 95 | #endif
|
|---|
| 96 |
|
|---|
| 97 | #endif
|
|---|