mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Removed frequency change listener framework from tuner so that the tuner controller handles all frequency change interaction. Updated tuner view to allow selecting tuners for main spectral display and/or launching a new spectral display by clicking in the tuner table cell.
35 lines
441 B
Java
35 lines
441 B
Java
package source.tuner;
|
|
|
|
public class TunerEvent
|
|
{
|
|
private Tuner mTuner;
|
|
private Event mEvent;
|
|
|
|
public TunerEvent( Tuner tuner, Event event )
|
|
{
|
|
mTuner = tuner;
|
|
mEvent = event;
|
|
}
|
|
|
|
public Tuner getTuner()
|
|
{
|
|
return mTuner;
|
|
}
|
|
|
|
public Event getEvent()
|
|
{
|
|
return mEvent;
|
|
}
|
|
|
|
public enum Event
|
|
{
|
|
ADD,
|
|
REMOVE,
|
|
CHANNEL_COUNT,
|
|
FREQUENCY,
|
|
SAMPLE_RATE,
|
|
REQUEST_MAIN_SPECTRAL_DISPLAY,
|
|
REQUEST_NEW_SPECTRAL_DISPLAY;
|
|
}
|
|
}
|