2015-04-22 13:48:03 -04:00
|
|
|
#ifndef MESSAGEAVERAGING_H
|
|
|
|
#define MESSAGEAVERAGING_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QSettings;
|
2016-05-18 19:22:24 -04:00
|
|
|
class QFont;
|
2015-04-22 13:48:03 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
2016-06-10 11:54:16 -04:00
|
|
|
class MessageAveraging;
|
2015-04-22 13:48:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
class MessageAveraging : public QWidget
|
|
|
|
{
|
|
|
|
public:
|
2016-05-18 19:22:24 -04:00
|
|
|
explicit MessageAveraging(QSettings *, QFont const&, QWidget * parent = 0);
|
2015-04-22 13:48:03 -04:00
|
|
|
~MessageAveraging();
|
2016-05-18 19:22:24 -04:00
|
|
|
void displayAvg(QString const&);
|
|
|
|
void changeFont (QFont const&);
|
2018-10-02 12:14:17 -04:00
|
|
|
void foxLogSetup(int nContest);
|
2017-12-20 11:19:48 -05:00
|
|
|
void foxLabCallers(int n);
|
|
|
|
void foxLabQueued(int n);
|
|
|
|
void foxLabRate(int n);
|
|
|
|
void foxAddLog(QString logLine);
|
2018-10-02 14:04:57 -04:00
|
|
|
void contestAddLog(qint32 nContest, QString logLine);
|
2015-04-22 13:48:03 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent (QCloseEvent *) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void read_settings ();
|
|
|
|
void write_settings ();
|
2016-05-18 19:22:24 -04:00
|
|
|
void setContentFont (QFont const&);
|
2015-04-22 13:48:03 -04:00
|
|
|
QSettings * settings_;
|
2017-12-19 12:01:38 -05:00
|
|
|
QString m_title_;
|
2018-10-02 14:16:49 -04:00
|
|
|
qint32 m_nLogged_=0;
|
|
|
|
qint32 m_mult_=0;
|
2018-10-02 14:04:57 -04:00
|
|
|
qint32 m_nContest_;
|
2015-04-22 13:48:03 -04:00
|
|
|
|
2016-06-10 11:54:16 -04:00
|
|
|
QScopedPointer<Ui::MessageAveraging> ui;
|
2015-04-22 13:48:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MESSAGEAVERAGING_H
|