-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
54 lines (36 loc) · 1.09 KB
/
mainwindow.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 MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QModelIndexList>
#include "dbmanager.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_actionConnect_To_Database_triggered();
void on_actionAdd_From_Excel_File_triggered();
void on_listView_clicked(const QModelIndex &index);
void on_lineEdit_returnPressed();
// void on_lineEdit_textChanged(const QString &arg1);
void on_lineEdit_textEdited(const QString &arg1);
// void on_listView_indexesMoved(const QModelIndexList &indexes);
void on_listView_activated(const QModelIndex &index);
void on_action_Edit_PR_triggered();
void on_actionEdit_Items_triggered();
void on_actionEdit_current_PR_triggered();
private:
void InitPR(PR_Number *PR);
void InitPRItems(PR_Items *Items);
bool updateView(int prNum);
bool saveViews();
PR_Number *currentPR;
Ui::MainWindow *ui;
DbManager *db = Q_NULLPTR;
};
#endif // MAINWINDOW_H