Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:47

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // 
0029 
0030 #ifndef G4OPENGLQTMOVIEDIALOG_HH
0031 #define G4OPENGLQTMOVIEDIALOG_HH
0032 
0033 #include <qdialog.h>
0034 
0035 class QPushButton;
0036 class QLabel;
0037 class QLineEdit;
0038 class G4OpenGLQtViewer;
0039 
0040 class QGroupBox;
0041 
0042 /** The G4OpenGLQtMovieDialog class provide a Dialog displaying differents options
0043     for each file format
0044 */
0045 class G4OpenGLQtMovieDialog : public QDialog
0046 {
0047   Q_OBJECT
0048 
0049  public:
0050   /** Construct a G4OpenGLQtMovieDialog
0051       @param parent : parent widget
0052   */
0053   G4OpenGLQtMovieDialog(G4OpenGLQtViewer*,QWidget*);
0054 
0055   /** Destroys G4OpenGLQtMovieDialog */
0056   ~G4OpenGLQtMovieDialog();
0057   void setRecordingStatus(QString);
0058   void setRecordingInfos(QString);
0059 
0060 private :
0061   QLineEdit* fEncoderPath;
0062   QLineEdit* fTempFolderPath;
0063   QLineEdit* fSaveFileName;
0064   G4OpenGLQtViewer *fParentViewer;
0065   QLabel *fEncoderStatus;
0066   QLabel *fTempFolderStatus;
0067   QLabel *fSaveFileStatus;
0068   QLabel *fRecordingStatus;
0069   QLabel *fRecordingInfos;
0070   QPushButton *fButtonStopFinishClose;
0071   QPushButton *fButtonSave;
0072   QPushButton *fButtonStartPause;
0073 
0074 public Q_SLOTS :
0075   void stopFinishClose();
0076   void save();
0077   bool checkEncoderSwParameters();
0078   bool checkSaveFileNameParameters();
0079   bool checkTempFolderParameters();
0080 
0081 private Q_SLOTS :
0082   void selectEncoderPathAction();
0083   void selectTempPathAction();
0084   void selectSaveFileNameAction();
0085   void resetRecording();
0086   void enabledApplyButton();
0087 };
0088 
0089 #endif