Changeset ea94a8


Ignore:
Timestamp:
Jan 14, 2010, 2:50:36 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:
8f67e2
Parents:
3027f8
Message:

Added a UIFactory for construction of QT4 UIElements

Location:
src
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r3027f8 rea94a8  
    1717UIHEADER = ${ACTIONSHEADER} ${VIEWHEADER} ${MENUHEADER} UIElements/UIFactory.hpp UIElements/TextUIFactory.hpp UIElements/MainWindow.hpp UIElements/TextWindow.hpp UIElements/Dialog.hpp UIElements/TextDialog.hpp
    1818
    19 QTUISOURCE = UIElements/QT4/QTMainWindow.cpp
    20 QTUIHEADER = UIElements/QT4/QTMainWindow.hpp
     19QTUIMOC_HEADER = UIElements/QT4/QTMainWindow.hpp
     20QTUIMOC_TARGETS = QTMainWindow.moc.cpp
    2121
    22 QTUIMOCS = QTMainWindow.moc.cpp
     22QTUISOURCE = ${QTUIMOC_TARGETS} UIElements/QT4/QTMainWindow.cpp UIElements/QT4/QTUIFactory.cpp
     23QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp
     24
    2325QTUI_DEFS =
    2426
    25 
    26 SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${UISOURCE} bond.cpp bondgraph.cpp boundary.cpp config.cpp element.cpp ellipsoid.cpp errorlogger.cpp graph.cpp helpers.cpp leastsquaremin.cpp linkedcell.cpp log.cpp logger.cpp memoryusageobserver.cpp moleculelist.cpp molecule.cpp molecule_dynamics.cpp molecule_fragmentation.cpp molecule_geometry.cpp molecule_graph.cpp molecule_pointcloud.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp menu.cpp
    27 HEADER = ${ANALYSISHEADER} ${ATOMHEADER} ${UIHEADER} bond.hpp bondgraph.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp errorlogger.hpp graph.hpp helpers.hpp leastsquaremin.hpp linkedcell.hpp lists.hpp log.hpp logger.hpp memoryallocator.hpp memoryusageobserver.hpp molecule.hpp molecule_template.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp menu.hpp
     27#Right now QT is included in all Builds for simplicity of the build process
     28# TODO: Find a way to extract Files using QT and seperate the build process into two parts
     29SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${UISOURCE} ${QTUISOURCE} bond.cpp bondgraph.cpp boundary.cpp config.cpp element.cpp ellipsoid.cpp errorlogger.cpp graph.cpp helpers.cpp leastsquaremin.cpp linkedcell.cpp log.cpp logger.cpp memoryusageobserver.cpp moleculelist.cpp molecule.cpp molecule_dynamics.cpp molecule_fragmentation.cpp molecule_geometry.cpp molecule_graph.cpp molecule_pointcloud.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp menu.cpp
     30HEADER = ${ANALYSISHEADER} ${ATOMHEADER} ${UIHEADER} ${QTUIHEADER} bond.hpp bondgraph.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp errorlogger.hpp graph.hpp helpers.hpp leastsquaremin.hpp linkedcell.hpp lists.hpp log.hpp logger.hpp memoryallocator.hpp memoryusageobserver.hpp molecule.hpp molecule_template.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp menu.hpp
    2831
    2932BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
     
    3336bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
    3437molecuilderdir = ${bindir}
     38libmolecuilder_a_CXXFLAGS = ${QT_CXXFLAGS}
    3539libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
    3640molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
    37 molecuilder_LDFLAGS = $(BOOST_LIB)
    38 molecuilder_SOURCES = builder.cpp
    39 molecuilder_LDADD = libmolecuilder.a
     41molecuilder_CXXFLAGS = ${QT_CXXFLAGS}
     42molecuilder_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS}
     43molecuilder_SOURCES = builder.cpp
     44molecuilder_LDADD = libmolecuilder.a ${QT_LDADD} ${QT_LIB_GUI}
    4045#Stuff for building the GUI using QT
    41 molecuildergui_SOURCES = builder.cpp ${QTUISOURCE} ${QTUIMOCS} ${QTUIHEADER}
     46molecuildergui_SOURCES = builder.cpp
    4247molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} -DUSE_GUI_QT
    43 molecuildergui_LDFLAGS = ${QT_LDFLAGS}
     48molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS}
    4449molecuildergui_LDADD = libmolecuilder.a ${QT_LDADD} ${QT_LIB_GUI}
    4550joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
     
    5358# Therfore `%'-rules do not seem to work
    5459#Quick fix to get it done otherwise
    55 ${QTUIMOCS}:
     60${QTUIMOC_TARGETS}:
    5661        list='$(QTUIHEADER)'; for header in $$list; do \
    5762        echo "Making mocfile for $$header"; \
  • src/UIElements/QT4/QTMainWindow.cpp

    r3027f8 rea94a8  
    1212using namespace std;
    1313
    14 QTMainWindow::QTMainWindow()
     14QTMainWindow::QTMainWindow(menuPopulaters populaters,MoleculeListClass *molecules, config *configuration, periodentafel *periode, char *ConfigFileName)
    1515{
    1616  // TODO Auto-generated constructor stub
  • src/UIElements/QT4/QTMainWindow.hpp

    r3027f8 rea94a8  
    1717
    1818public:
    19   QTMainWindow();
     19  QTMainWindow(menuPopulaters populaters,MoleculeListClass *molecules, config *configuration, periodentafel *periode, char *ConfigFileName);
    2020  virtual ~QTMainWindow();
    2121
  • src/UIElements/TextUIFactory.hpp

    r3027f8 rea94a8  
    1313class TextUIFactory : public UIFactory
    1414{
    15 friend class UIFactory;
     15  friend class UIFactory;
    1616
    1717public:
  • src/UIElements/UIFactory.cpp

    r3027f8 rea94a8  
    1212// all factories that can be used:
    1313#include "UIElements/TextUIFactory.hpp"
     14#include "UIElements/QT4/QTUIFactory.hpp"
    1415
    1516UIFactory *UIFactory::theFactory = 0;
     
    3233      theFactory = new TextUIFactory();
    3334      break;
     35    case QT4 :
     36      theFactory = new QTUIFactory();
     37      break;
    3438
    3539    default:
Note: See TracChangeset for help on using the changeset viewer.