Changeset 3027f8


Ignore:
Timestamp:
Jan 14, 2010, 2:23:13 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:
ea94a8
Parents:
abc967
git-author:
Tillmann Crueger <crueger@…> (01/14/10 13:40:44)
git-committer:
Tillmann Crueger <crueger@…> (01/14/10 14:23:13)
Message:

Build basis for a QT4 User interface

  • Added compilation rules for QT4 UI
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rabc967 r3027f8  
    3434#AX_BOOST_PROGRAM_OPTIONS
    3535#AX_BOOST_SERIALIZATION
     36
     37#QT4 libraries
     38gw_CHECK_QT4
    3639
    3740# Checks for header files.
  • src/Makefile.am

    rabc967 r3027f8  
    1717UIHEADER = ${ACTIONSHEADER} ${VIEWHEADER} ${MENUHEADER} UIElements/UIFactory.hpp UIElements/TextUIFactory.hpp UIElements/MainWindow.hpp UIElements/TextWindow.hpp UIElements/Dialog.hpp UIElements/TextDialog.hpp
    1818
     19QTUISOURCE = UIElements/QT4/QTMainWindow.cpp
     20QTUIHEADER = UIElements/QT4/QTMainWindow.hpp
     21
     22QTUIMOCS = QTMainWindow.moc.cpp
     23QTUI_DEFS =
     24
     25
    1926SOURCE = ${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
    2027HEADER = ${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
     
    2431
    2532noinst_LIBRARIES = libmolecuilder.a
    26 bin_PROGRAMS = molecuilder joiner analyzer
     33bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
    2734molecuilderdir = ${bindir}
    2835libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
     
    3138molecuilder_SOURCES = builder.cpp
    3239molecuilder_LDADD = libmolecuilder.a
     40#Stuff for building the GUI using QT
     41molecuildergui_SOURCES = builder.cpp ${QTUISOURCE} ${QTUIMOCS} ${QTUIHEADER}
     42molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} -DUSE_GUI_QT
     43molecuildergui_LDFLAGS = ${QT_LDFLAGS}
     44molecuildergui_LDADD = libmolecuilder.a ${QT_LDADD} ${QT_LIB_GUI}
    3345joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
    3446joiner_LDADD = libmolecuilder.a
     
    3648analyzer_LDADD = libmolecuilder.a
    3749
     50
     51#Rules needed for QT4
     52# UI-Files are scattered throughout several subdirectories
     53# Therfore `%'-rules do not seem to work
     54#Quick fix to get it done otherwise
     55${QTUIMOCS}:
     56        list='$(QTUIHEADER)'; for header in $$list; do \
     57        echo "Making mocfile for $$header"; \
     58        target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
     59        $(MOC) $(srcdir)/$$header -o $$target \
     60        || eval $$failcom; \
     61        done;
     62       
    3863#EXTRA_DIST = ${molecuilder_DATA}
    3964
  • src/UIElements/UIFactory.hpp

    rabc967 r3027f8  
    2222
    2323public:
    24   enum InterfaceTypes {Text};
     24  enum InterfaceTypes {Text,QT4};
    2525  virtual ~UIFactory();
    2626
  • src/builder.cpp

    rabc967 r3027f8  
    973973      populaters.MakeEditMoleculesMenu = populateEditMoleculesMenu;
    974974
     975#ifdef USE_GUI_QT
     976      UIFactory::makeUserInterface(UIFactory::QT4);
     977#else
    975978      UIFactory::makeUserInterface(UIFactory::Text);
     979#endif
    976980      MainWindow *mainWindow = UIFactory::get()->makeMainWindow(populaters,molecules, configuration, periode, ConfigFileName);
    977981      mainWindow->display();
  • src/menu.cpp

    rabc967 r3027f8  
    930930  molecule *srcmol = NULL, *destmol = NULL;
    931931  Dialog *dialog = UIFactory::get()->makeDialog();
    932   dialog->queryMolecule("Enter index of matrix molecule (the variable one): ",srcmol,molecules);
    933   dialog->queryMolecule("Enter index of molecule to merge into (the fixed one): ",destmol,molecules);
     932  dialog->queryMolecule("Enter index of matrix molecule (the variable one): ",&srcmol,molecules);
     933  dialog->queryMolecule("Enter index of molecule to merge into (the fixed one): ",&destmol,molecules);
    934934  if(dialog->display()) {
    935935    molecules->EmbedMerge(destmol, srcmol);
Note: See TracChangeset for help on using the changeset viewer.