Changeset f130d4 for src/UIElements/Qt4


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, Candidate_v1.7.0, Candidate_v1.7.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/Qt4
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/QtDialog.cpp

    r07414d7 rf130d4  
    9090/************************** Query Infrastructure ************************/
    9191
    92 void QtDialog::queryEmpty(const char* title, std::string)
    93 {
    94   registerQuery(new EmptyQtQuery(title,inputLayout,this));
    95 }
    96 
    97 void QtDialog::queryBoolean(Parameter<bool> &param, const char* title,string)
    98 {
    99   registerQuery(new BooleanQtQuery(param,title,inputLayout,this));
    100 }
    101 
    102 void QtDialog::queryAtom(Parameter<const atom *> &param, const char* title, std::string)
    103 {
    104   registerQuery(new AtomQtQuery(param,title,inputLayout,this));
    105 }
    106 
    107 void QtDialog::queryAtoms(Parameter<std::vector<const atom *> > &param, const char* title, std::string)
    108 {
    109   registerQuery(new AtomsQtQuery(param,title,inputLayout,this));
    110 }
    111 
    112 void QtDialog::queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &param, const char* title, std::string)
    113 {
    114   registerQuery(new RealSpaceMatrixQtQuery(param,title,inputLayout,this));
    115 }
    116 
    117 void QtDialog::queryInt(Parameter<int> &param, const char *title,string)
    118 {
    119   registerQuery(new IntQtQuery(param,title,inputLayout,this));
    120 }
    121 
    122 void QtDialog::queryInts(Parameter<std::vector<int> > &param, const char *title,string)
    123 {
    124   registerQuery(new IntsQtQuery(param,title,inputLayout,this));
    125 }
    126 
    127 void QtDialog::queryUnsignedInt(Parameter<unsigned int> &param, const char *title,string)
    128 {
    129   registerQuery(new UnsignedIntQtQuery(param,title,inputLayout,this));
    130 }
    131 
    132 void QtDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > &param, const char *title,string)
    133 {
    134   registerQuery(new UnsignedIntsQtQuery(param,title,inputLayout,this));
    135 }
    136 
    137 void QtDialog::queryDouble(Parameter<double> &param, const char* title,string)
    138 {
    139   registerQuery(new DoubleQtQuery(param,title,inputLayout,this));
    140 }
    141 
    142 void QtDialog::queryDoubles(Parameter<std::vector<double> > &param, const char* title,string)
    143 {
    144   registerQuery(new DoublesQtQuery(param,title,inputLayout,this));
    145 }
    146 
    147 void QtDialog::queryString(Parameter<std::string> &param, const char* title,string)
    148 {
    149   registerQuery(new StringQtQuery(param,title,inputLayout,this));
    150 }
    151 
    152 void QtDialog::queryStrings(Parameter<std::vector<std::string> > &param, const char* title,string)
    153 {
    154   registerQuery(new StringsQtQuery(param, title,inputLayout,this));
    155 }
    156 
    157 void QtDialog::queryMolecule(Parameter<const molecule *> &param, const char *title,string)
    158 {
    159   registerQuery(new MoleculeQtQuery(param,title,inputLayout,this));
    160 }
    161 
    162 void QtDialog::queryMolecules(Parameter<std::vector<const molecule *> > &param, const char *title,string)
    163 {
    164   registerQuery(new MoleculesQtQuery(param, title,inputLayout,this));
    165 }
    166 
    167 void QtDialog::queryVector(Parameter<Vector> &param, const char* title, string)
    168 {
    169   registerQuery(new VectorQtQuery(param,title,inputLayout,this));
    170 }
    171 
    172 void QtDialog::queryVectors(Parameter<std::vector<Vector> > &param, const char* title, string)
    173 {
    174   registerQuery(new VectorsQtQuery(param, title,inputLayout,this));
    175 }
    176 
    177 void QtDialog::queryElement(Parameter<const element *> &param, const char* title, std::string)
    178 {
    179   registerQuery(new ElementQtQuery(param,title,inputLayout,this));
    180 }
    181 
    182 void QtDialog::queryElements(Parameter<std::vector<const element *> > &param, const char* title, std::string)
    183 {
    184   registerQuery(new ElementsQtQuery(param,title,inputLayout,this));
    185 }
    186 
    187 void QtDialog::queryFile(Parameter<boost::filesystem::path> &param, const char* title, std::string)
    188 {
    189   registerQuery(new FileQtQuery(param,title,inputLayout,this));
    190 }
    191 
    192 void QtDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> >&param, const char* title, std::string)
    193 {
    194   registerQuery(new FilesQtQuery(param, title,inputLayout,this));
    195 }
    196 
    197 void QtDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const char* title, std::string)
    198 {
    199   registerQuery(new RandomNumberDistribution_ParametersQtQuery(param,title,inputLayout,this));
     92void QtDialog::queryEmpty(const std::string title, const std::string description)
     93{
     94  registerQuery(new EmptyQtQuery(title,description,inputLayout,this));
     95}
     96
     97void QtDialog::queryBoolean(Parameter<bool> &param, const std::string title, const std::string description)
     98{
     99  registerQuery(new BooleanQtQuery(param,title,description,inputLayout,this));
     100}
     101
     102void QtDialog::queryAtom(Parameter<const atom *> &param, const std::string title, const std::string description)
     103{
     104  registerQuery(new AtomQtQuery(param,title,description,inputLayout,this));
     105}
     106
     107void QtDialog::queryAtoms(Parameter<std::vector<const atom *> > &param, const std::string title, const std::string description)
     108{
     109  registerQuery(new AtomsQtQuery(param,title,description,inputLayout,this));
     110}
     111
     112void QtDialog::queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &param, const std::string title, const std::string description)
     113{
     114  registerQuery(new RealSpaceMatrixQtQuery(param,title,description,inputLayout,this));
     115}
     116
     117void QtDialog::queryInt(Parameter<int> &param, const std::string title, const std::string description)
     118{
     119  registerQuery(new IntQtQuery(param,title,description,inputLayout,this));
     120}
     121
     122void QtDialog::queryInts(Parameter<std::vector<int> > &param, const std::string title, const std::string description)
     123{
     124  registerQuery(new IntsQtQuery(param,title,description,inputLayout,this));
     125}
     126
     127void QtDialog::queryUnsignedInt(Parameter<unsigned int> &param, const std::string title, const std::string description)
     128{
     129  registerQuery(new UnsignedIntQtQuery(param,title,description,inputLayout,this));
     130}
     131
     132void QtDialog::queryUnsignedInts(Parameter<std::vector<unsigned int> > &param, const std::string title, const std::string description)
     133{
     134  registerQuery(new UnsignedIntsQtQuery(param,title,description,inputLayout,this));
     135}
     136
     137void QtDialog::queryDouble(Parameter<double> &param, const std::string title, const std::string description)
     138{
     139  registerQuery(new DoubleQtQuery(param,title,description,inputLayout,this));
     140}
     141
     142void QtDialog::queryDoubles(Parameter<std::vector<double> > &param, const std::string title, const std::string description)
     143{
     144  registerQuery(new DoublesQtQuery(param,title,description,inputLayout,this));
     145}
     146
     147void QtDialog::queryString(Parameter<std::string> &param, const std::string title, const std::string description)
     148{
     149  registerQuery(new StringQtQuery(param,title,description,inputLayout,this));
     150}
     151
     152void QtDialog::queryStrings(Parameter<std::vector<std::string> > &param, const std::string title, const std::string description)
     153{
     154  registerQuery(new StringsQtQuery(param,title,description,inputLayout,this));
     155}
     156
     157void QtDialog::queryMolecule(Parameter<const molecule *> &param, const std::string title, const std::string description)
     158{
     159  registerQuery(new MoleculeQtQuery(param,title,description,inputLayout,this));
     160}
     161
     162void QtDialog::queryMolecules(Parameter<std::vector<const molecule *> > &param, const std::string title, const std::string description)
     163{
     164  registerQuery(new MoleculesQtQuery(param,title,description,inputLayout,this));
     165}
     166
     167void QtDialog::queryVector(Parameter<Vector> &param, const std::string title, const std::string description)
     168{
     169  registerQuery(new VectorQtQuery(param,title,description,inputLayout,this));
     170}
     171
     172void QtDialog::queryVectors(Parameter<std::vector<Vector> > &param, const std::string title, const std::string description)
     173{
     174  registerQuery(new VectorsQtQuery(param,title,description,inputLayout,this));
     175}
     176
     177void QtDialog::queryElement(Parameter<const element *> &param, const std::string title, const std::string description)
     178{
     179  registerQuery(new ElementQtQuery(param,title,description,inputLayout,this));
     180}
     181
     182void QtDialog::queryElements(Parameter<std::vector<const element *> > &param, const std::string title, const std::string description)
     183{
     184  registerQuery(new ElementsQtQuery(param,title,description,inputLayout,this));
     185}
     186
     187void QtDialog::queryFile(Parameter<boost::filesystem::path> &param, const std::string title, const std::string description)
     188{
     189  registerQuery(new FileQtQuery(param,title,description,inputLayout,this));
     190}
     191
     192void QtDialog::queryFiles(Parameter<std::vector< boost::filesystem::path> >&param, const std::string title, const std::string description)
     193{
     194  registerQuery(new FilesQtQuery(param,title,description,inputLayout,this));
     195}
     196
     197void QtDialog::queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &param, const std::string title, const std::string description)
     198{
     199  registerQuery(new RandomNumberDistribution_ParametersQtQuery(param,title,description,inputLayout,this));
    200200}
    201201
  • src/UIElements/Qt4/QtDialog.hpp

    r07414d7 rf130d4  
    3333  virtual ~QtDialog();
    3434
    35   virtual void queryEmpty(const char*, std::string);
    36   virtual void queryBoolean(Parameter<bool> &, const char *, std::string = "");
    37   virtual void queryInt(Parameter<int> &, const char *,std::string = "");
    38   virtual void queryInts(Parameter<std::vector<int> > &, const char *,std::string = "");
    39   virtual void queryUnsignedInt(Parameter<unsigned int> &, const char *,std::string = "");
    40   virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const char *,std::string = "");
    41   virtual void queryDouble(Parameter<double> &, const char*,std::string = "");
    42   virtual void queryDoubles(Parameter<std::vector<double> > &, const char*,std::string = "");
    43   virtual void queryString(Parameter<std::string> &, const char*,std::string = "");
    44   virtual void queryStrings(Parameter<std::vector<std::string> > &, 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 queryBoolean(Parameter<bool> &, const std::string ="", const std::string = "");
     37  virtual void queryInt(Parameter<int> &, const std::string ="", const std::string = "");
     38  virtual void queryInts(Parameter<std::vector<int> > &, const std::string ="", const std::string = "");
     39  virtual void queryUnsignedInt(Parameter<unsigned int> &, const std::string ="", const std::string = "");
     40  virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const std::string ="", const std::string = "");
     41  virtual void queryDouble(Parameter<double> &, const std::string ="", const std::string = "");
     42  virtual void queryDoubles(Parameter<std::vector<double> > &, const std::string ="", const std::string = "");
     43  virtual void queryString(Parameter<std::string> &, const std::string ="", const std::string = "");
     44  virtual void queryStrings(Parameter<std::vector<std::string> > &, 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
    5858  virtual bool display();
  • src/UIElements/Qt4/Query/AtomQtQuery.cpp

    r07414d7 rf130d4  
    4444#include "World.hpp"
    4545
    46 QtDialog::AtomQtQuery::AtomQtQuery(Parameter<const atom *> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    47     QtQuery<const atom *>(_param, _title),
     46QtDialog::AtomQtQuery::AtomQtQuery(Parameter<const atom *> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     47    QtQuery<const atom *>(_param, _title, _description),
    4848    parent(_parent),
    4949    dialog(_dialog)
     
    5151  thisLayout = new QHBoxLayout();
    5252  titleLabel = new QLabel(QString(getTitle().c_str()));
     53  titleLabel->setToolTip(QString(getDescription().c_str()));
    5354  inputBox = new QComboBox();
    5455  inputBox->insertItem(-1, QString("no atom"));
  • src/UIElements/Qt4/Query/AtomsQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::AtomsQtQuery::AtomsQtQuery(Parameter<std::vector<const atom *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::vector<const atom *> >(_param, _title),
     45QtDialog::AtomsQtQuery::AtomsQtQuery(Parameter<std::vector<const atom *> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::vector<const atom *> >(_param, _title, _description),
    4747    QtQueryList<const atom *>(_param, _parent, _dialog, temp)
    4848{
    4949  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    50   subQuery = new AtomQtQuery(*subParam, _title, thisVLayout, subDialog);
     50  subQuery = new AtomQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5151  subDialog->setSubQuery(subQuery);
    5252
  • src/UIElements/Qt4/Query/BooleanQtQuery.cpp

    r07414d7 rf130d4  
    4242
    4343
    44 QtDialog::BooleanQtQuery::BooleanQtQuery(Parameter<bool> &_param, std::string _title, QBoxLayout *_parent, Dialog *_dialog) :
    45     QtQuery<bool>(_param, _title),
     44QtDialog::BooleanQtQuery::BooleanQtQuery(Parameter<bool> &_param, const std::string &_title, const std::string &_description, QBoxLayout *_parent, Dialog *_dialog) :
     45    QtQuery<bool>(_param, _title, _description),
    4646    parent(_parent),
    4747    dialog(_dialog)
     
    5252  thisLayout = new QHBoxLayout();
    5353  titleLabel = new QLabel(QString(getTitle().c_str()));
     54  titleLabel->setToolTip(QString(getDescription().c_str()));
    5455  booleanCheckBox = new QCheckBox(QString(getTitle().c_str()));
    5556  booleanCheckBox->setCheckState(temp ? Qt::Checked : Qt::Unchecked);
  • src/UIElements/Qt4/Query/DoubleQtQuery.cpp

    r07414d7 rf130d4  
    4242
    4343
    44 QtDialog::DoubleQtQuery::DoubleQtQuery(Parameter<double> &_param, std::string title,QBoxLayout *_parent,Dialog *_dialog) :
    45     QtQuery<double>(_param, title),
     44QtDialog::DoubleQtQuery::DoubleQtQuery(Parameter<double> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     45    QtQuery<double>(_param, _title, _description),
    4646    parent(_parent),
    4747    dialog(_dialog)
     
    5252  thisLayout = new QHBoxLayout();
    5353  titleLabel = new QLabel(QString(getTitle().c_str()));
     54  titleLabel->setToolTip(QString(getDescription().c_str()));
    5455  inputBox = new QDoubleSpinBox();
    5556  inputBox->setValue(temp);
  • src/UIElements/Qt4/Query/DoublesQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::DoublesQtQuery::DoublesQtQuery(Parameter<std::vector<double> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::vector<double> >(_param, _title),
     45QtDialog::DoublesQtQuery::DoublesQtQuery(Parameter<std::vector<double> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::vector<double> >(_param, _title, _description),
    4747    QtQueryList<double>(_param, _parent, _dialog, temp)
    4848{
    4949  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    50   subQuery = new DoubleQtQuery(*subParam, _title, thisVLayout, subDialog);
     50  subQuery = new DoubleQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5151  subDialog->setSubQuery(subQuery);
    5252
  • src/UIElements/Qt4/Query/ElementQtQuery.cpp

    r07414d7 rf130d4  
    4545#include "World.hpp"
    4646
    47 QtDialog::ElementQtQuery::ElementQtQuery(Parameter<const element *> &_param, std::string _title, QBoxLayout *_parent, Dialog *_dialog) :
    48     QtQuery<const element *>(_param, _title),
     47QtDialog::ElementQtQuery::ElementQtQuery(Parameter<const element *> &_param, const std::string &_title, const std::string &_description, QBoxLayout *_parent, Dialog *_dialog) :
     48    QtQuery<const element *>(_param, _title, _description),
    4949    parent(_parent),
    5050    dialog(_dialog)
     
    5353  thisLayout = new QHBoxLayout();
    5454  titleLabel = new QLabel(QString(getTitle().c_str()));
     55  titleLabel->setToolTip(QString(getDescription().c_str()));
    5556  inputBox = new QComboBox();
    5657  for(periodentafel::const_iterator iter = periode->begin();
  • src/UIElements/Qt4/Query/ElementsQtQuery.cpp

    r07414d7 rf130d4  
    4444
    4545
    46 QtDialog::ElementsQtQuery::ElementsQtQuery(Parameter<std::vector<const element *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    47     QtQuery<std::vector<const element *> >(_param, _title),
     46QtDialog::ElementsQtQuery::ElementsQtQuery(Parameter<std::vector<const element *> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     47    QtQuery<std::vector<const element *> >(_param, _title, _description),
    4848    QtQueryList<const element *>(_param, _parent, _dialog, temp)
    4949{
    5050  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    51   subQuery = new ElementQtQuery(*subParam, _title, thisVLayout, subDialog);
     51  subQuery = new ElementQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5252  subDialog->setSubQuery(subQuery);
    5353
  • src/UIElements/Qt4/Query/EmptyQtQuery.cpp

    r07414d7 rf130d4  
    4141
    4242
    43 QtDialog::EmptyQtQuery::EmptyQtQuery(std::string _title, QBoxLayout *_parent, Dialog *_dialog) :
    44     Dialog::EmptyQuery(_title),
     43QtDialog::EmptyQtQuery::EmptyQtQuery(const std::string &_title, const std::string &_description, QBoxLayout *_parent, Dialog *_dialog) :
     44    Dialog::EmptyQuery(_title, _description),
    4545    parent(_parent),
    4646    dialog(_dialog)
     
    4848  thisLayout = new QHBoxLayout();
    4949  titleLabel = new QLabel(QString(getTitle().c_str()));
     50  titleLabel->setToolTip(QString(getDescription().c_str()));
    5051
    5152  parent->addLayout(thisLayout);
  • src/UIElements/Qt4/Query/FileQtQuery.cpp

    r07414d7 rf130d4  
    4848#include "Parser/FormatParserStorage.hpp"
    4949
    50 QtDialog::FileQtQuery::FileQtQuery(Parameter<boost::filesystem::path> &_param, std::string _title, QBoxLayout *_parent, Dialog *_dialog) :
    51     QtQuery<boost::filesystem::path>(_param, _title),
     50QtDialog::FileQtQuery::FileQtQuery(Parameter<boost::filesystem::path> &_param, const std::string &_title, const std::string &_description, QBoxLayout *_parent, Dialog *_dialog) :
     51    QtQuery<boost::filesystem::path>(_param, _title, _description),
    5252    parent(_parent),
    5353    dialog(_dialog)
     
    5959  filenameLabel = new QLabel(QString("Input file:"));
    6060  filenameLabel->setBuddy(filenameLineEdit);
     61  filenameLabel->setToolTip(QString(getDescription().c_str()));
    6162
    6263  filedialogButton = new QPushButton("&Choose");
  • src/UIElements/Qt4/Query/FilesQtQuery.cpp

    r07414d7 rf130d4  
    4444
    4545
    46 QtDialog::FilesQtQuery::FilesQtQuery(Parameter<std::vector<boost::filesystem::path> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    47     QtQuery<std::vector<boost::filesystem::path> >(_param, _title),
     46QtDialog::FilesQtQuery::FilesQtQuery(Parameter<std::vector<boost::filesystem::path> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     47    QtQuery<std::vector<boost::filesystem::path> >(_param, _title, _description),
    4848    QtQueryList<boost::filesystem::path>(_param, _parent, _dialog, temp)
    4949{
    5050  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    51   subQuery = new FileQtQuery(*subParam, _title, thisVLayout, subDialog);
     51  subQuery = new FileQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5252  subDialog->setSubQuery(subQuery);
    5353
  • src/UIElements/Qt4/Query/IntQtQuery.cpp

    r07414d7 rf130d4  
    4242
    4343
    44 QtDialog::IntQtQuery::IntQtQuery(Parameter<int> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    45     QtQuery<int>(_param, _title),
     44QtDialog::IntQtQuery::IntQtQuery(Parameter<int> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     45    QtQuery<int>(_param, _title, _description),
    4646    parent(_parent),
    4747    dialog(_dialog)
     
    5252  thisLayout = new QHBoxLayout();
    5353  titleLabel = new QLabel(QString(getTitle().c_str()));
     54  titleLabel->setToolTip(QString(getDescription().c_str()));
    5455  inputBox = new QSpinBox();
    5556  inputBox->setValue(temp);
  • src/UIElements/Qt4/Query/IntsQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::IntsQtQuery::IntsQtQuery(Parameter<std::vector<int> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::vector<int> >(_param, _title),
     45QtDialog::IntsQtQuery::IntsQtQuery(Parameter<std::vector<int> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::vector<int> >(_param, _title, _description),
    4747    QtQueryList<int>(_param, _parent, _dialog, temp)
    4848{
    4949  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    50   subQuery = new IntQtQuery(*subParam, _title, thisVLayout, subDialog);
     50  subQuery = new IntQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5151  subDialog->setSubQuery(subQuery);
    5252
  • src/UIElements/Qt4/Query/MoleculeQtQuery.cpp

    r07414d7 rf130d4  
    4545
    4646
    47 QtDialog::MoleculeQtQuery::MoleculeQtQuery(Parameter<const molecule *> &_param, std::string _title, QBoxLayout *_parent,Dialog *_dialog) :
    48     QtQuery<const molecule *>(_param, _title),
     47QtDialog::MoleculeQtQuery::MoleculeQtQuery(Parameter<const molecule *> &_param, const std::string &_title, const std::string &_description, QBoxLayout *_parent,Dialog *_dialog) :
     48    QtQuery<const molecule *>(_param, _title, _description),
    4949    parent(_parent),
    5050    dialog(_dialog)
     
    5252  thisLayout = new QHBoxLayout();
    5353  titleLabel = new QLabel(QString(getTitle().c_str()));
     54  titleLabel->setToolTip(QString(getDescription().c_str()));
    5455  inputBox = new QComboBox();
    5556  // add all molecules to the combo box
  • src/UIElements/Qt4/Query/MoleculesQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::MoleculesQtQuery::MoleculesQtQuery(Parameter<std::vector<const molecule *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::vector<const molecule *> >(_param, _title),
     45QtDialog::MoleculesQtQuery::MoleculesQtQuery(Parameter<std::vector<const molecule *> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::vector<const molecule *> >(_param, _title, _description),
    4747    QtQueryList<const molecule *>(_param, _parent, _dialog, temp)
    4848{
    4949  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    50   subQuery = new MoleculeQtQuery(*subParam, _title, thisVLayout, subDialog);
     50  subQuery = new MoleculeQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5151  subDialog->setSubQuery(subQuery);
    5252
  • src/UIElements/Qt4/Query/QtQuery.hpp

    r07414d7 rf130d4  
    3939{
    4040public:
    41   QtQuery(Parameter<T> &_param, std::string title, std::string _description = "") :
    42     Dialog::TQuery<T>(_param, title, _description) {}
     41  QtQuery(Parameter<T> &_param, const std::string &_title, const std::string &_description = "") :
     42    Dialog::TQuery<T>(_param, _title, _description) {}
    4343  // QtQueries are interactive - no need for handle().
    4444  virtual bool handle(){  return true;  }
     
    4848  Q_OBJECT
    4949public:
    50   AtomQtQuery(Parameter<const atom *> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     50  AtomQtQuery(Parameter<const atom *> &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    5151  virtual ~AtomQtQuery();
    5252
     
    6565  Q_OBJECT
    6666public:
    67   AtomsQtQuery(Parameter<std::vector<const atom *> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     67  AtomsQtQuery(Parameter<std::vector<const atom *> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    6868  virtual ~AtomsQtQuery();
    6969
     
    8282  Q_OBJECT
    8383public:
    84   BooleanQtQuery(Parameter<bool> &, std::string _title, QBoxLayout *_parent, Dialog *_dialog);
     84  BooleanQtQuery(Parameter<bool> &, const std::string &_title, const std::string &description, QBoxLayout *_parent, Dialog *_dialog);
    8585  virtual ~BooleanQtQuery();
    8686
     
    9999  Q_OBJECT
    100100public:
    101   RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     101  RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    102102  virtual ~RealSpaceMatrixQtQuery();
    103103
     
    116116  Q_OBJECT
    117117public:
    118   DoubleQtQuery(Parameter<double> &, std::string title,QBoxLayout *_parent,Dialog *_dialog);
     118  DoubleQtQuery(Parameter<double> &, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog);
    119119  virtual ~DoubleQtQuery();
    120120
     
    133133  Q_OBJECT
    134134public:
    135   DoublesQtQuery(Parameter<std::vector<double> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     135  DoublesQtQuery(Parameter<std::vector<double> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    136136  virtual ~DoublesQtQuery();
    137137
     
    150150  Q_OBJECT
    151151public:
    152   ElementQtQuery(Parameter<const element *> &, std::string _title, QBoxLayout *_parent, Dialog *_dialog);
     152  ElementQtQuery(Parameter<const element *> &, const std::string &_title, const std::string &description, QBoxLayout *_parent, Dialog *_dialog);
    153153  virtual ~ElementQtQuery();
    154154
     
    167167  Q_OBJECT
    168168public:
    169   ElementsQtQuery(Parameter<std::vector<const element *> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     169  ElementsQtQuery(Parameter<std::vector<const element *> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    170170  virtual ~ElementsQtQuery();
    171171
     
    183183class QtDialog::EmptyQtQuery : public Dialog::EmptyQuery {
    184184public:
    185   EmptyQtQuery(std::string _title, QBoxLayout *_parent, Dialog *_dialog);
     185  EmptyQtQuery(const std::string &_title, const std::string &description, QBoxLayout *_parent, Dialog *_dialog);
    186186  virtual ~EmptyQtQuery();
    187187  virtual bool handle();
     
    196196  Q_OBJECT
    197197public:
    198   FileQtQuery(Parameter<boost::filesystem::path> &, std::string _title, QBoxLayout *_parent, Dialog *_dialog);
     198  FileQtQuery(Parameter<boost::filesystem::path> &, const std::string &_title, const std::string &description, QBoxLayout *_parent, Dialog *_dialog);
    199199  virtual ~FileQtQuery();
    200200
     
    216216  Q_OBJECT
    217217public:
    218   FilesQtQuery(Parameter<std::vector<boost::filesystem::path> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     218  FilesQtQuery(Parameter<std::vector<boost::filesystem::path> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    219219  virtual ~FilesQtQuery();
    220220
     
    233233  Q_OBJECT
    234234public:
    235   IntQtQuery(Parameter<int> &, std::string _title,QBoxLayout *_parent,Dialog *_dialog);
     235  IntQtQuery(Parameter<int> &, const std::string &_title, const std::string &description,QBoxLayout *_parent,Dialog *_dialog);
    236236  virtual ~IntQtQuery();
    237237
     
    250250  Q_OBJECT
    251251public:
    252   IntsQtQuery(Parameter<std::vector<int> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     252  IntsQtQuery(Parameter<std::vector<int> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    253253  virtual ~IntsQtQuery();
    254254
     
    267267  Q_OBJECT
    268268public:
    269   MoleculeQtQuery(Parameter<const molecule *> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     269  MoleculeQtQuery(Parameter<const molecule *> &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    270270  virtual ~MoleculeQtQuery();
    271271
     
    284284  Q_OBJECT
    285285public:
    286   MoleculesQtQuery(Parameter<std::vector<const molecule *> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     286  MoleculesQtQuery(Parameter<std::vector<const molecule *> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    287287  virtual ~MoleculesQtQuery();
    288288
     
    301301  Q_OBJECT
    302302public:
    303   StringQtQuery(Parameter<std::string> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     303  StringQtQuery(Parameter<std::string> &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    304304  virtual ~StringQtQuery();
    305305
     
    320320  Q_OBJECT
    321321public:
    322   StringsQtQuery(Parameter<std::vector<std::string> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     322  StringsQtQuery(Parameter<std::vector<std::string> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    323323  virtual ~StringsQtQuery();
    324324
     
    337337  Q_OBJECT
    338338public:
    339   UnsignedIntQtQuery(Parameter<unsigned int> &, std::string _title,QBoxLayout *_parent,Dialog *_dialog);
     339  UnsignedIntQtQuery(Parameter<unsigned int> &, const std::string &_title, const std::string &description,QBoxLayout *_parent,Dialog *_dialog);
    340340  virtual ~UnsignedIntQtQuery();
    341341
     
    354354  Q_OBJECT
    355355public:
    356   UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     356  UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    357357  virtual ~UnsignedIntsQtQuery();
    358358
     
    371371  Q_OBJECT
    372372public:
    373   VectorQtQuery(Parameter<Vector> &, std::string title,QBoxLayout *,Dialog *);
     373  VectorQtQuery(Parameter<Vector> &, const std::string &_title, const std::string &_description,QBoxLayout *,Dialog *);
    374374  virtual ~VectorQtQuery();
    375375
     
    395395  Q_OBJECT
    396396public:
    397   VectorsQtQuery(Parameter<std::vector<Vector> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog);
     397  VectorsQtQuery(Parameter<std::vector<Vector> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog);
    398398  virtual ~VectorsQtQuery();
    399399
     
    412412  Q_OBJECT
    413413public:
    414   RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title,QBoxLayout *,Dialog *);
     414  RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, const std::string &_title, const std::string &_description,QBoxLayout *,Dialog *);
    415415  virtual ~RandomNumberDistribution_ParametersQtQuery();
    416416
  • src/UIElements/Qt4/Query/QtQueryList.hpp

    r07414d7 rf130d4  
    117117  void setSubQuery(Query *_sub){  sub = _sub; }
    118118
    119   virtual void queryEmpty(const char*, std::string){}
    120   virtual void queryBoolean(Parameter<bool> &, const char *, std::string = ""){}
    121   virtual void queryInt(Parameter<int> &, const char *,std::string = ""){}
    122   virtual void queryInts(Parameter<std::vector<int> > &, const char *,std::string = ""){}
    123   virtual void queryUnsignedInt(Parameter<unsigned int> &, const char *,std::string = ""){}
    124   virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const char *,std::string = ""){}
    125   virtual void queryDouble(Parameter<double> &, const char*,std::string = ""){}
    126   virtual void queryDoubles(Parameter<std::vector<double> > &, const char*,std::string = ""){}
    127   virtual void queryString(Parameter<std::string> &, const char*,std::string = ""){}
    128   virtual void queryStrings(Parameter<std::vector<std::string> > &, const char*,std::string = ""){}
    129   virtual void queryAtom(Parameter<const atom *> &, const char*,std::string = ""){}
    130   virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const char*,std::string = ""){}
    131   virtual void queryMolecule(Parameter<const molecule *> &, const char*,std::string = ""){}
    132   virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const char*,std::string = ""){}
    133   virtual void queryVector(Parameter<Vector> &, const char*,std::string = ""){}
    134   virtual void queryVectors(Parameter<std::vector<Vector> > &, const char*,std::string = ""){}
    135   virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const char*, std::string = ""){}
    136   virtual void queryElement(Parameter<const element *> &, const char*,std::string = ""){}
    137   virtual void queryElements(Parameter<std::vector<const element *> > &, const char*,std::string = ""){}
    138   virtual void queryFile(Parameter<boost::filesystem::path> &, const char*,std::string = ""){}
    139   virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const char*,std::string = ""){}
    140   virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*,std::string = ""){}
     119  virtual void queryEmpty(const std::string = "", const std::string = ""){}
     120  virtual void queryBoolean(Parameter<bool> &, const std::string = "", const std::string = ""){}
     121  virtual void queryInt(Parameter<int> &, const std::string = "", const std::string = ""){}
     122  virtual void queryInts(Parameter<std::vector<int> > &, const std::string = "", const std::string = ""){}
     123  virtual void queryUnsignedInt(Parameter<unsigned int> &, const std::string = "", const std::string = ""){}
     124  virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const std::string = "", const std::string = ""){}
     125  virtual void queryDouble(Parameter<double> &, const std::string = "", const std::string = ""){}
     126  virtual void queryDoubles(Parameter<std::vector<double> > &, const std::string = "", const std::string = ""){}
     127  virtual void queryString(Parameter<std::string> &, const std::string = "", const std::string = ""){}
     128  virtual void queryStrings(Parameter<std::vector<std::string> > &, const std::string = "", const std::string = ""){}
     129  virtual void queryAtom(Parameter<const atom *> &, const std::string = "", const std::string = ""){}
     130  virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const std::string = "", const std::string = ""){}
     131  virtual void queryMolecule(Parameter<const molecule *> &, const std::string = "", const std::string = ""){}
     132  virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const std::string = "", const std::string = ""){}
     133  virtual void queryVector(Parameter<Vector> &, const std::string = "", const std::string = ""){}
     134  virtual void queryVectors(Parameter<std::vector<Vector> > &, const std::string = "", const std::string = ""){}
     135  virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const std::string = "", const std::string = ""){}
     136  virtual void queryElement(Parameter<const element *> &, const std::string = "", const std::string = ""){}
     137  virtual void queryElements(Parameter<std::vector<const element *> > &, const std::string = "", const std::string = ""){}
     138  virtual void queryFile(Parameter<boost::filesystem::path> &, const std::string = "", const std::string = ""){}
     139  virtual void queryFiles(Parameter<std::vector< boost::filesystem::path> > &, const std::string = "", const std::string = ""){}
     140  virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const std::string = "", const std::string = ""){}
    141141private:
    142142  QtQueryListUntyped *parent;
  • src/UIElements/Qt4/Query/RandomNumberDistribution_ParametersQtQuery.cpp

    r07414d7 rf130d4  
    4545#include "World.hpp"
    4646
    47 QtDialog::RandomNumberDistribution_ParametersQtQuery::RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    48     QtQuery<RandomNumberDistribution_Parameters>(_param, _title),
     47QtDialog::RandomNumberDistribution_ParametersQtQuery::RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     48    QtQuery<RandomNumberDistribution_Parameters>(_param, _title, _description),
    4949    parent(_parent),
    5050    dialog(_dialog)
     
    5252  thisLayout = new QHBoxLayout();
    5353  titleLabel = new QLabel(QString(getTitle().c_str()));
     54  titleLabel->setToolTip(QString(getDescription().c_str()));
    5455
    5556//  inputBox->insertItem(-1, QString("no distribution"));
  • src/UIElements/Qt4/Query/RealSpaceMatrixQtQuery.cpp

    r07414d7 rf130d4  
    4444#include "World.hpp"
    4545
    46 QtDialog::RealSpaceMatrixQtQuery::RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    47     QtQuery<RealSpaceMatrix>(_param, _title),
     46QtDialog::RealSpaceMatrixQtQuery::RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     47    QtQuery<RealSpaceMatrix>(_param, _title, _description),
    4848    parent(_parent),
    4949    dialog(_dialog)
     
    5151  thisLayout = new QHBoxLayout();
    5252  titleLabel = new QLabel(QString(getTitle().c_str()));
     53  titleLabel->setToolTip(QString(getDescription().c_str()));
    5354
    5455  // init input table
  • src/UIElements/Qt4/Query/StringQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::StringQtQuery::StringQtQuery(Parameter<std::string> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::string>(_param, _title),
     45QtDialog::StringQtQuery::StringQtQuery(Parameter<std::string> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::string>(_param, _title, _description),
    4747    parent(_parent),
    4848    dialog(_dialog)
     
    5353  thisLayout = new QHBoxLayout();
    5454  titleLabel = new QLabel(QString(getTitle().c_str()));
     55  titleLabel->setToolTip(QString(getDescription().c_str()));
    5556  parent->addLayout(thisLayout);
    5657  thisLayout->addWidget(titleLabel);
    57 
    58 
    5958
    6059  if (dynamic_cast<DiscreteValidator<std::string>*>(&_param.getValidator()) != NULL){
  • src/UIElements/Qt4/Query/StringsQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::StringsQtQuery::StringsQtQuery(Parameter<std::vector<std::string> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::vector<std::string> >(_param, _title),
     45QtDialog::StringsQtQuery::StringsQtQuery(Parameter<std::vector<std::string> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::vector<std::string> >(_param, _title, _description),
    4747    QtQueryList<std::string>(_param, _parent, _dialog, temp)
    4848{
    4949  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    50   subQuery = new StringQtQuery(*subParam, _title, thisVLayout, subDialog);
     50  subQuery = new StringQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5151  subDialog->setSubQuery(subQuery);
    5252
  • src/UIElements/Qt4/Query/UnsignedIntQtQuery.cpp

    r07414d7 rf130d4  
    4242
    4343
    44 QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery(Parameter<unsigned int> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    45     QtQuery<unsigned int>(_param, _title),
     44QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery(Parameter<unsigned int> &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     45    QtQuery<unsigned int>(_param, _title, _description),
    4646    parent(_parent),
    4747    dialog(_dialog)
     
    5252  thisLayout = new QHBoxLayout();
    5353  titleLabel = new QLabel(QString(getTitle().c_str()));
     54  titleLabel->setToolTip(QString(getDescription().c_str()));
    5455  inputBox = new QSpinBox();
    5556  inputBox->setValue(temp);
  • src/UIElements/Qt4/Query/UnsignedIntsQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::UnsignedIntsQtQuery::UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<std::vector<unsigned int> >(_param, _title),
     45QtDialog::UnsignedIntsQtQuery::UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<std::vector<unsigned int> >(_param, _title, _description),
    4747    QtQueryList<unsigned int>(_param, _parent, _dialog, temp)
    4848{
    4949  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    50   subQuery = new UnsignedIntQtQuery(*subParam, _title, thisVLayout, subDialog);
     50  subQuery = new UnsignedIntQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5151  subDialog->setSubQuery(subQuery);
    5252
  • src/UIElements/Qt4/Query/VectorQtQuery.cpp

    r07414d7 rf130d4  
    4343
    4444
    45 QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> &_param, std::string title, QBoxLayout *_parent,Dialog *_dialog) :
    46     QtQuery<Vector>(_param, title),
     45QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description, QBoxLayout *_parent,Dialog *_dialog) :
     46    QtQuery<Vector>(_param, _title, _description),
    4747    parent(_parent),
    4848    dialog(_dialog)
     
    5353  mainLayout= new QHBoxLayout();
    5454  titleLabel = new QLabel(QString(getTitle().c_str()));
     55  titleLabel->setToolTip(QString(getDescription().c_str()));
    5556  mainLayout->addWidget(titleLabel);
    5657  subLayout = new QVBoxLayout();
  • src/UIElements/Qt4/Query/VectorsQtQuery.cpp

    r07414d7 rf130d4  
    4444
    4545
    46 QtDialog::VectorsQtQuery::VectorsQtQuery(Parameter<std::vector<Vector> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) :
    47     QtQuery<std::vector<Vector> >(_param, _title),
     46QtDialog::VectorsQtQuery::VectorsQtQuery(Parameter<std::vector<Vector> > &_param, const std::string &_title, const std::string &_description,QBoxLayout *_parent,Dialog *_dialog) :
     47    QtQuery<std::vector<Vector> >(_param, _title, _description),
    4848    QtQueryList<Vector>(_param, _parent, _dialog, temp)
    4949{
    5050  ListQuerySubDialog *subDialog = new ListQuerySubDialog(this);
    51   subQuery = new VectorQtQuery(*subParam, _title, thisVLayout, subDialog);
     51  subQuery = new VectorQtQuery(*subParam, _title, _description, thisVLayout, subDialog);
    5252  subDialog->setSubQuery(subQuery);
    5353
Note: See TracChangeset for help on using the changeset viewer.