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.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/QtMainWindow.cpp

    r81126a r4cf323d  
    77
    88/*
    9  * QTMainWindow.cpp
     9 * QtMainWindow.cpp
    1010 *
    1111 *  Created on: Jan 14, 2010
     
    1818#endif
    1919
    20 #include "QTMainWindow.hpp"
     20#include "QtMainWindow.hpp"
    2121
    2222#include<Qt/qapplication.h>
     
    4040#include "Actions/MapOfActions.hpp"
    4141#include "Menu/Menu.hpp"
    42 #include "Menu/QT4/QTMenu.hpp"
     42#include "Menu/Qt4/QtMenu.hpp"
    4343#include "Menu/ActionMenuItem.hpp"
    44 #include "Views/QT4/QTWorldView.hpp"
    45 #include "Views/QT4/GLMoleculeView.hpp"
    46 #include "Views/QT4/QTMoleculeView.hpp"
    47 #include "Views/QT4/QTStatusBar.hpp"
     44#include "Views/Qt4/QtWorldView.hpp"
     45#include "Views/Qt4/GLMoleculeView.hpp"
     46#include "Views/Qt4/QtMoleculeView.hpp"
     47#include "Views/Qt4/QtStatusBar.hpp"
    4848
    4949using namespace std;
    5050
    51 QTMainWindow::QTMainWindow(QApplication *_theApp) :
     51QtMainWindow::QtMainWindow(QApplication *_theApp) :
    5252    theApp(_theApp)
    5353{
     
    5555  QSplitter *splitter2 = new QSplitter (Qt::Vertical, splitter1 );
    5656
    57   worldDisplay = new QTWorldView(splitter2);
     57  worldDisplay = new QtWorldView(splitter2);
    5858
    59   moleculeDisplay = new QTMoleculeView();
     59  moleculeDisplay = new QtMoleculeView();
    6060  molecule3dDisplay = new GLMoleculeView();
    6161
    6262  MenuBar = menuBar();
    6363
    64   std::map <std::string, QTMenu *> NametoTextMenuMap;
     64  std::map <std::string, QtMenu *> NametoTextMenuMap;
    6565  // go through all menus and create them
    66   QTMenu *Menu = NULL;
     66  QtMenu *Menu = NULL;
    6767  for(std::map<std::string, std::pair<std::string,std::string> >::iterator iter = MapOfActions::getInstance().MenuDescription.begin(); iter != MapOfActions::getInstance().MenuDescription.end(); ++iter) {
    6868    cout << "Creating menu " << iter->first << endl;
    69     Menu = new QTMenu(iter->first.c_str());
     69    Menu = new QtMenu(iter->first.c_str());
    7070    MenuBar->addMenu(Menu);
    71     NametoTextMenuMap.insert( pair <std::string, QTMenu *> (iter->first, Menu) );
     71    NametoTextMenuMap.insert( pair <std::string, QtMenu *> (iter->first, Menu) );
    7272    //new SubMenuItem(getSuitableShortForm(iter->first),iter->second.first,main_menu,Menu);
    7373  }
     
    7777
    7878  // go through all actions and add them to its menu
    79   for (std::map <std::string, QTMenu *>::iterator MenuRunner = NametoTextMenuMap.begin(); MenuRunner != NametoTextMenuMap.end(); ++MenuRunner) {
     79  for (std::map <std::string, QtMenu *>::iterator MenuRunner = NametoTextMenuMap.begin(); MenuRunner != NametoTextMenuMap.end(); ++MenuRunner) {
    8080    cout << "Creating Action " << MenuRunner->first << " in menu " << MenuRunner->second << endl;
    8181    populateMenu(MenuRunner->second, MenuRunner->first);
     
    8888  splitter2->addWidget(worldDisplay);
    8989
    90   statusBar = new QTStatusBar(this);
     90  statusBar = new QtStatusBar(this);
    9191  setStatusBar(statusBar);
    9292
     
    9595}
    9696
    97 QTMainWindow::~QTMainWindow()
     97QtMainWindow::~QtMainWindow()
    9898{
    9999  menuBar()->clear();
     
    101101}
    102102
    103 void QTMainWindow::display() {
     103void QtMainWindow::display() {
    104104  this->show();
    105105  theApp->exec();
    106106}
    107107
    108 char QTMainWindow::getSuitableShortForm(set <char> &ShortcutList, const std::string name) const
     108char QtMainWindow::getSuitableShortForm(set <char> &ShortcutList, const std::string name) const
    109109{
    110110  for (std::string::const_iterator CharRunner = name.begin(); CharRunner != name.end(); ++CharRunner) {
     
    116116}
    117117
    118 void QTMainWindow::populateMenu(QTMenu* Menu, const  std::string &MenuName)
     118void QtMainWindow::populateMenu(QtMenu* Menu, const  std::string &MenuName)
    119119{
    120120  Action *ActionItem = NULL;
Note: See TracChangeset for help on using the changeset viewer.