diff options
| author | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
|---|---|---|
| committer | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
| commit | b4aebf2d137b892f53503b13785ecae900062ff7 (patch) | |
| tree | 3ba99b2baec2292f2e13bfe90a5e401a5f4c47a5 /UDPExamples/MessageAggregatorMainWindow.hpp | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
New upstream version 1.9.1+repackupstream/1.9.1+repack
* Drop local hamlib copy (commit d1b545be).
* Drop local boost copy (1.63.0).
Diffstat (limited to 'UDPExamples/MessageAggregatorMainWindow.hpp')
| -rw-r--r-- | UDPExamples/MessageAggregatorMainWindow.hpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/UDPExamples/MessageAggregatorMainWindow.hpp b/UDPExamples/MessageAggregatorMainWindow.hpp index 4039c60a..b699bee9 100644 --- a/UDPExamples/MessageAggregatorMainWindow.hpp +++ b/UDPExamples/MessageAggregatorMainWindow.hpp @@ -15,6 +15,7 @@ class BeaconsModel; class QLineEdit; class QTableView; class ClientWidget; +class QListWidget; using Frequency = MessageServer::Frequency; @@ -25,15 +26,23 @@ class MessageAggregatorMainWindow public: MessageAggregatorMainWindow (); + ~MessageAggregatorMainWindow (); Q_SLOT void log_qso (QString const& /*id*/, QDateTime time_off, QString const& dx_call, QString const& dx_grid , Frequency dial_frequency, QString const& mode, QString const& report_sent , QString const& report_received, QString const& tx_power, QString const& comments - , QString const& name, QDateTime time_on); + , QString const& name, QDateTime time_on, QString const& operator_call + , QString const& my_call, QString const& my_grid); private: void add_client (QString const& id, QString const& version, QString const& revision); void remove_client (QString const& id); + void change_highlighting (QString const& call, QColor const& bg = QColor {}, QColor const& fg = QColor {}, + bool last_only = false); + + // maps client id to widgets + using ClientsDictionary = QHash<QString, ClientWidget *>; + ClientsDictionary dock_widgets_; QStandardItemModel * log_; QMenu * view_menu_; @@ -42,10 +51,12 @@ private: MessageServer * server_; QLineEdit * multicast_group_line_edit_; QTableView * log_table_view_; - - // maps client id to widgets - using ClientsDictionary = QHash<QString, ClientWidget *>; - ClientsDictionary dock_widgets_; + QListWidget * calls_of_interest_; + QAction * add_call_of_interest_action_; + QAction * delete_call_of_interest_action_; + QAction * last_call_of_interest_action_; + QAction * call_of_interest_bg_colour_action_; + QAction * call_of_interest_fg_colour_action_; }; #endif |
