Changeset 5605032 for src/UIElements


Ignore:
Timestamp:
Mar 25, 2010, 1:01:35 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
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:
f6bbc6
Parents:
9848ba
Message:

Repaired code that was broken by merge

Location:
src/UIElements
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.cpp

    r9848ba r5605032  
    135135
    136136// Element Queries
    137 Dialog::ElementQuery::ElementQuery(std::string title, element **_target) :
     137Dialog::ElementQuery::ElementQuery(std::string title, const element **_target) :
    138138  Query(title),
    139   target(_target),
    140   tmp(0)
     139  tmp(0),
     140  target(_target)
    141141  {}
    142142
  • src/UIElements/Dialog.hpp

    r9848ba r5605032  
    2828  virtual void queryMolecule(const char*,molecule**,MoleculeListClass*)=0;
    2929  virtual void queryVector(const char*,Vector *,const double *const,bool)=0;
    30   virtual void queryElement(const char*,element **)=0;
     30  virtual void queryElement(const char*,const element **)=0;
    3131
    3232  virtual bool display();
     
    123123  class ElementQuery : public Query {
    124124  public:
    125     ElementQuery(std::string title, element**_target);
     125    ElementQuery(std::string title, const element**_target);
    126126    virtual ~ElementQuery();
    127127    virtual bool handle()=0;
    128128    virtual void setResult();
    129129  protected:
    130     element *tmp;
     130    const element *tmp;
    131131  private:
    132     element **target;
     132    const element **target;
    133133  };
    134134
  • src/UIElements/TextDialog.cpp

    r9848ba r5605032  
    4949}
    5050
    51 void TextDialog::queryElement(const char* title, element **target){
     51void TextDialog::queryElement(const char* title, const element **target){
    5252  registerQuery(new ElementTextQuery(title,target));
    5353}
     
    125125
    126126
    127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, element **target) :
     127TextDialog::ElementTextQuery::ElementTextQuery(std::string title, const element **target) :
    128128    Dialog::ElementQuery(title,target)
    129129{}
     
    136136  Log() << Verbose(0) << getTitle();
    137137  cin >> Z;
    138   tmp = World::get()->getPeriode()->FindElement(Z);
     138  tmp = World::getInstance().getPeriode()->FindElement(Z);
    139139  return tmp;
    140140}
  • src/UIElements/TextDialog.hpp

    r9848ba r5605032  
    2424  virtual void queryMolecule(const char*,molecule**,MoleculeListClass*);
    2525  virtual void queryVector(const char*,Vector *,const double * const,bool);
    26   virtual void queryElement(const char*,element **);
     26  virtual void queryElement(const char*,const element **);
    2727
    2828protected:
     
    6565  class ElementTextQuery : public Dialog::ElementQuery {
    6666  public:
    67     ElementTextQuery(std::string title, element **_target);
     67    ElementTextQuery(std::string title, const element **_target);
    6868    virtual ~ElementTextQuery();
    6969    virtual bool handle();
Note: See TracChangeset for help on using the changeset viewer.