| 1 | // Aseprite |
|---|---|
| 2 | // Copyright (C) 2020 Igara Studio S.A. |
| 3 | // Copyright (C) 2001-2016 David Capello |
| 4 | // |
| 5 | // This program is distributed under the terms of |
| 6 | // the End-User License Agreement for Aseprite. |
| 7 | |
| 8 | #ifdef HAVE_CONFIG_H |
| 9 | #include "config.h" |
| 10 | #endif |
| 11 | |
| 12 | #include "app/ui/editor/editor_observers.h" |
| 13 | |
| 14 | #include "app/ui/editor/editor_observer.h" |
| 15 | |
| 16 | namespace app { |
| 17 | |
| 18 | void EditorObservers::notifyDestroyEditor(Editor* editor) |
| 19 | { |
| 20 | notify_observers(&EditorObserver::onDestroyEditor, editor); |
| 21 | } |
| 22 | |
| 23 | void EditorObservers::notifyStateChanged(Editor* editor) |
| 24 | { |
| 25 | notify_observers(&EditorObserver::onStateChanged, editor); |
| 26 | } |
| 27 | |
| 28 | void EditorObservers::notifyScrollChanged(Editor* editor) |
| 29 | { |
| 30 | notify_observers(&EditorObserver::onScrollChanged, editor); |
| 31 | } |
| 32 | |
| 33 | void EditorObservers::notifyZoomChanged(Editor* editor) |
| 34 | { |
| 35 | notify_observers(&EditorObserver::onZoomChanged, editor); |
| 36 | } |
| 37 | |
| 38 | void EditorObservers::notifyBeforeFrameChanged(Editor* editor) |
| 39 | { |
| 40 | notify_observers(&EditorObserver::onBeforeFrameChanged, editor); |
| 41 | } |
| 42 | |
| 43 | void EditorObservers::notifyAfterFrameChanged(Editor* editor) |
| 44 | { |
| 45 | notify_observers(&EditorObserver::onAfterFrameChanged, editor); |
| 46 | } |
| 47 | |
| 48 | void EditorObservers::notifyBeforeLayerChanged(Editor* editor) |
| 49 | { |
| 50 | notify_observers(&EditorObserver::onBeforeLayerChanged, editor); |
| 51 | } |
| 52 | |
| 53 | void EditorObservers::notifyAfterLayerChanged(Editor* editor) |
| 54 | { |
| 55 | notify_observers(&EditorObserver::onAfterLayerChanged, editor); |
| 56 | } |
| 57 | |
| 58 | } // namespace app |
| 59 |