Changeset 2c5765
- Timestamp:
- Jul 6, 2012, 10:18:42 AM (12 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:
- c586d8
- Parents:
- 30438f
- git-author:
- Frederik Heber <heber@…> (05/21/12 09:56:07)
- git-committer:
- Frederik Heber <heber@…> (07/06/12 10:18:42)
- Location:
- src
- Files:
-
- 4 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/unittests/stubs/DummyUI.hpp
r30438f r2c5765 43 43 virtual void queryElements(const char*, std::string = ""){} 44 44 virtual void queryFile(const char*, std::string = ""){} 45 virtual void queryFiles(const char*, std::string = ""){} 45 46 virtual void queryRandomNumberDistribution_Parameters(const char*, std::string = ""){} 46 47 }; -
src/UIElements/CommandLineUI/CommandLineDialog.cpp
r30438f r2c5765 116 116 } 117 117 118 void CommandLineDialog::queryFiles(const char* title, std::string _description){ 119 registerQuery(new FilesCommandLineQuery(title, _description)); 120 } 121 118 122 void CommandLineDialog::queryRandomNumberDistribution_Parameters(const char* title, std::string _description){ 119 123 registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(title, _description)); -
src/UIElements/CommandLineUI/CommandLineDialog.hpp
r30438f r2c5765 53 53 virtual void queryElements(const char*, std::string = ""); 54 54 virtual void queryFile(const char*, std::string = ""); 55 virtual void queryFiles(const char*, std::string = ""); 55 56 virtual void queryRandomNumberDistribution_Parameters(const char*, std::string = ""); 56 57 protected: … … 68 69 class EmptyCommandLineQuery; 69 70 class FileCommandLineQuery; 71 class FilesCommandLineQuery; 70 72 class IntCommandLineQuery; 71 73 class IntsCommandLineQuery; -
src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp
r30438f r2c5765 157 157 }; 158 158 159 class CommandLineDialog::FilesCommandLineQuery : public Dialog::FilesQuery { 160 public: 161 FilesCommandLineQuery(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
r30438f r2c5765 196 196 } 197 197 198 template <> void Dialog::query< std::vector<boost::filesystem::path> >(const char *token, std::string description) 199 { 200 queryFiles(token, description); 201 } 202 198 203 template <> void Dialog::query< RandomNumberDistribution_Parameters >(const char *token, std::string description) 199 204 { -
src/UIElements/Dialog.hpp
r30438f r2c5765 177 177 virtual void queryElements(const char*, std::string = "")=0; 178 178 virtual void queryFile(const char*, std::string = "")=0; 179 virtual void queryFiles(const char*, std::string = "")=0; 179 180 virtual void queryRandomNumberDistribution_Parameters(const char*, std::string = "")=0; 180 181 … … 462 463 }; 463 464 465 class FilesQuery : public Query { 466 public: 467 FilesQuery(std::string title, std::string _description = ""); 468 virtual ~FilesQuery(); 469 virtual bool handle()=0; 470 virtual void setResult(); 471 protected: 472 std::vector<boost::filesystem::path> tmp; 473 }; 474 464 475 class RandomNumberDistribution_ParametersQuery : public Query { 465 476 public: -
src/UIElements/Makefile.am
r30438f r2c5765 12 12 UIElements/CommandLineUI/Query/EmptyCommandLineQuery.cpp \ 13 13 UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp \ 14 UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp \ 14 15 UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp \ 15 16 UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp \ … … 81 82 UIElements/TextUI/Query/EmptyTextQuery.cpp \ 82 83 UIElements/TextUI/Query/FileTextQuery.cpp \ 84 UIElements/TextUI/Query/FilesTextQuery.cpp \ 83 85 UIElements/TextUI/Query/IntTextQuery.cpp \ 84 86 UIElements/TextUI/Query/IntsTextQuery.cpp \ … … 130 132 UIElements/Query/EmptyQuery.cpp \ 131 133 UIElements/Query/FileQuery.cpp \ 134 UIElements/Query/FilesQuery.cpp \ 132 135 UIElements/Query/IntQuery.cpp \ 133 136 UIElements/Query/IntsQuery.cpp \ … … 182 185 UIElements/Qt4/Query/EmptyQtQuery.cpp \ 183 186 UIElements/Qt4/Query/FileQtQuery.cpp \ 187 UIElements/Qt4/Query/FilesQtQuery.cpp \ 184 188 UIElements/Qt4/Query/IntQtQuery.cpp \ 185 189 UIElements/Qt4/Query/IntsQtQuery.cpp \ -
src/UIElements/Qt4/QtDialog.cpp
r30438f r2c5765 175 175 } 176 176 177 void QtDialog::queryFiles(const char* title, std::string) 178 { 179 registerQuery(new FilesQtQuery(title,inputLayout,this)); 180 } 181 177 182 void QtDialog::queryRandomNumberDistribution_Parameters(const char* title, std::string) 178 183 { -
src/UIElements/Qt4/QtDialog.hpp
r30438f r2c5765 52 52 virtual void queryElements(const char*,std::string = ""); 53 53 virtual void queryFile(const char*,std::string = ""); 54 virtual void queryFiles(const char*,std::string = ""); 54 55 virtual void queryRandomNumberDistribution_Parameters(const char*,std::string = ""); 55 56 … … 69 70 class EmptyQtQuery; 70 71 class FileQtQuery; 72 class FilesQtQuery; 71 73 class IntQtQuery; 72 74 class IntsQtQuery; -
src/UIElements/Qt4/Query/QtQuery.hpp
r30438f r2c5765 195 195 }; 196 196 197 class QtDialog::FilesQtQuery : public Dialog::FilesQuery { 198 public: 199 FilesQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 200 virtual ~FilesQtQuery(); 201 virtual bool handle(); 202 void IntegerEntered(const QString&); 203 void IntegerSelected(); 204 void AddInteger(); 205 void RemoveInteger(); 206 private: 207 QBoxLayout *parent; 208 QBoxLayout *thisLayout; 209 QLabel *titleLabel; 210 211 QtQueryListPipe<boost::filesystem::path> *pipe; 212 }; 213 197 214 class QtDialog::IntQtQuery : public Dialog::IntQuery { 198 215 public: -
src/UIElements/TextUI/Query/TextQuery.hpp
r30438f r2c5765 87 87 }; 88 88 89 class TextDialog::FilesTextQuery : public Dialog::FilesQuery { 90 public: 91 FilesTextQuery(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
r30438f r2c5765 114 114 } 115 115 116 void TextDialog::queryFiles(const char* title, std::string description){ 117 registerQuery(new FilesTextQuery(title,description)); 118 } 119 116 120 void TextDialog::queryRandomNumberDistribution_Parameters(const char* title, std::string description){ 117 121 registerQuery(new RandomNumberDistribution_ParametersTextQuery(title,description)); -
src/UIElements/TextUI/TextDialog.hpp
r30438f r2c5765 50 50 virtual void queryElements(const char*, std::string = ""); 51 51 virtual void queryFile(const char*, std::string = ""); 52 virtual void queryFiles(const char*, std::string = ""); 52 53 virtual void queryRandomNumberDistribution_Parameters(const char*, std::string = ""); 53 54 … … 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.