Changeset 5605032 for src/UIElements
- Timestamp:
- Mar 25, 2010, 1:01:35 PM (15 years ago)
- 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
- Location:
- src/UIElements
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.cpp
r9848ba r5605032 135 135 136 136 // Element Queries 137 Dialog::ElementQuery::ElementQuery(std::string title, element **_target) :137 Dialog::ElementQuery::ElementQuery(std::string title, const element **_target) : 138 138 Query(title), 139 t arget(_target),140 t mp(0)139 tmp(0), 140 target(_target) 141 141 {} 142 142 -
src/UIElements/Dialog.hpp
r9848ba r5605032 28 28 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*)=0; 29 29 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; 31 31 32 32 virtual bool display(); … … 123 123 class ElementQuery : public Query { 124 124 public: 125 ElementQuery(std::string title, element**_target);125 ElementQuery(std::string title, const element**_target); 126 126 virtual ~ElementQuery(); 127 127 virtual bool handle()=0; 128 128 virtual void setResult(); 129 129 protected: 130 element *tmp;130 const element *tmp; 131 131 private: 132 element **target;132 const element **target; 133 133 }; 134 134 -
src/UIElements/TextDialog.cpp
r9848ba r5605032 49 49 } 50 50 51 void TextDialog::queryElement(const char* title, element **target){51 void TextDialog::queryElement(const char* title, const element **target){ 52 52 registerQuery(new ElementTextQuery(title,target)); 53 53 } … … 125 125 126 126 127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, element **target) :127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, const element **target) : 128 128 Dialog::ElementQuery(title,target) 129 129 {} … … 136 136 Log() << Verbose(0) << getTitle(); 137 137 cin >> Z; 138 tmp = World::get ()->getPeriode()->FindElement(Z);138 tmp = World::getInstance().getPeriode()->FindElement(Z); 139 139 return tmp; 140 140 } -
src/UIElements/TextDialog.hpp
r9848ba r5605032 24 24 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*); 25 25 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 **); 27 27 28 28 protected: … … 65 65 class ElementTextQuery : public Dialog::ElementQuery { 66 66 public: 67 ElementTextQuery(std::string title, element **_target);67 ElementTextQuery(std::string title, const element **_target); 68 68 virtual ~ElementTextQuery(); 69 69 virtual bool handle();
Note:
See TracChangeset
for help on using the changeset viewer.