Changeset 2050b2 for src/UIElements/Views
- Timestamp:
- Jan 28, 2015, 7:07:03 PM (10 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:
- 27e464
- Parents:
- 2696b1
- git-author:
- Frederik Heber <heber@…> (01/25/15 12:44:56)
- git-committer:
- Frederik Heber <heber@…> (01/28/15 19:07:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/MoleculeList/QtMoleculeList.cpp
r2696b1 r2050b2 203 203 "QtMoleculeList::addMoleculeItem() - item from factory was not a QtMoleculeItem?"); 204 204 MoleculeItemBiMap.left.insert( std::make_pair(_mol, mol_item) ); 205 LOG(1, "Inserting molecule " << _mol->getId() << ": " << _mol);205 // LOG(1, "Inserting molecule " << _mol->getId() << ": " << _mol); 206 206 _groupitem->appendRow(molItems); 207 207 … … 278 278 formula.clear(); 279 279 FormulaVisibilityCountMap.clear(); 280 LOG(1, "Clearing list.");280 // LOG(1, "Clearing list."); 281 281 MoleculeItemBiMap.clear(); 282 282 dirtyItems.clear(); … … 328 328 void QtMoleculeList::checkForVisibilityChange(QStandardItem* _item) 329 329 { 330 qDebug() << "Item changed called.";330 // qDebug() << "Item changed called."; 331 331 332 332 if (_item->index().column() == QtMoleculeItemFactory::VISIBILITY) { 333 qDebug() << "visibilityItem changed: " << (_item->checkState() ? "checked" : "unchecked");333 // qDebug() << "visibilityItem changed: " << (_item->checkState() ? "checked" : "unchecked"); 334 334 while(list_accessing); 335 335 list_accessing = true; … … 595 595 for (list_of_items_t::const_iterator visiter = visibilityItems_copy.begin(); 596 596 visiter != visibilityItems_copy.end(); ++visiter) { 597 LOG(1, "Updating visibility of item " << *visiter);597 // LOG(1, "Updating visibility of item " << *visiter); 598 598 ASSERT(((*visiter)->parent() != NULL) && ((*visiter)->parent() != invisibleRootItem()), 599 599 "QtMoleculeList::updateItemStates() - a group item ended up in visibilityItems."); … … 604 604 for (list_of_items_t::const_iterator moveiter = toBeMovedItems_copy.begin(); 605 605 moveiter != toBeMovedItems_copy.end(); ++moveiter) { 606 LOG(1, "Moving item " << *moveiter);606 // LOG(1, "Moving item " << *moveiter); 607 607 readdItem(*moveiter); 608 608 } … … 611 611 for (std::vector<const molecule *>::const_iterator removeiter = toBeRemovedItems_copy.begin(); 612 612 removeiter != toBeRemovedItems_copy.end(); ++removeiter) { 613 LOG(1, "Removing molecule " << *removeiter); // cannot access directly, molecule is gone613 // LOG(1, "Removing molecule " << *removeiter); // cannot access directly, molecule is gone 614 614 QtMoleculeItem *item = MoleculeToItem(*removeiter); 615 615 if (item != NULL) … … 620 620 for (std::vector<const molecule *>::const_iterator moliter = newItems_copy.begin(); 621 621 moliter != newItems_copy.end(); ++moliter) { 622 LOG(1, "Adding molecule " << (*moliter)->getName());622 // LOG(1, "Adding molecule " << (*moliter)->getName()); 623 623 // check that World knows the molecule still 624 624 const molecule * const mol = … … 633 633 for (std::set<QStandardItem*>::const_iterator groupiter = toBeSetOccurrenceItems_copy.begin(); 634 634 groupiter != toBeSetOccurrenceItems_copy.end(); ++groupiter) { 635 LOG(1, "Updating group item " << *groupiter);635 // LOG(1, "Updating group item " << *groupiter); 636 636 const int index = setOccurrence(*groupiter); 637 637 if (index != -1) … … 651 651 for (std::set<QStandardItem*>::iterator visiter = toBeSetVisibilityItems_copy.begin(); 652 652 visiter != toBeSetVisibilityItems_copy.end(); ++visiter) { 653 LOG(1, "Updating visibility of item " << *visiter);653 // LOG(1, "Updating visibility of item " << *visiter); 654 654 setVisibilityForGroupItem(*visiter); 655 655 } … … 658 658 for (std::set<int>::reverse_iterator riter = RowsToRemove.rbegin(); 659 659 riter != RowsToRemove.rend(); ++riter) { 660 LOG(1, "Removing group item at row " << *riter);660 // LOG(1, "Removing group item at row " << *riter); 661 661 removeRows(*riter, 1, invisibleRootItem()->index()); 662 662 }
Note:
See TracChangeset
for help on using the changeset viewer.