diff options
author | Heikkinen Miikka <miikka.heikkinen@digia.com> | 2013-05-17 12:21:40 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-05-17 12:37:26 +0300 |
commit | 3dafad59b97532e8e68c0b7abca796f3a9527a6e (patch) | |
tree | 6dcb5bf6edc5aee39490b35db11202a20929d858 /src/datavis3d/global/qdatavis3dglobal.h | |
parent | 5963d52c1923cf2468c1fa4738e04a175196cc7d (diff) |
Added datavis3d back under src
Change-Id: I209e8b3228b2ce0085c897db6fb2ea78e93afa67
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavis3d/global/qdatavis3dglobal.h')
-rw-r--r-- | src/datavis3d/global/qdatavis3dglobal.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/src/datavis3d/global/qdatavis3dglobal.h b/src/datavis3d/global/qdatavis3dglobal.h new file mode 100644 index 00000000..528180b3 --- /dev/null +++ b/src/datavis3d/global/qdatavis3dglobal.h @@ -0,0 +1,90 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc +** All rights reserved. +** For any questions to Digia, please use contact form at http://qt.digia.com +** +** This file is part of QtDataVis3D. +** +** $QT_BEGIN_LICENSE$ +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. +** +** If you have questions regarding the use of this file, please use +** contact form at http://qt.digia.com +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QVIS3DGLOBAL_H +#define QVIS3DGLOBAL_H + +#include <qglobal.h> + +//#define ROTATE_ZOOM_SELECTION + +#define QTCOMMERCIALDATAVIS3D_VERSION_STR "0.0.1" +/* + QTCOMMERCIALDATAVIS3D_VERSION is (major << 16) + (minor << 8) + patch. +*/ +#define QTCOMMERCIALDATAVIS3D_VERSION 0x000001 +/* + can be used like #if (QTCOMMERCIALDATAVIS3D_VERSION >= QTCOMMERCIALDATAVIS3D_VERSION_CHECK(1, 1, 0)) +*/ +#define QTCOMMERCIALDATAVIS3D_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) + +#if defined(QTCOMMERCIALDATAVIS3D_LIBRARY) +# define QTCOMMERCIALDATAVIS3D_EXPORT Q_DECL_EXPORT +#else +# define QTCOMMERCIALDATAVIS3D_EXPORT Q_DECL_IMPORT +#endif + +#if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QTCOMMERCIALDATAVIS3D_LIBRARY) +# define QTCOMMERCIALDATAVIS3D_AUTOTEST_EXPORT Q_DECL_EXPORT +#elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QTCOMMERCIALDATAVIS3D_LIBRARY) +# define QTCOMMERCIALDATAVIS3D_AUTOTEST_EXPORT Q_DECL_IMPORT +#else +# define QTCOMMERCIALDATAVIS3D_AUTOTEST_EXPORT +#endif + +#ifdef QTCOMMERCIALDATAVIS3D_STATICLIB +# undef QTCOMMERCIALDATAVIS3D_EXPORT +# undef QTCOMMERCIALDATAVIS3D_AUTOTEST_EXPORT +# define QTCOMMERCIALDATAVIS3D_EXPORT +# define QTCOMMERCIALDATAVIS3D_AUTOTEST_EXPORT +#endif + +#define QTCOMMERCIALDATAVIS3D_NAMESPACE QtDataVis3D + +#ifdef QTCOMMERCIALDATAVIS3D_NAMESPACE +# define QTCOMMERCIALDATAVIS3D_BEGIN_NAMESPACE namespace QTCOMMERCIALDATAVIS3D_NAMESPACE { +# define QTCOMMERCIALDATAVIS3D_END_NAMESPACE } +# define QTCOMMERCIALDATAVIS3D_USE_NAMESPACE using namespace QTCOMMERCIALDATAVIS3D_NAMESPACE; +#else +# define QTCOMMERCIALDATAVIS3D_BEGIN_NAMESPACE +# define QTCOMMERCIALDATAVIS3D_END_NAMESPACE +# define QTCOMMERCIALDATAVIS3D_USE_NAMESPACE +#endif + +#if defined(DEVELOPMENT_BUILD) && !defined(QT_NO_DEBUG) +#include <stdarg.h> +#include <QDebug> + +#define CHART_DEBUG chartDebug(3,__LINE__,__FILE__,__FUNCTION__) + +static inline QDebug chartDebug(int numargs,...) +{ + va_list valist; + va_start(valist, numargs); + //for( int i = 0 ; i < numargs; i++ ) + int line = va_arg(valist, int); + char *file = va_arg(valist, char *); + char *function = va_arg(valist, char *); + va_end(valist); + return qDebug() << QString().append(function).append("(").append(file).append(":%1)").arg(line); +} +#endif + +#endif // QVIS3DGLOBAL_H |