Action_Thermostats
        Add_AtomRandomPerturbation
        Add_FitFragmentPartialChargesAction
        Add_RotateAroundBondAction
        Add_SelectAtomByNameAction
        Adding_Graph_to_ChangeBondActions
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        Automaking_mpqc_open
        AutomationFragmentation_failures
        Candidate_v1.5.4
        Candidate_v1.6.0
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChangeBugEmailaddress
        ChangingTestPorts
        ChemicalSpaceEvaluator
        Combining_Subpackages
        Debian_Package_split
        Debian_package_split_molecuildergui_only
        Disabling_MemDebug
        Docu_Python_wait
        EmpiricalPotential_contain_HomologyGraph
        EmpiricalPotential_contain_HomologyGraph_documentation
        Enable_parallel_make_install
        Enhance_userguide
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Example_ManyWaysToTranslateAtom
        Exclude_Hydrogens_annealWithBondGraph
        FitPartialCharges_GlobalError
        Fix_ChargeSampling_PBC
        Fix_ChronosMutex
        Fix_FitPartialCharges
        Fix_FitPotential_needs_atomicnumbers
        Fix_ForceAnnealing
        Fix_IndependentFragmentGrids
        Fix_ParseParticles
        Fix_ParseParticles_split_forward_backward_Actions
        Fix_StatusMsg
        Fix_StepWorldTime_single_argument
        Fix_Verbose_Codepatterns
        ForceAnnealing_goodresults
        ForceAnnealing_oldresults
        ForceAnnealing_tocheck
        ForceAnnealing_with_BondGraph
        ForceAnnealing_with_BondGraph_continued
        ForceAnnealing_with_BondGraph_continued_betteresults
        ForceAnnealing_with_BondGraph_contraction-expansion
        GeometryObjects
        Gui_displays_atomic_force_velocity
        IndependentFragmentGrids_IntegrationTest
        JobMarket_RobustOnKillsSegFaults
        JobMarket_StableWorkerPool
        JobMarket_unresolvable_hostname_fix
        ODR_violation_mpqc_open
        PartialCharges_OrthogonalSummation
        PythonUI_with_named_parameters
        QtGui_reactivate_TimeChanged_changes
        Recreated_GuiChecks
        RotateToPrincipalAxisSystem_UndoRedo
        StoppableMakroAction
        Subpackage_CodePatterns
        Subpackage_JobMarket
        Subpackage_LinearAlgebra
        Subpackage_levmar
        Subpackage_mpqc_open
        Subpackage_vmg
        ThirdParty_MPQC_rebuilt_buildsystem
        TrajectoryDependenant_MaxOrder
        TremoloParser_IncreasedPrecision
        TremoloParser_MultipleTimesteps
        Ubuntu_1604_changes
        stable
      
      
        
          | Last change
 on this file since 67645e was             35302b, checked in by Frederik Heber <heber@…>, 12 years ago | 
        
          | 
Added many files from project Seismolo.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.5 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * QSeisCurveRegistry.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Jan 30, 2011 | 
|---|
| 5 | *      Author: landvogt | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef QSEISCURVEREGISTRY_HPP | 
|---|
| 9 | #define QSEISCURVEREGISTRY_HPP | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | #include <QtCore/QObject> | 
|---|
| 17 | #include "CodePatterns/Registry.hpp" | 
|---|
| 18 | #include "CodePatterns/Singleton.hpp" | 
|---|
| 19 |  | 
|---|
| 20 | /** | 
|---|
| 21 | * \class QSeisCurveRegistry | 
|---|
| 22 | * | 
|---|
| 23 | * This class acts as a registry for all | 
|---|
| 24 | * currently available QSeisPlotCurves. | 
|---|
| 25 | * | 
|---|
| 26 | * The (un)registerInstance functions where | 
|---|
| 27 | * reimplemented to include the curveAdded/ | 
|---|
| 28 | * Changed/Removed signals. | 
|---|
| 29 | * The QSeisPageRegistry relays on this | 
|---|
| 30 | * signals to maintain the existing list of | 
|---|
| 31 | * available curves. | 
|---|
| 32 | * | 
|---|
| 33 | * The resetRegistry() function is basically | 
|---|
| 34 | * the normal Registry::cleanup() function, | 
|---|
| 35 | * it only emits additionally the curveRemoved() | 
|---|
| 36 | * signal for every curve to keep the | 
|---|
| 37 | * PageRegistry on track. | 
|---|
| 38 | **/ | 
|---|
| 39 |  | 
|---|
| 40 | class QSeisPlotCurve; | 
|---|
| 41 |  | 
|---|
| 42 | class QSeisCurveRegistry : public QObject, public Registry<QSeisPlotCurve>, public Singleton<QSeisCurveRegistry> | 
|---|
| 43 | { | 
|---|
| 44 | Q_OBJECT | 
|---|
| 45 |  | 
|---|
| 46 | friend class Singleton<QSeisCurveRegistry>; | 
|---|
| 47 |  | 
|---|
| 48 | public: | 
|---|
| 49 | void registerInstance(QSeisPlotCurve *instance); | 
|---|
| 50 | void unregisterInstance(QSeisPlotCurve *instance); | 
|---|
| 51 | void resetRegistry(); | 
|---|
| 52 |  | 
|---|
| 53 | private: | 
|---|
| 54 | QSeisCurveRegistry(); | 
|---|
| 55 | ~QSeisCurveRegistry(); | 
|---|
| 56 |  | 
|---|
| 57 | signals: | 
|---|
| 58 | void curveAdded(std::string name, QString type); | 
|---|
| 59 | void curveChanged(std::string name, QString type); | 
|---|
| 60 | void curveRemoved(std::string name, QString type); | 
|---|
| 61 | }; | 
|---|
| 62 |  | 
|---|
| 63 | #endif // QSEISCURVEREGISTRY_HPP | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.