summaryrefslogtreecommitdiffstatshomepage
path: root/NoteEditor.h
blob: bdf487979398714b328eca5b0c1447e6c8338d01 (plain) (blame)
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
#ifndef NOTEEDITOR_H
#define NOTEEDITOR_H

#include <QMainWindow>
class QTextEdit;

class NoteEditor : public QMainWindow
{
	Q_OBJECT
public:
	NoteEditor(const QString &title, QWidget *parent = 0);
	QString html() const;
	QSize sizeHint() const;
	void saveState(const QString &key) const;
	void restoreState(const QString &key);
	void finish();

protected:
	void closeEvent(QCloseEvent *event);

private:
	QTextEdit *m_editor;

signals:
	void finished();

};

#endif // NOTEEDITOR_H