#
e7b99741 |
| 15-Nov-2010 |
Alex Wilson <yourpalal2@gmail.com> |
In Media preflet: * Refactor MediaListItem into four/five classes: * MediaListItem : abstract base class which provides an interface for MediaWindow and MediaListItem subclasses * NodeListItem :
In Media preflet: * Refactor MediaListItem into four/five classes: * MediaListItem : abstract base class which provides an interface for MediaWindow and MediaListItem subclasses * NodeListItem : list item for media nodes * DeviceListItem : list item for audio/video settings (device selection) * MixerListItem : list item for the audio-mixer * MediaListItem::Renderer : does the drawing of MediaListItems, which supply render paramaters via a 'SetRenderParamaters()' method. * Comparison of MediaListItems (for sorting) is done via double-dispatch * MediaListItem provides a pure virtual AlterWindow() method, which removes the burden of distinguishing between different behaviours from MediaWindow. * Add methods to MediaWindow for the MediaListItems to call in their AlterWindow() implementation, eg. SelectNode() * Seperate code into these methods, as well as a few private utility methods. * Add a RAII-style 'SmartNode' nested class for MediaWindow, which handles watching/unwatching allocating/deallocating of media_nodes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39433 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
|
#
b63e3a34 |
| 29-Oct-2010 |
Alex Wilson <yourpalal2@gmail.com> |
In Media preflet: * Move icons to resource file. * Add MediaIcons class to handle loading and storing the icons. * Use a MediaIcons object in place of a BList for passing icons to our list items. * A
In Media preflet: * Move icons to resource file. * Add MediaIcons class to handle loading and storing the icons. * Use a MediaIcons object in place of a BList for passing icons to our list items. * Add IconHandles.h to hold an enum for identifying icons in/from our resource file. * style fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39180 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
|