Resolves issue with spectral and waterfall alignment with frequency

overlay.

Minor edits to MPT and P25 config editors

Resolved issue with channels not accepting channel config changes 
between restarts (processing chain was not being deleted)

Minor edits to P25 decoder state
This commit is contained in:
denny
2015-11-22 11:29:05 -05:00
parent 4025f88951
commit dc3bcfd404
9 changed files with 120 additions and 79 deletions

View File

@@ -148,8 +148,14 @@ public class P25DecoderPanel extends DecoderPanel
if( from != null )
{
mFromAlias.setText( from.getName() );
mFromAlias.setIcon( mSettingsManager
.getImageIcon( from.getIconName(), SettingsManager.DEFAULT_ICON_SIZE ) );
String icon = from.getIconName();
if( icon != null )
{
mFromAlias.setIcon( mSettingsManager.getImageIcon(
icon, SettingsManager.DEFAULT_ICON_SIZE ) );
}
}
else
{
@@ -173,8 +179,14 @@ public class P25DecoderPanel extends DecoderPanel
if( to != null )
{
mToAlias.setText( to.getName() );
mToAlias.setIcon( mSettingsManager
.getImageIcon( to.getIconName(), SettingsManager.DEFAULT_ICON_SIZE ) );
String icon = to.getIconName();
if( icon != null )
{
mToAlias.setIcon( mSettingsManager.getImageIcon(
icon, SettingsManager.DEFAULT_ICON_SIZE ) );
}
}
else
{

View File

@@ -2922,7 +2922,7 @@ public class P25DecoderState extends DecoderState
/**
* Broadcasts an update for the TO group or unit address
*/
private void updateTo( String to )
private void updateTo( final String to )
{
if( to != null && !to.contentEquals( "0000" ) && !to.contentEquals( "000000" ) )
{
@@ -2959,7 +2959,7 @@ public class P25DecoderState extends DecoderState
/**
* Broadcasts an update for the FROM group or unit address
*/
private void updateFrom( String from )
private void updateFrom( final String from )
{
if( from != null && !from.contentEquals( "0000" ) && !from.contentEquals( "000000" ) )
{

View File

@@ -105,14 +105,14 @@ public class P25Editor extends DecodeEditor
mTrafficChannelPoolSize.setLabelTable( mTrafficChannelPoolSize.createStandardLabels( 10, 10 ) );
mTrafficChannelPoolSize.setPaintLabels( true );
mTrafficChannelPoolSizeLabel = new JLabel( "Traffic Channel Pool Size: " + mTrafficChannelPoolSize.getValue() + " " );
mTrafficChannelPoolSizeLabel = new JLabel( "Traffic Channel Pool: " + mTrafficChannelPoolSize.getValue() + " " );
mTrafficChannelPoolSize.addChangeListener( new ChangeListener()
{
@Override
public void stateChanged( ChangeEvent e )
{
mTrafficChannelPoolSizeLabel.setText( "Traffic Channel Pool Size: " + mTrafficChannelPoolSize.getValue() );
mTrafficChannelPoolSizeLabel.setText( "Traffic Channel Pool: " + mTrafficChannelPoolSize.getValue() );
}
} );