forked from sandsmark/borderlands3-save-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInventoryTab.h
45 lines (37 loc) · 903 Bytes
/
InventoryTab.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
#ifndef INVENTORYTAB_H
#define INVENTORYTAB_H
#include <QWidget>
#include <QSet>
class QListWidget;
class QTreeWidget;
class QTreeWidgetItem;
class QSpinBox;
class Savegame;
class QVBoxLayout;
class QLabel;
class InventoryTab : public QWidget
{
Q_OBJECT
public:
explicit InventoryTab(Savegame *savegame, QWidget *parent = nullptr);
private slots:
void onItemSelected();
void onPartSelected();
void onPartChanged(QTreeWidgetItem *item, int column);
void load();
void onItemLevelChanged();
private:
void checkValidity();
Savegame *m_savegame;
QListWidget *m_list;
QTreeWidget *m_partsList;
QSet<QString> m_enabledParts;
QLabel *m_partName;
QLabel *m_partEffects;
QLabel *m_partPositives;
QLabel *m_partNegatives;
QLabel *m_warningText;
QSpinBox *m_itemLevel;
int m_selectedInventoryItem = -1;
};
#endif // INVENTORYTAB_H