1 #include "noteeditor.h"
8 extern Settings settings;
9 extern QString vymName;
11 NoteEditor::NoteEditor(QString scope) : TextEditor()
13 editorName = tr("Note Editor", "Name of editor shown as window title");
18 setUseColorMapBackground(false);
24 NoteEditor::~NoteEditor() {}
26 VymNote NoteEditor::getNote()
29 if (actionFormatRichText->isChecked())
30 note.setRichText(getText());
32 note.setPlainText(getText());
33 note.setFontHint(getFontHint());
34 note.setFilenameHint(getFilenameHint());
38 void NoteEditor::setNote(const VymNote ¬e)
40 if (note.isRichText())
41 setRichText(note.getText());
43 setPlainText(note.getText());
44 setFontHint(note.getFontHint());
46 setFilenameHint(note.getFilenameHint());