Ignore:
Timestamp:
Oct 5, 2013, 9:31:54 AM (11 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.
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.