SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
basicchannelsettingsdialog.h
Go to the documentation of this file.
1 #ifndef BASICCHANNELSETTINGSDIALOG_H
2 #define BASICCHANNELSETTINGSDIALOG_H
3 
4 #include <QDialog>
5 
6 #include "../../exports/export.h"
7 
8 namespace Ui {
10 }
11 
12 class ChannelMarker;
13 
14 class SDRGUI_API BasicChannelSettingsDialog : public QDialog
15 {
16  Q_OBJECT
17 
18 public:
19  explicit BasicChannelSettingsDialog(ChannelMarker* marker, QWidget *parent = 0);
21  bool hasChanged() const { return m_hasChanged; }
22  bool useReverseAPI() const { return m_useReverseAPI; }
23  const QString& getReverseAPIAddress() const { return m_reverseAPIAddress; }
24  uint16_t getReverseAPIPort() const { return m_reverseAPIPort; }
25  uint16_t getReverseAPIDeviceIndex() const { return m_reverseAPIDeviceIndex; }
26  uint16_t getReverseAPIChannelIndex() const { return m_reverseAPIChannelIndex; }
27  void setUseReverseAPI(bool useReverseAPI);
28  void setReverseAPIAddress(const QString& address);
29  void setReverseAPIPort(uint16_t port);
30  void setReverseAPIDeviceIndex(uint16_t deviceIndex);
31  void setReverseAPIChannelIndex(uint16_t channelIndex);
32 
33 private slots:
34  void on_colorBtn_clicked();
35  void on_reverseAPI_toggled(bool checked);
36  void on_reverseAPIAddress_editingFinished();
37  void on_reverseAPIPort_editingFinished();
38  void on_reverseAPIDeviceIndex_editingFinished();
39  void on_reverseAPIChannelIndex_editingFinished();
40  void accept();
41 
42 private:
43  Ui::BasicChannelSettingsDialog *ui;
45  QColor m_color;
52 
53  void paintColor();
54 };
55 
56 #endif // BASICCHANNELSETTINGSDIALOG_H
const QString & getReverseAPIAddress() const
#define SDRGUI_API
Definition: export.h:52
unsigned short uint16_t
Definition: rtptypes_win.h:44
Ui::BasicChannelSettingsDialog * ui