/* Copyright 2020 Adam Gray This file is part of the tagem program. The tagem program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 3 of the License. The tagem program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This copyright notice should be included in any copy or substantial copy of the tagem source code. The absense of this copyright notices on some other files in this project does not indicate that those files do not also fall under this license, unless they have a different license written at the top of the file. */ #define CREATE_ACTION_BTN(r, data, elem) \ "" \ #define CREATE_HEADER(r, data, tpl) \ "
" \ BOOST_PP_TUPLE_ELEM(1, tpl) \ "
" #define CREATE_FILTER(r, data, elem) \ BOOST_PP_IF( \ BOOST_PP_SUB(BOOST_PP_TUPLE_ELEM(2, elem), 1), /* 0 for 0 and 1; 1 for 2 */ \ "
" \ "" \ "
", \ "
" \ ) #define CREATE_SORT(r, data, elem) \ BOOST_PP_IF( \ BOOST_PP_TUPLE_ELEM(2, elem), \ "
Sort
", \ "
" \ ) #define CREATE_HIDE(r, data, tpl) \ "
Hide
" "
" "
" #ifdef IS_SELECTABLE // Display examples of what each selection colour means "" SVG_INFO_CIRCLE "" # undef IS_SELECTABLE #endif "" "" "" #ifdef ACTION_BTNS BOOST_PP_SEQ_FOR_EACH(CREATE_ACTION_BTN, _, BOOST_PP_VARIADIC_SEQ_TO_SEQ(ACTION_BTNS)) # undef ACTION_BTNS #endif #undef CREATE_ACTION_BTN "
" "
" // Name row "
" BOOST_PP_SEQ_FOR_EACH(CREATE_HEADER, _, BOOST_PP_VARIADIC_SEQ_TO_SEQ(COLS)) #undef CREATE_HEADER "
" // Filter row "
" BOOST_PP_SEQ_FOR_EACH(CREATE_FILTER, _, BOOST_PP_VARIADIC_SEQ_TO_SEQ(COLS)) #undef CREATE_FILTER "
" // Sort row "
" BOOST_PP_SEQ_FOR_EACH(CREATE_SORT, _, BOOST_PP_VARIADIC_SEQ_TO_SEQ(COLS)) "
" #undef CREATE_SORT "
" BOOST_PP_SEQ_FOR_EACH(CREATE_HIDE, _, BOOST_PP_VARIADIC_SEQ_TO_SEQ(COLS)) "
" #undef COLS #undef CREATE_HIDE "
" "
" "
" #undef TBL_ID #undef TBL_NAME_COLS #undef TBL_TAGS_COLS