summaryrefslogtreecommitdiff
path: root/UDPExamples/MessageAggregatorMainWindow.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /UDPExamples/MessageAggregatorMainWindow.hpp
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'UDPExamples/MessageAggregatorMainWindow.hpp')
-rw-r--r--[-rwxr-xr-x]UDPExamples/MessageAggregatorMainWindow.hpp150
1 files changed, 75 insertions, 75 deletions
diff --git a/UDPExamples/MessageAggregatorMainWindow.hpp b/UDPExamples/MessageAggregatorMainWindow.hpp
index 8216b699..201c6936 100755..100644
--- a/UDPExamples/MessageAggregatorMainWindow.hpp
+++ b/UDPExamples/MessageAggregatorMainWindow.hpp
@@ -1,75 +1,75 @@
-#ifndef WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__
-#define WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__
-
-#include <QMainWindow>
-#include <QHash>
-#include <QString>
-
-#include "MessageServer.hpp"
-#include "widgets/CheckableItemComboBox.hpp"
-
-class QDateTime;
-class QStandardItemModel;
-class QMenu;
-class DecodesModel;
-class BeaconsModel;
-class QLineEdit;
-class QTableView;
-class ClientWidget;
-class QListWidget;
-class QLabel;
-class QSpinBox;
-
-using Frequency = MessageServer::Frequency;
-
-class MessageAggregatorMainWindow
- : public QMainWindow
-{
- Q_OBJECT;
-
- using ClientKey = MessageServer::ClientKey;
-
-public:
- MessageAggregatorMainWindow ();
- ~MessageAggregatorMainWindow ();
-
- Q_SLOT void log_qso (ClientKey const&, 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& operator_call
- , QString const& my_call, QString const& my_grid
- , QString const& exchange_sent, QString const& exchange_rcvd, QString const& prop_mode
- , QString const& satellite, QString const& sat_mode, QString const& freqRx);
-
-private:
- void restart_server ();
- void add_client (ClientKey const&, QString const& version, QString const& revision);
- void remove_client (ClientKey const&);
- void change_highlighting (QString const& call, QColor const& bg = QColor {}, QColor const& fg = QColor {},
- bool last_only = false);
- Q_SLOT void validate_network_interfaces (QString const&);
-
- // maps client id to widgets
- using ClientsDictionary = QHash<ClientKey, ClientWidget *>;
- ClientsDictionary dock_widgets_;
-
- QStandardItemModel * log_;
- QMenu * view_menu_;
- DecodesModel * decodes_model_;
- BeaconsModel * beacons_model_;
- MessageServer * server_;
- QSpinBox * port_spin_box_;
- QLineEdit * multicast_group_line_edit_;
- CheckableItemComboBox * network_interfaces_combo_box_;
- QString loopback_interface_name_;
- QLabel * network_interfaces_form_label_widget_;
- QTableView * log_table_view_;
- 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
+#ifndef WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__
+#define WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__
+
+#include <QMainWindow>
+#include <QHash>
+#include <QString>
+
+#include "MessageServer.hpp"
+#include "widgets/CheckableItemComboBox.hpp"
+
+class QDateTime;
+class QStandardItemModel;
+class QMenu;
+class DecodesModel;
+class BeaconsModel;
+class QLineEdit;
+class QTableView;
+class ClientWidget;
+class QListWidget;
+class QLabel;
+class QSpinBox;
+
+using Frequency = MessageServer::Frequency;
+
+class MessageAggregatorMainWindow
+ : public QMainWindow
+{
+ Q_OBJECT;
+
+ using ClientKey = MessageServer::ClientKey;
+
+public:
+ MessageAggregatorMainWindow ();
+ ~MessageAggregatorMainWindow ();
+
+ Q_SLOT void log_qso (ClientKey const&, 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& operator_call
+ , QString const& my_call, QString const& my_grid
+ , QString const& exchange_sent, QString const& exchange_rcvd, QString const& prop_mode
+ , QString const& satellite, QString const& sat_mode, QString const& freqRx);
+
+private:
+ void restart_server ();
+ void add_client (ClientKey const&, QString const& version, QString const& revision);
+ void remove_client (ClientKey const&);
+ void change_highlighting (QString const& call, QColor const& bg = QColor {}, QColor const& fg = QColor {},
+ bool last_only = false);
+ Q_SLOT void validate_network_interfaces (QString const&);
+
+ // maps client id to widgets
+ using ClientsDictionary = QHash<ClientKey, ClientWidget *>;
+ ClientsDictionary dock_widgets_;
+
+ QStandardItemModel * log_;
+ QMenu * view_menu_;
+ DecodesModel * decodes_model_;
+ BeaconsModel * beacons_model_;
+ MessageServer * server_;
+ QSpinBox * port_spin_box_;
+ QLineEdit * multicast_group_line_edit_;
+ CheckableItemComboBox * network_interfaces_combo_box_;
+ QString loopback_interface_name_;
+ QLabel * network_interfaces_form_label_widget_;
+ QTableView * log_table_view_;
+ 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