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&);
|
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_;
|
|
|
|
|
2016-06-10 11:54:16 -04:00
|
|
|
QScopedPointer<Ui::MessageAveraging> ui;
|
2015-04-22 13:48:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MESSAGEAVERAGING_H
|