-
Notifications
You must be signed in to change notification settings - Fork 1
/
papertable.h
54 lines (45 loc) · 1.09 KB
/
papertable.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
#ifndef PAPERTABLE_H
#define PAPERTABLE_H
#include "maininclude.h"
#include "neworder.h"
#include "newitemorder.h"
#include <QWidget>
namespace Ui {
class PaperTable;
}
class PaperTable : public QWidget {
Q_OBJECT
public:
explicit PaperTable(QWidget* parent = nullptr);
~PaperTable();
int onwhich;
void setOrderTitle();
void setOrderVec(QVector<OneOrder>* _orders);
void setIsResOrder(bool isit=true);
void clear();
void setTitles(QStringList);
void flush();
int getCurrentID();
QSet<int> getCurrentIDs();
signals:
void finishFlush();
private slots:
void afterFlush();
void on_buttonLastPaper_clicked();
void on_buttonJumpTo_clicked();
void on_buttonNextPaper_clicked();
void on_buttonFlush_clicked();
void on_Table_cellDoubleClicked(int row, int column);
private:
bool turnToPage(int index);
int rowCnt;
int colCnt;
int currentPage;
int onePageRows;
bool isResOrder;
Ui::PaperTable* ui;
QVector<OneOrder>* orders;
QStringList orderSL;
//TODO 搜索模块待实现
};
#endif // PAPERTABLE_H