History log of /haiku/src/preferences/media/MediaWindow.h
Revision Date Author Comments
# d9971ae7 26-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Media: Show alert while media services restart


# 7482390a 29-Jul-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Media: Improve both notifications and quit mechanism

* Media is now waiting for media_server to start if the window
is closed before to finish, this was proposed by stippi.
* Moved out anything related to notifications as they are now
managed by the media_kit.
* Solved some TODOs and minor issues too.


# 009034bd 27-Jul-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Media: Display alert before to quit when restarting

* Fixes 10770.
* While more complex solutions are proposed, i think
of it as a way to get out of an eventual deadlock or
to protect from accident close.


# 40e05d88 15-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Remove now unneeded MediaAlert class.


# b245bc8d 15-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Media Prefs: rework the BNotification code

* Factor out the notification sending in a single method
* Tweak the "progress" values so the progress bar goes from 0 to 100% in
order, and only once, during the restart
* Remove one notification that was needlessly sent twice
* Some other small cleanups

Final fix for #8171.


# aa47adf6 13-Dec-2014 Laurent Chea <contact@laurentchea.com>

Media service restart is now using BNotification. Fixes 8171.


# db5b5dfa 28-Sep-2014 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Integrate MIDI settings with the Media preflet.
More or less working.


# 1c0cacfb 23-Sep-2012 Axel Dörfler <axeld@pinc-software.de>

Cleanup.

* Sort methods like they are declared in the header.
* Fixed a number of coding style violations and other oddities.


# d49e0a27 11-Jan-2011 Alex Wilson <yourpalal2@gmail.com>

In Media preflet: add an ItemWidth() method to MediaListItem::Renderer, which tells us how much space is needed onscreen for a MediaListItem. Use the new ItemWidth() method in MediaListItem::Update() to set our width. Add a MediaWindow::_UpdateListItemMinSize() method that uses the items' width to calculate the new explicit min width of our list view. This fixes a problem I saw with localized strings in the listview not being fully displayed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7afc7756 05-Jan-2011 Alex Wilson <yourpalal2@gmail.com>

In Media preflet:
* Modify MediaListItem to use the visitor pattern
* Use the visitor pattern for comparison of MediaListItem subclassed objects
* Use the visitor pattern in MediaWindow to propagate changes to NodeListItems.
* Rename and/or remove some message constants
* Rename SettingsItem class to NodeMenuItem
* Rename Settings2Item class to ChannelMenuItem
* Derive SettingsView from BGridView, and make it an abstract base class for two new classes, AudioSettingsView and VideoSettingsView.
* Have the SettingsView subclasses handle messages originating from their children (for the most part).
* Use a BCardLayout to hold our Audio/Video SettingsViews and our instantiated node view (when applicable).
* small changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40127 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 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 : 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


# b63e3a34 28-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.
* 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


# 6b0cdfbc 23-Oct-2010 Alex Wilson <yourpalal2@gmail.com>

Update Media prefs to use BObjectList in place of BList + a few style fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39070 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c4e83dd 22-Oct-2010 Alex Wilson <yourpalal2@gmail.com>

In media preferences:
* remove custom 'BarView' class, and replace it with BSeparatorView.
* remove BStringVIew for displaying titles, our BSeparatorView does this now.
* Have the BSeparatorView always draw, BarView was only drawn sometimes.

This helps stabilise the window size, cleans up the code and looks nicer, in my opinion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39051 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a633251f 30-Sep-2010 Alex Wilson <yourpalal2@gmail.com>

Big style cleanup in preparation for refactoring the media preflet and tackling #6544.
Fix one use of sscanf(...) > 0, where it ought to be sscanf(...) == 4.
Otherwise, no functional changes intended.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38865 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 269fdeef 13-Jan-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup
whitespace => tab


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23505 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4a12470 18-Feb-2006 Jérôme Duval <korli@users.berlios.de>

fixed naming of variables
fixed some font sensitiveness issues


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16462 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a10cf76e 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13263 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d9971ae7aace9f9a3fd44558ebb64c706ce3bf11 26-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Media: Show alert while media services restart


# 7482390ab4dc1e77ccb42b4f2c290b5bfe814f7f 29-Jul-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Media: Improve both notifications and quit mechanism

* Media is now waiting for media_server to start if the window
is closed before to finish, this was proposed by stippi.
* Moved out anything related to notifications as they are now
managed by the media_kit.
* Solved some TODOs and minor issues too.


# 009034bdf0717b41c9d72b6f24b1a1289b3ef0b1 27-Jul-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Media: Display alert before to quit when restarting

* Fixes 10770.
* While more complex solutions are proposed, i think
of it as a way to get out of an eventual deadlock or
to protect from accident close.


# 40e05d88f95594fc88268b0f28313730f6a7cd41 15-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Remove now unneeded MediaAlert class.


# b245bc8dbde0733516fd59e3ccae5eadd89863d4 15-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Media Prefs: rework the BNotification code

* Factor out the notification sending in a single method
* Tweak the "progress" values so the progress bar goes from 0 to 100% in
order, and only once, during the restart
* Remove one notification that was needlessly sent twice
* Some other small cleanups

Final fix for #8171.


# aa47adf6e0410809de37a3d57776a6bb2dffc520 13-Dec-2014 Laurent Chea <contact@laurentchea.com>

Media service restart is now using BNotification. Fixes 8171.


# db5b5dfa1417cace160abbf2c554010476bf3416 28-Sep-2014 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Integrate MIDI settings with the Media preflet.
More or less working.


# 1c0cacfbc585873f3d1c69bfa1d9c8deb791b296 23-Sep-2012 Axel Dörfler <axeld@pinc-software.de>

Cleanup.

* Sort methods like they are declared in the header.
* Fixed a number of coding style violations and other oddities.


# d49e0a272c01332969c00f9cf16960c661baf277 11-Jan-2011 Alex Wilson <yourpalal2@gmail.com>

In Media preflet: add an ItemWidth() method to MediaListItem::Renderer, which tells us how much space is needed onscreen for a MediaListItem. Use the new ItemWidth() method in MediaListItem::Update() to set our width. Add a MediaWindow::_UpdateListItemMinSize() method that uses the items' width to calculate the new explicit min width of our list view. This fixes a problem I saw with localized strings in the listview not being fully displayed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7afc7756306b3fd9667d03fba787e3aa8b60cab5 05-Jan-2011 Alex Wilson <yourpalal2@gmail.com>

In Media preflet:
* Modify MediaListItem to use the visitor pattern
* Use the visitor pattern for comparison of MediaListItem subclassed objects
* Use the visitor pattern in MediaWindow to propagate changes to NodeListItems.
* Rename and/or remove some message constants
* Rename SettingsItem class to NodeMenuItem
* Rename Settings2Item class to ChannelMenuItem
* Derive SettingsView from BGridView, and make it an abstract base class for two new classes, AudioSettingsView and VideoSettingsView.
* Have the SettingsView subclasses handle messages originating from their children (for the most part).
* Use a BCardLayout to hold our Audio/Video SettingsViews and our instantiated node view (when applicable).
* small changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40127 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e7b99741803a2adf01f19b0fa59ac55b7bb45b19 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 : 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


# b63e3a348c4dccb50b34a67222bada4ea5b123ce 28-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.
* 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


# 6b0cdfbc24e965bcf4f4d934a719c7a429fe0955 23-Oct-2010 Alex Wilson <yourpalal2@gmail.com>

Update Media prefs to use BObjectList in place of BList + a few style fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39070 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c4e83dd1f03ff988afa68c7ccd21ff2bcac84d4 22-Oct-2010 Alex Wilson <yourpalal2@gmail.com>

In media preferences:
* remove custom 'BarView' class, and replace it with BSeparatorView.
* remove BStringVIew for displaying titles, our BSeparatorView does this now.
* Have the BSeparatorView always draw, BarView was only drawn sometimes.

This helps stabilise the window size, cleans up the code and looks nicer, in my opinion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39051 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a633251fba4685fcce5faba216eb5ee69fcc947f 30-Sep-2010 Alex Wilson <yourpalal2@gmail.com>

Big style cleanup in preparation for refactoring the media preflet and tackling #6544.
Fix one use of sscanf(...) > 0, where it ought to be sscanf(...) == 4.
Otherwise, no functional changes intended.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38865 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 269fdeefff71dbb13136f7404d612ed2e4284131 13-Jan-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup
whitespace => tab


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23505 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4a124700c73ba45cb0e323ffbc17d08669936c3 18-Feb-2006 Jérôme Duval <korli@users.berlios.de>

fixed naming of variables
fixed some font sensitiveness issues


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16462 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a10cf76ef5b9e8c726ebc47183abd6943023cf8f 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13263 a95241bf-73f2-0310-859d-f6bbb57e9c96