Changeset 326a43b


Ignore:
Timestamp:
Feb 17, 2010, 5:07:35 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
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:
cbf01e
Parents:
b1d8092
Message:

Added a special class of Actions that take some time.
Added a statusbar to the window that shows world status and progress of the current processes.

Location:
src
Files:
4 added
7 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/small_actions.hpp

    rb1d8092 r326a43b  
    11// All rather small Actions should go into this file for simplicities sake
    22
     3#ifndef _SMALL_ACTIONS_HPP
     4#define _SMALL_ACTIONS_HPP
     5
    36#include "Actions/Action.hpp"
    4 
     7#include "Actions/Process.hpp"
    58
    69class MoleculeListClass;
     
    912public:
    1013  ChangeMoleculeNameAction(MoleculeListClass*);
    11   ~ChangeMoleculeNameAction();
     14  virtual ~ChangeMoleculeNameAction();
    1215
    1316  void call();
     
    2124  static char NAME[];
    2225};
     26
     27#endif // _SMALL_ACTIONS_HPP
  • src/Makefile.am

    rb1d8092 r326a43b  
    88ANALYSISHEADER = analysis_bonds.hpp analysis_correlation.hpp
    99
    10 ACTIONSSOURCE = Actions/Action.cpp Actions/MethodAction.cpp Actions/ActionSequence.cpp Actions/MakroAction.cpp Actions/ErrorAction.cpp Actions/small_actions.cpp Actions/ActionRegistry.cpp
    11 ACTIONSHEADER = Actions/Action.hpp Actions/MethodAction.hpp Actions/ActionSequence.hpp Actions/MakroAction.hpp Actions/ErrorAction.hpp Actions/small_actions.hpp Actions/ActionRegistry.hpp
     10ACTIONSSOURCE = Actions/Action.cpp Actions/Process.cpp Actions/MethodAction.cpp Actions/ActionSequence.cpp Actions/MakroAction.cpp Actions/ErrorAction.cpp Actions/small_actions.cpp Actions/ActionRegistry.cpp
     11ACTIONSHEADER = Actions/Action.hpp Actions/Process.hpp Actions/MethodAction.hpp Actions/ActionSequence.hpp Actions/MakroAction.hpp Actions/ErrorAction.hpp Actions/small_actions.hpp Actions/ActionRegistry.hpp
    1212
    1313PATTERNSOURCE = Patterns/Observer.cpp
     
    3333LEGACYHEADER = Legacy/oldmenu.hpp
    3434
    35 
    36 QTUIMOC_HEADER = UIElements/QT4/QTMainWindow.hpp UIElements/QT4/QTDialog.hpp Menu/QT4/QTMenu.hpp  Views/QT4/QTMoleculesView.hpp Views/QT4/GLMoleculeView.hpp
    37 QTUIMOC_TARGETS = QTMainWindow.moc.cpp QTMenu.moc.cpp QTDialog.moc.cpp QTMoleculesView.moc.cpp GLMoleculeView.moc.cpp
     35QTUIMOC_HEADER = UIElements/QT4/QTMainWindow.hpp UIElements/QT4/QTDialog.hpp Menu/QT4/QTMenu.hpp  Views/QT4/QTMoleculesView.hpp Views/QT4/GLMoleculeView.hpp Views/QT4/QTStatusBar.hpp
     36QTUIMOC_TARGETS = QTMainWindow.moc.cpp QTMenu.moc.cpp QTDialog.moc.cpp QTMoleculesView.moc.cpp GLMoleculeView.moc.cpp QTStatusBar.moc.cpp
    3837
    3938DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp Descriptors/AtomIdDescriptor.cpp
    4039DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp Descriptors/AtomIdDescriptor.hpp
    4140
    42 QTUISOURCE = ${QTUIMOC_TARGETS} UIElements/QT4/QTMainWindow.cpp UIElements/QT4/QTDialog.cpp UIElements/QT4/QTUIFactory.cpp Menu/QT4/QTMenu.cpp Views/QT4/QTMoleculesView.cpp Views/QT4/GLMoleculeView.cpp
     41QTUISOURCE = ${QTUIMOC_TARGETS} UIElements/QT4/QTMainWindow.cpp UIElements/QT4/QTDialog.cpp UIElements/QT4/QTUIFactory.cpp Menu/QT4/QTMenu.cpp Views/QT4/QTMoleculesView.cpp Views/QT4/GLMoleculeView.cpp Views/QT4/QTStatusBar.cpp
    4342QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp
    4443
  • src/UIElements/QT4/QTMainWindow.cpp

    rb1d8092 r326a43b  
    2222#include "Views/QT4/QTMoleculesView.hpp"
    2323#include "Views/QT4/GLMoleculeView.hpp"
     24#include "Views/QT4/QTStatusBar.hpp"
    2425
    2526
     
    4344  splitter2->addWidget(moleculeDisplay);
    4445
    45 
    46 
     46  statusBar = new QTStatusBar(this);
     47  setStatusBar(statusBar);
    4748
    4849  editMoleculesMenu = new QTMenu("Edit Molecules");
  • src/UIElements/QT4/QTMainWindow.hpp

    rb1d8092 r326a43b  
    1616class QTMenu;
    1717class GLMoleculeView;
     18class QTStatusBar;
    1819
    1920class QTMainWindow : public QMainWindow, public MainWindow
     
    3435  QTMenu *editMoleculesMenu;
    3536  GLMoleculeView *molecule3dDisplay;
     37  QTStatusBar *statusBar;
    3638
    3739};
  • src/World.cpp

    rb1d8092 r326a43b  
    5959    periode(new periodentafel),
    6060    molecules_deprecated(new MoleculeListClass)
    61 {}
     61{
     62  molecules_deprecated->signOn(this);
     63}
    6264
    6365World::~World()
  • src/builder.cpp

    rb1d8092 r326a43b  
    21682168
    21692169void cleanUp(config *configuration){
     2170  UIFactory::purgeInstance();
    21702171  World::destroy();
    21712172  delete(configuration);
     
    21772178  logger::purgeInstance();
    21782179  errorLogger::purgeInstance();
    2179   UIFactory::purgeInstance();
    21802180  ActionRegistry::purgeRegistry();
    21812181}
  • src/helpers.hpp

    rb1d8092 r326a43b  
    187187};
    188188
    189 
     189#define PLURAL_S(v) (((v)==1)?"":"s")
    190190
    191191#endif /*HELPERS_HPP_*/
Note: See TracChangeset for help on using the changeset viewer.