-
Notifications
You must be signed in to change notification settings - Fork 0
/
magazin.h
58 lines (48 loc) · 1.28 KB
/
magazin.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
#ifndef MAGAZIN_H
#define MAGAZIN_H
#include <QWidget>
#include <dbManager.h>
#include "mfile.h"
#include "magazinmodel.h"
#include "toollist.h"
namespace Ui {
class Magazin;
}
class Magazin : public QWidget
{
Q_OBJECT
private:
Ui::Magazin *ui;
DBManager* dbManager;
MFile* mfile;
ToolList* toolList;
ToolList* searchList;
int sizeIn;
MagazinModel* tableModel;
QList<QString> list_ToolID;
QList<QString> list_ToolDescription;
QList<QString> list_ToolGL;
QList<QString> list_ToolAL;
QList<QString> list_ToolFL;
QList<QString> list_ToolState;
QList<QString> list_ToolSL;
QString string_old;
void contains(QString, ToolList*);
public:
explicit Magazin(QWidget *parent = nullptr);
~Magazin();
bool contains(Tool*);
bool create_ToolList();
int get_Size(){return sizeIn;}
ToolList* get_ToolList() {return toolList;}
void set_DBManager(DBManager* dbm) {dbManager = dbm;}
void set_FilePath(QString str){mfile->setFileName(str);}
void showToolList(ToolList*);
signals:
void sig_Err(QString);
void sig_Log(QString);
public slots:
void slot_TableClicked(const QModelIndex &);
void slot_textEdited(QString);
};
#endif // MAGAZIN_H