mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 12:23:37 -05:00
873b1d1c43
Includes a new settings facility with the highlighting being contrled by a new model class and a modified QListView to display the data for editing. Edits include enable and disable check boxes, a contextual pop-up menu to adjust backkground and foreground colours. Still to be implemented are priorities for highlighting categories. This will be adjustable by drag and drop in the Colors settings panel, it is already implemented by the priority order has no effect on highlighting of decodes yet. The LotW users data file fetch and time since user's last upload is now controled from the settings dialog. This change also drops support for Qt versions before 5.5 so that many workarounds for earlier versions can be removed. Debug trace is slightly modified to make better use of the Qt built in facilities to format and synchronize cross thread messaging.
34 lines
600 B
C++
34 lines
600 B
C++
#ifndef COLORHIGHLIGHTING_H_
|
|
#define COLORHIGHLIGHTING_H_
|
|
|
|
#include <QDialog>
|
|
#include <QScopedPointer>
|
|
|
|
class QSettings;
|
|
class DecodeHighlightingModel;
|
|
|
|
namespace Ui {
|
|
class ColorHighlighting;
|
|
}
|
|
|
|
class ColorHighlighting final
|
|
: public QDialog
|
|
{
|
|
Q_OBJECT;
|
|
|
|
public:
|
|
explicit ColorHighlighting(QSettings *, DecodeHighlightingModel const&, QWidget * parent = nullptr);
|
|
~ColorHighlighting ();
|
|
|
|
Q_SLOT void set_items (DecodeHighlightingModel const&);
|
|
|
|
private:
|
|
void read_settings ();
|
|
void write_settings ();
|
|
|
|
QScopedPointer<Ui::ColorHighlighting> ui;
|
|
QSettings * settings_;
|
|
};
|
|
|
|
#endif
|