Ignore:
Timestamp:
Dec 4, 2010, 11:42:39 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:
a5ddf0
Parents:
738ae1
git-author:
Frederik Heber <heber@…> (11/08/10 13:22:05)
git-committer:
Frederik Heber <heber@…> (12/04/10 23:42:39)
Message:

Moved declaration for all QtQuery.. into own header file.

  • Query module just need this header file.
  • QtDialog declaration just has forward declarations.
File:
1 edited

Legend:

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

    r738ae1 r308aa4  
    3131class Matrix;
    3232
    33 // Forward declarations for plumbing
    34 template<typename T> class QtQueryListPipe;
    35 class BooleanQtQueryPipe;
    36 class BoxQtQueryPipe;
    37 class StringQtQueryPipe;
    38 class StringsQtQueryPipe;
    39 class IntQtQueryPipe;
    40 class DoubleQtQueryPipe;
    41 class DoublesQtQueryPipe;
    42 class AtomQtQueryPipe;
    43 class AtomsQtQueryPipe;
    44 class MoleculeQtQueryPipe;
    45 class MoleculesQtQueryPipe;
    46 class EmptyQtQueryPipe;
    47 class ElementQtQueryPipe;
    48 class ElementsQtQueryPipe;
    49 class VectorQtQueryPipe;
    50 class VectorsQtQueryPipe;
    51 class FileQtQueryPipe;
    5233
    5334class QtDialog : public QDialog, public Dialog
     
    8263
    8364protected:
    84   class IntQtQuery : public Dialog::IntQuery {
    85     public:
    86       IntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
    87       virtual ~IntQtQuery();
    88       virtual bool handle();
    89     private:
    90       QBoxLayout *parent;
    91       QBoxLayout *thisLayout;
    92       QLabel *titleLabel;
    93       QSpinBox *inputBox;
    94 
    95       IntQtQueryPipe *pipe;
    96     };
    97 
    98   class IntsQtQuery : public Dialog::IntsQuery {
    99     public:
    100       IntsQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
    101       virtual ~IntsQtQuery();
    102       virtual bool handle();
    103       void IntegerEntered(const QString&);
    104       void IntegerSelected();
    105       void AddInteger();
    106       void RemoveInteger();
    107     private:
    108       QBoxLayout *parent;
    109       QBoxLayout *thisLayout;
    110       QLabel *titleLabel;
    111 
    112       QtQueryListPipe<int> *pipe;
    113     };
    114 
    115     class DoubleQtQuery : public Dialog::DoubleQuery {
    116     public:
    117       DoubleQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog);
    118       virtual ~DoubleQtQuery();
    119       virtual bool handle();
    120     private:
    121       QBoxLayout *parent;
    122       QBoxLayout *thisLayout;
    123       QLabel *titleLabel;
    124       QDoubleSpinBox *inputBox;
    125 
    126       DoubleQtQueryPipe *pipe;
    127     };
    128 
    129     class DoublesQtQuery : public Dialog::DoublesQuery {
    130     public:
    131       DoublesQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog);
    132       virtual ~DoublesQtQuery();
    133       virtual bool handle();
    134     private:
    135       QBoxLayout *parent;
    136       QBoxLayout *thisLayout;
    137       QLabel *titleLabel;
    138       QDoubleSpinBox *inputBox;
    139 
    140       QtQueryListPipe<double> *pipe;
    141     };
    142 
    143     class StringQtQuery : public Dialog::StringQuery {
    144     public:
    145       StringQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    146       virtual ~StringQtQuery();
    147       virtual bool handle();
    148     private:
    149       QBoxLayout *parent;
    150       QBoxLayout *thisLayout;
    151       QLabel *titleLabel;
    152       QLineEdit *inputBox;
    153 
    154       StringQtQueryPipe *pipe;
    155     };
    156 
    157     class StringsQtQuery : public Dialog::StringsQuery {
    158     public:
    159       StringsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    160       virtual ~StringsQtQuery();
    161       virtual bool handle();
    162     private:
    163       QBoxLayout *parent;
    164       QBoxLayout *thisLayout;
    165       QLabel *titleLabel;
    166       QLineEdit *inputBox;
    167 
    168       QtQueryListPipe<std::string> *pipe;
    169     };
    170 
    171     class BoxQtQuery : public Dialog::BoxQuery {
    172     public:
    173       BoxQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    174       virtual ~BoxQtQuery();
    175       virtual bool handle();
    176     private:
    177       QBoxLayout *parent;
    178       QBoxLayout *thisLayout;
    179       QLabel *titleLabel;
    180       QTableWidget *inputTable;
    181 
    182       BoxQtQueryPipe *pipe;
    183     };
    184 
    185     class AtomQtQuery : public Dialog::AtomQuery {
    186     public:
    187       AtomQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    188       virtual ~AtomQtQuery();
    189       virtual bool handle();
    190     private:
    191       QBoxLayout *parent;
    192       QBoxLayout *thisLayout;
    193       QLabel *titleLabel;
    194       QComboBox *inputBox;
    195 
    196       AtomQtQueryPipe *pipe;
    197     };
    198 
    199     class AtomsQtQuery : public Dialog::AtomsQuery {
    200     public:
    201       AtomsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    202       virtual ~AtomsQtQuery();
    203       virtual bool handle();
    204     private:
    205       QBoxLayout *parent;
    206       QBoxLayout *thisLayout;
    207       QLabel *titleLabel;
    208       QLabel *inputLabel;
    209       QListWidget *inputList;
    210 
    211       AtomsQtQueryPipe *pipe;
    212     };
    213 
    214     class MoleculeQtQuery : public Dialog::MoleculeQuery {
    215     public:
    216       MoleculeQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    217       virtual ~MoleculeQtQuery();
    218       virtual bool handle();
    219     private:
    220       QBoxLayout *parent;
    221       QBoxLayout *thisLayout;
    222       QLabel *titleLabel;
    223       QComboBox *inputBox;
    224 
    225       MoleculeQtQueryPipe *pipe;
    226     };
    227 
    228     class MoleculesQtQuery : public Dialog::MoleculesQuery {
    229     public:
    230       MoleculesQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    231       virtual ~MoleculesQtQuery();
    232       virtual bool handle();
    233     private:
    234       QBoxLayout *parent;
    235       QBoxLayout *thisLayout;
    236       QLabel *titleLabel;
    237       QComboBox *inputBox;
    238 
    239       MoleculesQtQueryPipe *pipe;
    240     };
    241 
    242     class VectorQtQuery : public Dialog::VectorQuery {
    243     public:
    244       VectorQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *);
    245       virtual ~VectorQtQuery();
    246       virtual bool handle();
    247     private:
    248       QBoxLayout *parent;
    249       QBoxLayout *mainLayout;
    250       QLabel *titleLabel;
    251       QBoxLayout *subLayout;
    252       QBoxLayout *coordLayout;
    253       QLabel *coordLabel;
    254       QDoubleSpinBox *coordInput;
    255 
    256       VectorQtQueryPipe *pipe;
    257     };
    258 
    259     class VectorsQtQuery : public Dialog::VectorsQuery {
    260     public:
    261       VectorsQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *);
    262       virtual ~VectorsQtQuery();
    263       virtual bool handle();
    264     private:
    265       QBoxLayout *parent;
    266       QBoxLayout *mainLayout;
    267       QLabel *titleLabel;
    268       QBoxLayout *subLayout;
    269       QBoxLayout *coordLayout;
    270       QLabel *coordLabel;
    271       QDoubleSpinBox *coordInput;
    272 
    273       VectorsQtQueryPipe *pipe;
    274     };
    275 
    276     class EmptyQtQuery : public Dialog::EmptyQuery {
    277     public:
    278       EmptyQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    279       virtual ~EmptyQtQuery();
    280       virtual bool handle();
    281     private:
    282       QBoxLayout *parent;
    283       QBoxLayout *thisLayout;
    284       QLabel *titleLabel;
    285 
    286       EmptyQtQueryPipe *pipe;
    287     };
    288 
    289     class BooleanQtQuery : public Dialog::BooleanQuery {
    290     public:
    291       BooleanQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    292       virtual ~BooleanQtQuery();
    293       virtual bool handle();
    294     private:
    295       QBoxLayout *parent;
    296       QBoxLayout *thisLayout;
    297       QLabel *titleLabel;
    298       QComboBox *booleanComboBox;
    299 
    300       BooleanQtQueryPipe *pipe;
    301     };
    302 
    303     class ElementQtQuery : public Dialog::ElementQuery {
    304     public:
    305       ElementQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    306       virtual ~ElementQtQuery();
    307       virtual bool handle();
    308     private:
    309       QBoxLayout *parent;
    310       QBoxLayout *thisLayout;
    311       QLabel *titleLabel;
    312       QComboBox *inputBox;
    313 
    314       ElementQtQueryPipe *pipe;
    315     };
    316 
    317     class ElementsQtQuery : public Dialog::ElementsQuery {
    318     public:
    319       ElementsQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    320       virtual ~ElementsQtQuery();
    321       virtual bool handle();
    322     private:
    323       QBoxLayout *parent;
    324       QBoxLayout *thisLayout;
    325       QLabel *titleLabel;
    326       QComboBox *inputBox;
    327 
    328       ElementsQtQueryPipe *pipe;
    329     };
    330 
    331     class FileQtQuery : public Dialog::FileQuery {
    332     public:
    333       FileQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    334       virtual ~FileQtQuery();
    335       virtual bool handle();
    336     private:
    337       QBoxLayout *parent;
    338       QBoxLayout *thisLayout;
    339       QLabel *filenameLabel;
    340       QLineEdit *filenameLineEdit;
    341       QPushButton *filedialogButton;
    342 
    343       FileQtQueryPipe *pipe;
    344     };
     65  class AtomQtQuery;
     66  class AtomsQtQuery;
     67  class BooleanQtQuery;
     68  class BoxQtQuery;
     69  class DoubleQtQuery;
     70  class DoublesQtQuery;
     71  class ElementQtQuery;
     72  class ElementsQtQuery;
     73  class EmptyQtQuery;
     74  class FileQtQuery;
     75  class IntQtQuery;
     76  class IntsQtQuery;
     77  class MoleculeQtQuery;
     78  class MoleculesQtQuery;
     79  class StringQtQuery;
     80  class StringsQtQuery;
     81  class VectorQtQuery;
     82  class VectorsQtQuery;
    34583
    34684private:
Note: See TracChangeset for help on using the changeset viewer.