Changeset 3731b4 for src/UIElements/QT4


Ignore:
Timestamp:
Jul 22, 2010, 10:02:01 PM (14 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:
c46d63
Parents:
7cd469
Message:

Fixed remainder of Dialog and derived classes for still present _target's.

Location:
src/UIElements/QT4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/QT4/QTDialog.cpp

    r7cd469 r3731b4  
    8585}
    8686
    87 void QTDialog::queryBoolean(char const*, bool*,string){
     87void QTDialog::queryBoolean(char const*,string){
    8888  // TODO
    8989  ASSERT(false, "Not implemented yet");
    9090}
    9191
    92 void QTDialog::queryAtom(char const*, atom**, string){
     92void QTDialog::queryAtom(char const*, string){
    9393  // TODO
    9494  ASSERT(false, "Not implemented yet");
    9595}
    9696
    97 void QTDialog::queryBox(char const*, Box*, string){
     97void QTDialog::queryBox(char const*, string){
    9898  // TODO
    9999  ASSERT(false, "Not implemented yet");
     
    101101
    102102
    103 void QTDialog::queryInt(const char *title, int *target,string)
    104 {
    105   registerQuery(new IntQTQuery(title,target,inputLayout,this));
    106 }
    107 
    108 void QTDialog::queryDouble(const char* title, double* target,string){
    109   registerQuery(new DoubleQTQuery(title,target,inputLayout,this));
    110 }
    111 
    112 void QTDialog::queryString(const char* title, std::string *target,string)
    113 {
    114   registerQuery(new StringQTQuery(title,target,inputLayout,this));
    115 }
    116 
    117 void QTDialog::queryStrings(const char* title, std::vector<std::string> *target,string)
    118 {
    119   registerQuery(new StringsQTQuery(title,target,inputLayout,this));
    120 }
    121 
    122 void QTDialog::queryMolecule(const char *title,molecule **target,string)
    123 {
    124   registerQuery(new MoleculeQTQuery(title,target,inputLayout,this));
    125 }
    126 
    127 void QTDialog::queryVector(const char* title, Vector *target, bool check,string) {
    128   registerQuery(new VectorQTQuery(title,target,check,inputLayout,this));
    129 }
    130 
    131 void QTDialog::queryElement(const char* title, std::vector<element *> *target,string){
    132   registerQuery(new ElementQTQuery(title,target,inputLayout,this));
     103void QTDialog::queryInt(const char *title,string)
     104{
     105  registerQuery(new IntQTQuery(title,inputLayout,this));
     106}
     107
     108void QTDialog::queryDouble(const char* title,string){
     109  registerQuery(new DoubleQTQuery(title,inputLayout,this));
     110}
     111
     112void QTDialog::queryString(const char* title,string)
     113{
     114  registerQuery(new StringQTQuery(title,inputLayout,this));
     115}
     116
     117void QTDialog::queryStrings(const char* title,string)
     118{
     119  registerQuery(new StringsQTQuery(title,inputLayout,this));
     120}
     121
     122void QTDialog::queryMolecule(const char *title,string)
     123{
     124  registerQuery(new MoleculeQTQuery(title,inputLayout,this));
     125}
     126
     127void QTDialog::queryVector(const char* title, bool check,string) {
     128  registerQuery(new VectorQTQuery(title,check,inputLayout,this));
     129}
     130
     131void QTDialog::queryElement(const char* title, string){
     132  registerQuery(new ElementQTQuery(title,inputLayout,this));
    133133}
    134134
    135135/************************** Query Objects *******************************/
    136136
    137 QTDialog::IntQTQuery::IntQTQuery(string _title,int *_target,QBoxLayout *_parent,QTDialog *_dialog) :
    138     Dialog::IntQuery(_title,_target),
     137QTDialog::IntQTQuery::IntQTQuery(string _title,QBoxLayout *_parent,QTDialog *_dialog) :
     138    Dialog::IntQuery(_title),
    139139    parent(_parent)
    140140{
     
    163163}
    164164
    165 QTDialog::DoubleQTQuery::DoubleQTQuery(string title,double *_target,QBoxLayout *_parent,QTDialog *_dialog) :
    166     Dialog::DoubleQuery(title,_target),
     165QTDialog::DoubleQTQuery::DoubleQTQuery(string title,QBoxLayout *_parent,QTDialog *_dialog) :
     166    Dialog::DoubleQuery(title),
    167167    parent(_parent)
    168168{
     
    192192
    193193
    194 QTDialog::StringQTQuery::StringQTQuery(string _title,string *_target,QBoxLayout *_parent,QTDialog *_dialog) :
    195     Dialog::StringQuery(_title,_target),
     194QTDialog::StringQTQuery::StringQTQuery(string _title,QBoxLayout *_parent,QTDialog *_dialog) :
     195    Dialog::StringQuery(_title),
    196196    parent(_parent)
    197197{
     
    219219}
    220220
    221 QTDialog::StringsQTQuery::StringsQTQuery(string _title,vector<string> *_target,QBoxLayout *_parent,QTDialog *_dialog) :
    222     Dialog::StringsQuery(_title,_target),
     221QTDialog::StringsQTQuery::StringsQTQuery(string _title,QBoxLayout *_parent,QTDialog *_dialog) :
     222    Dialog::StringsQuery(_title),
    223223    parent(_parent)
    224224{
     
    257257}
    258258
    259 QTDialog::MoleculeQTQuery::MoleculeQTQuery(string _title, molecule **_target, QBoxLayout *_parent,QTDialog *_dialog) :
    260     Dialog::MoleculeQuery(_title,_target),
     259QTDialog::MoleculeQTQuery::MoleculeQTQuery(string _title, QBoxLayout *_parent,QTDialog *_dialog) :
     260    Dialog::MoleculeQuery(_title),
    261261    parent(_parent)
    262262{
     
    293293}
    294294
    295 QTDialog::VectorQTQuery::VectorQTQuery(std::string title, Vector *_target, bool _check,QBoxLayout *_parent,QTDialog *_dialog) :
    296     Dialog::VectorQuery(title,_target,_check),
     295QTDialog::VectorQTQuery::VectorQTQuery(std::string title, bool _check,QBoxLayout *_parent,QTDialog *_dialog) :
     296    Dialog::VectorQuery(title,_check),
    297297    parent(_parent)
    298298{
     
    329329
    330330
    331 QTDialog::ElementQTQuery::ElementQTQuery(std::string _title, vector<element *> *_target, QBoxLayout *_parent, QTDialog *_dialog) :
    332     Dialog::ElementQuery(_title,_target),
     331QTDialog::ElementQTQuery::ElementQTQuery(std::string _title, QBoxLayout *_parent, QTDialog *_dialog) :
     332    Dialog::ElementQuery(_title),
    333333    parent(_parent)
    334334{
     
    349349  thisLayout->addWidget(inputBox);
    350350
    351   pipe = new ElementQTQueryPipe(&elements,_dialog,inputBox);
     351  pipe = new ElementQTQueryPipe(&tmp,_dialog,inputBox);
    352352  pipe->update(inputBox->currentIndex());
    353353  connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int)));
  • src/UIElements/QT4/QTDialog.hpp

    r7cd469 r3731b4  
    3636
    3737  virtual void queryEmpty(const char*, std::string);
    38   virtual void queryBoolean(const char *, bool *, std::string = "");
    39   virtual void queryInt(const char *, int *,std::string = "");
    40   virtual void queryDouble(const char*,double *,std::string = "");
    41   virtual void queryString(const char*, std::string *,std::string = "");
    42   virtual void queryStrings(const char*, std::vector<std::string> *,std::string = "");
    43   virtual void queryAtom(const char*,atom**,std::string = "");
    44   virtual void queryMolecule(const char*,molecule**,std::string = "");
    45   virtual void queryVector(const char*,Vector *,bool,std::string = "");
    46   virtual void queryBox(const char*,Box*, std::string = "");
    47   virtual void queryElement(const char*,std::vector<element *> *_target,std::string = "");
     38  virtual void queryBoolean(const char *, std::string = "");
     39  virtual void queryInt(const char *,std::string = "");
     40  virtual void queryDouble(const char*,std::string = "");
     41  virtual void queryString(const char*,std::string = "");
     42  virtual void queryStrings(const char*,std::string = "");
     43  virtual void queryAtom(const char*,std::string = "");
     44  virtual void queryMolecule(const char*,std::string = "");
     45  virtual void queryVector(const char*,bool,std::string = "");
     46  virtual void queryBox(const char*, std::string = "");
     47  virtual void queryElement(const char*,std::string = "");
    4848
    4949  virtual bool display();
     
    5454  class IntQTQuery : public Dialog::IntQuery {
    5555    public:
    56       IntQTQuery(std::string _title, int *_target,QBoxLayout *_parent,QTDialog *_dialog);
     56      IntQTQuery(std::string _title,QBoxLayout *_parent,QTDialog *_dialog);
    5757      virtual ~IntQTQuery();
    5858      virtual bool handle();
     
    6868    class DoubleQTQuery : public Dialog::DoubleQuery {
    6969    public:
    70       DoubleQTQuery(std::string title, double *_target,QBoxLayout *_parent,QTDialog *_dialog);
     70      DoubleQTQuery(std::string title,QBoxLayout *_parent,QTDialog *_dialog);
    7171      virtual ~DoubleQTQuery();
    7272      virtual bool handle();
     
    8282    class StringQTQuery : public Dialog::StringQuery {
    8383    public:
    84       StringQTQuery(std::string _title, std::string *_target, QBoxLayout *_parent,QTDialog *_dialog);
     84      StringQTQuery(std::string _title, QBoxLayout *_parent,QTDialog *_dialog);
    8585      virtual ~StringQTQuery();
    8686      virtual bool handle();
     
    9696    class StringsQTQuery : public Dialog::StringsQuery {
    9797    public:
    98       StringsQTQuery(std::string _title, std::vector<std::string> *_target, QBoxLayout *_parent,QTDialog *_dialog);
     98      StringsQTQuery(std::string _title, QBoxLayout *_parent,QTDialog *_dialog);
    9999      virtual ~StringsQTQuery();
    100100      virtual bool handle();
     
    110110    class MoleculeQTQuery : public Dialog::MoleculeQuery {
    111111    public:
    112       MoleculeQTQuery(std::string _title, molecule **_target, QBoxLayout *_parent,QTDialog *_dialog);
     112      MoleculeQTQuery(std::string _title, QBoxLayout *_parent,QTDialog *_dialog);
    113113      virtual ~MoleculeQTQuery();
    114114      virtual bool handle();
     
    124124    class VectorQTQuery : public Dialog::VectorQuery {
    125125    public:
    126       VectorQTQuery(std::string title,Vector *_target,bool _check,QBoxLayout *,QTDialog *);
     126      VectorQTQuery(std::string title,bool _check,QBoxLayout *,QTDialog *);
    127127      virtual ~VectorQTQuery();
    128128      virtual bool handle();
     
    141141    class ElementQTQuery : public Dialog::ElementQuery {
    142142    public:
    143       ElementQTQuery(std::string _title, std::vector<element *> *_target, QBoxLayout *_parent, QTDialog *_dialog);
     143      ElementQTQuery(std::string _title, QBoxLayout *_parent, QTDialog *_dialog);
    144144      virtual ~ElementQTQuery();
    145145      virtual bool handle();
Note: See TracChangeset for help on using the changeset viewer.