Stop exporting symbols from private nested structs in krita/image

parent 8e40072b
......@@ -55,7 +55,7 @@
#endif
#endif
struct KisPaintOp::Private {
struct Q_DECL_HIDDEN KisPaintOp::Private {
Private(KisPaintOp *_q)
: q(_q), dab(0),
currentScale(1.0),
......
......@@ -39,7 +39,7 @@
#include <KoStore.h>
struct KisPaintOpPreset::Private {
struct Q_DECL_HIDDEN KisPaintOpPreset::Private {
Private()
: settings(0),
dirtyPreset(false)
......
......@@ -39,7 +39,7 @@
#include <time.h>
#include<kis_types.h>
struct KisPaintOpSettings::Private {
struct Q_DECL_HIDDEN KisPaintOpSettings::Private {
Private() : disableDirtyNotifications(false) {}
QPointer<KisPaintOpConfigWidget> settingsWidget;
......
......@@ -28,7 +28,7 @@
namespace KisBSplines {
struct KisBSpline1D::Private
struct Q_DECL_HIDDEN KisBSpline1D::Private
{
BorderCondition bc;
UBspline_1d_s* spline;
......
......@@ -28,7 +28,7 @@
namespace KisBSplines {
struct KisBSpline2D::Private
struct Q_DECL_HIDDEN KisBSpline2D::Private
{
BorderCondition bcX;
BorderCondition bcY;
......
......@@ -28,7 +28,7 @@
namespace KisBSplines {
struct KisNUBSpline2D::Private
struct Q_DECL_HIDDEN KisNUBSpline2D::Private
{
BorderCondition bcX;
BorderCondition bcY;
......
......@@ -25,7 +25,7 @@
#include "kis_clone_layer.h"
#include "kis_paint_layer.h"
struct KisImageLayerRemoveCommandImpl::Private {
struct Q_DECL_HIDDEN KisImageLayerRemoveCommandImpl::Private {
Private(KisImageLayerRemoveCommandImpl *_q) : q(_q) {}
KisImageLayerRemoveCommandImpl *q;
......
......@@ -23,7 +23,7 @@
#include <QThread>
#include "filter/kis_color_transformation_filter.h"
struct KisColorTransformationConfiguration::Private {
struct Q_DECL_HIDDEN KisColorTransformationConfiguration::Private {
Private()
{}
......
......@@ -33,7 +33,7 @@
#include "kis_config_widget.h"
struct KisFilterConfiguration::Private {
struct Q_DECL_HIDDEN KisFilterConfiguration::Private {
QString name;
qint32 version;
QBitArray channelFlags;
......
......@@ -19,7 +19,7 @@
#ifndef __KIS_FILL_INTERVAL_MAP_P_H
#define __KIS_FILL_INTERVAL_MAP_P_H
struct KRITAIMAGE_EXPORT KisFillIntervalMap::Private {
struct KRITAIMAGE_TEST_EXPORT KisFillIntervalMap::Private {
typedef QMap<int, KisFillInterval> LineIntervalMap;
typedef QHash<int, LineIntervalMap> GlobalMap;
......
......@@ -188,7 +188,7 @@ private:
int m_threshold;
};
struct KisScanlineFill::Private
struct Q_DECL_HIDDEN KisScanlineFill::Private
{
KisPaintDeviceSP device;
KisRandomAccessorSP it;
......
......@@ -35,7 +35,7 @@
#define UPDATE_DELAY 100 /*ms */
struct KisGeneratorLayer::Private
struct Q_DECL_HIDDEN KisGeneratorLayer::Private
{
Private()
: updateSignalCompressor(UPDATE_DELAY, KisSignalCompressor::FIRST_INACTIVE)
......
......@@ -25,7 +25,7 @@
#include <KoCompositeOpRegistry.h>
#include "kis_paint_device.h"
struct KisBaseNode::Private
struct Q_DECL_HIDDEN KisBaseNode::Private
{
QString compositeOp;
KoProperties properties;
......
......@@ -44,7 +44,7 @@ private:
KisBaseProcessor* m_generator;
};
struct KisBaseProcessor::Private {
struct Q_DECL_HIDDEN KisBaseProcessor::Private {
Private()
: bookmarkManager(0)
, supportsPainting(false)
......
......@@ -35,7 +35,7 @@
const char KisBookmarkedConfigurationManager::ConfigDefault[] = "Default";
const char KisBookmarkedConfigurationManager::ConfigLastUsed[] = "Last Used";
struct KisBookmarkedConfigurationManager::Private {
struct Q_DECL_HIDDEN KisBookmarkedConfigurationManager::Private {
QString configEntryGroup;
KisSerializableConfigurationFactory* configFactory;
......
......@@ -32,7 +32,7 @@
using namespace KisBSplines;
struct KisCachedGradientShapeStrategy::Private
struct Q_DECL_HIDDEN KisCachedGradientShapeStrategy::Private
{
QRect rc;
qreal xStep;
......
......@@ -34,7 +34,7 @@
#endif
#endif
struct KisCageTransformWorker::Private
struct Q_DECL_HIDDEN KisCageTransformWorker::Private
{
Private(KisPaintDeviceSP _dev,
const QVector<QPointF> &_origCage,
......
......@@ -19,7 +19,7 @@
#ifndef _KIS_CIRCLE_MASK_GENERATOR_P_H_
#define _KIS_CIRCLE_MASK_GENERATOR_P_H_
struct KisCircleMaskGenerator::Private {
struct Q_DECL_HIDDEN KisCircleMaskGenerator::Private {
double xcoef, ycoef;
double xfadecoef, yfadecoef;
double transformedFadeX, transformedFadeY;
......
......@@ -38,7 +38,7 @@
#include <kis_effect_mask.h>
struct KisCloneLayer::Private
struct Q_DECL_HIDDEN KisCloneLayer::Private
{
public:
KisLayerSP copyFrom;
......
......@@ -23,7 +23,7 @@
#include <QImage>
#include <kis_mask_generator.h>
struct KisConvolutionKernel::Private {
struct Q_DECL_HIDDEN KisConvolutionKernel::Private {
qreal offset;
qreal factor;
Matrix<qreal, Dynamic, Dynamic> data;
......
......@@ -235,7 +235,7 @@ static bool pointLessThan(const QPointF &a, const QPointF &b)
return a.x() < b.x();
}
struct KisCubicCurve::Data : public QSharedData {
struct Q_DECL_HIDDEN KisCubicCurve::Data : public QSharedData {
Data() {
init();
}
......@@ -318,7 +318,7 @@ void KisCubicCurve::Data::updateTransfer(QVector<_T_>* transfer, bool& valid, _T
}
}
struct KisCubicCurve::Private {
struct Q_DECL_HIDDEN KisCubicCurve::Private {
QSharedDataPointer<Data> data;
};
......
......@@ -33,7 +33,7 @@
struct KisCurveCircleMaskGenerator::Private
struct Q_DECL_HIDDEN KisCurveCircleMaskGenerator::Private
{
Private(bool enableAntialiasing)
: fadeMaker(*this, enableAntialiasing)
......
......@@ -28,7 +28,7 @@
#include "kis_antialiasing_fade_maker.h"
struct KisCurveRectangleMaskGenerator::Private
struct Q_DECL_HIDDEN KisCurveRectangleMaskGenerator::Private
{
Private(bool enableAntialiasing)
: fadeMaker(*this, enableAntialiasing)
......
......@@ -30,7 +30,7 @@ const QRect KisDefaultBounds::infiniteRect =
/* KisDefaultBounds */
/******************************************************************/
struct KisDefaultBounds::Private
struct Q_DECL_HIDDEN KisDefaultBounds::Private
{
KisImageWSP image;
};
......@@ -64,7 +64,7 @@ bool KisDefaultBounds::wrapAroundMode() const
/* KisSelectionDefaultBounds */
/******************************************************************/
struct KisSelectionDefaultBounds::Private
struct Q_DECL_HIDDEN KisSelectionDefaultBounds::Private
{
KisPaintDeviceSP parentDevice;
};
......
......@@ -27,7 +27,7 @@
struct KisDistanceInformation::Private {
struct Q_DECL_HIDDEN KisDistanceInformation::Private {
Private() : lastDabInfoValid(false),
lastPaintInfoValid(false) {}
......
......@@ -40,7 +40,7 @@
#endif
struct KisGaussCircleMaskGenerator::Private
struct Q_DECL_HIDDEN KisGaussCircleMaskGenerator::Private
{
Private(bool enableAntialiasing)
: fadeMaker(*this, enableAntialiasing)
......
......@@ -40,7 +40,7 @@
#define erf(x) boost::math::erf(x)
#endif
struct KisGaussRectangleMaskGenerator::Private
struct Q_DECL_HIDDEN KisGaussRectangleMaskGenerator::Private
{
Private(bool enableAntialiasing)
: fadeMaker(*this, enableAntialiasing)
......
......@@ -500,7 +500,7 @@ double GradientRepeatAlternateStrategy::valueAt(double t) const
}
}
struct KisGradientPainter::Private
struct Q_DECL_HIDDEN KisGradientPainter::Private
{
enumGradientShape shape;
......
......@@ -38,7 +38,7 @@ struct PrecalculatedCoords
};
struct KisGreenCoordinatesMath::Private
struct Q_DECL_HIDDEN KisGreenCoordinatesMath::Private
{
Private () : transformedCageDirection(0) {}
......
......@@ -38,7 +38,7 @@
#include "kis_psd_layer_style.h"
struct KisGroupLayer::Private
struct Q_DECL_HIDDEN KisGroupLayer::Private
{
public:
Private()
......
......@@ -31,7 +31,7 @@
#include "kis_painter.h"
struct KisIndirectPaintingSupport::Private {
struct Q_DECL_HIDDEN KisIndirectPaintingSupport::Private {
// To simulate the indirect painting
KisPaintDeviceSP temporaryTarget;
const KoCompositeOp* compositeOp;
......
......@@ -110,7 +110,7 @@ private:
QList<KisCloneLayerWSP> m_clonesList;
};
struct KisLayer::Private
struct Q_DECL_HIDDEN KisLayer::Private
{
KisImageWSP image;
QBitArray channelFlags;
......
......@@ -22,7 +22,7 @@
#include "kis_dom_utils.h"
struct KisLiquifyTransformWorker::Private
struct Q_DECL_HIDDEN KisLiquifyTransformWorker::Private
{
Private(const QRect &_srcBounds,
KoUpdater *_progress,
......
......@@ -42,7 +42,7 @@
#include "kis_mask_projection_plane.h"
struct KisMask::Private {
struct Q_DECL_HIDDEN KisMask::Private {
Private(KisMask *_q)
: q(_q),
projectionPlane(new KisMaskProjectionPlane(q))
......
......@@ -27,7 +27,7 @@
#include "tiles3/kis_tile_data_store.h"
struct KisMemoryStatisticsServer::Private
struct Q_DECL_HIDDEN KisMemoryStatisticsServer::Private
{
Private()
: updateCompressor(1000 /* ms */, KisSignalCompressor::POSTPONE)
......
......@@ -76,7 +76,7 @@ static KisNodeSPStaticRegistrar __registrar;
* read by the reader threads yourself!
*/
struct KisNode::Private
struct Q_DECL_HIDDEN KisNode::Private
{
public:
Private(KisNode *node)
......
......@@ -21,7 +21,7 @@
#include "kis_node.h"
#include <kis_debug.h>
struct KisNodeFacade::Private
struct Q_DECL_HIDDEN KisNodeFacade::Private
{
public:
KisNodeWSP root;
......
......@@ -19,7 +19,7 @@
#include "kis_node_graph_listener.h"
struct KisNodeGraphListener::Private
struct Q_DECL_HIDDEN KisNodeGraphListener::Private
{
Private() : sequenceNumber(0) {}
int sequenceNumber;
......
......@@ -22,7 +22,7 @@
#include "kis_node.h"
struct KisNodeProgressProxy::Private {
struct Q_DECL_HIDDEN KisNodeProgressProxy::Private {
Private() : minimum(0), maximum(100), value(100), percentage(-1) {
};
KisNodeWSP node;
......
......@@ -166,7 +166,7 @@ private:
};
struct KisPaintDevice::Private
struct Q_DECL_HIDDEN KisPaintDevice::Private
{
class KisPaintDeviceStrategy;
class KisPaintDeviceWrappedStrategy;
......
......@@ -36,7 +36,7 @@
#include "kis_processing_visitor.h"
#include "kis_default_bounds.h"
struct KisPaintLayer::Private
struct Q_DECL_HIDDEN KisPaintLayer::Private
{
public:
KisPaintDeviceSP paintDevice;
......
......@@ -74,7 +74,7 @@
#endif
struct KisPainter::Private {
struct Q_DECL_HIDDEN KisPainter::Private {
Private(KisPainter *_q) : q(_q) {}
KisPainter *q;
......
......@@ -23,7 +23,7 @@
//---------- KisPerspectiveGridNode ----------//
//--------------------------------------------//
struct KisPerspectiveGridNode::Private {
struct Q_DECL_HIDDEN KisPerspectiveGridNode::Private {
QList<KisSubPerspectiveGrid*> subGrids;
};
......@@ -253,7 +253,7 @@ int KisSubPerspectiveGrid::subdivisions() const
//----------- KisPerspectiveGrid -----------//
//------------------------------------------//
struct KisPerspectiveGrid::Private {
struct Q_DECL_HIDDEN KisPerspectiveGrid::Private {
QList<KisSubPerspectiveGrid*> subGrids;
};
......
......@@ -42,7 +42,7 @@
#include <kis_iterator_ng.h>
struct KisPixelSelection::Private {
struct Q_DECL_HIDDEN KisPixelSelection::Private {
KisSelectionWSP parentSelection;
QPainterPath outlineCache;
......
......@@ -20,7 +20,7 @@
#include "kis_paint_device.h"
#include "kis_selection.h"
struct KisConstProcessingInformation::Private {
struct Q_DECL_HIDDEN KisConstProcessingInformation::Private {
Private() : device(0), selection(0) {}
KisPaintDeviceSP device;
KisSelectionSP selection;
......@@ -65,7 +65,7 @@ const QPoint& KisConstProcessingInformation::topLeft() const
return d->topLeft;
}
struct KisProcessingInformation::Private {
struct Q_DECL_HIDDEN KisProcessingInformation::Private {
KisPaintDeviceSP device;
};
......
......@@ -31,7 +31,7 @@
#include "kis_async_merger.h"
struct KisProjectionLeaf::Private
struct Q_DECL_HIDDEN KisProjectionLeaf::Private
{
Private(KisNode *_node) : node(_node) {}
......
......@@ -34,7 +34,7 @@
#include <KoColor.h>
#include <KoColorModelStandardIds.h>
struct KisPropertiesConfiguration::Private {
struct Q_DECL_HIDDEN KisPropertiesConfiguration::Private {
QMap<QString, QVariant> properties;
QStringList notSavedProperties;
};
......@@ -288,7 +288,7 @@ void KisPropertiesConfiguration::removeProperty(const QString & name)
// --- factory ---
struct KisPropertiesConfigurationFactory::Private {
struct Q_DECL_HIDDEN KisPropertiesConfigurationFactory::Private {
};
KisPropertiesConfigurationFactory::KisPropertiesConfigurationFactory() : d(new Private)
......
......@@ -28,7 +28,7 @@
#include "kis_global.h"
struct KisPSDLayerStyle::Private
struct Q_DECL_HIDDEN KisPSDLayerStyle::Private
{
Private()
: version(-1)
......
......@@ -24,7 +24,7 @@
#include <KoProgressProxy.h>
struct KisQueuesProgressUpdater::Private
struct Q_DECL_HIDDEN KisQueuesProgressUpdater::Private
{
Private()
: queueSizeMetric(0)
......
......@@ -43,7 +43,7 @@ inline quint64 part(quint64 n1, quint64 n2, int p)
return quint64(salt[i][j]) << b;
}
struct KisRandomGenerator::Private {
struct Q_DECL_HIDDEN KisRandomGenerator::Private {
quint64 seed;
};
......
......@@ -32,7 +32,7 @@
#endif
#endif
struct KisRectangleMaskGenerator::Private {
struct Q_DECL_HIDDEN KisRectangleMaskGenerator::Private {
double m_c;
qreal xcoeff;
qreal ycoeff;
......
......@@ -28,7 +28,7 @@
struct KisSafeTransform::Private
struct Q_DECL_HIDDEN KisSafeTransform::Private
{
QRect bounds;
QTransform forwardTransform;
......
......@@ -28,7 +28,7 @@
#include "kis_default_bounds.h"
#include "kis_iterator_ng.h"
struct KisSelection::Private {
struct Q_DECL_HIDDEN KisSelection::Private {
Private()
: isVisible(true),
shapeSelection(0)
......
......@@ -36,7 +36,7 @@
#include "filter/kis_filter.h"
struct KisSelectionBasedLayer::Private
struct Q_DECL_HIDDEN KisSelectionBasedLayer::Private
{
public:
Private() : useSelectionInProjection(true) {}
......
......@@ -35,7 +35,7 @@
#include "kis_thread_safe_signal_compressor.h"
struct KisSelectionMask::Private
struct Q_DECL_HIDDEN KisSelectionMask::Private
{
public:
Private(KisSelectionMask *_q) : q(_q) {}
......
......@@ -24,7 +24,7 @@
#include "kis_stroke.h"
#include "kis_updater_context.h"
struct KisStrokesQueue::Private {
struct Q_DECL_HIDDEN KisStrokesQueue::Private {
Private()
: openedStrokesCounter(0),
needsExclusiveAccess(false),
......
......@@ -49,7 +49,7 @@
#define UPDATE_DELAY 3000 /*ms */
struct KisTransformMask::Private
struct Q_DECL_HIDDEN KisTransformMask::Private
{
Private()
: worker(0, QTransform(), 0),
......
......@@ -35,7 +35,7 @@ KisTransformMaskParamsInterface::~KisTransformMaskParamsInterface()
struct KisDumbTransformMaskParams::Private
struct Q_DECL_HIDDEN KisDumbTransformMaskParams::Private
{
Private() : isHidden(false) {}
......
......@@ -45,7 +45,7 @@
#endif
struct KisUpdateScheduler::Private {
struct Q_DECL_HIDDEN KisUpdateScheduler::Private {
Private() : updatesQueue(0), strokesQueue(0),
updaterContext(0), processingBlocked(false),
balancingRatio(1.0),
......
......@@ -85,7 +85,7 @@ private:
qint64 m_updateTime;
};