Changeset 0eb7bf3 for src/UIElements/Views/Qt4/QtMoleculeList.cpp
- Timestamp:
- Jul 18, 2012, 2:02:27 PM (13 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:
- 3c53fa
- Parents:
- f31b34
- git-author:
- Michael Ankele <ankele@…> (07/12/12 15:37:12)
- git-committer:
- Michael Ankele <ankele@…> (07/18/12 14:02:27)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtMoleculeList.cpp
rf31b34 r0eb7bf3 7 7 8 8 /* 9 * Qt WorldView.cpp9 * QtMoleculeList.cpp 10 10 * 11 11 * Created on: Jan 21, 2010 … … 18 18 #endif 19 19 20 #include "Views/Qt4/Qt WorldView.hpp"20 #include "Views/Qt4/QtMoleculeList.hpp" 21 21 22 22 #include <QMetaMethod> … … 39 39 // some attributes need to be easier to find for molecules 40 40 // these attributes are skiped so far 41 const int Qt WorldView::COLUMNCOUNT = COLUMNTYPES_MAX;42 const char *Qt WorldView::COLUMNNAMES[QtWorldView::COLUMNCOUNT]={"Name","Atoms","Formula","Occurrence"/*,"Size"*/};41 const int QtMoleculeList::COLUMNCOUNT = COLUMNTYPES_MAX; 42 const char *QtMoleculeList::COLUMNNAMES[QtMoleculeList::COLUMNCOUNT]={"Name","Atoms","Formula","Occurrence"/*,"Size"*/}; 43 43 44 Qt WorldView::QtWorldView(QWidget * _parent) :44 QtMoleculeList::QtMoleculeList(QWidget * _parent) : 45 45 QTreeWidget (_parent), 46 Observer("Qt WorldView")46 Observer("QtMoleculeList") 47 47 { 48 48 setColumnCount(COLUMNCOUNT); … … 73 73 } 74 74 75 Qt WorldView::~QtWorldView()75 QtMoleculeList::~QtMoleculeList() 76 76 { 77 77 World::getInstance().signOff(this);//, World::MoleculeInserted); … … 79 79 } 80 80 81 void Qt WorldView::update(Observable *publisher) {81 void QtMoleculeList::update(Observable *publisher) { 82 82 83 83 if (selecting) … … 92 92 } 93 93 94 void Qt WorldView::refill() {94 void QtMoleculeList::refill() { 95 95 const std::vector<molecule*> &molecules = World::getInstance().getAllMolecules(); 96 96 … … 140 140 } 141 141 142 void Qt WorldView::paintEvent(QPaintEvent * event)142 void QtMoleculeList::paintEvent(QPaintEvent * event) 143 143 { 144 144 if (dirty) … … 147 147 } 148 148 149 void Qt WorldView::subjectKilled(Observable *publisher) {149 void QtMoleculeList::subjectKilled(Observable *publisher) { 150 150 } 151 151 152 void Qt WorldView::moleculeChanged() {152 void QtMoleculeList::moleculeChanged() { 153 153 /*int idx = verticalHeaderItem(row)->data(Qt::UserRole).toInt(); 154 154 molecule *mol = molecules->ReturnIndex(idx); … … 162 162 } 163 163 164 void Qt WorldView::rowsSelected(const QItemSelection & selected, const QItemSelection & deselected){164 void QtMoleculeList::rowsSelected(const QItemSelection & selected, const QItemSelection & deselected){ 165 165 166 166 if (clearing)
Note:
See TracChangeset
for help on using the changeset viewer.