Ignore:
Timestamp:
Oct 5, 2013, 9:31:54 AM (12 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:
25ce49
Parents:
07414d7
git-author:
Frederik Heber <heber@…> (09/06/13 15:36:56)
git-committer:
Frederik Heber <heber@…> (10/05/13 09:31:54)
Message:

Qt's labels now show description as tool text.

  • had to streamline signature of all ..Dialogs.
  • changed Qt's Querys to set the tooltip from the now obtained description.
Location:
src/UIElements/CommandLineUI
Files:
25 edited

Legend:

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

    r07414d7 rf130d4  
    5151
    5252
    53 void CommandLineDialog::queryEmpty(const char* title, std::string _description){
    54   registerQuery(new EmptyCommandLineQuery(title, _description));
     53void CommandLineDialog::queryEmpty(const std::string title, const std::string description){
     54  registerQuery(new EmptyCommandLineQuery(title, description));
    5555}
    5656
    57 void CommandLineDialog::queryInt(Parameter<int> &param, const char* title, std::string _description){
    58   registerQuery(new IntCommandLineQuery(param, title, _description));
     57void CommandLineDialog::queryInt(Parameter<int> &param, const std::string title, const std::string description){
     58  registerQuery(new IntCommandLineQuery(param, title, description));
    5959}
    6060
    61 void CommandLineDialog::queryInts(Parameter<std::vector<int> > &param, const char* title, std::string _description){
    62   registerQuery(new IntsCommandLineQuery(param, title, _description));
     61void CommandLineDialog::queryInts(Parameter<std::vector<int> > &param, const std::string title, const std::string description){
     62  registerQuery(new IntsCommandLineQuery(param, title, description));
    6363}
    6464
    65 void CommandLineDialog::queryUnsignedInt(Parameter<unsigned int> &param, const char* title, std::string _description){
    66   registerQuery(new UnsignedIntCommandLineQuery(param, title, _description));
     65void CommandLineDialog::queryUnsignedInt(Parameter<unsigned int> &param, const std::string title, const std::string description){
     66  registerQuery(new UnsignedIntCommandLineQuery(param, title, description));
    6767}
    6868
    69 void CommandLineDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > &param, const char* title, std::string _description){
    70   registerQuery(new UnsignedIntsCommandLineQuery(param, title, _description));
     69void CommandLineDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > &param, const std::string title, const std::string description){
     70  registerQuery(new UnsignedIntsCommandLineQuery(param, title, description));
    7171}
    7272
    73 void CommandLineDialog::queryBoolean(Parameter<bool> &param, const char* title, std::string _description){
    74   registerQuery(new BooleanCommandLineQuery(param, title, _description));
     73void CommandLineDialog::queryBoolean(Parameter<bool> &param, const std::string title, const std::string description){
     74  registerQuery(new BooleanCommandLineQuery(param, title, description));
    7575}
    7676
    77 void CommandLineDialog::queryDouble(Parameter<double> &param, const char* title, std::string _description){
    78   registerQuery(new DoubleCommandLineQuery(param, title, _description));
     77void CommandLineDialog::queryDouble(Parameter<double> &param, const std::string title, const std::string description){
     78  registerQuery(new DoubleCommandLineQuery(param, title, description));
    7979}
    8080
    81 void CommandLineDialog::queryDoubles(Parameter<std::vector<double> > &param, const char* title, std::string _description){
    82   registerQuery(new DoublesCommandLineQuery(param, title, _description));
     81void CommandLineDialog::queryDoubles(Parameter<std::vector<double> > &param, const std::string title, const std::string description){
     82  registerQuery(new DoublesCommandLineQuery(param, title, description));
    8383}
    8484
    85 void CommandLineDialog::queryString(Parameter<std::string> &param, const char* title, std::string _description){
    86   registerQuery(new StringCommandLineQuery(param, title, _description));
     85void CommandLineDialog::queryString(Parameter<std::string> &param, const std::string title, const std::string description){
     86  registerQuery(new StringCommandLineQuery(param, title, description));
    8787}
    8888
    89 void CommandLineDialog::queryStrings(Parameter<std::vector<std::string> > &param, const char* title, std::string _description){
    90   registerQuery(new StringsCommandLineQuery(param, title, _description));
     89void CommandLineDialog::queryStrings(Parameter<std::vector<std::string> > &param, const std::string title, const std::string description){
     90  registerQuery(new StringsCommandLineQuery(param, title, description));
    9191}
    9292
    93 void CommandLineDialog::queryAtom(Parameter<const atom *> &param, const char* title, std::string _description) {
    94   registerQuery(new AtomCommandLineQuery(param, title, _description));
     93void CommandLineDialog::queryAtom(Parameter<const atom *> &param, const std::string title, const std::string description) {
     94  registerQuery(new AtomCommandLineQuery(param, title, description));
    9595}
    9696
    97 void CommandLineDialog::queryAtoms(Parameter<std::vector<const atom *> > &param, const char* title, std::string _description) {
    98   registerQuery(new AtomsCommandLineQuery(param, title, _description));
     97void CommandLineDialog::queryAtoms(Parameter<std::vector<const atom *> > &param, const std::string title, const std::string description) {
     98  registerQuery(new AtomsCommandLineQuery(param, title, description));
    9999}
    100100
    101 void CommandLineDialog::queryMolecule(Parameter<const molecule *> &param, const char* title, std::string _description) {
    102   registerQuery(new MoleculeCommandLineQuery(param, title, _description));
     101void CommandLineDialog::queryMolecule(Parameter<const molecule *> &param, const std::string title, const std::string description) {
     102  registerQuery(new MoleculeCommandLineQuery(param, title, description));
    103103}
    104104
    105 void CommandLineDialog::queryMolecules(Parameter<std::vector<const molecule *> > &param, const char* title, std::string _description) {
    106   registerQuery(new MoleculesCommandLineQuery(param, title, _description));
     105void CommandLineDialog::queryMolecules(Parameter<std::vector<const molecule *> > &param, const std::string title, const std::string description) {
     106  registerQuery(new MoleculesCommandLineQuery(param, title, description));
    107107}
    108108
    109 void CommandLineDialog::queryVector(Parameter<Vector> &param, const char* title, std::string _description) {
    110   registerQuery(new VectorCommandLineQuery(param, title, _description));
     109void CommandLineDialog::queryVector(Parameter<Vector> &param, const std::string title, const std::string description) {
     110  registerQuery(new VectorCommandLineQuery(param, title, description));
    111111}
    112112
    113 void CommandLineDialog::queryVectors(Parameter<std::vector<Vector> > &param, const char* title, std::string _description) {
    114   registerQuery(new VectorsCommandLineQuery(param, title, _description));
     113void CommandLineDialog::queryVectors(Parameter<std::vector<Vector> > &param, const std::string title, const std::string description) {
     114  registerQuery(new VectorsCommandLineQuery(param, title, description));
    115115}
    116116
    117 void CommandLineDialog::queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &param, const char* title, std::string _description) {
    118   registerQuery(new RealSpaceMatrixCommandLineQuery(param, title,_description));
     117void CommandLineDialog::queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &param, const std::string title, const std::string description) {
     118  registerQuery(new RealSpaceMatrixCommandLineQuery(param, title,description));
    119119}
    120120
    121 void CommandLineDialog::queryElement(Parameter<const element *> &param, const char* title, std::string _description){
    122   registerQuery(new ElementCommandLineQuery(param, title, _description));
     121void CommandLineDialog::queryElement(Parameter<const element *> &param, const std::string title, const std::string description){
     122  registerQuery(new ElementCommandLineQuery(param, title, description));
    123123}
    124124
    125 void CommandLineDialog::queryElements(Parameter<std::vector<const element *> > &param, const char* title, std::string _description){
    126   registerQuery(new ElementsCommandLineQuery(param, title, _description));
     125void CommandLineDialog::queryElements(Parameter<std::vector<const element *> > &param, const std::string title, const std::string description){
     126  registerQuery(new ElementsCommandLineQuery(param, title, description));
    127127}
    128128
    129 void CommandLineDialog::queryFile(Parameter<boost::filesystem::path> &param, const char* title, std::string _description){
    130   registerQuery(new FileCommandLineQuery(param, title, _description));
     129void CommandLineDialog::queryFile(Parameter<boost::filesystem::path> &param, const std::string title, const std::string description){
     130  registerQuery(new FileCommandLineQuery(param, title, description));
    131131}
    132132
    133 void CommandLineDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > &param, const char* title, std::string _description){
    134   registerQuery(new FilesCommandLineQuery(param, title, _description));
     133void CommandLineDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> > &param, const std::string title, const std::string description){
     134  registerQuery(new FilesCommandLineQuery(param, title, description));
    135135}
    136136
    137 void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const char* title, std::string _description){
    138   registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, _description));
     137void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const std::string title, const std::string description){
     138  registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, description));
    139139}
    140140
  • src/UIElements/CommandLineUI/CommandLineDialog.hpp

    r07414d7 rf130d4  
    3333  virtual ~CommandLineDialog();
    3434
    35   virtual void queryEmpty(const char *, std::string = "");
    36   virtual void queryInt(Parameter<int> &, const char *, std::string = "");
    37   virtual void queryInts(Parameter<std::vector<int> > &, const char *, std::string = "");
    38   virtual void queryUnsignedInt(Parameter<unsigned int> &, const char *, std::string = "");
    39   virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const char *, std::string = "");
    40   virtual void queryBoolean(Parameter<bool> &, const char *, std::string = "");
    41   virtual void queryString(Parameter<std::string> &, const char*, std::string = "");
    42   virtual void queryStrings(Parameter<std::vector<std::string> > &, const char*, std::string = "");
    43   virtual void queryDouble(Parameter<double> &, const char*, std::string = "");
    44   virtual void queryDoubles(Parameter<std::vector<double> > &, const char*, std::string = "");
    45   virtual void queryAtom(Parameter<const atom *> &, const char*, std::string = "");
    46   virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const char*, std::string = "");
    47   virtual void queryMolecule(Parameter<const molecule *> &, const char*, std::string = "");
    48   virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const char*, std::string = "");
    49   virtual void queryVector(Parameter<Vector> &, const char*, std::string = "");
    50   virtual void queryVectors(Parameter<std::vector<Vector> > &, const char*, std::string = "");
    51   virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const char*, std::string = "");
    52   virtual void queryElement(Parameter<const element *> &, const char*, std::string = "");
    53   virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = "");
    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 = "");
    56   virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = "");
     35  virtual void queryEmpty(const std::string ="", const std::string = "");
     36  virtual void queryInt(Parameter<int> &, const std::string ="", const std::string = "");
     37  virtual void queryInts(Parameter<std::vector<int> > &, const std::string ="", const std::string = "");
     38  virtual void queryUnsignedInt(Parameter<unsigned int> &, const std::string ="", const std::string = "");
     39  virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const std::string ="", const std::string = "");
     40  virtual void queryBoolean(Parameter<bool> &, const std::string ="", const std::string = "");
     41  virtual void queryString(Parameter<std::string> &, const std::string ="", const std::string = "");
     42  virtual void queryStrings(Parameter<std::vector<std::string> > &, const std::string ="", const std::string = "");
     43  virtual void queryDouble(Parameter<double> &, const std::string ="", const std::string = "");
     44  virtual void queryDoubles(Parameter<std::vector<double> > &, const std::string ="", const std::string = "");
     45  virtual void queryAtom(Parameter<const atom *> &, const std::string ="", const std::string = "");
     46  virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const std::string ="", const std::string = "");
     47  virtual void queryMolecule(Parameter<const molecule *> &, const std::string ="", const std::string = "");
     48  virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const std::string ="", const std::string = "");
     49  virtual void queryVector(Parameter<Vector> &, const std::string ="", const std::string = "");
     50  virtual void queryVectors(Parameter<std::vector<Vector> > &, const std::string ="", const std::string = "");
     51  virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const std::string ="", const std::string = "");
     52  virtual void queryElement(Parameter<const element *> &, const std::string ="", const std::string = "");
     53  virtual void queryElements(Parameter<std::vector<const element *> > &, const std::string ="", const std::string = "");
     54  virtual void queryFile(Parameter<boost::filesystem::path> &, const std::string ="", const std::string = "");
     55  virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const std::string ="", const std::string = "");
     56  virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const std::string ="", const std::string = "");
    5757  // specialized stuff for command line queries
    5858  // all placed into Query/CommandLineQuery.hpp
  • src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp

    r07414d7 rf130d4  
    4949using namespace std;
    5050
    51 CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description) :
    52     Dialog::TQuery<const atom*>(_param, title, _description)
     51CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description) :
     52    Dialog::TQuery<const atom*>(_param, _title, _description)
    5353{}
    5454
  • src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp

    r07414d7 rf130d4  
    4444#include "World.hpp"
    4545
    46 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description) :
    47     Dialog::TQuery<std::vector<const atom *> >(_param, title, _description)
     46CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description) :
     47    Dialog::TQuery<std::vector<const atom *> >(_param, _title, _description)
    4848{}
    4949
  • src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<bool>(_param, title, _description)
     43CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<bool>(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp

    r07414d7 rf130d4  
    1919class CommandLineDialog::EmptyCommandLineQuery : public Dialog::EmptyQuery {
    2020public:
    21   EmptyCommandLineQuery(std::string title, std::string _description = "");
     21  EmptyCommandLineQuery(const std::string &_title, const std::string &_description = "");
    2222  virtual ~EmptyCommandLineQuery();
    2323  virtual bool handle();
     
    2626class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> {
    2727public:
    28   IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description = "");
     28  IntCommandLineQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description = "");
    2929  virtual ~IntCommandLineQuery();
    3030  virtual bool handle();
     
    3333class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > {
    3434public:
    35   IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description = "");
     35  IntsCommandLineQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description = "");
    3636  virtual ~IntsCommandLineQuery();
    3737  virtual bool handle();
     
    4040class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> {
    4141public:
    42   UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description = "");
     42  UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description = "");
    4343  virtual ~UnsignedIntCommandLineQuery();
    4444  virtual bool handle();
     
    4747class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > {
    4848public:
    49   UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description = "");
     49  UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description = "");
    5050  virtual ~UnsignedIntsCommandLineQuery();
    5151  virtual bool handle();
     
    5454class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> {
    5555public:
    56   BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description = "");
     56  BooleanCommandLineQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description = "");
    5757  virtual ~BooleanCommandLineQuery();
    5858  virtual bool handle();
     
    6161class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> {
    6262public:
    63   DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description = "");
     63  DoubleCommandLineQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description = "");
    6464  virtual ~DoubleCommandLineQuery();
    6565  virtual bool handle();
     
    6868class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > {
    6969public:
    70   DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description = "");
     70  DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description = "");
    7171  virtual ~DoublesCommandLineQuery();
    7272  virtual bool handle();
     
    7575class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> {
    7676public:
    77   StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description = "");
     77  StringCommandLineQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description = "");
    7878  virtual ~StringCommandLineQuery();
    7979  virtual bool handle();
     
    8282class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > {
    8383public:
    84   StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description = "");
     84  StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description = "");
    8585  virtual ~StringsCommandLineQuery();
    8686  virtual bool handle();
     
    8989class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> {
    9090public:
    91   AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description = "");
     91  AtomCommandLineQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description = "");
    9292  virtual ~AtomCommandLineQuery();
    9393  virtual bool handle();
     
    9696class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > {
    9797public:
    98   AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description = "");
     98  AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description = "");
    9999  virtual ~AtomsCommandLineQuery();
    100100  virtual bool handle();
     
    103103class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> {
    104104public:
    105   MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description = "");
     105  MoleculeCommandLineQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description = "");
    106106  virtual ~MoleculeCommandLineQuery();
    107107  virtual bool handle();
     
    110110class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > {
    111111public:
    112   MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description = "");
     112  MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description = "");
    113113  virtual ~MoleculesCommandLineQuery();
    114114  virtual bool handle();
     
    117117class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> {
    118118public:
    119   VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description = "");
     119  VectorCommandLineQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description = "");
    120120  virtual ~VectorCommandLineQuery();
    121121  virtual bool handle();
     
    124124class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > {
    125125public:
    126   VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description = "");
     126  VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description = "");
    127127  virtual ~VectorsCommandLineQuery();
    128128  virtual bool handle();
     
    131131class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> {
    132132public:
    133   RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description = "");
     133  RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description = "");
    134134  virtual ~RealSpaceMatrixCommandLineQuery();
    135135  virtual bool handle();
     
    138138class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> {
    139139public:
    140   ElementCommandLineQuery(Parameter<const element *> &_param, std::string title, std::string _description = "");
     140  ElementCommandLineQuery(Parameter<const element *> &_param, const std::string &_title, const std::string &_description = "");
    141141  virtual ~ElementCommandLineQuery();
    142142  virtual bool handle();
     
    145145class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > {
    146146public:
    147   ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description = "");
     147  ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, const std::string &_title, const std::string &_description = "");
    148148  virtual ~ElementsCommandLineQuery();
    149149  virtual bool handle();
     
    152152class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> {
    153153public:
    154   FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description = "");
     154  FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description = "");
    155155  virtual ~FileCommandLineQuery();
    156156  virtual bool handle();
     
    159159class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > {
    160160public:
    161   FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string title, std::string _description = "");
     161  FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, const std::string &_title, const std::string &_description = "");
    162162  virtual ~FilesCommandLineQuery();
    163163  virtual bool handle();
     
    166166class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> {
    167167public:
    168   RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description = "");
     168  RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, const std::string &_title, const std::string &_description = "");
    169169  virtual ~RandomNumberDistribution_ParametersCommandLineQuery();
    170170  virtual bool handle();
  • src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp

    r07414d7 rf130d4  
    4242
    4343
    44 CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description) :
    45     Dialog::TQuery<double>(_param, title, _description)
     44CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description) :
     45    Dialog::TQuery<double>(_param, _title, _description)
    4646{}
    4747
  • src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<std::vector<double> >(_param, title, _description)
     43CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<std::vector<double> >(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp

    r07414d7 rf130d4  
    4444#include "World.hpp"
    4545
    46 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, std::string title, std::string _description) :
    47     Dialog::TQuery<const element *>(_param, title, _description)
     46CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, const std::string &_title, const std::string &_description) :
     47    Dialog::TQuery<const element *>(_param, _title, _description)
    4848{}
    4949
  • src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp

    r07414d7 rf130d4  
    4444#include "World.hpp"
    4545
    46 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, std::string title, std::string _description) :
    47     Dialog::TQuery<std::vector<const element *> >(_param, title, _description)
     46CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, const std::string &_title, const std::string &_description) :
     47    Dialog::TQuery<std::vector<const element *> >(_param, _title, _description)
    4848{}
    4949
  • src/UIElements/CommandLineUI/Query/EmptyCommandLineQuery.cpp

    r07414d7 rf130d4  
    4242#include "CodePatterns/Verbose.hpp"
    4343
    44 CommandLineDialog::EmptyCommandLineQuery::EmptyCommandLineQuery(std::string title, std::string _description) :
    45     Dialog::EmptyQuery(title, _description)
     44CommandLineDialog::EmptyCommandLineQuery::EmptyCommandLineQuery(const std::string &_title, const std::string &_description) :
     45    Dialog::EmptyQuery(_title, _description)
    4646{}
    4747
  • src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<boost::filesystem::path>(_param, title, _description)
     43CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<boost::filesystem::path>(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, title, _description)
     43CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<int>(_param, title, _description)
     43CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<int>(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<std::vector<int> >(_param, title, _description)
     43CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<std::vector<int> >(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp

    r07414d7 rf130d4  
    4444#include "CodePatterns/Verbose.hpp"
    4545
    46 CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description) :
    47     Dialog::TQuery<const molecule *>(_param, title, _description)
     46CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description) :
     47    Dialog::TQuery<const molecule *>(_param, _title, _description)
    4848{}
    4949
  • src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp

    r07414d7 rf130d4  
    4545#include "World.hpp"
    4646
    47 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description) :
    48     Dialog::TQuery<std::vector<const molecule *> >(_param, title, _description)
     47CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description) :
     48    Dialog::TQuery<std::vector<const molecule *> >(_param, _title, _description)
    4949{}
    5050
  • src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp

    r07414d7 rf130d4  
    4747#include "RandomNumbers/RandomNumberDistribution_Parameters.hpp"
    4848
    49 CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description) :
    50     Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, title, _description)
     49CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, const std::string &_title, const std::string &_description) :
     50    Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, _title, _description)
    5151{}
    5252
  • src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp

    r07414d7 rf130d4  
    4343#include "LinearAlgebra/RealSpaceMatrix.hpp"
    4444
    45 CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description) :
    46     Dialog::TQuery<RealSpaceMatrix>(_param, title, _description)
     45CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description) :
     46    Dialog::TQuery<RealSpaceMatrix>(_param, _title, _description)
    4747{}
    4848
  • src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<std::string>(_param, title, _description)
     43CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<std::string>(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<std::vector<std::string> >(_param, title, _description)
     43CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<std::vector<std::string> >(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<unsigned int>(_param, title, _description)
     43CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<unsigned int>(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp

    r07414d7 rf130d4  
    4141#include "CodePatterns/Verbose.hpp"
    4242
    43 CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description) :
    44     Dialog::TQuery<std::vector<unsigned int> >(_param, title, _description)
     43CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description) :
     44    Dialog::TQuery<std::vector<unsigned int> >(_param, _title, _description)
    4545{}
    4646
  • src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp

    r07414d7 rf130d4  
    4545#include "World.hpp"
    4646
    47 CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description) :
    48     Dialog::TQuery<Vector>(_param, title, _description)
     47CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description) :
     48    Dialog::TQuery<Vector>(_param, _title, _description)
    4949{}
    5050
  • src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp

    r07414d7 rf130d4  
    4545#include "World.hpp"
    4646
    47 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description) :
    48     Dialog::TQuery<std::vector<Vector> >(_param, title, _description)
     47CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description) :
     48    Dialog::TQuery<std::vector<Vector> >(_param, _title, _description)
    4949{}
    5050
Note: See TracChangeset for help on using the changeset viewer.