gui/plotxy: implement background ticks

Improve trace readability when is displayed on xy plot.
The user is able to enable this option throughout preferences dialog.
This commit is contained in:
Kiara Navarro 2021-10-17 19:37:40 -03:00
parent ea8693566f
commit 6ef0d9e87a
No known key found for this signature in database
GPG key ID: CDEFDCA3F6E04955
6 changed files with 94 additions and 31 deletions

View file

@ -70,7 +70,13 @@ public:
struct {
QColor background;
QColor axis;
QColor divisions;
struct {
QColor divisions;
struct {
bool enabled;
QColor background;
} Background;
} Ticks;
} Color;
GraphDomainChangeBehavior domainChangeBehavior;
struct {
@ -93,7 +99,7 @@ private:
QString name;
QVariant def;
};
const std::array<SettingDescription, 35> descr = {{
const std::array<SettingDescription, 37> descr = {{
{&Startup.ConnectToFirstDevice, "Startup.ConnectToFirstDevice", true},
{&Startup.RememberSweepSettings, "Startup.RememberSweepSettings", false},
{&Startup.DefaultSweep.type, "Startup.DefaultSweep.type", "Frequency"},
@ -123,7 +129,9 @@ private:
{&Acquisition.RBWLimitForDFT, "Acquisition.RBWLimitForDFT", 3000.0},
{&Graphs.Color.background, "Graphs.Color.background", QColor(Qt::black)},
{&Graphs.Color.axis, "Graphs.Color.axis", QColor(Qt::white)},
{&Graphs.Color.divisions, "Graphs.Color.divisions", QColor(Qt::gray)},
{&Graphs.Color.Ticks.Background.enabled, "Graphs.Color.Ticks.Background.enabled", true},
{&Graphs.Color.Ticks.Background.background, "Graphs.Color.Ticks.Background.background", QColor(Qt::white)},
{&Graphs.Color.Ticks.divisions, "Graphs.Color.Ticks.divisions", QColor(Qt::gray)},
{&Graphs.domainChangeBehavior, "Graphs.domainChangeBehavior", GraphDomainChangeBehavior::AdjustGraphs},
{&Graphs.markerBehavior.showDataOnGraphs, "Graphs.markerBehavior.ShowDataOnGraphs", true},
{&Graphs.markerBehavior.showAllData, "Graphs.markerBehavior.ShowAllData", false},