Ignore:
Timestamp:
Jul 18, 2012, 2:02:27 PM (12 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:
7c9921
Parents:
0eb7bf3
git-author:
Michael Ankele <ankele@…> (07/12/12 15:59:13)
git-committer:
Michael Ankele <ankele@…> (07/18/12 14:02:27)
Message:

Refactoring: renamed QtMoleculeView -> QtInfoBox

File:
1 moved

Legend:

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

    r0eb7bf3 r3c53fa  
    77
    88/*
    9  * QtMoleculeView.cpp
     9 * QtInfoBox.cpp
    1010 *
    1111 *  Created on: Mar 4, 2010
     
    1818#endif
    1919
    20 #include "Views/Qt4/QtMoleculeView.hpp"
     20#include "Views/Qt4/QtInfoBox.hpp"
    2121
    2222#include <iostream>
     
    3232/***************** Basic structure for tab layout ***********/
    3333
    34 QtMoleculeView::QtMoleculeView() :
     34QtInfoBox::QtInfoBox() :
    3535    QTabWidget(),
    3636    curAtom(NULL), nextAtom(NULL),
     
    4343}
    4444
    45 QtMoleculeView::~QtMoleculeView()
     45QtInfoBox::~QtInfoBox()
    4646{
    4747  clearTabs();
    4848}
    4949
    50 void QtMoleculeView::nameChanged(QTMoleculePage *page, std::string name){}
    51 
    52 void QtMoleculeView::atomHover(const atom *_atom)
     50void QtInfoBox::atomHover(const atom *_atom)
    5351{
    5452  nextAtom = _atom;
     
    5654}
    5755
    58 void QtMoleculeView::timerTimeout()
     56void QtInfoBox::timerTimeout()
    5957{
    6058  if (nextAtom)
     
    6260}
    6361
    64 void QtMoleculeView::clearTabs()
     62void QtInfoBox::clearTabs()
    6563{
    6664  if (page_atom){
     
    7674}
    7775
    78 void QtMoleculeView::showAtom(const atom *_atom)
     76void QtInfoBox::showAtom(const atom *_atom)
    7977{
    8078  // Remove old tabs.
     
    8583  // Show new tabs.
    8684  if (curAtom){
    87     page_atom = new QTAtomPage(curAtom);
     85    page_atom = new QtAtomInfoPage(curAtom);
    8886    addTab(page_atom, "Atom");
    8987    connect(page_atom, SIGNAL(atomKilled()), this, SLOT(clearTabs()));
    9088
    9189    if (curAtom->getMolecule()){
    92       page_mol = new QTMoleculePage(curAtom->getMolecule());
     90      page_mol = new QtMoleculeInfoPage(curAtom->getMolecule());
    9391      addTab(page_mol, "Molecule");
    9492      connect(page_mol, SIGNAL(moleculeKilled()), this, SLOT(clearTabs()));
     
    106104}
    107105
    108 QTAtomPage::QTAtomPage(const atom *_atom) :
     106QtAtomInfoPage::QtAtomInfoPage(const atom *_atom) :
    109107  Observer("QTAtomPage"),
    110108  atomRef(_atom)
     
    126124}
    127125
    128 QTAtomPage::~QTAtomPage()
     126QtAtomInfoPage::~QtAtomInfoPage()
    129127{
    130128  if (atomRef)
     
    132130}
    133131
    134 void QTAtomPage::update(Observable *subject){
     132void QtAtomInfoPage::update(Observable *subject){
    135133  /*if(name != atomRef->name){
    136134    name = atomRef->name;
     
    139137}
    140138
    141 void QTAtomPage::subjectKilled(Observable *subject){
     139void QtAtomInfoPage::subjectKilled(Observable *subject){
    142140  atomRef = NULL;
    143141  emit atomKilled();
     
    146144/************************ Tab for single Molecules *****************/
    147145
    148 QTMoleculePage::QTMoleculePage(const molecule *_mol) :
     146QtMoleculeInfoPage::QtMoleculeInfoPage(const molecule *_mol) :
    149147    Observer("QTMoleculePage"),
    150148    mol(_mol)
     
    165163}
    166164
    167 QTMoleculePage::~QTMoleculePage(){
     165QtMoleculeInfoPage::~QtMoleculeInfoPage(){
    168166  if (mol)
    169167    mol->signOff(this);
    170168}
    171169
    172 void QTMoleculePage::update(Observable *subject){  std::cout << "tab mol update\n";
     170void QtMoleculeInfoPage::update(Observable *subject){  std::cout << "tab mol update\n";
    173171}
    174172
    175 void QTMoleculePage::subjectKilled(Observable *subject){
     173void QtMoleculeInfoPage::subjectKilled(Observable *subject){
    176174  mol = NULL;
    177175  emit moleculeKilled();
Note: See TracChangeset for help on using the changeset viewer.