-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtextnote.h
More file actions
27 lines (21 loc) · 590 Bytes
/
textnote.h
File metadata and controls
27 lines (21 loc) · 590 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef TEXTNOTE_H
#define TEXTNOTE_H
#include "note.h"
class TextEdit;
class TextNote : public Note
{
Q_OBJECT
public:
TextNote(const QFileInfo& fileinfo, Note::Type type_new);
~TextNote();
void load(); //Reading note's content
void save(bool forced = false); //Saving note's content
void copy() const; //Coping note's content to clipboard
bool find(const QString& text, bool next=false); //Searching text in a note's content
QWidget* widget();
bool isDocumentSupported() const;
QTextDocument* document() const;
private:
TextEdit* text_edit;
};
#endif // TEXTNOTE_H