Adds support to channel model and processing manager to auto-start

channels upon loading the playlist.  

Processing manager now detects channel configuration changes and
restarts the channel if it is currently processing.

Channel editor enable button now shows green if it is processing, or
default when not processing.
This commit is contained in:
denny
2016-01-24 07:19:30 -05:00
parent ec10bb7e62
commit 61f68c08e8
6 changed files with 210 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ import module.decode.config.DecodeConfiguration;
import net.miginfocom.swing.MigLayout;
import playlist.PlaylistManager;
import source.IControllableFileSource;
import controller.ThreadPoolManager;
import controller.channel.ChannelModel;
public class DecoderSelectionFrame extends JInternalFrame
@@ -29,7 +30,10 @@ public class DecoderSelectionFrame extends JInternalFrame
IControllableFileSource source )
{
ChannelModel channelModel = new ChannelModel();
mPlaylistManager = new PlaylistManager( channelModel );
ThreadPoolManager tpm = new ThreadPoolManager();
mPlaylistManager = new PlaylistManager( tpm, channelModel );
mDesktop = desktop;
mSource = source;