-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
104 lines (77 loc) · 1.84 KB
/
mainwindow.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVector>
#include "Document.h"
/**
* \file mainwindow.h
* \author Dutin Laure & Couradet Vanessa
* \brief Definition of mainwindow class
*/
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
/**
* \brief Constructor of the class
* \param parent the mainwindow parent
*/
explicit MainWindow(QWidget *parent = 0);
/**
* \brief Destructor
*/
~MainWindow();
/**
* \brief Initialize the class
*/
void initMainWindow();
/**
* \brief Initialize the object
*/
void initData();
/**
* \brief Show the library
*/
void showList();
/**
* \brief Split a string
* \param chaineInit the string
* \param chaineSep the separator
* \return the split of the string
*/
std::vector<std::string> split(std::string chaineInit, std::string chaineSep);
/**
* \brief Export the library to html
*/
void exportHTML();
/**
* \brief Search a document
* \param title the title
* \return the document
*/
Document* search(QString title);
/**
* \brief Copy the library
*/
void copyLibrary();
private slots:
void on_actionQuitter_triggered();
void on_btn_addDoc_clicked();
void on_actionAjouter_triggered();
void on_btn_dellDoc_clicked();
void on_tw_tab_cellClicked(int row, int column);
void dell(std::string title);
void on_actionSupprimer_triggered();
void on_actionExporter_en_HTML_triggered();
void on_actionTrie_alphabetique_triggered();
void on_actionTrie_par_type_triggered();
void on_actionTrie_par_auteur_triggered();
void on_btn_modify_clicked();
private:
Ui::MainWindow *ui;
QVector<Document*> lib;
};
#endif // MAINWINDOW_H