Revision e6c2ce72
Added by skyjake almost 12 years ago
Files
- added
- modified
- copied
- renamed
- deleted
- doomsday
- libdeng2
- include
- de
- DelegateRule
- DerivedRule
- data
- widgets
- delegaterule.h
- derivedrule.h
- operatorrule.h (diff)
- rectanglerule.h (diff)
- rootwidget.h (diff)
- rules.h (diff)
- scalarrule.h (diff)
- de
- src
- data
- widgets
- delegaterule.cpp
- derivedrule.cpp
- rectanglerule.cpp (diff)
- rootwidget.cpp (diff)
- widgets.pri (diff)
- include
- tools
- libdeng2
libdeng2|Fixed|Refactor: DerivedRule changed to DelegateRule
Added the concept of delegated reference counting to tackle the issue
of a rectangle rule that has four contained rules that provide others
a way to access the rectangle's four sides.
The problem with the previous solution was that the four internal
rules of RectangleRule prevented reference counting from detecting
when the RectangleRule was supposed to be deleted. Delegate rules do
not hold a reference to their source.