mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 08:21:17 -05:00
947b429723
This change incorporates a reorganization of the GUI code with widgets, validators, models, and item delegates being moved to sub-directories. Relax the requirements of the ForeignKeyDelegate and related CandidateKeyFilter classes to allow them to work with constant model pointers for both referenced and referencing models.
44 lines
923 B
C++
44 lines
923 B
C++
#ifndef MESSAGEAVERAGING_H
|
|
#define MESSAGEAVERAGING_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QSettings;
|
|
class QFont;
|
|
|
|
namespace Ui {
|
|
class MessageAveraging;
|
|
}
|
|
|
|
class MessageAveraging : public QWidget
|
|
{
|
|
public:
|
|
explicit MessageAveraging(QSettings *, QFont const&, QWidget * parent = 0);
|
|
~MessageAveraging();
|
|
void displayAvg(QString const&);
|
|
void changeFont (QFont const&);
|
|
void foxLogSetup(int nContest);
|
|
void foxLabCallers(int n);
|
|
void foxLabQueued(int n);
|
|
void foxLabRate(int n);
|
|
void foxAddLog(QString logLine);
|
|
void contestAddLog(qint32 nContest, QString logLine);
|
|
|
|
protected:
|
|
void closeEvent (QCloseEvent *) override;
|
|
|
|
private:
|
|
void read_settings ();
|
|
void write_settings ();
|
|
void setContentFont (QFont const&);
|
|
QSettings * settings_;
|
|
QString m_title_;
|
|
qint32 m_nLogged_=0;
|
|
qint32 m_mult_=0;
|
|
qint32 m_nContest_;
|
|
|
|
QScopedPointer<Ui::MessageAveraging> ui;
|
|
};
|
|
|
|
#endif // MESSAGEAVERAGING_H
|