-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatricetable.h
42 lines (37 loc) · 977 Bytes
/
matricetable.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
#ifndef MATRICETABLE_H
#define MATRICETABLE_H
#include <QTableWidget>
#include <matrice.h>
#include <vector>
#include <dialog.h>
#include <matricenorientee.h>
using namespace std;
class MatriceTable : public QTableWidget
{
Q_OBJECT
public:
bool loaded;
explicit MatriceTable(QWidget *parent =0);
void changeValueCell(int line, int column,float str);
float getValueCell(int line,int column);
void updateModel();
void init();
void init(vector<float> matrice);
Matrice getMatrice();
Matrice* getMatriceAddr();
void displayRefresh();
void updateTypeSetCell(int line,int column);
void setMatrice(Matrice m);
void setNextMatrice();
void modificateValue(int line,int column,float f);
public slots:
void addElement();
void removeElement();
void updateSommet(int line,int column);
private :
Matrice matrice;
string typesetCellValue(float f);
signals:
void focusLost();
};
#endif // MATRICETABLE_H