-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgenerictablepage.h
More file actions
45 lines (35 loc) · 992 Bytes
/
Copy pathgenerictablepage.h
File metadata and controls
45 lines (35 loc) · 992 Bytes
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
#ifndef GENERICTABLEPAGE_H
#define GENERICTABLEPAGE_H
#include <QTableWidget>
#include <QWidget>
#include <ext/Signal.h>
#include <idatabasepp.hpp>
namespace Ui {
class GenericTablePage;
}
class GenericTablePage : public QWidget
{
Q_OBJECT
public:
explicit GenericTablePage(QWidget *parent = 0);
~GenericTablePage();
Gallant::Signal1<QTableWidgetItem*> sigRollback;
QTableWidget* pTable;
ZTable* pDBTable;
ZTable mDBTable;
private slots:
void on_tableW_windowIconChanged(const QIcon &icon);
void on_tableW_itemChanged(QTableWidgetItem *item);
void on_tableW_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);
private:
bool Eval(const GString & vstr, const EDataType & type);
Ui::GenericTablePage *ui;
void FindUndo(QTableWidgetItem *pItem);
struct Edit{
QString txt;
// 1st is row, 2nd is column
pair<int,int> pos;
};
vector<Edit> Edits;
};
#endif // GENERICTABLEPAGE_H