File indexing completed on 2024-05-12 03:48:19
0001 /* 0002 File : BackgroundPrivate.h 0003 Project : LabPlot 0004 Description : Private members of Background 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 BACKGROUNDPRIVATE_H 0012 #define BACKGROUNDPRIVATE_H 0013 0014 #include <QBrush> 0015 #include <QPen> 0016 0017 class BackgroundPrivate { 0018 public: 0019 explicit BackgroundPrivate(Background*); 0020 0021 QString name() const; 0022 void update(); 0023 void updatePosition(); 0024 0025 QString prefix{QLatin1String("Background")}; 0026 bool enabledAvailable{false}; 0027 bool positionAvailable{false}; 0028 0029 bool enabled{false}; 0030 Background::Position position{Background::Position::No}; 0031 Background::Type type{Background::Type::Color}; 0032 Background::ColorStyle colorStyle{Background::ColorStyle::SingleColor}; 0033 Background::ImageStyle imageStyle{Background::ImageStyle::Scaled}; 0034 Qt::BrushStyle brushStyle{Qt::SolidPattern}; 0035 QColor firstColor{Qt::white}; 0036 QColor secondColor{Qt::black}; 0037 QString fileName; 0038 double opacity{1.0}; 0039 Background* const q{nullptr}; 0040 }; 0041 0042 #endif