Ignore:
Timestamp:
Apr 20, 2016, 8:51:51 AM (9 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:
0a558d
Parents:
1a58ce
git-author:
Frederik Heber <heber@…> (03/21/16 21:13:43)
git-committer:
Frederik Heber <heber@…> (04/20/16 08:51:51)
Message:

QtObserved...Observed now get index on ...Removed() signal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/MoleculeList/QtMoleculeList.hpp

    r1a58ce r3054f4a  
    5656
    5757signals:
    58   void moleculesVisibilityChanged(const moleculeId_t, bool);
     58  void moleculesVisibilityChanged(ObservedValue_Index_t, bool);
    5959
    6060private slots:
    6161  void moleculeInserted(QtObservedMolecule::ptr _mol);
    62   void moleculeRemoved(const moleculeId_t _id);
    63   void moleculeIndexChanged(const moleculeId_t _oldid, const moleculeId_t _newid);
     62  void moleculeRemoved(ObservedValue_Index_t _id);
    6463
    6564private:
    6665  friend class QtMoleculeListView;
    6766
    68   bool isMoleculeItemPresent(const moleculeId_t _molid) const;
    69   QtMoleculeItem * MoleculeIdToItem(const moleculeId_t _molid) const;
    70   const moleculeId_t ItemToMoleculeId(const QtMoleculeItem * const _item) const;
    71   const QModelIndex MoleculeIdToIndex(const moleculeId_t _id) const;
    72   const moleculeId_t IndexToMoleculeId(const QModelIndex &_index) const;
     67  bool isMoleculeItemPresent(ObservedValue_Index_t _id) const;
     68  QtMoleculeItem * MoleculeIdToItem(ObservedValue_Index_t _id) const;
     69  ObservedValue_Index_t ItemToMoleculeId(const QtMoleculeItem * const _item) const;
     70  const QModelIndex MoleculeIdToIndex(ObservedValue_Index_t _id) const;
     71  ObservedValue_Index_t IndexToMoleculeId(const QModelIndex &_index) const;
    7372  QtMoleculeItem * getSpecificMoleculeItem(
    7473      const QtMoleculeItem * const _item,
     
    107106  FormulaTreeItemBiMap_t FormulaItemBiMap;
    108107
    109   typedef std::map<moleculeId_t, std::string> MoleculeFormulaMap_t;
     108  typedef std::map<ObservedValue_Index_t, std::string> MoleculeFormulaMap_t;
    110109  //!> map of (unique) formulas in the world
    111110  MoleculeFormulaMap_t MoleculeFormulaMap;
    112111
    113   typedef boost::bimap<moleculeId_t, QtMoleculeItem*> MoleculeItemBiMap_t;
     112  typedef boost::bimap<ObservedValue_Index_t, QtMoleculeItem*> MoleculeItemBiMap_t;
    114113  MoleculeItemBiMap_t MoleculeItemBiMap;
    115 
    116   typedef std::set< moleculeId_t > list_of_molecules_t;
    117   typedef std::set< std::pair<moleculeId_t, QtMoleculeItem::COLUMNTYPES> > list_of_molecule_items_t;
    118   typedef std::set< std::pair<std::string, QtMoleculeItem::COLUMNTYPES> > list_of_group_items_t;
    119114
    120115  //!> listens to all QtObservedMolecule and relays important events to us
Note: See TracChangeset for help on using the changeset viewer.