-
Notifications
You must be signed in to change notification settings - Fork 2
/
AddToDocDialog.h
47 lines (39 loc) · 1.18 KB
/
AddToDocDialog.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
#ifndef ADDTODOCDIALOG_H
#define ADDTODOCDIALOG_H
#include <QDialog>
#include <QListWidgetItem>
class Note;
class NotesManager;
class Document;
namespace Ui {
class AddToDocDialog;
}
/*!
* \brief The QListWidgetItemWithpDocument class Cette classe hérite de la classe \link<QListWidgetItem> qui fournit un accesseur au \link<Document> associé.
*/
class QListWidgetItemWithpDocument : public QListWidgetItem{
Document* ressource;
public:
QListWidgetItemWithpDocument(const QString & text, Document* doc, QListWidget * parent = 0, int type = Type)
:QListWidgetItem(text, parent, type), ressource(doc){}
Document *getRessource() const;
void setRessource(Document *value);
};
/*!
* \brief The AddToDocDialog class Cette classe permet de récupérer les documents activés après sa fermeture.
*/
class AddToDocDialog : public QDialog
{
Q_OBJECT
QSet<Document *> *activatedDocuments;
NotesManager *nm;
public:
explicit AddToDocDialog(Note* n, QWidget *parent = 0);
~AddToDocDialog();
QSet<Document *> * getDocuments();
private:
Ui::AddToDocDialog *ui;
public slots:
void STOCK_ACTIVATED_DOC(QListWidgetItem *);
};
#endif // ADDTODOCDIALOG_H