mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-31 15:07:12 -04:00
65 lines
2.1 KiB
C++
65 lines
2.1 KiB
C++
#ifndef BASICCHANNELSETTINGSDIALOG_H
|
|
#define BASICCHANNELSETTINGSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "../../exports/export.h"
|
|
|
|
namespace Ui {
|
|
class BasicChannelSettingsDialog;
|
|
}
|
|
|
|
class ChannelMarker;
|
|
|
|
class SDRGUI_API BasicChannelSettingsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit BasicChannelSettingsDialog(ChannelMarker* marker, QWidget *parent = 0);
|
|
~BasicChannelSettingsDialog();
|
|
bool hasChanged() const { return m_hasChanged; }
|
|
bool useReverseAPI() const { return m_useReverseAPI; }
|
|
const QString& getReverseAPIAddress() const { return m_reverseAPIAddress; }
|
|
uint16_t getReverseAPIPort() const { return m_reverseAPIPort; }
|
|
uint16_t getReverseAPIDeviceIndex() const { return m_reverseAPIDeviceIndex; }
|
|
uint16_t getReverseAPIChannelIndex() const { return m_reverseAPIChannelIndex; }
|
|
int getSelectedStreamIndex() const { return m_streamIndex; }
|
|
void setUseReverseAPI(bool useReverseAPI);
|
|
void setReverseAPIAddress(const QString& address);
|
|
void setReverseAPIPort(uint16_t port);
|
|
void setReverseAPIDeviceIndex(uint16_t deviceIndex);
|
|
void setReverseAPIChannelIndex(uint16_t channelIndex);
|
|
void setNumberOfStreams(int numberOfStreams);
|
|
void setStreamIndex(int index);
|
|
void setDefaultTitle(const QString& title) { m_defaultTitle = title; }
|
|
|
|
private slots:
|
|
void on_titleReset_clicked();
|
|
void on_colorBtn_clicked();
|
|
void on_reverseAPI_toggled(bool checked);
|
|
void on_reverseAPIAddress_editingFinished();
|
|
void on_reverseAPIPort_editingFinished();
|
|
void on_reverseAPIDeviceIndex_editingFinished();
|
|
void on_reverseAPIChannelIndex_editingFinished();
|
|
void on_streamIndex_valueChanged(int value);
|
|
void accept();
|
|
|
|
private:
|
|
Ui::BasicChannelSettingsDialog *ui;
|
|
ChannelMarker* m_channelMarker;
|
|
QColor m_color;
|
|
bool m_useReverseAPI;
|
|
QString m_reverseAPIAddress;
|
|
uint16_t m_reverseAPIPort;
|
|
uint16_t m_reverseAPIDeviceIndex;
|
|
uint16_t m_reverseAPIChannelIndex;
|
|
QString m_defaultTitle;
|
|
int m_streamIndex;
|
|
bool m_hasChanged;
|
|
|
|
void paintColor();
|
|
};
|
|
|
|
#endif // BASICCHANNELSETTINGSDIALOG_H
|