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:
Denny
2017-01-28 20:41:46 -05:00
parent 74aab2cc72
commit a228f29a40
3 changed files with 79 additions and 15 deletions

View File

@@ -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