Action_Thermostats
Add_AtomRandomPerturbation
Add_SelectAtomByNameAction
Adding_Graph_to_ChangeBondActions
Adding_MD_integration_tests
Adding_StructOpt_integration_tests
AutomationFragmentation_failures
Candidate_v1.6.1
ChangeBugEmailaddress
ChemicalSpaceEvaluator
EmpiricalPotential_contain_HomologyGraph_documentation
Enhance_userguide
Enhanced_StructuralOptimization
Enhanced_StructuralOptimization_continued
Example_ManyWaysToTranslateAtom
Exclude_Hydrogens_annealWithBondGraph
Fix_Verbose_Codepatterns
ForceAnnealing_oldresults
ForceAnnealing_with_BondGraph
ForceAnnealing_with_BondGraph_continued
ForceAnnealing_with_BondGraph_continued_betteresults
ForceAnnealing_with_BondGraph_contraction-expansion
GeometryObjects
Gui_displays_atomic_force_velocity
IndependentFragmentGrids_IntegrationTest
JobMarket_RobustOnKillsSegFaults
JobMarket_StableWorkerPool
PythonUI_with_named_parameters
QtGui_reactivate_TimeChanged_changes
Recreated_GuiChecks
StoppableMakroAction
TremoloParser_IncreasedPrecision
TremoloParser_MultipleTimesteps
Last change
on this file since f79d65 was 6af6470, checked in by Frederik Heber <frederik.heber@…>, 8 years ago |
Removed Vector and Vectors from boost preprocessor magic.
- this is preparatory for allowing to change the class Dialog::Query<Vector>
by specialization and have the Vector stored as string and not directly as
Vector.
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[738ae1] | 1 | /*
|
---|
| 2 | * TextQuery.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Nov 8, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef TEXTQUERY_HPP_
|
---|
| 9 | #define TEXTQUERY_HPP_
|
---|
| 10 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 |
|
---|
[738ae1] | 17 | #include "TextUI/TextDialog.hpp"
|
---|
| 18 |
|
---|
| 19 | class TextDialog::EmptyTextQuery : public Dialog::EmptyQuery {
|
---|
| 20 | public:
|
---|
[f130d4] | 21 | EmptyTextQuery(const std::string &_title, const std::string &_description = NULL);
|
---|
[738ae1] | 22 | virtual ~EmptyTextQuery();
|
---|
| 23 | virtual bool handle();
|
---|
| 24 | };
|
---|
| 25 |
|
---|
[6af6470] | 26 | class TextDialog::VectorTextQuery : public Dialog::TQuery<Vector> {
|
---|
| 27 | public:
|
---|
| 28 | VectorTextQuery(Parameter<Vector> &_param, const std::string &_title, const std::string &_description = "");
|
---|
| 29 | virtual ~VectorTextQuery();
|
---|
| 30 | virtual bool handle();
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | class TextDialog::VectorsTextQuery : public Dialog::TQuery< std::vector<Vector> > {
|
---|
| 34 | public:
|
---|
| 35 | VectorsTextQuery(Parameter< std::vector<Vector> > &_param, const std::string &_title, const std::string &_description = "");
|
---|
| 36 | virtual ~VectorsTextQuery();
|
---|
| 37 | virtual bool handle();
|
---|
| 38 | };
|
---|
[738ae1] | 39 |
|
---|
[37a67f] | 40 | /** With the following boost::preprocessor code we generate forward declarations
|
---|
| 41 | * of query class for all desired query types in the Qt specialization class of
|
---|
| 42 | * Dialog.
|
---|
| 43 | */
|
---|
| 44 | #include "UIElements/GlobalListOfParameterQueries.hpp"
|
---|
| 45 | #include "UIElements/Dialog_impl_pre.hpp"
|
---|
[33e801] | 46 |
|
---|
[37a67f] | 47 | #include <boost/preprocessor/facilities/empty.hpp>
|
---|
[33e801] | 48 |
|
---|
[37a67f] | 49 | // iterate over all parameter query types for forward declarations
|
---|
| 50 | #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type
|
---|
| 51 | #define BOOST_PP_LOCAL_MACRO(n) queryclass_definition(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, GLOBALLISTOFPARAMETERQUERIES_Type, Text)
|
---|
| 52 | #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMETERTOKENS-1)
|
---|
| 53 | #include BOOST_PP_LOCAL_ITERATE()
|
---|
| 54 | #undef queryclass_definition
|
---|
| 55 | #endif
|
---|
[738ae1] | 56 |
|
---|
[37a67f] | 57 | #include "Dialog_impl_undef.hpp"
|
---|
| 58 | /* End of preprocessor code piece */
|
---|
[738ae1] | 59 |
|
---|
| 60 |
|
---|
| 61 | #endif /* TEXTQUERY_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.