File indexing completed on 2024-05-12 03:48:26
0001 /* 0002 File : NotesView.cpp 0003 Project : LabPlot 0004 Description : Notes View for taking notes 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2016 Garvit Khatri <garvitdelhi@gmail.com> 0007 SPDX-FileCopyrightText: 2016-2018 Alexander Semke <alexander.semke@web.de> 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #ifndef NOTEVIEW_H 0012 #define NOTEVIEW_H 0013 0014 #include <QWidget> 0015 0016 class Note; 0017 class QTextEdit; 0018 class QPrinter; 0019 0020 class NoteView : public QWidget { 0021 Q_OBJECT 0022 0023 public: 0024 explicit NoteView(Note*); 0025 0026 public Q_SLOTS: 0027 void print(QPrinter*) const; 0028 0029 private Q_SLOTS: 0030 void backgroundColorChanged(QColor); 0031 void textColorChanged(QColor); 0032 void textFontChanged(const QFont&); 0033 void textChanged(); 0034 0035 private: 0036 Note* m_note; 0037 QTextEdit* m_textEdit; 0038 }; 0039 0040 #endif // NOTEVIEW_H