-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
note_xml.h
31 lines (27 loc) · 642 Bytes
/
note_xml.h
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
28
29
30
31
#ifndef NOTE_XML_H
#define NOTE_XML_H
#include "note.h"
class QTreeWidget;
class QDomDocument;
class QDomElement;
class QTreeWidgetItem;
class QMenu;
class QAction;
class XmlNote : public Note
{
Q_OBJECT
public:
XmlNote(const QFileInfo& fileinfo, Note::Type type_new);
~XmlNote();
void load(); //Reading note's content
void save(bool forced = false); //Saving note's content
void copy() const; //Coping note's content to clipboard
QWidget* widget();
private:
QTreeWidget* tree_widget;
QDomDocument* document;
//QMenu* context_menu;
//
void apendTask(QDomElement* element, QTreeWidgetItem* parent = 0);
};
#endif // NOTE_XML_H