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");
22 NoteEditor::~NoteEditor() {}
24 VymNote NoteEditor::getNote()
27 if (actionFormatRichText->isChecked() )
28 note.setRichText( getText());
30 note.setPlainText( getText());
31 note.setFontHint (getFontHint() );
32 note.setFilenameHint (getFilenameHint () );
36 void NoteEditor::setNote (const VymNote ¬e)
38 if (note.isRichText ())
39 setRichText(note.getText());
42 setPlainText(note.getText());
43 setFontHint (note.getFontHint() );
45 setFilenameHint (note.getFilenameHint() );