2013-03-21 13:22:32 -04:00
|
|
|
#ifndef LogQSO_H
|
|
|
|
#define LogQSO_H
|
|
|
|
|
2013-05-23 16:21:47 -04:00
|
|
|
#ifdef QT5
|
|
|
|
#include <QtWidgets>
|
|
|
|
#else
|
2013-03-21 18:58:16 -04:00
|
|
|
#include <QtGui>
|
2013-05-23 16:21:47 -04:00
|
|
|
#endif
|
2013-03-21 13:22:32 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LogQSO;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LogQSO : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit LogQSO(QWidget *parent = 0);
|
|
|
|
~LogQSO();
|
2013-03-21 18:58:16 -04:00
|
|
|
void initLogQSO(QString hisCall, QString hisGrid, QString mode,
|
2013-06-06 11:09:49 -04:00
|
|
|
QString rptSent, QString rptRcvd, QDateTime dateTime,
|
|
|
|
double dialFreq, QString myCall, QString myGrid,
|
|
|
|
bool noSuffix, bool toRTTY, bool dBtoComments);
|
2013-03-21 18:58:16 -04:00
|
|
|
|
|
|
|
double m_dialFreq;
|
2013-06-06 11:09:49 -04:00
|
|
|
|
2013-06-06 12:17:58 -04:00
|
|
|
bool m_saveTxPower;
|
|
|
|
bool m_saveComments;
|
|
|
|
|
2013-03-21 18:58:16 -04:00
|
|
|
QString m_myCall;
|
|
|
|
QString m_myGrid;
|
2013-06-06 12:17:58 -04:00
|
|
|
QString m_txPower;
|
|
|
|
QString m_comments;
|
2013-03-21 13:22:32 -04:00
|
|
|
|
2013-06-06 11:09:49 -04:00
|
|
|
QDateTime m_dateTime;
|
|
|
|
|
2013-03-21 13:22:32 -04:00
|
|
|
public slots:
|
|
|
|
void accept();
|
2013-04-28 14:58:03 -04:00
|
|
|
void reject();
|
2013-03-21 13:22:32 -04:00
|
|
|
|
2013-04-28 09:35:01 -04:00
|
|
|
signals:
|
|
|
|
void acceptQSO(bool accepted);
|
|
|
|
|
2013-06-06 12:17:58 -04:00
|
|
|
private slots:
|
|
|
|
void on_cbTxPower_toggled(bool checked);
|
|
|
|
void on_cbComments_toggled(bool checked);
|
|
|
|
|
2013-03-21 13:22:32 -04:00
|
|
|
private:
|
|
|
|
Ui::LogQSO *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LogQSO_H
|