Ignore:
Timestamp:
Jul 18, 2012, 2:02:27 PM (13 years ago)
Author:
Michael Ankele <ankele@…>
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)
Message:

Refactoring: renamed QtWorldView -> QtMoleculeList

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/QtMoleculeList.cpp

    rf31b34 r0eb7bf3  
    77
    88/*
    9  * QtWorldView.cpp
     9 * QtMoleculeList.cpp
    1010 *
    1111 *  Created on: Jan 21, 2010
     
    1818#endif
    1919
    20 #include "Views/Qt4/QtWorldView.hpp"
     20#include "Views/Qt4/QtMoleculeList.hpp"
    2121
    2222#include <QMetaMethod>
     
    3939// some attributes need to be easier to find for molecules
    4040// these attributes are skiped so far
    41 const int QtWorldView::COLUMNCOUNT = COLUMNTYPES_MAX;
    42 const char *QtWorldView::COLUMNNAMES[QtWorldView::COLUMNCOUNT]={"Name","Atoms","Formula","Occurrence"/*,"Size"*/};
     41const int QtMoleculeList::COLUMNCOUNT = COLUMNTYPES_MAX;
     42const char *QtMoleculeList::COLUMNNAMES[QtMoleculeList::COLUMNCOUNT]={"Name","Atoms","Formula","Occurrence"/*,"Size"*/};
    4343
    44 QtWorldView::QtWorldView(QWidget * _parent) :
     44QtMoleculeList::QtMoleculeList(QWidget * _parent) :
    4545  QTreeWidget (_parent),
    46   Observer("QtWorldView")
     46  Observer("QtMoleculeList")
    4747{
    4848  setColumnCount(COLUMNCOUNT);
     
    7373}
    7474
    75 QtWorldView::~QtWorldView()
     75QtMoleculeList::~QtMoleculeList()
    7676{
    7777  World::getInstance().signOff(this);//, World::MoleculeInserted);
     
    7979}
    8080
    81 void QtWorldView::update(Observable *publisher) {
     81void QtMoleculeList::update(Observable *publisher) {
    8282
    8383  if (selecting)
     
    9292}
    9393
    94 void QtWorldView::refill() {
     94void QtMoleculeList::refill() {
    9595  const std::vector<molecule*> &molecules = World::getInstance().getAllMolecules();
    9696
     
    140140}
    141141
    142 void QtWorldView::paintEvent(QPaintEvent * event)
     142void QtMoleculeList::paintEvent(QPaintEvent * event)
    143143{
    144144  if (dirty)
     
    147147}
    148148
    149 void QtWorldView::subjectKilled(Observable *publisher) {
     149void QtMoleculeList::subjectKilled(Observable *publisher) {
    150150}
    151151
    152 void QtWorldView::moleculeChanged() {
     152void QtMoleculeList::moleculeChanged() {
    153153  /*int idx = verticalHeaderItem(row)->data(Qt::UserRole).toInt();
    154154  molecule *mol = molecules->ReturnIndex(idx);
     
    162162}
    163163
    164 void QtWorldView::rowsSelected(const QItemSelection & selected, const QItemSelection & deselected){
     164void QtMoleculeList::rowsSelected(const QItemSelection & selected, const QItemSelection & deselected){
    165165
    166166  if (clearing)
Note: See TracChangeset for help on using the changeset viewer.