| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef __KIS_IMAGE_SIGNAL_ROUTER_H |
| 8 |
#define __KIS_IMAGE_SIGNAL_ROUTER_H |
| 9 |
|
| 10 |
#include <QObject> |
| 11 |
#include "KisImageSignals.h" |
| 12 |
#include "KisNodeAdditionFlags.h" |
| 13 |
|
| 14 |
class KoColorSpace; |
| 15 |
class KoColorProfile; |
| 16 |
|
| 17 |
|
| 18 |
class KRITAIMAGE_EXPORT KisImageSignalRouter : public QObject |
| 19 |
{ |
| 20 |
Q_OBJECT |
| 21 |
|
| 22 |
public: |
| 23 |
KisImageSignalRouter(KisImageWSP image); |
| 24 |
~KisImageSignalRouter() override; |
| 25 |
|
| 26 |
void emitNotification(KisImageSignalType type); |
| 27 |
void emitNotifications(KisImageSignalVector notifications); |
| 28 |
|
| 29 |
void emitNodeChanged(KisNodeSP node); |
| 30 |
void emitNodeHasBeenAdded(KisNode *parent, int index, KisNodeAdditionFlags flags); |
| 31 |
void emitAboutToRemoveANode(KisNode *parent, int index); |
| 32 |
|
| 33 |
void emitRequestLodPlanesSyncBlocked(bool value); |
| 34 |
void emitNotifyBatchUpdateStarted(); |
| 35 |
void emitNotifyBatchUpdateEnded(); |
| 36 |
|
| 37 |
public Q_SLOTS: |
| 38 |
void emitImageModifiedNotification(); |
| 39 |
|
| 40 |
private Q_SLOTS: |
| 41 |
void slotNotification(KisImageSignalType type); |
| 42 |
|
| 43 |
Q_SIGNALS: |
| 44 |
|
| 45 |
void sigNotification(KisImageSignalType type); |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
void sigRequestLodPlanesSyncBlocked(bool value); |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
void sigNotifyBatchUpdateStarted(); |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
void sigNotifyBatchUpdateEnded(); |
| 77 |
|
| 78 |
|
| 79 |
void sigImageModified(); |
| 80 |
void sigImageModifiedWithoutUndo(); |
| 81 |
|
| 82 |
void sigSizeChanged(const QPointF &oldStillPoint, const QPointF &newStillPoint); |
| 83 |
void sigProfileChanged(const KoColorProfile * profile); |
| 84 |
void sigColorSpaceChanged(const KoColorSpace* cs); |
| 85 |
void sigResolutionChanged(double xRes, double yRes); |
| 86 |
void sigRequestNodeReselection(KisNodeSP activeNode, const KisNodeList &selectedNodes); |
| 87 |
|
| 88 |
|
| 89 |
void sigNodeChanged(KisNodeSP node); |
| 90 |
void sigNodeAddedAsync(KisNodeSP node, KisNodeAdditionFlags flags); |
| 91 |
void sigRemoveNodeAsync(KisNodeSP node); |
| 92 |
void sigLayersChangedAsync(); |
| 93 |
|
| 94 |
private: |
| 95 |
KisImageWSP m_image; |
| 96 |
}; |
| 97 |
|
| 98 |
#endif |