IndependentFragmentGrids_Sole_NN_Calculation
Last change
on this file since a8961d was 37a67f, checked in by Frederik Heber <heber@…>, 10 years ago |
Replaced Query.. class and query..() function declarations in Dialog.. by boost preprocessor magic.
- this removes a lot of copy&paste code.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
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 |
|
---|
11 | // include config.h
|
---|
12 | #ifdef HAVE_CONFIG_H
|
---|
13 | #include <config.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 |
|
---|
17 | #include "TextUI/TextDialog.hpp"
|
---|
18 |
|
---|
19 | class TextDialog::EmptyTextQuery : public Dialog::EmptyQuery {
|
---|
20 | public:
|
---|
21 | EmptyTextQuery(const std::string &_title, const std::string &_description = NULL);
|
---|
22 | virtual ~EmptyTextQuery();
|
---|
23 | virtual bool handle();
|
---|
24 | };
|
---|
25 |
|
---|
26 |
|
---|
27 | /** With the following boost::preprocessor code we generate forward declarations
|
---|
28 | * of query class for all desired query types in the Qt specialization class of
|
---|
29 | * Dialog.
|
---|
30 | */
|
---|
31 | #include "UIElements/GlobalListOfParameterQueries.hpp"
|
---|
32 | #include "UIElements/Dialog_impl_pre.hpp"
|
---|
33 |
|
---|
34 | #include <boost/preprocessor/facilities/empty.hpp>
|
---|
35 |
|
---|
36 | // iterate over all parameter query types for forward declarations
|
---|
37 | #if defined GLOBALLISTOFPARAMETERQUERIES_Token && defined GLOBALLISTOFPARAMETERQUERIES_Type
|
---|
38 | #define BOOST_PP_LOCAL_MACRO(n) queryclass_definition(~, n, GLOBALLISTOFPARAMETERQUERIES_Token, GLOBALLISTOFPARAMETERQUERIES_Type, Text)
|
---|
39 | #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMETERTOKENS-1)
|
---|
40 | #include BOOST_PP_LOCAL_ITERATE()
|
---|
41 | #undef queryclass_definition
|
---|
42 | #endif
|
---|
43 |
|
---|
44 | #include "Dialog_impl_undef.hpp"
|
---|
45 | /* End of preprocessor code piece */
|
---|
46 |
|
---|
47 |
|
---|
48 | #endif /* TEXTQUERY_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.