-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoteeditor.h
More file actions
47 lines (38 loc) · 946 Bytes
/
Copy pathnoteeditor.h
File metadata and controls
47 lines (38 loc) · 946 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef NOTEEDITOR_H
#define NOTEEDITOR_H
#include <QDialog>
#include "notepad.h"
#include "note.h"
namespace Ui {
class NoteEditor;
}
class NoteEditor : public QDialog
{
Q_OBJECT
private:
Ui::NoteEditor* ui;
Note* currentNote;
public:
explicit NoteEditor(Notepad*, Note*, bool readonly=false);
~NoteEditor();
private slots:
/**
* @name Save Note
* @brief Saves the changes to the note.
* @return Void.
*
* This method triggers when the Save button is pressed in the note interface.
*/
void on_saveButton_clicked();
/**
* @name Cancel Saving Changes to Note
* @brief Discards the changes to the note.
* @return Void.
*
* This method triggers when the Cancel button is pressed in the note interface.
*/
void on_cancelButton_clicked();
signals:
void done_editing();
};
#endif // NOTEEDITOR_H