mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-10 14:23:31 -05:00
2b781d1685
More consistent and accurate processing of compund callsigns including recognizing the user's call in both base and fully qualified form, extracting reports from special type one and type two compound call messages. Ensure that "CQ DX" message prefixes are recognized and processd correctly. The cycle of double clicking through a QSO has been enhanced to recognoize the standard messages correctly and use the correct next message. The automatic transmission button "Enable Tx" now does what it says and does not double as a stop transmit button. This allows the current transmission to complete even if the automatic transmission feature is disabled. In line with this the "stop sending after a 73 message is sent" feature turns off the automatic transmission enable at the start of the sending of a 73 message and also the next message is now set up as the CQ message automatically in this scenario. A 73 message is now either a standard message containing the word "73" or any free text message containing "73" (not necessarily as a distinct word"). git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5055 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
#ifndef RADIO_HPP_
|
|
#define RADIO_HPP_
|
|
|
|
#include <QObject>
|
|
#include <QLocale>
|
|
#include <QList>
|
|
|
|
class QVariant;
|
|
class QString;
|
|
|
|
//
|
|
// Declarations common to radio software.
|
|
//
|
|
|
|
namespace Radio
|
|
{
|
|
//
|
|
// Frequency types
|
|
//
|
|
using Frequency = quint64;
|
|
using Frequencies = QList<Frequency>;
|
|
using FrequencyDelta = qint64;
|
|
|
|
//
|
|
// Frequency type conversion.
|
|
//
|
|
// QVariant argument is convertible to double and is assumed to
|
|
// be scaled by (10 ** -scale).
|
|
//
|
|
Frequency frequency (QVariant const&, int scale);
|
|
FrequencyDelta frequency_delta (QVariant const&, int scale);
|
|
|
|
//
|
|
// Frequency type formatting
|
|
//
|
|
QString frequency_MHz_string (Frequency, QLocale const& = QLocale ());
|
|
QString frequency_MHz_string (FrequencyDelta, QLocale const& = QLocale ());
|
|
QString pretty_frequency_MHz_string (Frequency, QLocale const& = QLocale ());
|
|
QString pretty_frequency_MHz_string (double, int scale, QLocale const& = QLocale ());
|
|
QString pretty_frequency_MHz_string (FrequencyDelta, QLocale const& = QLocale ());
|
|
|
|
//
|
|
// Callsigns
|
|
//
|
|
bool is_callsign (QString const&);
|
|
bool is_compound_callsign (QString const&);
|
|
QString base_callsign (QString);
|
|
}
|
|
|
|
Q_DECLARE_METATYPE (Radio::Frequency);
|
|
Q_DECLARE_METATYPE (Radio::Frequencies);
|
|
Q_DECLARE_METATYPE (Radio::FrequencyDelta);
|
|
|
|
#endif
|