mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05:00
f98aa4e6f4
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7430 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
62 lines
1.4 KiB
C++
62 lines
1.4 KiB
C++
// -*- Mode: C++ -*-
|
|
#ifndef LogQSO_H
|
|
#define LogQSO_H
|
|
|
|
#ifdef QT5
|
|
#include <QtWidgets>
|
|
#else
|
|
#include <QtGui>
|
|
#endif
|
|
|
|
#include <QScopedPointer>
|
|
|
|
#include "Radio.hpp"
|
|
|
|
namespace Ui {
|
|
class LogQSO;
|
|
}
|
|
|
|
class QSettings;
|
|
|
|
class LogQSO : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LogQSO(QString const& programTitle, QSettings *, QWidget *parent = 0);
|
|
~LogQSO();
|
|
void initLogQSO(QString hisCall, QString hisGrid, QString mode,
|
|
QString rptSent, QString rptRcvd, QDateTime dateTimeOn,QDateTime dateTimeOff,
|
|
Radio::Frequency dialFreq, QString myCall, QString myGrid,
|
|
bool noSuffix, bool toRTTY, bool dBtoComments);
|
|
|
|
public slots:
|
|
void accept();
|
|
|
|
signals:
|
|
void acceptQSO (QDateTime const& QSO_date_off, QString const& call, QString const& grid
|
|
, Radio::Frequency dial_freq, QString const& mode
|
|
, QString const& rpt_sent, QString const& rpt_received
|
|
, QString const& tx_power, QString const& comments
|
|
, QString const& name, QDateTime const& QSO_date_on);
|
|
|
|
protected:
|
|
void hideEvent (QHideEvent *);
|
|
|
|
private:
|
|
void loadSettings ();
|
|
void storeSettings () const;
|
|
|
|
QScopedPointer<Ui::LogQSO> ui;
|
|
QSettings * m_settings;
|
|
QString m_txPower;
|
|
QString m_comments;
|
|
Radio::Frequency m_dialFreq;
|
|
QString m_myCall;
|
|
QString m_myGrid;
|
|
QDateTime m_dateTimeOn;
|
|
QDateTime m_dateTimeOff;
|
|
};
|
|
|
|
#endif // LogQSO_H
|