Ignore:
Timestamp:
Jun 11, 2012, 9:53:19 AM (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:
95f965
Parents:
b9c69d
git-author:
Michael Ankele <ankele@…> (04/24/12 13:55:16)
git-committer:
Frederik Heber <heber@…> (06/11/12 09:53:19)
Message:

disastrously big and ugly commit

  • using new Parameter<T> classes:
    • Actions
    • Queries (all UIs)
  • TODO:
    • actions crash cause Value is unset
    • no query<BoxVector>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextUI/TextDialog.cpp

    rb9c69d rf10b0c  
    3838}
    3939
    40 void TextDialog::queryBoolean(const char* title, std::string description){
    41   registerQuery(new BooleanTextQuery(title,description));
     40void TextDialog::queryBoolean(Parameter<bool> &param, const char* title, std::string description){
     41  registerQuery(new BooleanTextQuery(param, title,description));
    4242}
    4343
    44 void TextDialog::queryInt(const char* title, std::string description){
    45   registerQuery(new IntTextQuery(title,description));
     44void TextDialog::queryInt(Parameter<int> &param, const char* title, std::string description){
     45  registerQuery(new IntTextQuery(param, title,description));
    4646}
    4747
    48 void TextDialog::queryInts(const char* title, std::string description){
    49   registerQuery(new IntsTextQuery(title,description));
     48void TextDialog::queryInts(Parameter<std::vector<int> > &param, const char* title, std::string description){
     49  registerQuery(new IntsTextQuery(param, title,description));
    5050}
    5151
    52 void TextDialog::queryUnsignedInt(const char* title, std::string description){
    53   registerQuery(new UnsignedIntTextQuery(title,description));
     52void TextDialog::queryUnsignedInt(Parameter<unsigned int> &param, const char* title, std::string description){
     53  registerQuery(new UnsignedIntTextQuery(param, title,description));
    5454}
    5555
    56 void TextDialog::queryUnsignedInts(const char* title, std::string description){
    57   registerQuery(new UnsignedIntsTextQuery(title,description));
     56void TextDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > &param, const char* title, std::string description){
     57  registerQuery(new UnsignedIntsTextQuery(param, title,description));
    5858}
    5959
    60 void TextDialog::queryDouble(const char* title, std::string description){
    61   registerQuery(new DoubleTextQuery(title,description));
     60void TextDialog::queryDouble(Parameter<double> &param, const char* title, std::string description){
     61  registerQuery(new DoubleTextQuery(param, title,description));
    6262}
    6363
    64 void TextDialog::queryDoubles(const char* title, std::string description){
    65   registerQuery(new DoublesTextQuery(title,description));
     64void TextDialog::queryDoubles(Parameter<std::vector<double> > &param, const char* title, std::string description){
     65  registerQuery(new DoublesTextQuery(param, title,description));
    6666}
    6767
    68 void TextDialog::queryString(const char* title, std::string description){
    69   registerQuery(new StringTextQuery(title,description));
     68void TextDialog::queryString(Parameter<std::string> &param, const char* title, std::string description){
     69  registerQuery(new StringTextQuery(param, title,description));
    7070}
    7171
    72 void TextDialog::queryStrings(const char* title, std::string description){
    73   registerQuery(new StringsTextQuery(title,description));
     72void TextDialog::queryStrings(Parameter<std::vector<std::string> > &param, const char* title, std::string description){
     73  registerQuery(new StringsTextQuery(param, title,description));
    7474}
    7575
    76 void TextDialog::queryAtom(const char* title, std::string description) {
    77   registerQuery(new AtomTextQuery(title,description));
     76void TextDialog::queryAtom(Parameter<const atom *> &param, const char* title, std::string description) {
     77  registerQuery(new AtomTextQuery(param, title,description));
    7878}
    7979
    80 void TextDialog::queryAtoms(const char* title, std::string description) {
    81   registerQuery(new AtomsTextQuery(title,description));
     80void TextDialog::queryAtoms(Parameter<std::vector<const atom *> > &param, const char* title, std::string description) {
     81  registerQuery(new AtomsTextQuery(param, title,description));
    8282}
    8383
    84 void TextDialog::queryMolecule(const char* title, std::string description) {
    85   registerQuery(new MoleculeTextQuery(title,description));
     84void TextDialog::queryMolecule(Parameter<const molecule *> &param, const char* title, std::string description) {
     85  registerQuery(new MoleculeTextQuery(param, title,description));
    8686}
    8787
    88 void TextDialog::queryMolecules(const char* title, std::string description) {
    89   registerQuery(new MoleculesTextQuery(title,description));
     88void TextDialog::queryMolecules(Parameter<std::vector<const molecule *> > &param, const char* title, std::string description) {
     89  registerQuery(new MoleculesTextQuery(param, title,description));
    9090}
    9191
    92 void TextDialog::queryVector(const char* title, bool check, std::string description) {
    93   registerQuery(new VectorTextQuery(title,check,description));
     92void TextDialog::queryVector(Parameter<Vector> &param, const char* title, bool check, std::string description) {
     93  registerQuery(new VectorTextQuery(param, title,check,description));
    9494}
    9595
    96 void TextDialog::queryVectors(const char* title, bool check, std::string description) {
    97   registerQuery(new VectorsTextQuery(title,check,description));
     96void TextDialog::queryVectors(Parameter<std::vector<Vector> > &param, const char* title, bool check, std::string description) {
     97  registerQuery(new VectorsTextQuery(param, title,check,description));
    9898}
    9999
    100 void TextDialog::queryBox(const char* title, std::string description) {
    101   registerQuery(new BoxTextQuery(title,description));
     100void TextDialog::queryBox(Parameter<Box> &param, const char* title, std::string description) {
     101  registerQuery(new BoxTextQuery(param, title,description));
    102102}
    103103
    104 void TextDialog::queryElement(const char* title, std::string description){
    105   registerQuery(new ElementTextQuery(title,description));
     104void TextDialog::queryElement(Parameter<const element *> &param, const char* title, std::string description){
     105  registerQuery(new ElementTextQuery(param, title,description));
    106106}
    107107
    108 void TextDialog::queryElements(const char* title, std::string description){
    109   registerQuery(new ElementsTextQuery(title,description));
     108void TextDialog::queryElements(Parameter<std::vector<const element *> > &param, const char* title, std::string description){
     109  registerQuery(new ElementsTextQuery(param, title,description));
    110110}
    111111
    112 void TextDialog::queryFile(const char* title, std::string description){
    113   registerQuery(new FileTextQuery(title,description));
     112void TextDialog::queryFile(Parameter<boost::filesystem::path> &param, const char* title, std::string description){
     113  registerQuery(new FileTextQuery(param, title,description));
    114114}
    115115
    116 void TextDialog::queryRandomNumberDistribution_Parameters(const char* title, std::string description){
    117   registerQuery(new RandomNumberDistribution_ParametersTextQuery(title,description));
     116void TextDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const char* title, std::string description){
     117  registerQuery(new RandomNumberDistribution_ParametersTextQuery(param, title,description));
    118118}
    119119
Note: See TracChangeset for help on using the changeset viewer.