Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Query/QtQuery.hpp

    r7d9416 r2c5765  
    1616
    1717#include "Qt4/QtDialog.hpp"
    18 #include "Parameters/Parameter.hpp"
    1918
    2019class QHBoxLayout;
     
    3736class AtomsQtQueryPipe;
    3837class BooleanQtQueryPipe;
    39 class RealSpaceMatrixQtQueryPipe;
     38class BoxQtQueryPipe;
    4039class DoubleQtQueryPipe;
    4140class DoublesQtQueryPipe;
     
    5756class QtDialog::AtomQtQuery : public Dialog::AtomQuery {
    5857public:
    59   AtomQtQuery(Parameter<const atom *> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     58  AtomQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    6059  virtual ~AtomQtQuery();
    6160  virtual bool handle();
     
    7170class QtDialog::AtomsQtQuery : public Dialog::AtomsQuery {
    7271public:
    73   AtomsQtQuery(Parameter<std::vector<const atom *> > &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     72  AtomsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    7473  virtual ~AtomsQtQuery();
    7574  virtual bool handle();
     
    8685class QtDialog::BooleanQtQuery : public Dialog::BooleanQuery {
    8786public:
    88   BooleanQtQuery(Parameter<bool> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
     87  BooleanQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    8988  virtual ~BooleanQtQuery();
    9089  virtual bool handle();
     
    9897};
    9998
    100 class QtDialog::RealSpaceMatrixQtQuery : public Dialog::RealSpaceMatrixQuery {
    101 public:
    102   RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    103   virtual ~RealSpaceMatrixQtQuery();
     99class QtDialog::BoxQtQuery : public Dialog::BoxQuery {
     100public:
     101  BoxQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     102  virtual ~BoxQtQuery();
    104103  virtual bool handle();
    105104private:
     
    109108  QTableWidget *inputTable;
    110109
    111   RealSpaceMatrixQtQueryPipe *pipe;
     110  BoxQtQueryPipe *pipe;
    112111};
    113112
    114113class QtDialog::DoubleQtQuery : public Dialog::DoubleQuery {
    115114public:
    116   DoubleQtQuery(Parameter<double> &, std::string title,QBoxLayout *_parent,QtDialog *_dialog);
     115  DoubleQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog);
    117116  virtual ~DoubleQtQuery();
    118117  virtual bool handle();
     
    128127class QtDialog::DoublesQtQuery : public Dialog::DoublesQuery {
    129128public:
    130   DoublesQtQuery(Parameter<std::vector<double> > &, std::string title,QBoxLayout *_parent,QtDialog *_dialog);
     129  DoublesQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog);
    131130  virtual ~DoublesQtQuery();
    132131  virtual bool handle();
     
    142141class QtDialog::ElementQtQuery : public Dialog::ElementQuery {
    143142public:
    144   ElementQtQuery(Parameter<const element *> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
     143  ElementQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    145144  virtual ~ElementQtQuery();
    146145  virtual bool handle();
     
    156155class QtDialog::ElementsQtQuery : public Dialog::ElementsQuery {
    157156public:
    158   ElementsQtQuery(Parameter<std::vector<const element *> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
     157  ElementsQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    159158  virtual ~ElementsQtQuery();
    160159  virtual bool handle();
     
    183182class QtDialog::FileQtQuery : public Dialog::FileQuery {
    184183public:
    185   FileQtQuery(Parameter<boost::filesystem::path> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
     184  FileQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
    186185  virtual ~FileQtQuery();
    187186  virtual bool handle();
     
    196195};
    197196
    198 class QtDialog::IntQtQuery : public Dialog::IntQuery {
    199 public:
    200   IntQtQuery(Parameter<int> &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
    201   virtual ~IntQtQuery();
    202   virtual bool handle();
    203 private:
    204   QBoxLayout *parent;
    205   QBoxLayout *thisLayout;
    206   QLabel *titleLabel;
    207   QSpinBox *inputBox;
    208 
    209   IntQtQueryPipe *pipe;
    210 };
    211 
    212 class QtDialog::IntsQtQuery : public Dialog::IntsQuery {
    213 public:
    214   IntsQtQuery(Parameter<std::vector<int> > &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
    215   virtual ~IntsQtQuery();
     197class QtDialog::FilesQtQuery : public Dialog::FilesQuery {
     198public:
     199  FilesQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
     200  virtual ~FilesQtQuery();
    216201  virtual bool handle();
    217202  void IntegerEntered(const QString&);
     
    224209  QLabel *titleLabel;
    225210
    226   QtQueryListPipe<int> *pipe;
    227 };
    228 
    229 class QtDialog::MoleculeQtQuery : public Dialog::MoleculeQuery {
    230 public:
    231   MoleculeQtQuery(Parameter<const molecule *> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    232   virtual ~MoleculeQtQuery();
    233   virtual bool handle();
    234 private:
    235   QBoxLayout *parent;
    236   QBoxLayout *thisLayout;
    237   QLabel *titleLabel;
    238   QComboBox *inputBox;
    239 
    240   MoleculeQtQueryPipe *pipe;
    241 };
    242 
    243 class QtDialog::MoleculesQtQuery : public Dialog::MoleculesQuery {
    244 public:
    245   MoleculesQtQuery(Parameter<std::vector<const molecule *> > &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    246   virtual ~MoleculesQtQuery();
    247   virtual bool handle();
    248 private:
    249   QBoxLayout *parent;
    250   QBoxLayout *thisLayout;
    251   QLabel *titleLabel;
    252   QComboBox *inputBox;
    253 
    254   MoleculesQtQueryPipe *pipe;
    255 };
    256 
    257 class QtDialog::StringQtQuery : public Dialog::StringQuery {
    258 public:
    259   StringQtQuery(Parameter<std::string> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    260   virtual ~StringQtQuery();
    261   virtual bool handle();
    262 private:
    263   QBoxLayout *parent;
    264   QBoxLayout *thisLayout;
    265   QLabel *titleLabel;
    266   QLineEdit *inputBox;
    267 
    268   StringQtQueryPipe *pipe;
    269 };
    270 
    271 class QtDialog::StringsQtQuery : public Dialog::StringsQuery {
    272 public:
    273   StringsQtQuery(Parameter<std::vector<std::string> > &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
    274   virtual ~StringsQtQuery();
    275   virtual bool handle();
    276 private:
    277   QBoxLayout *parent;
    278   QBoxLayout *thisLayout;
    279   QLabel *titleLabel;
    280   QLineEdit *inputBox;
    281 
    282   QtQueryListPipe<std::string> *pipe;
    283 };
    284 
    285 class QtDialog::UnsignedIntQtQuery : public Dialog::UnsignedIntQuery {
    286 public:
    287   UnsignedIntQtQuery(Parameter<unsigned int> &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
    288   virtual ~UnsignedIntQtQuery();
     211  QtQueryListPipe<boost::filesystem::path> *pipe;
     212};
     213
     214class QtDialog::IntQtQuery : public Dialog::IntQuery {
     215public:
     216  IntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
     217  virtual ~IntQtQuery();
    289218  virtual bool handle();
    290219private:
     
    294223  QSpinBox *inputBox;
    295224
    296   UnsignedIntQtQueryPipe *pipe;
    297 };
    298 
    299 class QtDialog::UnsignedIntsQtQuery : public Dialog::UnsignedIntsQuery {
    300 public:
    301   UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
    302   virtual ~UnsignedIntsQtQuery();
     225  IntQtQueryPipe *pipe;
     226};
     227
     228class QtDialog::IntsQtQuery : public Dialog::IntsQuery {
     229public:
     230  IntsQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
     231  virtual ~IntsQtQuery();
    303232  virtual bool handle();
    304233  void IntegerEntered(const QString&);
     
    311240  QLabel *titleLabel;
    312241
     242  QtQueryListPipe<int> *pipe;
     243};
     244
     245class QtDialog::MoleculeQtQuery : public Dialog::MoleculeQuery {
     246public:
     247  MoleculeQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     248  virtual ~MoleculeQtQuery();
     249  virtual bool handle();
     250private:
     251  QBoxLayout *parent;
     252  QBoxLayout *thisLayout;
     253  QLabel *titleLabel;
     254  QComboBox *inputBox;
     255
     256  MoleculeQtQueryPipe *pipe;
     257};
     258
     259class QtDialog::MoleculesQtQuery : public Dialog::MoleculesQuery {
     260public:
     261  MoleculesQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     262  virtual ~MoleculesQtQuery();
     263  virtual bool handle();
     264private:
     265  QBoxLayout *parent;
     266  QBoxLayout *thisLayout;
     267  QLabel *titleLabel;
     268  QComboBox *inputBox;
     269
     270  MoleculesQtQueryPipe *pipe;
     271};
     272
     273class QtDialog::StringQtQuery : public Dialog::StringQuery {
     274public:
     275  StringQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     276  virtual ~StringQtQuery();
     277  virtual bool handle();
     278private:
     279  QBoxLayout *parent;
     280  QBoxLayout *thisLayout;
     281  QLabel *titleLabel;
     282  QLineEdit *inputBox;
     283
     284  StringQtQueryPipe *pipe;
     285};
     286
     287class QtDialog::StringsQtQuery : public Dialog::StringsQuery {
     288public:
     289  StringsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
     290  virtual ~StringsQtQuery();
     291  virtual bool handle();
     292private:
     293  QBoxLayout *parent;
     294  QBoxLayout *thisLayout;
     295  QLabel *titleLabel;
     296  QLineEdit *inputBox;
     297
     298  QtQueryListPipe<std::string> *pipe;
     299};
     300
     301class QtDialog::UnsignedIntQtQuery : public Dialog::UnsignedIntQuery {
     302public:
     303  UnsignedIntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
     304  virtual ~UnsignedIntQtQuery();
     305  virtual bool handle();
     306private:
     307  QBoxLayout *parent;
     308  QBoxLayout *thisLayout;
     309  QLabel *titleLabel;
     310  QSpinBox *inputBox;
     311
     312  UnsignedIntQtQueryPipe *pipe;
     313};
     314
     315class QtDialog::UnsignedIntsQtQuery : public Dialog::UnsignedIntsQuery {
     316public:
     317  UnsignedIntsQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
     318  virtual ~UnsignedIntsQtQuery();
     319  virtual bool handle();
     320  void IntegerEntered(const QString&);
     321  void IntegerSelected();
     322  void AddInteger();
     323  void RemoveInteger();
     324private:
     325  QBoxLayout *parent;
     326  QBoxLayout *thisLayout;
     327  QLabel *titleLabel;
     328
    313329  QtQueryListPipe<unsigned int> *pipe;
    314330};
     
    317333class QtDialog::VectorQtQuery : public Dialog::VectorQuery {
    318334public:
    319   VectorQtQuery(Parameter<Vector> &, std::string title,bool _check,QBoxLayout *,QtDialog *);
     335  VectorQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *);
    320336  virtual ~VectorQtQuery();
    321337  virtual bool handle();
     
    336352class QtDialog::VectorsQtQuery : public Dialog::VectorsQuery {
    337353public:
    338   VectorsQtQuery(Parameter<std::vector<Vector> > &, std::string title,bool _check,QBoxLayout *,QtDialog *);
     354  VectorsQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *);
    339355  virtual ~VectorsQtQuery();
    340356  virtual bool handle();
     
    353369class QtDialog::RandomNumberDistribution_ParametersQtQuery : public Dialog::RandomNumberDistribution_ParametersQuery {
    354370public:
    355   RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title,QBoxLayout *,QtDialog *);
     371  RandomNumberDistribution_ParametersQtQuery(std::string title,QBoxLayout *,QtDialog *);
    356372  virtual ~RandomNumberDistribution_ParametersQtQuery();
    357373  virtual bool handle();
Note: See TracChangeset for help on using the changeset viewer.