Changes in src/UIElements/Dialog.hpp [7d9416:2c5765]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.hpp
r7d9416 r2c5765 20 20 21 21 #include <boost/filesystem.hpp> 22 #include " LinearAlgebra/RealSpaceMatrix.hpp"22 #include "Box.hpp" 23 23 #include "LinearAlgebra/Vector.hpp" 24 24 #include "RandomNumbers/RandomNumberDistribution_Parameters.hpp" 25 #include "Parameters/Parameter.hpp"26 25 27 26 class atom; 28 class RealSpaceMatrix;27 class Box; 29 28 class element; 30 29 class molecule; … … 156 155 virtual ~Dialog(); 157 156 158 template <class T> void query( Parameter<T> &,const char *, std::string = "");157 template <class T> void query(const char *, std::string = ""); 159 158 160 159 virtual void queryEmpty(const char *, std::string = "")=0; 161 virtual void queryBoolean(Parameter<bool> &, const char *, std::string = "")=0; 162 virtual void queryInt(Parameter<int> &, const char *, std::string = "")=0; 163 virtual void queryInts(Parameter<std::vector<int> > &, const char *, std::string = "")=0; 164 virtual void queryUnsignedInt(Parameter<unsigned int> &, const char *, std::string = "")=0; 165 virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const char *, std::string = "")=0; 166 virtual void queryDouble(Parameter<double> &, const char*, std::string = "")=0; 167 virtual void queryDoubles(Parameter<std::vector<double> > &, const char*, std::string = "")=0; 168 virtual void queryString(Parameter<std::string> &, const char*, std::string = "")=0; 169 virtual void queryStrings(Parameter<std::vector<std::string> > &, const char*, std::string = "")=0; 170 virtual void queryAtom(Parameter<const atom *> &, const char*,std::string = "")=0; 171 virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const char*,std::string = "")=0; 172 virtual void queryMolecule(Parameter<const molecule *> &, const char*, std::string = "")=0; 173 virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const char*, std::string = "")=0; 174 virtual void queryVector(Parameter<Vector> &, const char*,bool, std::string = "")=0; 175 virtual void queryVectors(Parameter<std::vector<Vector> > &, const char*,bool, std::string = "")=0; 176 virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const char*, std::string = "")=0; 177 virtual void queryElement(Parameter<const element *> &, const char*, std::string = "")=0; 178 virtual void queryElements(Parameter<std::vector<const element *> > &, const char*, std::string = "")=0; 179 virtual void queryFile(Parameter<boost::filesystem::path> &, const char*, std::string = "")=0; 180 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const char*, std::string = "")=0; 160 virtual void queryBoolean(const char *, std::string = "")=0; 161 virtual void queryInt(const char *, std::string = "")=0; 162 virtual void queryInts(const char *, std::string = "")=0; 163 virtual void queryUnsignedInt(const char *, std::string = "")=0; 164 virtual void queryUnsignedInts(const char *, std::string = "")=0; 165 virtual void queryDouble(const char*, std::string = "")=0; 166 virtual void queryDoubles(const char*, std::string = "")=0; 167 virtual void queryString(const char*, std::string = "")=0; 168 virtual void queryStrings(const char*, std::string = "")=0; 169 virtual void queryAtom(const char*,std::string = "")=0; 170 virtual void queryAtoms(const char*,std::string = "")=0; 171 virtual void queryMolecule(const char*, std::string = "")=0; 172 virtual void queryMolecules(const char*, std::string = "")=0; 173 virtual void queryVector(const char*,bool, std::string = "")=0; 174 virtual void queryVectors(const char*,bool, std::string = "")=0; 175 virtual void queryBox(const char*, std::string = "")=0; 176 virtual void queryElement(const char*, std::string = "")=0; 177 virtual void queryElements(const char*, std::string = "")=0; 178 virtual void queryFile(const char*, std::string = "")=0; 179 virtual void queryFiles(const char*, std::string = "")=0; 180 virtual void queryRandomNumberDistribution_Parameters(const char*, std::string = "")=0; 181 181 182 182 virtual bool display(); … … 265 265 class BooleanQuery : public Query { 266 266 public: 267 BooleanQuery( Parameter<bool> ¶m,std::string title, std::string _description = "");267 BooleanQuery(std::string title, std::string _description = ""); 268 268 virtual ~BooleanQuery(); 269 269 virtual bool handle()=0; 270 270 virtual void setResult(); 271 271 protected: 272 Parameter<bool> &tmp;272 bool tmp; 273 273 }; 274 274 275 275 class IntQuery : public Query { 276 276 public: 277 IntQuery( Parameter<int> ¶m,std::string title, std::string _description = "");277 IntQuery(std::string title, std::string _description = ""); 278 278 virtual ~IntQuery(); 279 279 virtual bool handle()=0; 280 280 virtual void setResult(); 281 281 protected: 282 Parameter<int> &tmp;282 int tmp; 283 283 }; 284 284 285 285 class IntsQuery : public Query { 286 286 public: 287 IntsQuery( Parameter<std::vector<int> > &,std::string title, std::string _description = "");287 IntsQuery(std::string title, std::string _description = ""); 288 288 virtual ~IntsQuery(); 289 289 virtual bool handle()=0; … … 291 291 protected: 292 292 int temp; 293 Parameter<std::vector<int> > &tmp;293 std::vector<int> tmp; 294 294 }; 295 295 296 296 class UnsignedIntQuery : public Query { 297 297 public: 298 UnsignedIntQuery( Parameter<unsigned int> &,std::string title, std::string _description = "");298 UnsignedIntQuery(std::string title, std::string _description = ""); 299 299 virtual ~UnsignedIntQuery(); 300 300 virtual bool handle()=0; 301 301 virtual void setResult(); 302 302 protected: 303 Parameter<unsigned int> &tmp;303 unsigned int tmp; 304 304 }; 305 305 306 306 class UnsignedIntsQuery : public Query { 307 307 public: 308 UnsignedIntsQuery( Parameter<std::vector<unsigned int> > &,std::string title, std::string _description = "");308 UnsignedIntsQuery(std::string title, std::string _description = ""); 309 309 virtual ~UnsignedIntsQuery(); 310 310 virtual bool handle()=0; … … 312 312 protected: 313 313 unsigned int temp; 314 Parameter<std::vector<unsigned int> > &tmp;314 std::vector<unsigned int> tmp; 315 315 }; 316 316 317 317 class DoubleQuery : public Query { 318 318 public: 319 DoubleQuery( Parameter<double> &,std::string title, std::string _description = "");319 DoubleQuery(std::string title, std::string _description = ""); 320 320 virtual ~DoubleQuery(); 321 321 virtual bool handle()=0; 322 322 virtual void setResult(); 323 323 protected: 324 Parameter<double> &tmp;324 double tmp; 325 325 }; 326 326 327 327 class DoublesQuery : public Query { 328 328 public: 329 DoublesQuery( Parameter<std::vector<double> > &,std::string title, std::string _description = "");329 DoublesQuery(std::string title, std::string _description = ""); 330 330 virtual ~DoublesQuery(); 331 331 virtual bool handle()=0; … … 333 333 protected: 334 334 double temp; 335 Parameter<std::vector<double> > &tmp;335 std::vector<double> tmp; 336 336 }; 337 337 338 338 class StringQuery : public Query { 339 339 public: 340 StringQuery( Parameter<std::string> ¶m,std::string title, std::string _description = "");340 StringQuery(std::string title, std::string _description = ""); 341 341 virtual ~StringQuery(); 342 342 virtual bool handle()=0; 343 343 virtual void setResult(); 344 344 protected: 345 Parameter<std::string> &tmp;345 std::string tmp; 346 346 }; 347 347 348 348 class StringsQuery : public Query { 349 349 public: 350 StringsQuery( Parameter<std::vector<std::string> > ¶m,std::string title, std::string _description = "");350 StringsQuery(std::string title, std::string _description = ""); 351 351 virtual ~StringsQuery(); 352 352 virtual bool handle()=0; … … 354 354 protected: 355 355 std::string temp; 356 Parameter<std::vector<std::string> > &tmp;356 std::vector<std::string> tmp; 357 357 }; 358 358 359 359 class MoleculeQuery : public Query { 360 360 public: 361 MoleculeQuery( Parameter<const molecule *> ¶m,std::string title, std::string _description = "");361 MoleculeQuery(std::string title, std::string _description = ""); 362 362 virtual ~MoleculeQuery(); 363 363 virtual bool handle()=0; 364 364 virtual void setResult(); 365 365 protected: 366 Parameter<const molecule *> &tmp;366 const molecule *tmp; 367 367 }; 368 368 369 369 class MoleculesQuery : public Query { 370 370 public: 371 MoleculesQuery( Parameter<std::vector<const molecule *> > ¶m,std::string title, std::string _description = "");371 MoleculesQuery(std::string title, std::string _description = ""); 372 372 virtual ~MoleculesQuery(); 373 373 virtual bool handle()=0; … … 375 375 protected: 376 376 const molecule * temp; 377 Parameter<std::vector<const molecule *> > &tmp;377 std::vector<const molecule *> tmp; 378 378 }; 379 379 380 380 class AtomQuery : public Query { 381 381 public: 382 AtomQuery( Parameter<const atom *> ¶m,std::string title, std::string _description = "");382 AtomQuery(std::string title, std::string _description = ""); 383 383 virtual ~AtomQuery(); 384 384 virtual bool handle()=0; 385 385 virtual void setResult(); 386 386 protected: 387 Parameter<const atom *> &tmp;387 const atom *tmp; 388 388 }; 389 389 390 390 class AtomsQuery : public Query { 391 391 public: 392 AtomsQuery( Parameter<std::vector<const atom *> > ¶m,std::string title, std::string _description = "");392 AtomsQuery(std::string title, std::string _description = ""); 393 393 virtual ~AtomsQuery(); 394 394 virtual bool handle()=0; … … 396 396 protected: 397 397 const atom *temp; 398 Parameter<std::vector<const atom *> > &tmp;398 std::vector<const atom *> tmp; 399 399 }; 400 400 401 401 class VectorQuery : public Query { 402 402 public: 403 VectorQuery( Parameter<Vector> ¶m,std::string title,bool _check, std::string _description = "");403 VectorQuery(std::string title,bool _check, std::string _description = ""); 404 404 virtual ~VectorQuery(); 405 405 virtual bool handle()=0; 406 406 virtual void setResult(); 407 407 protected: 408 Parameter<Vector> &tmp;408 Vector tmp; 409 409 bool check; 410 410 }; … … 412 412 class VectorsQuery : public Query { 413 413 public: 414 VectorsQuery( Parameter<std::vector<Vector> > ¶m,std::string title,bool _check, std::string _description = "");414 VectorsQuery(std::string title,bool _check, std::string _description = ""); 415 415 virtual ~VectorsQuery(); 416 416 virtual bool handle()=0; … … 418 418 protected: 419 419 Vector temp; 420 Parameter<std::vector<Vector> > &tmp;420 std::vector<Vector> tmp; 421 421 bool check; 422 422 }; 423 423 424 class RealSpaceMatrixQuery : public Query {425 public: 426 RealSpaceMatrixQuery(Parameter<RealSpaceMatrix> ¶m,std::string title, std::string _description = "");427 virtual ~ RealSpaceMatrixQuery();424 class BoxQuery : public Query { 425 public: 426 BoxQuery(std::string title, std::string _description = ""); 427 virtual ~BoxQuery(); 428 428 virtual bool handle()=0; 429 429 virtual void setResult(); 430 430 protected: 431 Parameter<RealSpaceMatrix> &tmp;431 Box tmp; 432 432 }; 433 433 434 434 class ElementQuery : public Query { 435 435 public: 436 ElementQuery( Parameter<const element*> ¶m,std::string title, std::string _description = "");436 ElementQuery(std::string title, std::string _description = ""); 437 437 virtual ~ElementQuery(); 438 438 virtual bool handle()=0; 439 439 virtual void setResult(); 440 440 protected: 441 Parameter<const element *> &tmp;441 const element * tmp; 442 442 }; 443 443 444 444 class ElementsQuery : public Query { 445 445 public: 446 ElementsQuery( Parameter<std::vector<const element *> > ¶m,std::string title, std::string _description = "");446 ElementsQuery(std::string title, std::string _description = ""); 447 447 virtual ~ElementsQuery(); 448 448 virtual bool handle()=0; … … 450 450 protected: 451 451 const element *temp; 452 Parameter<std::vector<const element *> > &tmp;452 std::vector<const element *> tmp; 453 453 }; 454 454 455 455 class FileQuery : public Query { 456 456 public: 457 FileQuery( Parameter<boost::filesystem::path> ¶m,std::string title, std::string _description = "");457 FileQuery(std::string title, std::string _description = ""); 458 458 virtual ~FileQuery(); 459 459 virtual bool handle()=0; 460 460 virtual void setResult(); 461 461 protected: 462 Parameter<boost::filesystem::path> &tmp; 462 boost::filesystem::path tmp; 463 }; 464 465 class FilesQuery : public Query { 466 public: 467 FilesQuery(std::string title, std::string _description = ""); 468 virtual ~FilesQuery(); 469 virtual bool handle()=0; 470 virtual void setResult(); 471 protected: 472 std::vector<boost::filesystem::path> tmp; 463 473 }; 464 474 465 475 class RandomNumberDistribution_ParametersQuery : public Query { 466 476 public: 467 RandomNumberDistribution_ParametersQuery( Parameter<RandomNumberDistribution_Parameters> ¶m,std::string title, std::string _description = "");477 RandomNumberDistribution_ParametersQuery(std::string title, std::string _description = ""); 468 478 virtual ~RandomNumberDistribution_ParametersQuery(); 469 479 virtual bool handle()=0; 470 480 virtual void setResult(); 471 481 protected: 472 Parameter<RandomNumberDistribution_Parameters> &tmp;482 RandomNumberDistribution_Parameters tmp; 473 483 }; 474 484
Note:
See TracChangeset
for help on using the changeset viewer.