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, 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/Query
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • 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.