2018-11-12 17:03:39 -05:00
|
|
|
// -*- Mode: C++ -*-
|
|
|
|
#ifndef MESSAGEAVERAGING_H_
|
|
|
|
#define MESSAGEAVERAGING_H_
|
2015-04-22 13:48:03 -04:00
|
|
|
|
|
|
|
#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
|
|
|
}
|
|
|
|
|
2018-11-12 17:03:39 -05:00
|
|
|
class MessageAveraging
|
|
|
|
: public QWidget
|
2015-04-22 13:48:03 -04:00
|
|
|
{
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2018-11-12 17:03:39 -05:00
|
|
|
#endif
|