1// Aseprite
2// Copyright (C) 2016 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_TOOLS_ACTIVE_TOOL_OBSERVER_H_INCLUDED
8#define APP_TOOLS_ACTIVE_TOOL_OBSERVER_H_INCLUDED
9#pragma once
10
11namespace app {
12namespace tools {
13
14 class Tool;
15
16 class ActiveToolObserver {
17 public:
18 virtual ~ActiveToolObserver() { }
19
20 // Called when a new tool is active.
21 virtual void onActiveToolChange(tools::Tool* tool) { }
22
23 // Called when a new tool is selected in the tool box.
24 virtual void onSelectedToolChange(tools::Tool* tool) { }
25 };
26
27} // namespace tools
28} // namespace app
29
30#endif
31