mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
WIP #34 - more work on tuner model and view. Includes new tuner
configuration and tuner configuration assignment editors. Beginning of tuner editor panel rework. Removes most of the remaining JTree configuration pieces. Updates the settings manager to load and save tuners and refactors all of the tuner configuration management out into the tuner configuration model.
This commit is contained in:
@@ -28,12 +28,12 @@ import settings.SettingsManager;
|
||||
import source.SourceException;
|
||||
import source.tuner.MixerTuner;
|
||||
import source.tuner.MixerTunerDataLine;
|
||||
import source.tuner.TunerChangeEvent;
|
||||
import source.tuner.TunerEvent;
|
||||
import source.tuner.TunerChannel;
|
||||
import source.tuner.TunerChannelSource;
|
||||
import source.tuner.TunerClass;
|
||||
import source.tuner.TunerConfiguration;
|
||||
import source.tuner.TunerType;
|
||||
import source.tuner.configuration.TunerConfiguration;
|
||||
|
||||
public class FCDTuner extends MixerTuner
|
||||
{
|
||||
@@ -80,12 +80,6 @@ public class FCDTuner extends MixerTuner
|
||||
return mController.getUSBAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public JPanel getEditor( SettingsManager settingsManager )
|
||||
{
|
||||
return mController.getEditor( this, settingsManager );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply( TunerConfiguration config )throws SourceException
|
||||
{
|
||||
@@ -118,7 +112,7 @@ public class FCDTuner extends MixerTuner
|
||||
|
||||
if( source != null )
|
||||
{
|
||||
broadcast( new TunerChangeEvent( this, TunerChangeEvent.Event.CHANNEL_COUNT ) );
|
||||
broadcast( new TunerEvent( this, TunerEvent.Event.CHANNEL_COUNT ) );
|
||||
}
|
||||
|
||||
return source;
|
||||
|
||||
Reference in New Issue
Block a user