summaryrefslogtreecommitdiff
path: root/UDPExamples/ClientWidget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'UDPExamples/ClientWidget.hpp')
-rw-r--r--UDPExamples/ClientWidget.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/UDPExamples/ClientWidget.hpp b/UDPExamples/ClientWidget.hpp
index 1f5ae601..29059bfa 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_;}
@@ -43,9 +45,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 +76,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_;