mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Resolves #154 - add right-click contextual channel menus for Now Playing table.
Also disables right-click channel activation from the spectral display as a clean-up action.
This commit is contained in:
@@ -636,21 +636,21 @@ public class SpectralDisplayPanel extends JPanel implements Listener<ComplexBuff
|
||||
|
||||
}
|
||||
|
||||
JMenu frequencyMenu = new JMenu(
|
||||
sCURSOR_FORMAT.format((float) frequency / 1000000.0f));
|
||||
|
||||
JMenu decoderMenu = new JMenu("Add Decoder");
|
||||
|
||||
for(DecoderType type : DecoderType.getPrimaryDecoders())
|
||||
{
|
||||
decoderMenu.add(new DecoderItem(type, frequency));
|
||||
}
|
||||
|
||||
frequencyMenu.add(decoderMenu);
|
||||
|
||||
contextMenu.add(frequencyMenu);
|
||||
|
||||
contextMenu.add(new JSeparator());
|
||||
// JMenu frequencyMenu = new JMenu(
|
||||
// sCURSOR_FORMAT.format((float) frequency / 1000000.0f));
|
||||
//
|
||||
// JMenu decoderMenu = new JMenu("Add Decoder");
|
||||
//
|
||||
// for(DecoderType type : DecoderType.getPrimaryDecoders())
|
||||
// {
|
||||
// decoderMenu.add(new DecoderItem(type, frequency));
|
||||
// }
|
||||
//
|
||||
// frequencyMenu.add(decoderMenu);
|
||||
//
|
||||
// contextMenu.add(frequencyMenu);
|
||||
//
|
||||
// contextMenu.add(new JSeparator());
|
||||
|
||||
/**
|
||||
* Color Menus
|
||||
|
||||
Reference in New Issue
Block a user