Changeset ce7fdc for src/UIElements
- Timestamp:
- Oct 13, 2011, 1:03:40 PM (14 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:
- 61ff05, db67ea
- Parents:
- e0f8c8
- git-author:
- Frederik Heber <heber@…> (09/09/11 18:42:38)
- git-committer:
- Frederik Heber <heber@…> (10/13/11 13:03:40)
- Location:
- src/UIElements
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineParser.cpp
re0f8c8 rce7fdc 39 39 40 40 #include "CodePatterns/Singleton_impl.hpp" 41 42 using namespace MoleCuilder; 41 43 42 44 class element; -
src/UIElements/CommandLineUI/CommandLineParser.hpp
re0f8c8 rce7fdc 24 24 #include <map> 25 25 26 class Action; 27 class CommandLineParser_ActionRegistry_ConsistencyTest; 28 class OptionTrait; 26 namespace MoleCuilder { 27 class Action; 28 class OptionTrait; 29 } 30 class CommandLineParser_ActionRegistry_ConsistenyTest; 29 31 30 32 /** This class is a wrapper for boost::program_options. … … 151 153 152 154 // adds options to the parser 153 void AddOptionToParser(const OptionTrait * const currentOption, po::options_description* OptionList);155 void AddOptionToParser(const MoleCuilder::OptionTrait * const currentOption, po::options_description* OptionList); 154 156 155 157 // creates a map from short forms to action tokens needed to parse command line -
src/UIElements/CommandLineUI/CommandLineStatusIndicator.cpp
re0f8c8 rce7fdc 26 26 #include "Actions/Process.hpp" 27 27 28 using namespace std;28 using namespace MoleCuilder; 29 29 30 30 CommandLineStatusIndicator::CommandLineStatusIndicator() : … … 46 46 if(proc->getMaxSteps()>0){ 47 47 if(!proc->doesStop()){ 48 cout << "Busy (" << proc->getName() << ") ";48 std::cout << "Busy (" << proc->getName() << ") "; 49 49 // we can show a percentage done 50 cout << (int)proc->getDoneRatio() << "% done" <<endl;50 std::cout << (int)proc->getDoneRatio() << "% done" << std::endl; 51 51 } 52 52 } … … 54 54 // we only show some kind of busy animation 55 55 if(proc->doesStart()){ 56 cout << "Busy (" << proc->getName() << ")";56 std::cout << "Busy (" << proc->getName() << ")"; 57 57 } 58 58 if(!proc->doesStop()){ 59 cout << ".";59 std::cout << "."; 60 60 } 61 61 else { 62 cout <<endl;62 std::cout << std::endl; 63 63 } 64 64 } -
src/UIElements/CommandLineUI/CommandLineWindow.cpp
re0f8c8 rce7fdc 35 35 #include <iostream> 36 36 37 using namespace std;37 using namespace MoleCuilder; 38 38 39 39 // TODO: see what code can be moved to a base class for Graphic and CommandLine Windows -
src/UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistencyUnitTest.cpp
re0f8c8 rce7fdc 30 30 31 31 #include "CommandLineParser_ActionRegistry_ConsistencyUnitTest.hpp" 32 33 using namespace MoleCuilder; 32 34 33 35 #ifdef HAVE_TESTRUNNER -
src/UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistencyUnitTest.hpp
re0f8c8 rce7fdc 17 17 #include <cppunit/extensions/HelperMacros.h> 18 18 19 class CommandLineParser; 19 20 20 class ActionRegistry; 21 class CommandLineParser; 21 namespace MoleCuilder { 22 class ActionRegistry; 23 } 22 24 23 25 /********************************************** Test classes **************************************/ … … 35 37 36 38 private: 37 ActionRegistry *AR;39 MoleCuilder::ActionRegistry *AR; 38 40 CommandLineParser *CLP; 39 41 }; -
src/UIElements/Menu/Menu.cpp
re0f8c8 rce7fdc 26 26 #include "Actions/ActionTraits.hpp" 27 27 #include "Menu/Menu.hpp" 28 29 using namespace MoleCuilder; 28 30 29 31 /** Constructor of class Menu. -
src/UIElements/Menu/Qt4/QtMenuPipe.cpp
re0f8c8 rce7fdc 27 27 #include "Actions/Action.hpp" 28 28 29 using namespace MoleCuilder; 30 29 31 QtMenuPipe::QtMenuPipe(const std::string &_ActionName, QAction *_action) : 30 32 ActionName(_ActionName), theAction(_action) -
src/UIElements/Menu/TextMenu/ActionMenuItem.cpp
re0f8c8 rce7fdc 26 26 #include "Actions/ActionRegistry.hpp" 27 27 28 using namespace std;28 using namespace MoleCuilder; 29 29 30 30 ActionMenuItem::ActionMenuItem(char _trigger, const std::string &_description,TxMenu* const _menu,const std::string &_ActionName) -
src/UIElements/Menu/TextMenu/ActionMenuItem.hpp
re0f8c8 rce7fdc 18 18 #include "Menu/TextMenu/MenuItem.hpp" 19 19 20 class Action; 20 namespace MoleCuilder { 21 class Action; 22 } 21 23 class TxMenu; 22 24 -
src/UIElements/Menu/TextMenu/TxMenuLeaveAction.cpp
re0f8c8 rce7fdc 24 24 #include "Menu/TextMenu/TxMenuLeaveAction.hpp" 25 25 #include "CodePatterns/Assert.hpp" 26 27 using namespace MoleCuilder; 26 28 27 29 /** Constructor for class TxMenu::LeaveAction. -
src/UIElements/Menu/TextMenu/TxMenuLeaveAction.hpp
re0f8c8 rce7fdc 18 18 #include "Actions/Action.hpp" 19 19 #include "Actions/ActionTraits.hpp" 20 21 using namespace MoleCuilder; 20 22 21 23 /** This specific action is used to leave a submenu and return to an upper one. -
src/UIElements/Menu/unittests/MenuDescription_ActionRegistry_ConsistencyUnitTest.cpp
re0f8c8 rce7fdc 18 18 #endif 19 19 20 using namespace std;21 20 22 21 #include <cppunit/CompilerOutputter.h> … … 29 28 30 29 #include "MenuDescription_ActionRegistry_ConsistencyUnitTest.hpp" 30 31 using namespace MoleCuilder; 31 32 32 33 #ifdef HAVE_TESTRUNNER -
src/UIElements/Menu/unittests/MenuDescription_ActionRegistry_ConsistencyUnitTest.hpp
re0f8c8 rce7fdc 19 19 #include "UIElements/Menu/MenuDescription.hpp" 20 20 21 class ActionRegistry; 21 namespace MoleCuilder { 22 class ActionRegistry; 23 } 22 24 23 25 /********************************************** Test classes **************************************/ … … 36 38 private: 37 39 MenuDescription md; 38 ActionRegistry *AR;40 MoleCuilder::ActionRegistry *AR; 39 41 }; 40 42 -
src/UIElements/TextUI/TextStatusIndicator.cpp
re0f8c8 rce7fdc 26 26 #include "Actions/Process.hpp" 27 27 28 using namespace std;28 using namespace MoleCuilder; 29 29 30 30 TextStatusIndicator::TextStatusIndicator() : … … 46 46 if(proc->getMaxSteps()>0){ 47 47 if(!proc->doesStop()){ 48 cout << "Busy (" << proc->getName() << ") ";48 std::cout << "Busy (" << proc->getName() << ") "; 49 49 // we can show a percentage done 50 cout << (int)proc->getDoneRatio() << "% done" <<endl;50 std::cout << (int)proc->getDoneRatio() << "% done" << std::endl; 51 51 } 52 52 } … … 54 54 // we only show some kind of busy animation 55 55 if(proc->doesStart()){ 56 cout << "Busy (" << proc->getName() << ")";56 std::cout << "Busy (" << proc->getName() << ")"; 57 57 } 58 58 if(!proc->doesStop()){ 59 cout << ".";59 std::cout << "."; 60 60 } 61 61 else { 62 cout <<endl;62 std::cout << std::endl; 63 63 } 64 64 } -
src/UIElements/TextUI/TextWindow.hpp
re0f8c8 rce7fdc 22 22 #include "Menu/TextMenu/TextMenu.hpp" 23 23 24 class Action; 24 namespace MoleCuilder { 25 class Action; 26 } 25 27 class StringView; 26 28 class TextStatusIndicator; -
src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp
re0f8c8 rce7fdc 39 39 #include "World.hpp" 40 40 41 using namespace MoleCuilder; 41 42 42 43 GLWorldScene::GLWorldScene(QObject *parent) -
src/UIElements/Views/Qt4/QtStatusBar.cpp
re0f8c8 rce7fdc 33 33 #define PLURAL_S(v) (((v)==1)?"":"s") 34 34 35 using namespace MoleCuilder; 35 36 36 37 QtStatusBar::QtStatusBar(QWidget *_parent) : -
src/UIElements/Views/Qt4/QtStatusBar.hpp
re0f8c8 rce7fdc 24 24 class QLabel; 25 25 class QProgressBar; 26 class Process;27 26 class QBoxLayout; 27 28 namespace MoleCuilder { 29 class Process; 30 } 28 31 29 32 class QtStatusBar : public QStatusBar, public Observer … … 48 51 private: 49 52 void redrawStatus(); 50 void redrawProcess( Process *proc);53 void redrawProcess(MoleCuilder::Process *proc); 51 54 52 55 int atomCount; … … 55 58 QLabel *statusLabel; 56 59 QWidget *parent; 57 std::map< Process*,progressIndicator*> progressBars;58 Process* activeProcess;60 std::map<MoleCuilder::Process*,progressIndicator*> progressBars; 61 MoleCuilder::Process* activeProcess; 59 62 }; 60 63
Note:
See TracChangeset
for help on using the changeset viewer.