Changeset ce7fdc for src/UIElements


Ignore:
Timestamp:
Oct 13, 2011, 1:03:40 PM (14 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

HUGE: All Action-related codes resides now in namespace MoleCuilder.

  • removed all namespace std in Actions..., replaced by MoleCuilder.
Location:
src/UIElements
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/CommandLineParser.cpp

    re0f8c8 rce7fdc  
    3939
    4040#include "CodePatterns/Singleton_impl.hpp"
     41
     42using namespace MoleCuilder;
    4143
    4244class element;
  • src/UIElements/CommandLineUI/CommandLineParser.hpp

    re0f8c8 rce7fdc  
    2424#include <map>
    2525
    26 class Action;
    27 class CommandLineParser_ActionRegistry_ConsistencyTest;
    28 class OptionTrait;
     26namespace MoleCuilder {
     27  class Action;
     28  class OptionTrait;
     29}
     30class CommandLineParser_ActionRegistry_ConsistenyTest;
    2931
    3032/** This class is a wrapper for boost::program_options.
     
    151153
    152154  // 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);
    154156
    155157  // creates a map from short forms to action tokens needed to parse command line
  • src/UIElements/CommandLineUI/CommandLineStatusIndicator.cpp

    re0f8c8 rce7fdc  
    2626#include "Actions/Process.hpp"
    2727
    28 using namespace std;
     28using namespace MoleCuilder;
    2929
    3030CommandLineStatusIndicator::CommandLineStatusIndicator() :
     
    4646    if(proc->getMaxSteps()>0){
    4747      if(!proc->doesStop()){
    48         cout << "Busy (" << proc->getName() << ") ";
     48        std::cout << "Busy (" << proc->getName() << ") ";
    4949        // we can show a percentage done
    50         cout << (int)proc->getDoneRatio() << "% done" << endl;
     50        std::cout << (int)proc->getDoneRatio() << "% done" << std::endl;
    5151      }
    5252    }
     
    5454      // we only show some kind of busy animation
    5555      if(proc->doesStart()){
    56         cout << "Busy (" << proc->getName() << ")";
     56        std::cout << "Busy (" << proc->getName() << ")";
    5757      }
    5858      if(!proc->doesStop()){
    59         cout << ".";
     59        std::cout << ".";
    6060      }
    6161      else {
    62         cout << endl;
     62        std::cout << std::endl;
    6363      }
    6464    }
  • src/UIElements/CommandLineUI/CommandLineWindow.cpp

    re0f8c8 rce7fdc  
    3535#include <iostream>
    3636
    37 using namespace std;
     37using namespace MoleCuilder;
    3838
    3939// 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  
    3030
    3131#include "CommandLineParser_ActionRegistry_ConsistencyUnitTest.hpp"
     32
     33using namespace MoleCuilder;
    3234
    3335#ifdef HAVE_TESTRUNNER
  • src/UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistencyUnitTest.hpp

    re0f8c8 rce7fdc  
    1717#include <cppunit/extensions/HelperMacros.h>
    1818
     19class CommandLineParser;
    1920
    20 class ActionRegistry;
    21 class CommandLineParser;
     21namespace MoleCuilder {
     22  class ActionRegistry;
     23}
    2224
    2325/********************************************** Test classes **************************************/
     
    3537
    3638private:
    37       ActionRegistry *AR;
     39      MoleCuilder::ActionRegistry *AR;
    3840      CommandLineParser *CLP;
    3941};
  • src/UIElements/Menu/Menu.cpp

    re0f8c8 rce7fdc  
    2626#include "Actions/ActionTraits.hpp"
    2727#include "Menu/Menu.hpp"
     28
     29using namespace MoleCuilder;
    2830
    2931/** Constructor of class Menu.
  • src/UIElements/Menu/Qt4/QtMenuPipe.cpp

    re0f8c8 rce7fdc  
    2727#include "Actions/Action.hpp"
    2828
     29using namespace MoleCuilder;
     30
    2931QtMenuPipe::QtMenuPipe(const std::string &_ActionName, QAction *_action) :
    3032    ActionName(_ActionName), theAction(_action)
  • src/UIElements/Menu/TextMenu/ActionMenuItem.cpp

    re0f8c8 rce7fdc  
    2626#include "Actions/ActionRegistry.hpp"
    2727
    28 using namespace std;
     28using namespace MoleCuilder;
    2929
    3030ActionMenuItem::ActionMenuItem(char _trigger, const std::string &_description,TxMenu* const _menu,const std::string &_ActionName)
  • src/UIElements/Menu/TextMenu/ActionMenuItem.hpp

    re0f8c8 rce7fdc  
    1818#include "Menu/TextMenu/MenuItem.hpp"
    1919
    20 class Action;
     20namespace MoleCuilder {
     21  class Action;
     22}
    2123class TxMenu;
    2224
  • src/UIElements/Menu/TextMenu/TxMenuLeaveAction.cpp

    re0f8c8 rce7fdc  
    2424#include "Menu/TextMenu/TxMenuLeaveAction.hpp"
    2525#include "CodePatterns/Assert.hpp"
     26
     27using namespace MoleCuilder;
    2628
    2729/** Constructor for class TxMenu::LeaveAction.
  • src/UIElements/Menu/TextMenu/TxMenuLeaveAction.hpp

    re0f8c8 rce7fdc  
    1818#include "Actions/Action.hpp"
    1919#include "Actions/ActionTraits.hpp"
     20
     21using namespace MoleCuilder;
    2022
    2123/** 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  
    1818#endif
    1919
    20 using namespace std;
    2120
    2221#include <cppunit/CompilerOutputter.h>
     
    2928
    3029#include "MenuDescription_ActionRegistry_ConsistencyUnitTest.hpp"
     30
     31using namespace MoleCuilder;
    3132
    3233#ifdef HAVE_TESTRUNNER
  • src/UIElements/Menu/unittests/MenuDescription_ActionRegistry_ConsistencyUnitTest.hpp

    re0f8c8 rce7fdc  
    1919#include "UIElements/Menu/MenuDescription.hpp"
    2020
    21 class ActionRegistry;
     21namespace MoleCuilder {
     22  class ActionRegistry;
     23}
    2224
    2325/********************************************** Test classes **************************************/
     
    3638private:
    3739      MenuDescription md;
    38       ActionRegistry *AR;
     40      MoleCuilder::ActionRegistry *AR;
    3941};
    4042
  • src/UIElements/TextUI/TextStatusIndicator.cpp

    re0f8c8 rce7fdc  
    2626#include "Actions/Process.hpp"
    2727
    28 using namespace std;
     28using namespace MoleCuilder;
    2929
    3030TextStatusIndicator::TextStatusIndicator() :
     
    4646    if(proc->getMaxSteps()>0){
    4747      if(!proc->doesStop()){
    48         cout << "Busy (" << proc->getName() << ") ";
     48        std::cout << "Busy (" << proc->getName() << ") ";
    4949        // we can show a percentage done
    50         cout << (int)proc->getDoneRatio() << "% done" << endl;
     50        std::cout << (int)proc->getDoneRatio() << "% done" << std::endl;
    5151      }
    5252    }
     
    5454      // we only show some kind of busy animation
    5555      if(proc->doesStart()){
    56         cout << "Busy (" << proc->getName() << ")";
     56        std::cout << "Busy (" << proc->getName() << ")";
    5757      }
    5858      if(!proc->doesStop()){
    59         cout << ".";
     59        std::cout << ".";
    6060      }
    6161      else {
    62         cout << endl;
     62        std::cout << std::endl;
    6363      }
    6464    }
  • src/UIElements/TextUI/TextWindow.hpp

    re0f8c8 rce7fdc  
    2222#include "Menu/TextMenu/TextMenu.hpp"
    2323
    24 class Action;
     24namespace MoleCuilder {
     25  class Action;
     26}
    2527class StringView;
    2628class TextStatusIndicator;
  • src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp

    re0f8c8 rce7fdc  
    3939#include "World.hpp"
    4040
     41using namespace MoleCuilder;
    4142
    4243GLWorldScene::GLWorldScene(QObject *parent)
  • src/UIElements/Views/Qt4/QtStatusBar.cpp

    re0f8c8 rce7fdc  
    3333#define PLURAL_S(v) (((v)==1)?"":"s")
    3434
     35using namespace MoleCuilder;
    3536
    3637QtStatusBar::QtStatusBar(QWidget *_parent) :
  • src/UIElements/Views/Qt4/QtStatusBar.hpp

    re0f8c8 rce7fdc  
    2424class QLabel;
    2525class QProgressBar;
    26 class Process;
    2726class QBoxLayout;
     27
     28namespace MoleCuilder {
     29  class Process;
     30}
    2831
    2932class QtStatusBar : public QStatusBar, public Observer
     
    4851private:
    4952  void redrawStatus();
    50   void redrawProcess(Process *proc);
     53  void redrawProcess(MoleCuilder::Process *proc);
    5154
    5255  int atomCount;
     
    5558  QLabel *statusLabel;
    5659  QWidget *parent;
    57   std::map<Process*,progressIndicator*> progressBars;
    58   Process* activeProcess;
     60  std::map<MoleCuilder::Process*,progressIndicator*> progressBars;
     61  MoleCuilder::Process* activeProcess;
    5962};
    6063
Note: See TracChangeset for help on using the changeset viewer.