2015-04-22 13:48:03 -04:00
|
|
|
#ifndef MESSAGEAVERAGING_H
|
|
|
|
#define MESSAGEAVERAGING_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QList>
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
|
|
|
class QSettings;
|
2016-05-18 19:22:24 -04:00
|
|
|
class QFont;
|
2015-04-22 13:48:03 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MessageAveraging;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MessageAveraging : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
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&);
|
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_;
|
|
|
|
|
|
|
|
Ui::MessageAveraging *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MESSAGEAVERAGING_H
|