change Canvas heirarchy and constructors

Items no longer need a parent group (they require a Canvas pointer instead), so all constructors have been rationalized
and have two variants, one with a parent and one with a canvas.

All Items now inherit from Fill and Outline, to banish diagonal inheritance and virtual base classes and all that.

There were zero changes to the Ardour GUI arising from these changes.
This commit is contained in:
Paul Davis 2014-06-12 14:53:44 -04:00
parent eb69fd17fd
commit 452cf1db35
48 changed files with 409 additions and 178 deletions

View file

@ -19,8 +19,8 @@ using PBD::error;
PBD::Searchpath StatefulImage::_image_search_path;
StatefulImage::ImageCache StatefulImage::_image_cache;
StatefulImage::StatefulImage (Group* group, const XMLNode& node)
: Item (group)
StatefulImage::StatefulImage (Canvas* c, const XMLNode& node)
: Item (c)
, _state (0)
, _font (0)
, _text_x (0)