mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Merges #34 Major redesign of Tuner, Channel and Alias management.
Changes to model, view and controller components and updates all gui editors. Removes the configuration panel and tree and replaces with 3 new panels. Updates playlist.xml to a new playlist_v2.xml format.
This commit is contained in:
@@ -8,18 +8,21 @@ import javax.swing.JButton;
|
||||
import javax.swing.JDesktopPane;
|
||||
import javax.swing.JInternalFrame;
|
||||
|
||||
import module.decode.DecodeComponentEditor;
|
||||
import module.decode.config.DecodeConfiguration;
|
||||
import module.decode.DecodeConfigurationEditor;
|
||||
import net.miginfocom.swing.MigLayout;
|
||||
import playlist.PlaylistManager;
|
||||
import source.IControllableFileSource;
|
||||
import controller.ResourceManager;
|
||||
import alias.AliasModel;
|
||||
import controller.ThreadPoolManager;
|
||||
import controller.channel.ChannelModel;
|
||||
import controller.channel.map.ChannelMapModel;
|
||||
|
||||
public class DecoderSelectionFrame extends JInternalFrame
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private DecodeComponentEditor mDecodeEditor = new DecodeComponentEditor( null );
|
||||
private ResourceManager mResourceManager = new ResourceManager();
|
||||
private DecodeConfigurationEditor mDecodeEditor = new DecodeConfigurationEditor( null );
|
||||
private PlaylistManager mPlaylistManager;
|
||||
|
||||
private IControllableFileSource mSource;
|
||||
private JDesktopPane mDesktop;
|
||||
@@ -27,6 +30,14 @@ public class DecoderSelectionFrame extends JInternalFrame
|
||||
public DecoderSelectionFrame( JDesktopPane desktop,
|
||||
IControllableFileSource source )
|
||||
{
|
||||
AliasModel aliasModel = new AliasModel();
|
||||
ChannelModel channelModel = new ChannelModel();
|
||||
ChannelMapModel channelMapModel = new ChannelMapModel();
|
||||
|
||||
ThreadPoolManager tpm = new ThreadPoolManager();
|
||||
|
||||
mPlaylistManager = new PlaylistManager( tpm, aliasModel, channelModel, channelMapModel );
|
||||
|
||||
mDesktop = desktop;
|
||||
mSource = source;
|
||||
|
||||
@@ -65,22 +76,17 @@ public class DecoderSelectionFrame extends JInternalFrame
|
||||
@Override
|
||||
public void actionPerformed( ActionEvent arg0 )
|
||||
{
|
||||
DecodeConfiguration config = mDecodeEditor.getDecodeConfig();
|
||||
|
||||
if( config != null )
|
||||
{
|
||||
DecoderViewFrame decoderFrame = new DecoderViewFrame(
|
||||
mResourceManager,
|
||||
config,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
mSource );
|
||||
|
||||
decoderFrame.setVisible( true );
|
||||
|
||||
mDesktop.add( decoderFrame );
|
||||
}
|
||||
// DecodeConfiguration config = mDecodeEditor.getDecodeConfig();
|
||||
//
|
||||
// if( config != null )
|
||||
// {
|
||||
// DecoderViewFrame decoderFrame = new DecoderViewFrame(
|
||||
// mPlaylistManager, null, mSource );
|
||||
//
|
||||
// decoderFrame.setVisible( true );
|
||||
//
|
||||
// mDesktop.add( decoderFrame );
|
||||
// }
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user