- File:
-
- 1 edited
-
src/UIElements/Qt4/Query/QtQuery.hpp (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Query/QtQuery.hpp
r7d9416 r2c5765 16 16 17 17 #include "Qt4/QtDialog.hpp" 18 #include "Parameters/Parameter.hpp"19 18 20 19 class QHBoxLayout; … … 37 36 class AtomsQtQueryPipe; 38 37 class BooleanQtQueryPipe; 39 class RealSpaceMatrixQtQueryPipe;38 class BoxQtQueryPipe; 40 39 class DoubleQtQueryPipe; 41 40 class DoublesQtQueryPipe; … … 57 56 class QtDialog::AtomQtQuery : public Dialog::AtomQuery { 58 57 public: 59 AtomQtQuery( Parameter<const atom *> &,std::string _title, QBoxLayout *_parent,QtDialog *_dialog);58 AtomQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 60 59 virtual ~AtomQtQuery(); 61 60 virtual bool handle(); … … 71 70 class QtDialog::AtomsQtQuery : public Dialog::AtomsQuery { 72 71 public: 73 AtomsQtQuery( Parameter<std::vector<const atom *> > &,std::string _title, QBoxLayout *_parent,QtDialog *_dialog);72 AtomsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 74 73 virtual ~AtomsQtQuery(); 75 74 virtual bool handle(); … … 86 85 class QtDialog::BooleanQtQuery : public Dialog::BooleanQuery { 87 86 public: 88 BooleanQtQuery( Parameter<bool> &,std::string _title, QBoxLayout *_parent, QtDialog *_dialog);87 BooleanQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 89 88 virtual ~BooleanQtQuery(); 90 89 virtual bool handle(); … … 98 97 }; 99 98 100 class QtDialog:: RealSpaceMatrixQtQuery : public Dialog::RealSpaceMatrixQuery {101 public: 102 RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &,std::string _title, QBoxLayout *_parent,QtDialog *_dialog);103 virtual ~ RealSpaceMatrixQtQuery();99 class QtDialog::BoxQtQuery : public Dialog::BoxQuery { 100 public: 101 BoxQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 102 virtual ~BoxQtQuery(); 104 103 virtual bool handle(); 105 104 private: … … 109 108 QTableWidget *inputTable; 110 109 111 RealSpaceMatrixQtQueryPipe *pipe;110 BoxQtQueryPipe *pipe; 112 111 }; 113 112 114 113 class QtDialog::DoubleQtQuery : public Dialog::DoubleQuery { 115 114 public: 116 DoubleQtQuery( Parameter<double> &,std::string title,QBoxLayout *_parent,QtDialog *_dialog);115 DoubleQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog); 117 116 virtual ~DoubleQtQuery(); 118 117 virtual bool handle(); … … 128 127 class QtDialog::DoublesQtQuery : public Dialog::DoublesQuery { 129 128 public: 130 DoublesQtQuery( Parameter<std::vector<double> > &,std::string title,QBoxLayout *_parent,QtDialog *_dialog);129 DoublesQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog); 131 130 virtual ~DoublesQtQuery(); 132 131 virtual bool handle(); … … 142 141 class QtDialog::ElementQtQuery : public Dialog::ElementQuery { 143 142 public: 144 ElementQtQuery( Parameter<const element *> &,std::string _title, QBoxLayout *_parent, QtDialog *_dialog);143 ElementQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 145 144 virtual ~ElementQtQuery(); 146 145 virtual bool handle(); … … 156 155 class QtDialog::ElementsQtQuery : public Dialog::ElementsQuery { 157 156 public: 158 ElementsQtQuery( Parameter<std::vector<const element *> > &,std::string _title, QBoxLayout *_parent, QtDialog *_dialog);157 ElementsQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 159 158 virtual ~ElementsQtQuery(); 160 159 virtual bool handle(); … … 183 182 class QtDialog::FileQtQuery : public Dialog::FileQuery { 184 183 public: 185 FileQtQuery( Parameter<boost::filesystem::path> &,std::string _title, QBoxLayout *_parent, QtDialog *_dialog);184 FileQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 186 185 virtual ~FileQtQuery(); 187 186 virtual bool handle(); … … 196 195 }; 197 196 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(); 197 class QtDialog::FilesQtQuery : public Dialog::FilesQuery { 198 public: 199 FilesQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 200 virtual ~FilesQtQuery(); 216 201 virtual bool handle(); 217 202 void IntegerEntered(const QString&); … … 224 209 QLabel *titleLabel; 225 210 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 214 class QtDialog::IntQtQuery : public Dialog::IntQuery { 215 public: 216 IntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 217 virtual ~IntQtQuery(); 289 218 virtual bool handle(); 290 219 private: … … 294 223 QSpinBox *inputBox; 295 224 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 228 class QtDialog::IntsQtQuery : public Dialog::IntsQuery { 229 public: 230 IntsQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 231 virtual ~IntsQtQuery(); 303 232 virtual bool handle(); 304 233 void IntegerEntered(const QString&); … … 311 240 QLabel *titleLabel; 312 241 242 QtQueryListPipe<int> *pipe; 243 }; 244 245 class QtDialog::MoleculeQtQuery : public Dialog::MoleculeQuery { 246 public: 247 MoleculeQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 248 virtual ~MoleculeQtQuery(); 249 virtual bool handle(); 250 private: 251 QBoxLayout *parent; 252 QBoxLayout *thisLayout; 253 QLabel *titleLabel; 254 QComboBox *inputBox; 255 256 MoleculeQtQueryPipe *pipe; 257 }; 258 259 class QtDialog::MoleculesQtQuery : public Dialog::MoleculesQuery { 260 public: 261 MoleculesQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 262 virtual ~MoleculesQtQuery(); 263 virtual bool handle(); 264 private: 265 QBoxLayout *parent; 266 QBoxLayout *thisLayout; 267 QLabel *titleLabel; 268 QComboBox *inputBox; 269 270 MoleculesQtQueryPipe *pipe; 271 }; 272 273 class QtDialog::StringQtQuery : public Dialog::StringQuery { 274 public: 275 StringQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 276 virtual ~StringQtQuery(); 277 virtual bool handle(); 278 private: 279 QBoxLayout *parent; 280 QBoxLayout *thisLayout; 281 QLabel *titleLabel; 282 QLineEdit *inputBox; 283 284 StringQtQueryPipe *pipe; 285 }; 286 287 class QtDialog::StringsQtQuery : public Dialog::StringsQuery { 288 public: 289 StringsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 290 virtual ~StringsQtQuery(); 291 virtual bool handle(); 292 private: 293 QBoxLayout *parent; 294 QBoxLayout *thisLayout; 295 QLabel *titleLabel; 296 QLineEdit *inputBox; 297 298 QtQueryListPipe<std::string> *pipe; 299 }; 300 301 class QtDialog::UnsignedIntQtQuery : public Dialog::UnsignedIntQuery { 302 public: 303 UnsignedIntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 304 virtual ~UnsignedIntQtQuery(); 305 virtual bool handle(); 306 private: 307 QBoxLayout *parent; 308 QBoxLayout *thisLayout; 309 QLabel *titleLabel; 310 QSpinBox *inputBox; 311 312 UnsignedIntQtQueryPipe *pipe; 313 }; 314 315 class QtDialog::UnsignedIntsQtQuery : public Dialog::UnsignedIntsQuery { 316 public: 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(); 324 private: 325 QBoxLayout *parent; 326 QBoxLayout *thisLayout; 327 QLabel *titleLabel; 328 313 329 QtQueryListPipe<unsigned int> *pipe; 314 330 }; … … 317 333 class QtDialog::VectorQtQuery : public Dialog::VectorQuery { 318 334 public: 319 VectorQtQuery( Parameter<Vector> &,std::string title,bool _check,QBoxLayout *,QtDialog *);335 VectorQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *); 320 336 virtual ~VectorQtQuery(); 321 337 virtual bool handle(); … … 336 352 class QtDialog::VectorsQtQuery : public Dialog::VectorsQuery { 337 353 public: 338 VectorsQtQuery( Parameter<std::vector<Vector> > &,std::string title,bool _check,QBoxLayout *,QtDialog *);354 VectorsQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *); 339 355 virtual ~VectorsQtQuery(); 340 356 virtual bool handle(); … … 353 369 class QtDialog::RandomNumberDistribution_ParametersQtQuery : public Dialog::RandomNumberDistribution_ParametersQuery { 354 370 public: 355 RandomNumberDistribution_ParametersQtQuery( Parameter<RandomNumberDistribution_Parameters> &,std::string title,QBoxLayout *,QtDialog *);371 RandomNumberDistribution_ParametersQtQuery(std::string title,QBoxLayout *,QtDialog *); 356 372 virtual ~RandomNumberDistribution_ParametersQtQuery(); 357 373 virtual bool handle();
Note:
See TracChangeset
for help on using the changeset viewer.
