mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-15 01:57:39 -05:00
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* *****************************************************************************
|
* *****************************************************************************
|
||||||
* Copyright (C) 2014-2023 Dennis Sheirer
|
* Copyright (C) 2014-2024 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
|
||||||
@@ -142,6 +142,17 @@ public abstract class ChannelConfigurationEditor extends Editor<Channel>
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Starts the current channel when the play button is not disabled.
|
||||||
|
*/
|
||||||
|
public void startChannel()
|
||||||
|
{
|
||||||
|
if(!getPlayButton().disabledProperty().get())
|
||||||
|
{
|
||||||
|
getPlayButton().fire();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public abstract DecoderType getDecoderType();
|
public abstract DecoderType getDecoderType();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ import javafx.scene.control.TableView;
|
|||||||
import javafx.scene.control.TextField;
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.control.ToggleButton;
|
import javafx.scene.control.ToggleButton;
|
||||||
import javafx.scene.control.cell.PropertyValueFactory;
|
import javafx.scene.control.cell.PropertyValueFactory;
|
||||||
|
import javafx.scene.input.MouseButton;
|
||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.Priority;
|
import javafx.scene.layout.Priority;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
@@ -504,6 +505,12 @@ public class ChannelEditor extends SplitPane implements IFilterProcessor
|
|||||||
mChannelTableView.setItems(sortedList);
|
mChannelTableView.setItems(sortedList);
|
||||||
mChannelTableView.getSelectionModel().selectedItemProperty()
|
mChannelTableView.getSelectionModel().selectedItemProperty()
|
||||||
.addListener((observable, oldValue, newValue) -> setChannel(newValue));
|
.addListener((observable, oldValue, newValue) -> setChannel(newValue));
|
||||||
|
mChannelTableView.setOnMouseClicked(event -> {
|
||||||
|
if(event.getButton().equals(MouseButton.PRIMARY) && event.getClickCount() == 2)
|
||||||
|
{
|
||||||
|
getChannelConfigurationEditor().startChannel();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return mChannelTableView;
|
return mChannelTableView;
|
||||||
|
|||||||
Reference in New Issue
Block a user