Changeset bd81f9 for src/UIElements


Ignore:
Timestamp:
Jul 11, 2012, 1:02:17 PM (13 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:
8a4b88
Parents:
0174b62 (diff), 5ffa05 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Frederik Heber <heber@…> (07/11/12 10:53:51)
git-committer:
Frederik Heber <heber@…> (07/11/12 13:02:17)
Message:

Merge branch 'Candidate_v1.3.0' into stable

Conflicts:

src/Actions/unittests/stubs/DummyUI.hpp
src/UIElements/CommandLineUI/CommandLineDialog.cpp
src/UIElements/CommandLineUI/CommandLineDialog.hpp
src/UIElements/Dialog.cpp
src/UIElements/Dialog.hpp
src/UIElements/Makefile.am
src/UIElements/Qt4/QtDialog.cpp
src/UIElements/Qt4/QtDialog.hpp
src/UIElements/TextUI/TextDialog.cpp
src/UIElements/TextUI/TextDialog.hpp

Location:
src/UIElements
Files:
4 added
13 edited

Legend:

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

    r0174b62 rbd81f9  
    116116}
    117117
     118void CommandLineDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > &param, const char* title, std::string _description){
     119  registerQuery(new FilesCommandLineQuery(param, title, _description));
     120}
     121
    118122void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const char* title, std::string _description){
    119123  registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, _description));
  • src/UIElements/CommandLineUI/CommandLineDialog.hpp

    r0174b62 rbd81f9  
    5353  virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = "");
    5454  virtual void queryFile(Parameter<boost::filesystem::path> &, const char*, std::string = "");
     55  virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const char*, std::string = "");
    5556  virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = "");
    56 protected:
    5757  // specialized stuff for command line queries
    5858  // all placed into Query/CommandLineQuery.hpp
     
    6767  class EmptyCommandLineQuery;
    6868  class FileCommandLineQuery;
     69  class FilesCommandLineQuery;
    6970  class IntCommandLineQuery;
    7071  class IntsCommandLineQuery;
  • src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp

    r0174b62 rbd81f9  
    157157};
    158158
     159class CommandLineDialog::FilesCommandLineQuery : public Dialog::FilesQuery {
     160public:
     161  FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string title, std::string _description = "");
     162  virtual ~FilesCommandLineQuery();
     163  virtual bool handle();
     164};
     165
    159166class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::RandomNumberDistribution_ParametersQuery {
    160167public:
  • src/UIElements/Dialog.cpp

    r0174b62 rbd81f9  
    212212}
    213213
     214template <> void Dialog::query< std::vector<boost::filesystem::path> >(Parameter<std::vector< boost::filesystem::path> > &param, const char *token, std::string description)
     215{
     216  queryFiles(param, token, description);
     217}
     218
    214219template <> void Dialog::query< RandomNumberDistribution_Parameters >(Parameter<RandomNumberDistribution_Parameters> &param, const char *token, std::string description)
    215220{
  • src/UIElements/Dialog.hpp

    r0174b62 rbd81f9  
    178178  virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = "")=0;
    179179  virtual void queryFile(Parameter<boost::filesystem::path> &, const char*, std::string = "")=0;
     180  virtual void queryFiles(Parameter< std::vector<boost::filesystem::path> > &, const char*, std::string = "")=0;
    180181  virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = "")=0;
    181182
     
    463464  };
    464465
     466  class FilesQuery : public Query {
     467  public:
     468    FilesQuery(Parameter<std::vector<boost::filesystem::path> > &param, std::string title, std::string _description = "");
     469    virtual ~FilesQuery();
     470    virtual bool handle()=0;
     471    virtual void setResult();
     472  protected:
     473    Parameter<std::vector<boost::filesystem::path> > &tmp;
     474  };
     475
    465476  class RandomNumberDistribution_ParametersQuery : public Query {
    466477  public:
  • src/UIElements/Makefile.am

    r0174b62 rbd81f9  
    1111  UIElements/CommandLineUI/Query/EmptyCommandLineQuery.cpp \
    1212  UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp \
     13  UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp \
    1314  UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp \
    1415  UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp \
     
    8081  UIElements/TextUI/Query/EmptyTextQuery.cpp \
    8182  UIElements/TextUI/Query/FileTextQuery.cpp \
     83  UIElements/TextUI/Query/FilesTextQuery.cpp \
    8284  UIElements/TextUI/Query/IntTextQuery.cpp \
    8385  UIElements/TextUI/Query/IntsTextQuery.cpp \
     
    129131  UIElements/Query/EmptyQuery.cpp \
    130132  UIElements/Query/FileQuery.cpp \
     133  UIElements/Query/FilesQuery.cpp \
    131134  UIElements/Query/IntQuery.cpp \
    132135  UIElements/Query/IntsQuery.cpp \
     
    181184  UIElements/Qt4/Query/EmptyQtQuery.cpp \
    182185  UIElements/Qt4/Query/FileQtQuery.cpp \
     186  UIElements/Qt4/Query/FilesQtQuery.cpp \
    183187  UIElements/Qt4/Query/IntQtQuery.cpp \
    184188  UIElements/Qt4/Query/IntsQtQuery.cpp \
     
    256260lib_LTLIBRARIES += libMolecuilderUI.la
    257261libMolecuilderUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
    258 libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
    259 libMolecuilderUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
     262libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
     263if CONDJOBMARKET
     264libMolecuilderUI_la_CPPFLAGS += ${JobMarket_CFLAGS}
     265endif
     266libMolecuilderUI_la_LDFLAGS = \
     267        $(AM_LDFLAGS) \
     268        $(BOOST_FILESYSTEM_LDFLAGS) \
     269        $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
     270        $(BOOST_RANDOM_LDFLAGS) \
     271        $(BOOST_SERIALIZATION_LDFLAGS)
     272        $(BOOST_SYSTEM_LDFLAGS) \
     273        $(BOOST_THREAD_LDFLAGS)
    260274
    261275# NOTE: ActionPrototypes BEFORE Actions!
     
    277291        libMolecuilderHelpers.la \
    278292        libMolecuilderElement.la \
     293        libMolecuilderJobs.la \
    279294        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    280         libMolecuilderRandomNumbers.la \
     295        libMolecuilderRandomNumbers.la
     296if CONDJOBMARKET
     297libMolecuilderUI_la_LIBADD += ${JobMarket_Controller_LIBS}
     298endif
     299libMolecuilderUI_la_LIBADD += \
    281300        ${CodePatterns_LIBS} \
    282301        $(BOOST_SERIALIZATION_LIBS) \
     
    328347
    329348libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
    330 libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
     349libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}  ${JobMarket_CFLAGS}
    331350libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    332351
  • src/UIElements/Qt4/QtDialog.cpp

    r0174b62 rbd81f9  
    175175}
    176176
     177void QtDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> >&param, const char* title, std::string)
     178{
     179  registerQuery(new FilesQtQuery(param, title,inputLayout,this));
     180}
     181
    177182void QtDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const char* title, std::string)
    178183{
  • src/UIElements/Qt4/QtDialog.hpp

    r0174b62 rbd81f9  
    5353  virtual void queryElements(Parameter<std::vector<const element *> > &, const char*,std::string = "");
    5454  virtual void queryFile(Parameter<boost::filesystem::path> &, const char*,std::string = "");
     55  virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const char*,std::string = "");
    5556  virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*,std::string = "");
    5657
     
    7071  class EmptyQtQuery;
    7172  class FileQtQuery;
     73  class FilesQtQuery;
    7274  class IntQtQuery;
    7375  class IntsQtQuery;
  • src/UIElements/Qt4/Query/QtQuery.hpp

    r0174b62 rbd81f9  
    4444class EmptyQtQueryPipe;
    4545class FileQtQueryPipe;
     46class FilesQtQueryPipe;
    4647class IntQtQueryPipe;
    4748class MoleculeQtQueryPipe;
     
    196197};
    197198
     199class QtDialog::FilesQtQuery : public Dialog::FilesQuery {
     200public:
     201  FilesQtQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
     202  virtual ~FilesQtQuery();
     203  virtual bool handle();
     204  void IntegerEntered(const QString&);
     205  void IntegerSelected();
     206  void AddInteger();
     207  void RemoveInteger();
     208private:
     209  QBoxLayout *parent;
     210  QBoxLayout *thisLayout;
     211  QLabel *titleLabel;
     212
     213  QtQueryListPipe<boost::filesystem::path> *pipe;
     214};
     215
    198216class QtDialog::IntQtQuery : public Dialog::IntQuery {
    199217public:
  • src/UIElements/TextUI/Query/FileTextQuery.cpp

    r0174b62 rbd81f9  
    4848      std::cin.clear();
    4949      std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    50       std::cout << "Input was not a number!" << std::endl;
     50      std::cout << "Input was not a file!" << std::endl;
    5151      continue;
    5252    }
  • src/UIElements/TextUI/Query/TextQuery.hpp

    r0174b62 rbd81f9  
    8787};
    8888
     89class TextDialog::FilesTextQuery : public Dialog::FilesQuery {
     90public:
     91  FilesTextQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string title, std::string _description = NULL);
     92  virtual ~FilesTextQuery();
     93  virtual bool handle();
     94};
     95
    8996class TextDialog::IntTextQuery : public Dialog::IntQuery {
    9097public:
  • src/UIElements/TextUI/TextDialog.cpp

    r0174b62 rbd81f9  
    114114}
    115115
     116void TextDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > &param, const char* title, std::string description){
     117  registerQuery(new FilesTextQuery(param, title,description));
     118}
     119
    116120void TextDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const char* title, std::string description){
    117121  registerQuery(new RandomNumberDistribution_ParametersTextQuery(param, title,description));
  • src/UIElements/TextUI/TextDialog.hpp

    r0174b62 rbd81f9  
    5151  virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = "");
    5252  virtual void queryFile(Parameter<boost::filesystem::path> &, const char*, std::string = "");
     53  virtual void queryFiles(Parameter<std::vector<boost::filesystem::path> > &, const char*, std::string = "");
    5354  virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = "");
    5455
     
    6667  class EmptyTextQuery;
    6768  class FileTextQuery;
     69  class FilesTextQuery;
    6870  class IntTextQuery;
    6971  class IntsTextQuery;
Note: See TracChangeset for help on using the changeset viewer.