Changeset bd81f9 for src/UIElements
- Timestamp:
- Jul 11, 2012, 1:02:17 PM (13 years ago)
- 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)
- Location:
- src/UIElements
- Files:
-
- 4 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineDialog.cpp
r0174b62 rbd81f9 116 116 } 117 117 118 void CommandLineDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > ¶m, const char* title, std::string _description){ 119 registerQuery(new FilesCommandLineQuery(param, title, _description)); 120 } 121 118 122 void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> ¶m, const char* title, std::string _description){ 119 123 registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, _description)); -
src/UIElements/CommandLineUI/CommandLineDialog.hpp
r0174b62 rbd81f9 53 53 virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = ""); 54 54 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 = ""); 55 56 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = ""); 56 protected:57 57 // specialized stuff for command line queries 58 58 // all placed into Query/CommandLineQuery.hpp … … 67 67 class EmptyCommandLineQuery; 68 68 class FileCommandLineQuery; 69 class FilesCommandLineQuery; 69 70 class IntCommandLineQuery; 70 71 class IntsCommandLineQuery; -
src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp
r0174b62 rbd81f9 157 157 }; 158 158 159 class CommandLineDialog::FilesCommandLineQuery : public Dialog::FilesQuery { 160 public: 161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, std::string title, std::string _description = ""); 162 virtual ~FilesCommandLineQuery(); 163 virtual bool handle(); 164 }; 165 159 166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::RandomNumberDistribution_ParametersQuery { 160 167 public: -
src/UIElements/Dialog.cpp
r0174b62 rbd81f9 212 212 } 213 213 214 template <> void Dialog::query< std::vector<boost::filesystem::path> >(Parameter<std::vector< boost::filesystem::path> > ¶m, const char *token, std::string description) 215 { 216 queryFiles(param, token, description); 217 } 218 214 219 template <> void Dialog::query< RandomNumberDistribution_Parameters >(Parameter<RandomNumberDistribution_Parameters> ¶m, const char *token, std::string description) 215 220 { -
src/UIElements/Dialog.hpp
r0174b62 rbd81f9 178 178 virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = "")=0; 179 179 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; 180 181 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = "")=0; 181 182 … … 463 464 }; 464 465 466 class FilesQuery : public Query { 467 public: 468 FilesQuery(Parameter<std::vector<boost::filesystem::path> > ¶m, 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 465 476 class RandomNumberDistribution_ParametersQuery : public Query { 466 477 public: -
src/UIElements/Makefile.am
r0174b62 rbd81f9 11 11 UIElements/CommandLineUI/Query/EmptyCommandLineQuery.cpp \ 12 12 UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp \ 13 UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp \ 13 14 UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp \ 14 15 UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp \ … … 80 81 UIElements/TextUI/Query/EmptyTextQuery.cpp \ 81 82 UIElements/TextUI/Query/FileTextQuery.cpp \ 83 UIElements/TextUI/Query/FilesTextQuery.cpp \ 82 84 UIElements/TextUI/Query/IntTextQuery.cpp \ 83 85 UIElements/TextUI/Query/IntsTextQuery.cpp \ … … 129 131 UIElements/Query/EmptyQuery.cpp \ 130 132 UIElements/Query/FileQuery.cpp \ 133 UIElements/Query/FilesQuery.cpp \ 131 134 UIElements/Query/IntQuery.cpp \ 132 135 UIElements/Query/IntsQuery.cpp \ … … 181 184 UIElements/Qt4/Query/EmptyQtQuery.cpp \ 182 185 UIElements/Qt4/Query/FileQtQuery.cpp \ 186 UIElements/Qt4/Query/FilesQtQuery.cpp \ 183 187 UIElements/Qt4/Query/IntQtQuery.cpp \ 184 188 UIElements/Qt4/Query/IntsQtQuery.cpp \ … … 256 260 lib_LTLIBRARIES += libMolecuilderUI.la 257 261 libMolecuilderUI_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) 262 libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} 263 if CONDJOBMARKET 264 libMolecuilderUI_la_CPPFLAGS += ${JobMarket_CFLAGS} 265 endif 266 libMolecuilderUI_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) 260 274 261 275 # NOTE: ActionPrototypes BEFORE Actions! … … 277 291 libMolecuilderHelpers.la \ 278 292 libMolecuilderElement.la \ 293 libMolecuilderJobs.la \ 279 294 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 280 libMolecuilderRandomNumbers.la \ 295 libMolecuilderRandomNumbers.la 296 if CONDJOBMARKET 297 libMolecuilderUI_la_LIBADD += ${JobMarket_Controller_LIBS} 298 endif 299 libMolecuilderUI_la_LIBADD += \ 281 300 ${CodePatterns_LIBS} \ 282 301 $(BOOST_SERIALIZATION_LIBS) \ … … 328 347 329 348 libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/ 330 libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} 349 libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} 331 350 libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) 332 351 -
src/UIElements/Qt4/QtDialog.cpp
r0174b62 rbd81f9 175 175 } 176 176 177 void QtDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> >¶m, const char* title, std::string) 178 { 179 registerQuery(new FilesQtQuery(param, title,inputLayout,this)); 180 } 181 177 182 void QtDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> ¶m, const char* title, std::string) 178 183 { -
src/UIElements/Qt4/QtDialog.hpp
r0174b62 rbd81f9 53 53 virtual void queryElements(Parameter<std::vector<const element *> > &, const char*,std::string = ""); 54 54 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 = ""); 55 56 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*,std::string = ""); 56 57 … … 70 71 class EmptyQtQuery; 71 72 class FileQtQuery; 73 class FilesQtQuery; 72 74 class IntQtQuery; 73 75 class IntsQtQuery; -
src/UIElements/Qt4/Query/QtQuery.hpp
r0174b62 rbd81f9 44 44 class EmptyQtQueryPipe; 45 45 class FileQtQueryPipe; 46 class FilesQtQueryPipe; 46 47 class IntQtQueryPipe; 47 48 class MoleculeQtQueryPipe; … … 196 197 }; 197 198 199 class QtDialog::FilesQtQuery : public Dialog::FilesQuery { 200 public: 201 FilesQtQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, 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(); 208 private: 209 QBoxLayout *parent; 210 QBoxLayout *thisLayout; 211 QLabel *titleLabel; 212 213 QtQueryListPipe<boost::filesystem::path> *pipe; 214 }; 215 198 216 class QtDialog::IntQtQuery : public Dialog::IntQuery { 199 217 public: -
src/UIElements/TextUI/Query/FileTextQuery.cpp
r0174b62 rbd81f9 48 48 std::cin.clear(); 49 49 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; 51 51 continue; 52 52 } -
src/UIElements/TextUI/Query/TextQuery.hpp
r0174b62 rbd81f9 87 87 }; 88 88 89 class TextDialog::FilesTextQuery : public Dialog::FilesQuery { 90 public: 91 FilesTextQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, std::string title, std::string _description = NULL); 92 virtual ~FilesTextQuery(); 93 virtual bool handle(); 94 }; 95 89 96 class TextDialog::IntTextQuery : public Dialog::IntQuery { 90 97 public: -
src/UIElements/TextUI/TextDialog.cpp
r0174b62 rbd81f9 114 114 } 115 115 116 void TextDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > ¶m, const char* title, std::string description){ 117 registerQuery(new FilesTextQuery(param, title,description)); 118 } 119 116 120 void TextDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> ¶m, const char* title, std::string description){ 117 121 registerQuery(new RandomNumberDistribution_ParametersTextQuery(param, title,description)); -
src/UIElements/TextUI/TextDialog.hpp
r0174b62 rbd81f9 51 51 virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = ""); 52 52 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 = ""); 53 54 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = ""); 54 55 … … 66 67 class EmptyTextQuery; 67 68 class FileTextQuery; 69 class FilesTextQuery; 68 70 class IntTextQuery; 69 71 class IntsTextQuery;
Note:
See TracChangeset
for help on using the changeset viewer.