1 #ifndef RS_BLOCKLISTLISTENER_H
2 #define RS_BLOCKLISTLISTENER_H
7 * This class is an interface for classes that are interested in
8 * knowing about changes in the block list.
10 class RS_BlockListListener {
12 RS_BlockListListener() {}
13 virtual ~RS_BlockListListener() {}
16 * Called when the active block changes.
18 virtual void blockActivated(RS_Block*) {}
21 * Called when a new block is added to the list.
23 virtual void blockAdded(RS_Block*) {}
26 * Called when a block is removed from the list.
28 virtual void blockRemoved(RS_Block*) {}
31 * Called when a block's attributes are modified.
33 virtual void blockEdited(RS_Block*) {}
36 * Called when a block's visibility is toggled.
38 virtual void blockToggled(RS_Block*) {}