-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitemmanager.h
More file actions
41 lines (32 loc) · 788 Bytes
/
itemmanager.h
File metadata and controls
41 lines (32 loc) · 788 Bytes
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
#ifndef ITEMMANAGER_H
#define ITEMMANAGER_H
#include <QObject>
#include <QVector>
#include <QMap>
#include <QTabWidget>
#include "commonitemmecs.h"
#include "page.h"
class ItemManager : public QObject
{
Q_OBJECT
public:
static ItemManager *Instance();
int AddItem(CommonItemMECS *);
int AddItem(Page *);
QStringList GetPages();
void SetTabWidget(QTabWidget * widget);
void RefreshTabWidget();
signals:
public slots:
void GenerateInterface();
void LoadFromFile();
private:
ItemManager();
ItemManager(const ItemManager&);
ItemManager& operator =(const ItemManager&);
QVector<CommonItemMECS *> m_items;
QMap<QString, Page *> m_pages;
static ItemManager* m_instance;
QTabWidget *m_tabWidget;
};
#endif // ITEMMANAGER_H