Ignore:
Timestamp:
Oct 25, 2010, 12:08:39 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:
379b7e, 9784cf
Parents:
81126a
Message:

Renamed QT -> Qt in files, dirs, and class names.

Location:
src/UIElements/Menu/Qt4
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • src/UIElements/Menu/Qt4/QtMenu.cpp

    r81126a r4cf323d  
    77
    88/*
    9  * QTMenu.cpp
     9 * QtMenu.cpp
    1010 *
    1111 *  Created on: Jan 15, 2010
     
    1818#endif
    1919
    20 #include "Menu/QT4/QTMenu.hpp"
     20#include "Menu/Qt4/QtMenu.hpp"
    2121
    2222#include <Qt/qaction.h>
     
    2626#include "Menu/MenuItem.hpp"
    2727
    28 QTMenu::QTMenu(const char * _title) :
     28QtMenu::QtMenu(const char * _title) :
    2929  QMenu(_title)
    3030{}
    3131
    32 QTMenu::~QTMenu()
     32QtMenu::~QtMenu()
    3333{
    3434  // yay... Just like Mario Bros.
    35   for(list<QTMenuPipe*>::iterator it=plumbing.begin(); it != plumbing.end(); it++)
     35  for(list<QtMenuPipe*>::iterator it=plumbing.begin(); it != plumbing.end(); it++)
    3636    delete (*it);
    3737}
    3838
    39 void QTMenu::addItem(MenuItem* item) {
     39void QtMenu::addItem(MenuItem* item) {
    4040  const string description = item->getDescription();
    4141  QAction *action = addAction(QString(description.c_str()));
    42   QTMenuPipe *pipe = new QTMenuPipe(item,action);
     42  QtMenuPipe *pipe = new QtMenuPipe(item,action);
    4343  QObject::connect(action, SIGNAL(triggered()),pipe,SLOT(called()));
    4444  plumbing.push_back(pipe);
    4545}
    4646
    47 void QTMenu::removeItem(MenuItem* item) {
    48   list<QTMenuPipe*>::iterator iter;
     47void QtMenu::removeItem(MenuItem* item) {
     48  list<QtMenuPipe*>::iterator iter;
    4949  for(iter=plumbing.begin(); iter!=plumbing.end(); iter++){
    5050    delete (*iter);
     
    5252}
    5353
    54 void QTMenu::display() {
     54void QtMenu::display() {
    5555
    5656}
    5757
    58 QTMenuPipe::QTMenuPipe(MenuItem *_item, QAction *_action) :
     58QtMenuPipe::QtMenuPipe(MenuItem *_item, QAction *_action) :
    5959    theItem(_item), theAction(_action)
    6060{}
    6161
    62 QTMenuPipe::~QTMenuPipe() {
     62QtMenuPipe::~QtMenuPipe() {
    6363  delete theAction;
    6464  delete theItem;
    6565}
    6666
    67 void QTMenuPipe::called() {
     67void QtMenuPipe::called() {
    6868  theItem->doTrigger();
    6969}
  • src/UIElements/Menu/Qt4/QtMenu.hpp

    r81126a r4cf323d  
    11/*
    2  * QTMenu.hpp
     2 * QtMenu.hpp
    33 *
    44 *  Created on: Jan 15, 2010
     
    1616#include "Menu/Menu.hpp"
    1717
    18 class QTMenuPipe;
     18class QtMenuPipe;
    1919
    20 class QTMenu : public QMenu, public Menu
     20class QtMenu : public QMenu, public Menu
    2121{
    2222  Q_OBJECT
    2323
    2424public:
    25   QTMenu(const char *);
    26   virtual ~QTMenu();
     25  QtMenu(const char *);
     26  virtual ~QtMenu();
    2727
    2828  virtual void addItem(MenuItem*);
     
    3030  virtual void display();
    3131private:
    32   list<QTMenuPipe*> plumbing;
     32  list<QtMenuPipe*> plumbing;
    3333};
    3434
     
    3636// Slots from QT are redirected to internal methods.
    3737// This way methods can be used where no QT is available
    38 class QTMenuPipe : public QObject {
     38class QtMenuPipe : public QObject {
    3939  Q_OBJECT
    4040public:
    41   QTMenuPipe(MenuItem*,QAction*);
    42   virtual ~QTMenuPipe();
     41  QtMenuPipe(MenuItem*,QAction*);
     42  virtual ~QtMenuPipe();
    4343public slots:
    4444  void called();
Note: See TracChangeset for help on using the changeset viewer.