-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddfiledialog.h
44 lines (36 loc) · 939 Bytes
/
addfiledialog.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
#ifndef ADDFILEDIALOG_H
#define ADDFILEDIALOG_H
#include"QtHeaderFiles.h"
#include<datamanager.h>
CourseFile get_course_file(QString name);
namespace Ui {
class AddFileDialog;
}
class AddFileDialog : public QDialog
{
Q_OBJECT
friend CourseFile get_course_file(QString name); //检测到新文件后一条龙
public:
explicit AddFileDialog(QWidget *parent = nullptr);
~AddFileDialog();
void save(); //获取输入信息
void set_file(QString name); //调出窗口
void cancel();
void init_combo();
private:
Ui::AddFileDialog *ui;
QString file_name;
QString type;
QString subject;
int priority;
int frequency = 0;
QString file_path;
QLineEdit * name_edit;
QComboBox * type_box;
QComboBox * subject_box;
QSlider * priority_slider;
QLineEdit * path_edit;
QPushButton * submit_button;
QPushButton * cancel_button;
};
#endif // ADDFILEDIALOG_H