mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 08:21:17 -05:00
b8e4517718
This include inverting the order of table view rows so the newest is at the top, without that the Qt MVC interactions when using a database table based model is too slow and complex to manage. The table views now have sort by column capability in the normal way (click column header to reverse sort order) for timely logging and non-disruption of Tx starts the log view should be sorted in descending time order and scrolled to the last row added. Without that Fox and contest logging will work but serious delays may be invoked that disrupt operation.
68 lines
1.8 KiB
C++
68 lines
1.8 KiB
C++
// -*- Mode: C++ -*-
|
|
#ifndef LogQSO_H_
|
|
#define LogQSO_H_
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QString>
|
|
#include <QScopedPointer>
|
|
#include <QDateTime>
|
|
|
|
#include "Radio.hpp"
|
|
|
|
namespace Ui {
|
|
class LogQSO;
|
|
}
|
|
|
|
class QSettings;
|
|
class Configuration;
|
|
class QByteArray;
|
|
class CabrilloLog;
|
|
|
|
class LogQSO : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LogQSO(QString const& programTitle, QSettings *, Configuration const *, QWidget *parent = 0);
|
|
~LogQSO();
|
|
void initLogQSO(QString const& hisCall, QString const& hisGrid, QString mode,
|
|
QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
|
|
QDateTime const& dateTimeOff, Radio::Frequency dialFreq,
|
|
bool noSuffix, QString xSent, QString xRcvd, CabrilloLog *);
|
|
|
|
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, QString const& operator_call
|
|
, QString const& my_call, QString const& my_grid
|
|
, QString const& exchange_sent, QString const& exchange_rcvd
|
|
, QByteArray const& ADIF);
|
|
|
|
protected:
|
|
void hideEvent (QHideEvent *);
|
|
|
|
private:
|
|
void loadSettings ();
|
|
void storeSettings () const;
|
|
|
|
QScopedPointer<Ui::LogQSO> ui;
|
|
QSettings * m_settings;
|
|
Configuration const * m_config;
|
|
QString m_txPower;
|
|
QString m_comments;
|
|
Radio::Frequency m_dialFreq;
|
|
QString m_myCall;
|
|
QString m_myGrid;
|
|
QDateTime m_dateTimeOn;
|
|
QDateTime m_dateTimeOff;
|
|
CabrilloLog * m_cabrilloLog;
|
|
};
|
|
|
|
#endif // LogQSO_H
|