]> Shamusworld >> Repos - architektonas/blob - src/base/rs_blocklistlistener.h
Added missing include in FileIO header.
[architektonas] / src / base / rs_blocklistlistener.h
1 #ifndef RS_BLOCKLISTLISTENER_H
2 #define RS_BLOCKLISTLISTENER_H
3
4 #include "rs_block.h"
5
6 /**
7  * This class is an interface for classes that are interested in
8  * knowing about changes in the block list.
9  */
10 class RS_BlockListListener
11 {
12         public:
13                 RS_BlockListListener() {}
14                 virtual ~RS_BlockListListener() {}
15
16                 /**
17                  * Called when the active block changes.
18                  */
19                 virtual void blockActivated(RS_Block*) {}
20
21                 /**
22                  * Called when a new block is added to the list.
23                  */
24                 virtual void blockAdded(RS_Block*) {}
25
26                 /**
27                  * Called when a block is removed from the list.
28                  */
29                 virtual void blockRemoved(RS_Block*) {}
30
31                 /**
32                  * Called when a block's attributes are modified.
33                  */
34                 virtual void blockEdited(RS_Block*) {}
35
36                 /**
37                  * Called when a block's visibility is toggled.
38                  */
39                 virtual void blockToggled(RS_Block*) {}
40 };
41
42 #endif