Changeset a14fe3 for src/UIElements/Qt4


Ignore:
Timestamp:
Apr 6, 2012, 11:57:20 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:
4ddcfb
Parents:
1de61e
git-author:
Michael Ankele <ankele@…> (03/15/12 12:43:54)
git-committer:
Frederik Heber <heber@…> (04/06/12 11:57:20)
Message:

VectorQtQuery implemented

Location:
src/UIElements/Qt4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Pipe/VectorQtQueryPipe.cpp

    r1de61e ra14fe3  
    3535{}
    3636
    37 void VectorQtQueryPipe::update() {
     37void VectorQtQueryPipe::updateX(double newDouble) {
     38  (*content)[0] = newDouble;
    3839  dialog->update();
    3940}
    4041
     42void VectorQtQueryPipe::updateY(double newDouble) {
     43  (*content)[1] = newDouble;
     44  dialog->update();
     45}
     46
     47void VectorQtQueryPipe::updateZ(double newDouble) {
     48  (*content)[2] = newDouble;
     49  dialog->update();
     50}
     51
  • src/UIElements/Qt4/Pipe/VectorQtQueryPipe.hpp

    r1de61e ra14fe3  
    2929
    3030public slots:
    31   void update();
     31  void updateX(double);
     32  void updateY(double);
     33  void updateZ(double);
    3234
    3335private:
  • src/UIElements/Qt4/Query/QtQuery.hpp

    r1de61e ra14fe3  
    325325  QBoxLayout *coordLayout;
    326326  QLabel *coordLabel;
    327   QDoubleSpinBox *coordInput;
     327  QDoubleSpinBox *coordInputX;
     328  QDoubleSpinBox *coordInputY;
     329  QDoubleSpinBox *coordInputZ;
    328330
    329331  VectorQtQueryPipe *pipe;
  • src/UIElements/Qt4/Query/VectorQtQuery.cpp

    r1de61e ra14fe3  
    4343  coordLabel = new QLabel(QString("x,y,z"));
    4444  coordLayout->addWidget(coordLabel);
    45   coordInput = new QDoubleSpinBox();
    46 //  coordInput->setRange(0,M.at(i,i));
    47   coordInput->setDecimals(3);
    48   coordLayout->addWidget(coordInput);
     45  coordInputX = new QDoubleSpinBox();
     46//  coordInputX->setRange(0,M.at(i,i));
     47  coordInputX->setDecimals(3);
     48  coordLayout->addWidget(coordInputX);
     49  coordInputY = new QDoubleSpinBox();
     50//  coordInputY->setRange(0,M.at(i,i));
     51  coordInputY->setDecimals(3);
     52  coordLayout->addWidget(coordInputY);
     53  coordInputZ = new QDoubleSpinBox();
     54//  coordInputZ->setRange(0,M.at(i,i));
     55  coordInputZ->setDecimals(3);
     56  coordLayout->addWidget(coordInputZ);
    4957  pipe = new VectorQtQueryPipe(&(tmp),_dialog,inputBox);
    5058  //pipe->update(coordInput->value());
    51   connect(coordInput,SIGNAL(valueChanged(double)),pipe,SLOT(update(double)));
     59  connect(coordInputX,SIGNAL(valueChanged(double)),pipe,SLOT(updateX(double)));
     60  connect(coordInputY,SIGNAL(valueChanged(double)),pipe,SLOT(updateY(double)));
     61  connect(coordInputZ,SIGNAL(valueChanged(double)),pipe,SLOT(updateZ(double)));
    5262  parent->addLayout(mainLayout);
    5363}
Note: See TracChangeset for help on using the changeset viewer.