|
||||
File indexing completed on 2025-01-18 09:59:01
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 // To unify Qt event treatment between 0029 // G4/interfaces Qt sessions and G4/visualizations Qt drivers. 0030 // L. Garnier 0031 0032 #ifndef G4QT_HH 0033 #define G4QT_HH 0034 0035 #include "G4VInteractorManager.hh" 0036 0037 class QWidget; 0038 class QString; 0039 0040 // Class description : 0041 // 0042 // G4Qt : a singleton to handle GUI sessions and visualization 0043 // drivers built over Qt. It permits to have one Qt main loop for 0044 // the whole application. The Qt toolkit is inited in the 0045 // constructor. It is done once for the whole application. 0046 // 0047 // Class description - end : 0048 0049 class G4Qt : public G4VInteractorManager 0050 { 0051 public: 0052 static G4Qt* getInstance(); 0053 static G4Qt* getInstance(int, char**, char*); 0054 G4bool Inited() override; 0055 void* GetEvent() override; 0056 void FlushAndWaitExecution() override; 0057 ~G4Qt() override; 0058 bool IsExternalApp(); 0059 0060 private: 0061 G4Qt(const G4Qt&); 0062 G4Qt(int, char**, char*); 0063 G4Qt& operator=(const G4Qt&); 0064 static G4Qt* instance; // Pointer to single instance. 0065 int argn; 0066 char** args; 0067 bool externalApp; 0068 }; 0069 0070 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |