- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/TextDialog.hpp
r37a67f r163110 22 22 class element; 23 23 class molecule; 24 class KeyValuePair;25 24 class RealSpaceMatrix; 26 25 class Vector; … … 33 32 34 33 virtual void queryEmpty(const std::string ="", const std::string = ""); 35 36 /** With the following boost::preprocessor code we generate virtual function37 * definitions for all desired query types in the abstract class Dialog.38 */39 #include "UIElements/GlobalListOfParameterQueries.hpp" 40 #include "UIElements/Dialog_impl_pre.hpp" 41 42 #include <boost/preprocessor/facilities/empty.hpp>43 44 // iterate over all parameter query types45 #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type46 #define SUFFIX BOOST_PP_EMPTY()47 #define BOOST_PP_LOCAL_MACRO(n) dialog_declaration(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, GLOBALLISTOFPARAMETERQUERIES_Type)48 #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMETERTOKENS-1)49 #include BOOST_PP_LOCAL_ITERATE()50 #undef dialog_declaration51 #undef SUFFIX52 #endif53 54 #include "Dialog_impl_undef.hpp" 55 /* End of preprocessor code piece */34 virtual void queryBoolean(Parameter<bool> &, const std::string ="", const std::string = ""); 35 virtual void queryInt(Parameter<int> &, const std::string ="", const std::string = ""); 36 virtual void queryInts(Parameter<std::vector<int> > &, const std::string ="", const std::string = ""); 37 virtual void queryUnsignedInt(Parameter<unsigned int> &, const std::string ="", const std::string = ""); 38 virtual void queryUnsignedInts(Parameter<std::vector<unsigned int> > &, const std::string ="", const std::string = ""); 39 virtual void queryString(Parameter<std::string> &, const std::string ="", const std::string = ""); 40 virtual void queryStrings(Parameter<std::vector<std::string> > &, const std::string ="", const std::string = ""); 41 virtual void queryDouble(Parameter<double> &, const std::string ="", const std::string = ""); 42 virtual void queryDoubles(Parameter<std::vector<double> > &, const std::string ="", const std::string = ""); 43 virtual void queryAtom(Parameter<const atom *> &, const std::string = "",std::string = ""); 44 virtual void queryAtoms(Parameter<std::vector<const atom *> > &, const std::string = "",std::string = ""); 45 virtual void queryMolecule(Parameter<const molecule *> &, const std::string = "",std::string = ""); 46 virtual void queryMolecules(Parameter<std::vector<const molecule *> > &, const std::string = "",std::string = ""); 47 virtual void queryVector(Parameter<Vector> &, const std::string ="", const std::string = ""); 48 virtual void queryVectors(Parameter<std::vector<Vector> > &, const std::string ="", const std::string = ""); 49 virtual void queryRealSpaceMatrix(Parameter<RealSpaceMatrix> &, const std::string ="", const std::string = ""); 50 virtual void queryElement(Parameter<const element *> &, const std::string ="", const std::string = ""); 51 virtual void queryElements(Parameter<std::vector<const element *> > &, const std::string ="", const std::string = ""); 52 virtual void queryFile(Parameter<boost::filesystem::path> &, const std::string ="", const std::string = ""); 53 virtual void queryFiles(Parameter<std::vector<boost::filesystem::path> > &, const std::string ="", const std::string = ""); 54 virtual void queryRandomNumberDistribution_Parameters(Parameter<RandomNumberDistribution_Parameters> &, const std::string ="", const std::string = ""); 56 55 57 56 protected: 58 57 // specialized stuff for text queries 58 // all placed into Query/TextQuery.hpp 59 // !please adhere to alphabetical ordering! 60 class AtomTextQuery; 61 class AtomsTextQuery; 62 class BooleanTextQuery; 63 class DoubleTextQuery; 64 class DoublesTextQuery; 65 class ElementTextQuery; 66 class ElementsTextQuery; 59 67 class EmptyTextQuery; 60 61 /** With the following boost::preprocessor code we generate forward declarations 62 * of query class for all desired query types in the Qt specialization class of 63 * Dialog. 64 */ 65 #include "UIElements/GlobalListOfParameterQueries.hpp" 66 #include "UIElements/Dialog_impl_pre.hpp" 67 68 #include <boost/preprocessor/facilities/empty.hpp> 69 70 // iterate over all parameter query types for forward declarations 71 #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type 72 #define BOOST_PP_LOCAL_MACRO(n) forward_declaration(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, TextQuery) 73 #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMETERTOKENS-1) 74 #include BOOST_PP_LOCAL_ITERATE() 75 #undef forward_declaration 76 #endif 77 78 #include "Dialog_impl_undef.hpp" 79 /* End of preprocessor code piece */ 80 68 class FileTextQuery; 69 class FilesTextQuery; 70 class IntTextQuery; 71 class IntsTextQuery; 72 class MoleculeTextQuery; 73 class MoleculesTextQuery; 74 class RealSpaceMatrixTextQuery; 75 class StringTextQuery; 76 class StringsTextQuery; 77 class UnsignedIntTextQuery; 78 class UnsignedIntsTextQuery; 79 class VectorTextQuery; 80 class VectorsTextQuery; 81 class RandomNumberDistribution_ParametersTextQuery; 81 82 }; 82 83
Note:
See TracChangeset
for help on using the changeset viewer.