diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 23:01:50 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 23:01:50 +0100 |
| commit | 5c60c77adff9a54fd5f94f9915b22ccd8c4c5a3b (patch) | |
| tree | 410fa358a5f73260a579b4d669730f319a4d2609 /UDPExamples/ClientWidget.hpp | |
| parent | 6c82050de806dcdafaed0077400a6c3396a4a159 (diff) | |
| parent | e0737c56c1e384e05064a0c6e1ac46979371041b (diff) | |
Update upstream source from tag 'upstream/2.0.0+repack'
Update to upstream version '2.0.0+repack'
with Debian dir 55dbb3a6a7eb189e187dd79f732623ca0b56116d
Diffstat (limited to 'UDPExamples/ClientWidget.hpp')
| -rw-r--r-- | UDPExamples/ClientWidget.hpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/UDPExamples/ClientWidget.hpp b/UDPExamples/ClientWidget.hpp index 1f5ae601..0459ad03 100644 --- a/UDPExamples/ClientWidget.hpp +++ b/UDPExamples/ClientWidget.hpp @@ -11,6 +11,7 @@ class QAbstractItemModel; class QModelIndex; +class QColor; using Frequency = MessageServer::Frequency; @@ -22,7 +23,8 @@ class ClientWidget public: explicit ClientWidget (QAbstractItemModel * decodes_model, QAbstractItemModel * beacons_model , QString const& id, QString const& version, QString const& revision - , QWidget * parent = nullptr); + , QListWidget const * calls_of_interest, QWidget * parent = nullptr); + ~ClientWidget (); bool fast_mode () const {return fast_mode_;} @@ -30,7 +32,8 @@ public: , QString const& report, QString const& tx_mode, bool tx_enabled , bool transmitting, bool decoding, qint32 rx_df, qint32 tx_df , QString const& de_call, QString const& de_grid, QString const& dx_grid - , bool watchdog_timeout, QString const& sub_mode, bool fast_mode); + , bool watchdog_timeout, QString const& sub_mode, bool fast_mode + , quint8 special_op_mode); Q_SLOT void decode_added (bool is_new, QString const& client_id, QTime, qint32 snr , float delta_time, quint32 delta_frequency, QString const& mode , QString const& message, bool low_confidence, bool off_air); @@ -43,9 +46,14 @@ public: Q_SIGNAL void do_reply (QModelIndex const&, quint8 modifier); Q_SIGNAL void do_halt_tx (QString const& id, bool auto_only); Q_SIGNAL void do_free_text (QString const& id, QString const& text, bool); + Q_SIGNAL void location (QString const& id, QString const& text); + Q_SIGNAL void highlight_callsign (QString const& id, QString const& call + , QColor const& bg = QColor {}, QColor const& fg = QColor {} + , bool last_only = false); private: QString id_; + QListWidget const * calls_of_interest_; class IdFilterModel final : public QSortFilterProxyModel { @@ -69,9 +77,11 @@ private: QTableView * decodes_table_view_; QTableView * beacons_table_view_; QLineEdit * message_line_edit_; + QLineEdit * grid_line_edit_; QStackedLayout * decodes_stack_; QAbstractButton * auto_off_button_; QAbstractButton * halt_tx_button_; + QLabel * de_label_; QLabel * mode_label_; bool fast_mode_; QLabel * frequency_label_; |
