|
| 1 | +#ifndef acss_globalsH |
| 2 | +#define acss_globalsH |
| 3 | +/******************************************************************************* |
| 4 | +** Qt Advanced Stylesheets |
| 5 | +** Copyright (C) 2022 Uwe Kindler |
| 6 | +** |
| 7 | +** This library is free software; you can redistribute it and/or |
| 8 | +** modify it under the terms of the GNU Lesser General Public |
| 9 | +** License as published by the Free Software Foundation; either |
| 10 | +** version 2.1 of the License, or (at your option) any later version. |
| 11 | +** |
| 12 | +** This library is distributed in the hope that it will be useful, |
| 13 | +** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | +** Lesser General Public License for more details. |
| 16 | +** |
| 17 | +** You should have received a copy of the GNU Lesser General Public |
| 18 | +** License along with this library; If not, see <http://www.gnu.org/licenses/>. |
| 19 | +******************************************************************************/ |
| 20 | + |
| 21 | + |
| 22 | +//============================================================================ |
| 23 | +/// \file ACSS_globals.h |
| 24 | +/// \author Uwe Kindler |
| 25 | +/// \date 19.04.2022 |
| 26 | +//============================================================================ |
| 27 | + |
| 28 | + |
| 29 | +//============================================================================ |
| 30 | +// INCLUDES |
| 31 | +//============================================================================ |
| 32 | +#include <QtCore/QtGlobal> |
| 33 | +#include <QDebug> |
| 34 | + |
| 35 | + |
| 36 | +#ifndef ACSS_STATIC |
| 37 | +#ifdef ACSS_SHARED_EXPORT |
| 38 | +#define ACSS_EXPORT Q_DECL_EXPORT |
| 39 | +#else |
| 40 | +#define ACSS_EXPORT Q_DECL_IMPORT |
| 41 | +#endif |
| 42 | +#else |
| 43 | +#define ACSS_EXPORT |
| 44 | +#endif |
| 45 | + |
| 46 | +// Define ACSS_DEBUG_PRINT to enable a lot of debug output |
| 47 | +#ifdef ACSS_DEBUG_PRINT |
| 48 | +#define ACSS_PRINT(s) qDebug() << s |
| 49 | +#else |
| 50 | +#define ACSS_PRINT(s) |
| 51 | +#endif |
| 52 | + |
| 53 | +// Set ACSS_DEBUG_LEVEL to enable additional debug output and to enable layout |
| 54 | +// dumps to qDebug and std::cout after layout changes |
| 55 | +#define ACSS_DEBUG_LEVEL 0 |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +//--------------------------------------------------------------------------- |
| 60 | +#endif // acss_globalsH |
0 commit comments