-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilterwidget.h
46 lines (41 loc) · 1.12 KB
/
filterwidget.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
#ifndef FILTERWIDGET_H
#define FILTERWIDGET_H
#include"QtHeaderFiles.h"
#include<datamanager.h>
#include<addfiledialog.h>
class FilterWidget : public QWidget
{
Q_OBJECT
public:
explicit FilterWidget(QWidget *parent = nullptr);
QVBoxLayout* whole_layout;
QHBoxLayout* head_layout;
QHBoxLayout* table_layout;
QHBoxLayout* combo_layout;
QPushButton* filter_button;
QLineEdit* name_edit;
QComboBox* sub_filter;
QComboBox* time_filter;
QComboBox* type_filter;
QComboBox* prior_filter;
// QScrollArea* filter_area;
QTableWidget* file_table;
QStringList subjects;
QStringList types;
QMenu* menu;
QTableWidgetItem* curr_item;
CourseFile row_to_cf(int row);
void show_result(); //显示筛选结果
void init_combo();
void init_result(); //显示所有文件
void click_header_slot(int colum);
void open_file(int row , int colum);
void action_reflect(QAction* action);
void show_menu(QPoint pos);
~FilterWidget();
signals:
void mod_table_signal();
void add_table_signal();
void del_table_signal();
};
#endif // FILTERWIDGET_H