-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooklistdlg.h
61 lines (52 loc) · 1.32 KB
/
booklistdlg.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
55
56
57
58
59
60
61
/*
* @Author: your name
* @Date: 2020-07-15 16:08:20
* @LastEditTime: 2020-07-15 16:52:32
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: \CodePracticeClassProject\booklistdlg.h
*/
#ifndef BOOKLISTDLG_H
#define BOOKLISTDLG_H
#include <QDialog>
#include"newbook.h"
#include<QFile>
#include<QString>
#include<QList>
#include<QStandardItem>
#include<QStandardItemModel>
#include"delbook.h"
#include"modifybook.h"
namespace Ui {
class booklistDlg;
}
class booklistDlg : public QDialog
{
Q_OBJECT
public:
explicit booklistDlg(QWidget *parent = 0);
~booklistDlg();
private slots:
void on_returnBtn_clicked();
void display(int row,QStringList subs);//在模型中输出的函数
void on_add_clicked();
int readFromFile();//读入数据存入容器的函数
void doQuery(int index,QString cnt);
void on_btn_search_clicked();
int cmp(QString str1,QString str2);
void on_deleteBtn_clicked();
void on_pushButton_clicked();
void on_reviseBtn_clicked();
void refresh();
signals:
void returnsignal();
private:
Ui::booklistDlg *ui;
newBook a;
QList<QString> bok_lines;
QStandardItemModel *model;
QString m_sLastSearch;
delBook b;
modifyBook c;
};
#endif // BOOKLISTDLG_H