File indexing completed on 2025-01-05 04:54:20
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "knotes_export.h" 0009 #include <QWidget> 0010 class KColorButton; 0011 class QCheckBox; 0012 class QSpinBox; 0013 namespace NoteShared 0014 { 0015 class NoteDisplayAttribute; 0016 } 0017 class KNOTES_EXPORT KNoteDisplayConfigWidget : public QWidget 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit KNoteDisplayConfigWidget(bool defaults, QWidget *parent = nullptr); 0022 ~KNoteDisplayConfigWidget() override; 0023 0024 void load(NoteShared::NoteDisplayAttribute *attr); 0025 void save(NoteShared::NoteDisplayAttribute *attr); 0026 0027 private: 0028 KColorButton *kcfg_FgColor = nullptr; 0029 KColorButton *kcfg_BgColor = nullptr; 0030 QCheckBox *kcfg_ShowInTaskbar = nullptr; 0031 QCheckBox *kcfg_RememberDesktop = nullptr; 0032 QSpinBox *kcfg_Width = nullptr; 0033 QSpinBox *kcfg_Height = nullptr; 0034 };