-
Notifications
You must be signed in to change notification settings - Fork 0
/
wtable.h
42 lines (33 loc) · 864 Bytes
/
wtable.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 WTABLE_H
#define WTABLE_H
#include <QTableWidget>
#include "WSheet.h"
class WTable : public QTableWidget
{
Q_OBJECT
public:
explicit WTable(QWidget *parent = 0);
void setSheet( WSheet* wsheet);
void refillTable();
void resetStatusAll();
signals:
void modified();
public slots:
void handleItemChanged(QTableWidgetItem* item);
void deletew();
void addWord();
void changeStatus();
void handleStatusChanged(int id);
private:
void createContextMenu();
QTableWidgetSelectionRange selectedRange();
int addRow();
void changeStatusByRange(QTableWidgetSelectionRange range, int status);
private:
//WordArray* wordArray;
QAction* notestAction;
QAction* forgottenAction;
QAction* rememberedAction;
WSheet* _wsheet;
};
#endif // WTABLE_H