File indexing completed on 2025-01-26 04:11:29

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "KisSimpleDynamicSensorFactory.h"
0008 
0009 KisSimpleDynamicSensorFactory::KisSimpleDynamicSensorFactory(const QString &id,
0010                                                              int minimumValue,
0011                                                              int maximumValue,
0012                                                              const QString &minimumLabel,
0013                                                              const QString &maximumLabel,
0014                                                              const QString &valueSuffix)
0015     : m_minimumValue(minimumValue)
0016     , m_maximumValue(maximumValue)
0017     , m_id(id)
0018     , m_minimumLabel(minimumLabel)
0019     , m_maximumLabel(maximumLabel)
0020     , m_valueSuffix(valueSuffix)
0021 {
0022 }
0023 
0024 QString KisSimpleDynamicSensorFactory::id() const
0025 {
0026     return m_id;
0027 }
0028 
0029 int KisSimpleDynamicSensorFactory::minimumValue()
0030 {
0031     return m_minimumValue;
0032 }
0033 
0034 int KisSimpleDynamicSensorFactory::maximumValue(int length)
0035 {
0036     Q_UNUSED(length);
0037     return m_maximumValue;
0038 }
0039 
0040 QString KisSimpleDynamicSensorFactory::minimumLabel()
0041 {
0042     return m_minimumLabel;
0043 }
0044 
0045 QString KisSimpleDynamicSensorFactory::maximumLabel(int length)
0046 {
0047     Q_UNUSED(length);
0048     return m_maximumLabel;
0049 }
0050 
0051 QString KisSimpleDynamicSensorFactory::valueSuffix()
0052 {
0053     return m_valueSuffix;
0054 }
0055 
0056 QWidget *KisSimpleDynamicSensorFactory::createConfigWidget(lager::cursor<KisCurveOptionDataCommon>, QWidget *)
0057 {
0058     return nullptr;
0059 }