2018-10-16 19:26:04 -04:00
|
|
|
#ifndef COLORHIGHLIGHTING_H_
|
|
|
|
#define COLORHIGHLIGHTING_H_
|
2018-08-25 11:19:43 -04:00
|
|
|
|
|
|
|
#include <QDialog>
|
2018-10-16 19:26:04 -04:00
|
|
|
#include <QScopedPointer>
|
|
|
|
|
|
|
|
class QSettings;
|
|
|
|
class DecodeHighlightingModel;
|
2018-08-25 11:19:43 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
2018-10-16 19:26:04 -04:00
|
|
|
class ColorHighlighting;
|
2018-08-25 11:19:43 -04:00
|
|
|
}
|
|
|
|
|
2018-10-16 19:26:04 -04:00
|
|
|
class ColorHighlighting final
|
|
|
|
: public QDialog
|
2018-08-25 11:19:43 -04:00
|
|
|
{
|
2018-10-16 19:26:04 -04:00
|
|
|
Q_OBJECT;
|
2018-08-25 11:19:43 -04:00
|
|
|
|
2018-10-16 19:26:04 -04:00
|
|
|
public:
|
|
|
|
explicit ColorHighlighting(QSettings *, DecodeHighlightingModel const&, QWidget * parent = nullptr);
|
|
|
|
~ColorHighlighting ();
|
2018-08-25 11:19:43 -04:00
|
|
|
|
2018-10-16 19:26:04 -04:00
|
|
|
Q_SLOT void set_items (DecodeHighlightingModel const&);
|
|
|
|
|
|
|
|
private:
|
2018-08-25 15:37:30 -04:00
|
|
|
void read_settings ();
|
|
|
|
void write_settings ();
|
2018-10-16 19:26:04 -04:00
|
|
|
|
|
|
|
QScopedPointer<Ui::ColorHighlighting> ui;
|
|
|
|
QSettings * settings_;
|
2018-08-25 11:19:43 -04:00
|
|
|
};
|
|
|
|
|
2018-10-16 19:26:04 -04:00
|
|
|
#endif
|