mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 08:21:17 -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.
33 lines
774 B
C++
33 lines
774 B
C++
#ifndef DECODE_HIGHLIGHTING_LIST_VIEW_HPP_
|
|
#define DECODE_HIGHLIGHTING_LIST_VIEW_HPP_
|
|
|
|
#include <QListView>
|
|
|
|
#include "pimpl_h.hpp"
|
|
|
|
class QWidget;
|
|
|
|
// Class Decode Highlighting List View
|
|
//
|
|
// Sub-class of a QListView that adds a context menu to adjust the
|
|
// foreground and background colour roles of the the underlying model
|
|
// item that lies at the context menu right-click position. It also
|
|
// constrains the vertical size hint to limit the height to exactly
|
|
// that of the sum of the items.
|
|
//
|
|
class DecodeHighlightingListView final
|
|
: public QListView
|
|
{
|
|
public:
|
|
explicit DecodeHighlightingListView (QWidget * parent = nullptr);
|
|
~DecodeHighlightingListView ();
|
|
|
|
private:
|
|
QSize sizeHint () const override;
|
|
|
|
class impl;
|
|
pimpl<impl> m_;
|
|
};
|
|
|
|
#endif
|