Ignore:
Timestamp:
Jun 11, 2012, 9:53:19 AM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, 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_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
95f965
Parents:
b9c69d
git-author:
Michael Ankele <ankele@…> (04/24/12 13:55:16)
git-committer:
Frederik Heber <heber@…> (06/11/12 09:53:19)
Message:

disastrously big and ugly commit

  • using new Parameter<T> classes:
    • Actions
    • Queries (all UIs)
  • TODO:
    • actions crash cause Value is unset
    • no query<BoxVector>
Location:
src/UIElements/Query
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Query/AtomQuery.cpp

    rb9c69d rf10b0c  
    2323
    2424// Atom Queries
    25 Dialog::AtomQuery::AtomQuery(std::string title, std::string _description) :
     25Dialog::AtomQuery::AtomQuery(Parameter<const atom *> &param, std::string title, std::string _description) :
    2626    Query(title, _description),
    27     tmp(0)
     27    tmp(param)
    2828{}
    2929
     
    3131
    3232void Dialog::AtomQuery::setResult() {
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     33  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3434}
    3535
  • src/UIElements/Query/AtomsQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Atoms Queries
    26 Dialog::AtomsQuery::AtomsQuery(std::string title, std::string _description) :
     26Dialog::AtomsQuery::AtomsQuery(Parameter<std::vector<const atom *> > &param, std::string title, std::string _description) :
    2727    Query(title, _description),
    28     tmp(0)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::AtomsQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/BooleanQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Bool Queries
    26 Dialog::BooleanQuery::BooleanQuery(std::string title,std::string description) :
     26Dialog::BooleanQuery::BooleanQuery(Parameter<bool> &param, std::string title,std::string description) :
    2727    Query(title, description),
    28     tmp(false)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::BooleanQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/BoxQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Box Queries
    26 Dialog::BoxQuery::BoxQuery(std::string title, std::string _description) :
    27   Query(title, _description)
     26Dialog::BoxQuery::BoxQuery(Parameter<Box> &param, std::string title, std::string _description) :
     27  Query(title, _description),
     28  tmp(param)
    2829{}
    2930
     
    3233
    3334void Dialog::BoxQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     35  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3536}
    3637
  • src/UIElements/Query/DoubleQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Double Queries
    26 Dialog::DoubleQuery::DoubleQuery(std::string title, std::string _description) :
     26Dialog::DoubleQuery::DoubleQuery(Parameter<double> &param, std::string title, std::string _description) :
    2727    Query(title, _description),
    28     tmp(0)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::DoubleQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/DoublesQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Doubles Queries
    26 Dialog::DoublesQuery::DoublesQuery(std::string title, std::string _description) :
    27     Query(title, _description)
     26Dialog::DoublesQuery::DoublesQuery(Parameter<std::vector<double> > &param, std::string title, std::string _description) :
     27    Query(title, _description),
     28    tmp(param)
    2829{}
    2930
     
    3132
    3233void Dialog::DoublesQuery::setResult() {
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/ElementQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Element Queries
    26 Dialog::ElementQuery::ElementQuery(std::string title, std::string _description) :
    27   Query(title, _description)
     26Dialog::ElementQuery::ElementQuery(Parameter<const element *> &param, std::string title, std::string _description) :
     27  Query(title, _description),
     28  tmp(param)
    2829  {}
    2930
     
    3132
    3233void Dialog::ElementQuery::setResult(){
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/ElementsQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Elements Queries
    26 Dialog::ElementsQuery::ElementsQuery(std::string title, std::string _description) :
    27   Query(title, _description)
     26Dialog::ElementsQuery::ElementsQuery(Parameter<std::vector<const element *> > &param, std::string title, std::string _description) :
     27  Query(title, _description),
     28  tmp(param)
    2829  {}
    2930
     
    3132
    3233void Dialog::ElementsQuery::setResult(){
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/FileQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// File Queries
    26 Dialog::FileQuery::FileQuery(std::string title, std::string _description) :
    27   Query(title, _description)
     26Dialog::FileQuery::FileQuery(Parameter<boost::filesystem::path> &param, std::string title, std::string _description) :
     27  Query(title, _description),
     28  tmp(param)
    2829  {}
    2930
     
    3132
    3233void Dialog::FileQuery::setResult(){
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/IntQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Int Queries
    26 Dialog::IntQuery::IntQuery(std::string title, std::string description) :
     26Dialog::IntQuery::IntQuery(Parameter<int> &param, std::string title, std::string description) :
    2727    Query(title, description),
    28     tmp(0)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::IntQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/IntsQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Ints Queries
    26 Dialog::IntsQuery::IntsQuery(std::string title, std::string description) :
    27     Query(title, description)
     26Dialog::IntsQuery::IntsQuery(Parameter<std::vector<int> > &param, std::string title, std::string description) :
     27    Query(title, description),
     28    tmp(param)
    2829{}
    2930
     
    3132
    3233void Dialog::IntsQuery::setResult() {
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/MoleculeQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Molecule Queries
    26 Dialog::MoleculeQuery::MoleculeQuery(std::string title, std::string _description) :
     26Dialog::MoleculeQuery::MoleculeQuery(Parameter<const molecule *> &param, std::string title, std::string _description) :
    2727    Query(title, _description),
    28     tmp(0)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::MoleculeQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/MoleculesQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Molecules Queries
    26 Dialog::MoleculesQuery::MoleculesQuery(std::string title, std::string _description) :
     26Dialog::MoleculesQuery::MoleculesQuery(Parameter<std::vector<const molecule *> > &param, std::string title, std::string _description) :
    2727    Query(title, _description),
    28     tmp(0)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::MoleculesQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/RandomNumberDistribution_ParametersQuery.cpp

    rb9c69d rf10b0c  
    2323
    2424// RandomNumberDistribution_Parameters Queries
    25 Dialog::RandomNumberDistribution_ParametersQuery::RandomNumberDistribution_ParametersQuery(std::string title, std::string _description) :
    26     Query(title, _description)
     25Dialog::RandomNumberDistribution_ParametersQuery::RandomNumberDistribution_ParametersQuery(Parameter<RandomNumberDistribution_Parameters> &param, std::string title, std::string _description) :
     26    Query(title, _description),
     27    tmp(param)
    2728{}
    2829
     
    3031
    3132void Dialog::RandomNumberDistribution_ParametersQuery::setResult() {
    32   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     33  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3334}
    3435
  • src/UIElements/Query/StringQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// String Queries
    26 Dialog::StringQuery::StringQuery(std::string title,std::string _description) :
    27     Query(title, _description)
     26Dialog::StringQuery::StringQuery(Parameter<std::string> &param, std::string title,std::string _description) :
     27    Query(title, _description),
     28    tmp(param)
    2829{}
    2930
     
    3132
    3233void Dialog::StringQuery::setResult() {
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/StringsQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Strings Queries
    26 Dialog::StringsQuery::StringsQuery(std::string title,std::string _description) :
    27     Query(title, _description)
     26Dialog::StringsQuery::StringsQuery(Parameter<std::vector<std::string> > &param, std::string title,std::string _description) :
     27    Query(title, _description),
     28    tmp(param)
    2829{}
    2930
     
    3132
    3233void Dialog::StringsQuery::setResult() {
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/UnsignedIntQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// UnsignedInt Queries
    26 Dialog::UnsignedIntQuery::UnsignedIntQuery(std::string title, std::string description) :
     26Dialog::UnsignedIntQuery::UnsignedIntQuery(Parameter<unsigned int> &param, std::string title, std::string description) :
    2727    Query(title, description),
    28     tmp(0)
     28    tmp(param)
    2929{}
    3030
     
    3232
    3333void Dialog::UnsignedIntQuery::setResult() {
    34   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3535}
    3636
  • src/UIElements/Query/UnsignedIntsQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// UnsignedInts Queries
    26 Dialog::UnsignedIntsQuery::UnsignedIntsQuery(std::string title, std::string description) :
    27     Query(title, description)
     26Dialog::UnsignedIntsQuery::UnsignedIntsQuery(Parameter<std::vector<unsigned int> > &param, std::string title, std::string description) :
     27    Query(title, description),
     28    tmp(param)
    2829{}
    2930
     
    3132
    3233void Dialog::UnsignedIntsQuery::setResult() {
    33   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     34  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3435}
    3536
  • src/UIElements/Query/VectorQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Vector Queries
    26 Dialog::VectorQuery::VectorQuery(std::string title,bool _check, std::string _description) :
     26Dialog::VectorQuery::VectorQuery(Parameter<Vector> &param, std::string title,bool _check, std::string _description) :
    2727  Query(title, _description),
     28  tmp(param),
    2829  check(_check)
    2930{}
     
    3334
    3435void Dialog::VectorQuery::setResult() {
    35   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     36  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3637}
    3738
  • src/UIElements/Query/VectorsQuery.cpp

    rb9c69d rf10b0c  
    2424
    2525// Vectors Queries
    26 Dialog::VectorsQuery::VectorsQuery(std::string title,bool _check, std::string _description) :
     26Dialog::VectorsQuery::VectorsQuery(Parameter<std::vector<Vector> > &param, std::string title,bool _check, std::string _description) :
    2727  Query(title, _description),
     28  tmp(param),
    2829  check(_check)
    2930{}
     
    3334
    3435void Dialog::VectorsQuery::setResult() {
    35   ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
     36  //ValueStorage::getInstance().setCurrentValue(title.c_str(), tmp);
    3637}
    3738
Note: See TracChangeset for help on using the changeset viewer.