mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 12:36:07 -05:00
Resolves #151 - mpt1327 decoder configuration was not setting editor to modified on changes to traffic channel pool size or traffic channel timeout
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* SDR Trunk
|
* sdrtrunk
|
||||||
* Copyright (C) 2014-2016 Dennis Sheirer
|
* Copyright (C) 2014-2017 Dennis Sheirer
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -14,33 +14,27 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package module.decode.mpt1327;
|
package module.decode.mpt1327;
|
||||||
|
|
||||||
import gui.editor.Editor;
|
|
||||||
import gui.editor.EditorValidationException;
|
|
||||||
import gui.editor.ValidatingEditor;
|
|
||||||
|
|
||||||
import java.awt.EventQueue;
|
|
||||||
import java.awt.event.ActionEvent;
|
|
||||||
import java.awt.event.ActionListener;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.swing.DefaultComboBoxModel;
|
|
||||||
import javax.swing.JButton;
|
|
||||||
import javax.swing.JCheckBox;
|
|
||||||
import javax.swing.JComboBox;
|
|
||||||
import javax.swing.JLabel;
|
|
||||||
import javax.swing.JSlider;
|
|
||||||
import javax.swing.event.ChangeEvent;
|
|
||||||
import javax.swing.event.ChangeListener;
|
|
||||||
|
|
||||||
import module.decode.config.DecodeConfiguration;
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
|
||||||
import controller.channel.Channel;
|
import controller.channel.Channel;
|
||||||
import controller.channel.map.ChannelMap;
|
import controller.channel.map.ChannelMap;
|
||||||
import controller.channel.map.ChannelMapManagerFrame;
|
import controller.channel.map.ChannelMapManagerFrame;
|
||||||
import controller.channel.map.ChannelMapModel;
|
import controller.channel.map.ChannelMapModel;
|
||||||
|
import gui.editor.Editor;
|
||||||
|
import gui.editor.EditorValidationException;
|
||||||
|
import gui.editor.ValidatingEditor;
|
||||||
|
import module.decode.config.DecodeConfiguration;
|
||||||
|
import net.miginfocom.swing.MigLayout;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import javax.swing.event.ChangeEvent;
|
||||||
|
import javax.swing.event.ChangeListener;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class MPT1327DecoderEditor extends ValidatingEditor<Channel>
|
public class MPT1327DecoderEditor extends ValidatingEditor<Channel>
|
||||||
{
|
{
|
||||||
@@ -154,6 +148,7 @@ public class MPT1327DecoderEditor extends ValidatingEditor<Channel>
|
|||||||
{
|
{
|
||||||
mTrafficChannelPoolSizeLabel.setText("Traffic Pool: " +
|
mTrafficChannelPoolSizeLabel.setText("Traffic Pool: " +
|
||||||
mTrafficChannelPoolSize.getValue());
|
mTrafficChannelPoolSize.getValue());
|
||||||
|
setModified(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -175,6 +170,7 @@ public class MPT1327DecoderEditor extends ValidatingEditor<Channel>
|
|||||||
public void stateChanged(ChangeEvent e)
|
public void stateChanged(ChangeEvent e)
|
||||||
{
|
{
|
||||||
mCallTimeoutLabel.setText("Timeout: " + mCallTimeout.getValue());
|
mCallTimeoutLabel.setText("Timeout: " + mCallTimeout.getValue());
|
||||||
|
setModified(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user