File indexing completed on 2025-01-26 03:34:15
0001 /* 0002 File : ValuePrivate.h 0003 Project : LabPlot 0004 Description : Private members of Value 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2022 Alexander Semke <alexander.semke@web.de> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #ifndef VALUEPRIVATE_H 0012 #define VALUEPRIVATE_H 0013 0014 #include "backend/worksheet/Worksheet.h" 0015 0016 #include "Value.h" 0017 #include <QColor> 0018 #include <QFont> 0019 0020 class ValuePrivate { 0021 public: 0022 explicit ValuePrivate(Value*); 0023 0024 QString name() const; 0025 void updateValue(); 0026 void updatePixmap(); 0027 0028 Value::Type type{Value::NoValues}; 0029 const AbstractColumn* column{nullptr}; 0030 QString columnPath; 0031 bool centerPositionAvailable{false}; 0032 Value::Position position{Value::Above}; 0033 qreal distance{Worksheet::convertToSceneUnits(5, Worksheet::Unit::Point)}; 0034 qreal rotationAngle{0.0}; 0035 qreal opacity{1.0}; 0036 char numericFormat{'f'}; // 'f', 'g', 'e', 'E', etc. for numeric values 0037 int precision{2}; // number of digits for numeric values 0038 QString dateTimeFormat; 0039 QString prefix; 0040 QString suffix; 0041 QFont font; 0042 QColor color; 0043 0044 Value* const q{nullptr}; 0045 }; 0046 0047 #endif