forked from felixmt/LO21
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotesEditeur.h
68 lines (58 loc) · 1.42 KB
/
NotesEditeur.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* \file NotesEditeur.h
* \author Félix, Victor
* \version 1.0
* \date 15 Juin 2013
* \brief fenetre d'edition de notes, classe abstraite
*/
#ifndef NOTESEDITEUR_H
#define NOTESEDITEUR_H
#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "note.h"
#include "TagManager.h"
#include "NotesManager.h"
#include "TagEditeur.h"
class addTag;
/**
* \class NotesEditeur NotesEditeur.h
*/
class NotesEditeur : public QWidget {
Q_OBJECT
protected :
QLineEdit *title;
QPushButton *save;
QPushButton *addTag;
QPushButton *supp;
QVBoxLayout *layout;
QHBoxLayout *buttonLayout;
bool saved;
public:
/**
* \brief Constructeur de NotesEditeur
* \param n note a recopier
* \param parent QWidget, 0 par defaut
*/
NotesEditeur(Note* n, QWidget* parent=0);
QLineEdit& getTitle() const {return *title;}
virtual Note* getNote() const=0;
QPushButton* getAddTag(){ return addTag; }
QPushButton* getSuppButton() {return supp;}
QPushButton* getSaveButton() {return save;}
bool getSaved() const {return saved;}
bool setSaved(bool s);
/**
* \brief Slot qui sauve l'article en cours d'edition
*/
virtual void saveNote() =0;
/**
* \brief Slot qui actualise la note en fonction des modifications effectuees par l'utilisateur dans l'editeur
*/
virtual void updateNote() =0;
signals :
public slots :
};
#endif // NOTESEDITEUR_H