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 QSpinBox; 0011 class QCheckBox; 0012 class KFontRequester; 0013 namespace NoteShared 0014 { 0015 class NoteDisplayAttribute; 0016 } 0017 0018 class KNOTES_EXPORT KNoteEditorConfigWidget : public QWidget 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit KNoteEditorConfigWidget(QWidget *parent = nullptr); 0023 ~KNoteEditorConfigWidget() override; 0024 0025 void load(NoteShared::NoteDisplayAttribute *attr, bool isRichText); 0026 void save(NoteShared::NoteDisplayAttribute *attr, bool &isRichText); 0027 0028 private: 0029 QSpinBox *kcfg_TabSize = nullptr; 0030 QCheckBox *kcfg_AutoIndent = nullptr; 0031 QCheckBox *kcfg_RichText = nullptr; 0032 KFontRequester *kcfg_Font = nullptr; 0033 KFontRequester *kcfg_TitleFont = nullptr; 0034 };