diff --git a/libs/image/KisImageSignals.h b/libs/image/KisImageSignals.h index 6156dc8f11..343cdd2743 100644 --- a/libs/image/KisImageSignals.h +++ b/libs/image/KisImageSignals.h @@ -1,95 +1,95 @@ /* * Copyright (c) 2018 Dmitry Kazakov * * This 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; either version 2 of the License, or * (at your option) any later version. * * This 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. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef KISIMAGESIGNALS_H #define KISIMAGESIGNALS_H #include #include #include "kritaimage_export.h" #include "kis_types.h" enum KisImageSignalTypeEnum { LayersChangedSignal, ModifiedSignal, SizeChangedSignal, ProfileChangedSignal, ColorSpaceChangedSignal, ResolutionChangedSignal, NodeReselectionRequestSignal }; /** * A special signal which handles stillPoint capabilities of the image * * \see KisImage::sigSizeChanged() */ -struct ComplexSizeChangedSignal { +struct KRITAIMAGE_EXPORT ComplexSizeChangedSignal { ComplexSizeChangedSignal(); ComplexSizeChangedSignal(QPointF _oldStillPoint, QPointF _newStillPoint); /** * A helper method calculating the still points from image areas * we process. It works as if the source image was "cropped" by \p * portionOfOldImage, and this portion formed the new image of size * \p transformedIntoImageOfSize. * * Note, that \p portionOfTheImage may be equal to the image bounds(). */ ComplexSizeChangedSignal(const QRect &portionOfOldImage, const QSize &transformedIntoImageOfSize); ComplexSizeChangedSignal inverted() const; QPointF oldStillPoint; QPointF newStillPoint; }; /** * A special signal which handles emitting signals for node reselection * * \see KisImage::sigRequestNodeReselection() */ -struct ComplexNodeReselectionSignal { +struct KRITAIMAGE_EXPORT ComplexNodeReselectionSignal { ComplexNodeReselectionSignal(); ComplexNodeReselectionSignal(KisNodeSP _newActiveNode, KisNodeList _newSelectedNodes, KisNodeSP _oldActiveNode = KisNodeSP(), KisNodeList _oldSelectedNodes = KisNodeList()); ComplexNodeReselectionSignal inverted() const; KisNodeSP newActiveNode; KisNodeList newSelectedNodes; KisNodeSP oldActiveNode; KisNodeList oldSelectedNodes; }; -struct KisImageSignalType { +struct KRITAIMAGE_EXPORT KisImageSignalType { KisImageSignalType(); KisImageSignalType(KisImageSignalTypeEnum _id); KisImageSignalType(ComplexSizeChangedSignal signal); KisImageSignalType(ComplexNodeReselectionSignal signal); KisImageSignalType inverted() const; KisImageSignalTypeEnum id; ComplexSizeChangedSignal sizeChangedSignal; ComplexNodeReselectionSignal nodeReselectionSignal; }; typedef QVector KisImageSignalVector; #endif // KISIMAGESIGNALS_H