From 1e26e00e9ae0c519355e3a6fe5ad098d1f6a9622 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 6 Jul 2016 12:04:54 +0200 Subject: compat/options: export template instances to lessen code bloat --- opentrack-compat/options-specialize.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 opentrack-compat/options-specialize.hpp (limited to 'opentrack-compat/options-specialize.hpp') diff --git a/opentrack-compat/options-specialize.hpp b/opentrack-compat/options-specialize.hpp new file mode 100644 index 00000000..735836d9 --- /dev/null +++ b/opentrack-compat/options-specialize.hpp @@ -0,0 +1,21 @@ +#pragma once + +#ifndef OPENTRACK_OPTIONS_EXTERN_TEMPLATES +# define OPENTRACK_OPTIONS_EXTERN_TEMPLATES +# error "define OPENTRACK_OPTIONS_EXTERN_TEMPLATES before including" +#endif + +#include "export.hpp" + +namespace options { + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QComboBox* cb); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QComboBox* cb); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QCheckBox* cb); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QDoubleSpinBox* dsb); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QSpinBox* sb); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QSlider* sl); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QLineEdit* le); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QLabel* lb); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QTabWidget* t); + OPENTRACK_OPTIONS_EXTERN_TEMPLATES template OPENTRACK_COMPAT_EXPORT void tie_setting(value& v, QSlider* w); +} -- cgit v1.2.3