From 9378b4e9e0df21656356c28dc5c025e3370efa92 Mon Sep 17 00:00:00 2001 From: IonutMuthi Date: Fri, 15 Nov 2024 05:44:31 -0500 Subject: [PATCH] wip Signed-off-by: IonutMuthi --- gui/include/gui/widgets/incrementstrategy.h | 21 +++++++++++++++++++ gui/include/gui/widgets/scale.h | 21 +++++++++++++++++++ gui/include/gui/widgets/testspinbox.h | 21 +++++++++++++++++++ .../src/menus/plottimeaxiscontroller.cpp | 1 + 4 files changed, 64 insertions(+) diff --git a/gui/include/gui/widgets/incrementstrategy.h b/gui/include/gui/widgets/incrementstrategy.h index 07c4fffb3..e96c8c4fe 100644 --- a/gui/include/gui/widgets/incrementstrategy.h +++ b/gui/include/gui/widgets/incrementstrategy.h @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2024 Analog Devices Inc. + * + * This file is part of Scopy + * (see https://www.github.com/analogdevicesinc/scopy). + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + #ifndef INCREMENTSTRATEGY_H #define INCREMENTSTRATEGY_H diff --git a/gui/include/gui/widgets/scale.h b/gui/include/gui/widgets/scale.h index b3b23aaeb..f2f871768 100644 --- a/gui/include/gui/widgets/scale.h +++ b/gui/include/gui/widgets/scale.h @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2024 Analog Devices Inc. + * + * This file is part of Scopy + * (see https://www.github.com/analogdevicesinc/scopy). + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + #ifndef SCALE_H #define SCALE_H diff --git a/gui/include/gui/widgets/testspinbox.h b/gui/include/gui/widgets/testspinbox.h index 5973c5b1f..357efc0db 100644 --- a/gui/include/gui/widgets/testspinbox.h +++ b/gui/include/gui/widgets/testspinbox.h @@ -1,3 +1,24 @@ +/* + * Copyright (c) 2024 Analog Devices Inc. + * + * This file is part of Scopy + * (see https://www.github.com/analogdevicesinc/scopy). + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + #ifndef TESTSPINBOX_H #define TESTSPINBOX_H diff --git a/plugins/datalogger/src/menus/plottimeaxiscontroller.cpp b/plugins/datalogger/src/menus/plottimeaxiscontroller.cpp index 85f5c2e7f..6280df655 100644 --- a/plugins/datalogger/src/menus/plottimeaxiscontroller.cpp +++ b/plugins/datalogger/src/menus/plottimeaxiscontroller.cpp @@ -75,6 +75,7 @@ PlotTimeAxisController::PlotTimeAxisController(MonitorPlot *m_plot, QWidget *par gui::TestSpinbox *test = new gui::TestSpinbox("Metric", 10, "m", 0, DBL_MAX, false, false, xAxisContainer); test->setIncrementMode(gui::TestSpinbox::IS_FIXED); + // test->scale()->setScalingEnabled(false); gui::TestSpinbox *test2 = new gui::TestSpinbox("Custom", 0, "samples", 0, DBL_MAX, false, false, xAxisContainer);