mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
328 Channel Auto-Start capability. Adds auto-start and auto-start
ordering to each channel configuration to provide the user with greater control over initial application startup configuration. Adds new dialog window that displays on startup that allows the user to invoke/cancel auto-start, or simply allow the timer to expire whereby the channels will be auto-started. Updates channel table model to include an auto-start column and relabels the 'Enabled' column to read 'Playing'. Updates channel editor to change the 'Enable/Disable' button to read 'Start/Stop'. Changes the 'enabled' property of the channel configuration to indicate the current 'processing' status - isProcessing(). Channel's XML configuration re-purposes the 'enabled' property to indicate auto-start and adds a new (optional) auto-start 'order' attribute.
This commit is contained in:
@@ -34,8 +34,16 @@ import io.github.dsheirer.source.tuner.frequency.IFrequencyChangeProcessor;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import javax.swing.JPanel;
|
||||
import java.awt.BasicStroke;
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Point;
|
||||
import java.awt.RenderingHints;
|
||||
import java.awt.Stroke;
|
||||
import java.awt.event.ComponentEvent;
|
||||
import java.awt.event.ComponentListener;
|
||||
import java.awt.geom.Line2D;
|
||||
@@ -517,14 +525,14 @@ public class OverlayPanel extends JPanel implements ChannelEventListener, IFrequ
|
||||
for(Channel channel : mVisibleChannels)
|
||||
{
|
||||
if(mChannelDisplay == ChannelDisplay.ALL ||
|
||||
(mChannelDisplay == ChannelDisplay.ENABLED && channel.getEnabled()))
|
||||
(mChannelDisplay == ChannelDisplay.ENABLED && channel.isProcessing()))
|
||||
{
|
||||
//Choose the correct background color to use
|
||||
if(channel.isSelected())
|
||||
{
|
||||
graphics.setColor(mColorChannelConfigSelected);
|
||||
}
|
||||
else if(channel.getEnabled())
|
||||
else if(channel.isProcessing())
|
||||
{
|
||||
graphics.setColor(mColorChannelConfigProcessing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user