mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -233,7 +233,8 @@ public class DMRConfigurationEditor extends ChannelConfigurationEditor
|
||||
{
|
||||
mSourceConfigurationEditor = new FrequencyEditor(getTunerModel(),
|
||||
DecodeConfigDMR.CHANNEL_ROTATION_DELAY_MINIMUM_MS,
|
||||
DecodeConfigDMR.CHANNEL_ROTATION_DELAY_MAXIMUM_MS);
|
||||
DecodeConfigDMR.CHANNEL_ROTATION_DELAY_MAXIMUM_MS,
|
||||
DecodeConfigDMR.CHANNEL_ROTATION_DELAY_DEFAULT_MS);
|
||||
|
||||
//Add a listener so that we can push change notifications up to this editor
|
||||
mSourceConfigurationEditor.modifiedProperty()
|
||||
|
||||
@@ -197,7 +197,8 @@ public class MPT1327ConfigurationEditor extends ChannelConfigurationEditor
|
||||
{
|
||||
mSourceConfigurationEditor = new FrequencyEditor(getTunerModel(),
|
||||
DecodeConfigMPT1327.CHANNEL_ROTATION_DELAY_MINIMUM_MS,
|
||||
DecodeConfigMPT1327.CHANNEL_ROTATION_DELAY_MAXIMUM_MS);
|
||||
DecodeConfigMPT1327.CHANNEL_ROTATION_DELAY_MAXIMUM_MS,
|
||||
DecodeConfigMPT1327.CHANNEL_ROTATION_DELAY_DEFAULT_MS);
|
||||
|
||||
//Add a listener so that we can push change notifications up to this editor
|
||||
mSourceConfigurationEditor.modifiedProperty()
|
||||
|
||||
@@ -193,7 +193,8 @@ public class P25P1ConfigurationEditor extends ChannelConfigurationEditor
|
||||
{
|
||||
mSourceConfigurationEditor = new FrequencyEditor(getTunerModel(),
|
||||
DecodeConfigP25Phase1.CHANNEL_ROTATION_DELAY_MINIMUM_MS,
|
||||
DecodeConfigP25Phase1.CHANNEL_ROTATION_DELAY_MAXIMUM_MS);
|
||||
DecodeConfigP25Phase1.CHANNEL_ROTATION_DELAY_MAXIMUM_MS,
|
||||
DecodeConfigP25Phase1.CHANNEL_ROTATION_DELAY_DEFAULT_MS);
|
||||
|
||||
//Add a listener so that we can push change notifications up to this editor
|
||||
mSourceConfigurationEditor.modifiedProperty()
|
||||
|
||||
@@ -66,6 +66,7 @@ public class FrequencyEditor extends SourceConfigurationEditor<SourceConfigurati
|
||||
private VBox mFrequencyBoxContainer;
|
||||
private Spinner<Integer> mChannelRotationDelaySpinner;
|
||||
private boolean mAllowMultipleFrequencies = false;
|
||||
private int mFrequencyRotationDefault = ChannelRotationMonitor.CHANNEL_ROTATION_DELAY_DEFAULT;
|
||||
private int mFrequencyRotationMinimum = ChannelRotationMonitor.CHANNEL_ROTATION_DELAY_MINIMUM;
|
||||
private int mFrequencyRotationMaximum = ChannelRotationMonitor.CHANNEL_ROTATION_DELAY_MAXIMUM;
|
||||
|
||||
@@ -78,12 +79,13 @@ public class FrequencyEditor extends SourceConfigurationEditor<SourceConfigurati
|
||||
* @param minRotationDelay in milliseconds for channel/frequency dwell
|
||||
* @param maxRotationDelay in milliseconds for channel/frequency dwell
|
||||
*/
|
||||
public FrequencyEditor(TunerModel tunerModel, int minRotationDelay, int maxRotationDelay)
|
||||
public FrequencyEditor(TunerModel tunerModel, int minRotationDelay, int maxRotationDelay, int defaultRotationDelay)
|
||||
{
|
||||
mTunerModel = tunerModel;
|
||||
mAllowMultipleFrequencies = true;
|
||||
mFrequencyRotationMinimum = minRotationDelay;
|
||||
mFrequencyRotationMaximum = maxRotationDelay;
|
||||
mFrequencyRotationDefault = defaultRotationDelay;
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user