1 /* Copyright (c) 2013-2019 Jeffrey Pfau
2  *
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #pragma once
7 
8 #include <QGroupBox>
9 #include <QHash>
10 #include <QLabel>
11 #include <QVariant>
12 
13 namespace QGBA {
14 
15 class CoreController;
16 
17 class AssetInfo : public QGroupBox {
18 Q_OBJECT
19 
20 public:
21 	AssetInfo(QWidget* parent = nullptr);
22 	void addCustomProperty(const QString& id, const QString& visibleName);
23 
24 public slots:
25 	void setCustomProperty(const QString& id, const QVariant& value);
26 
27 protected:
28 	virtual int customLocation(const QString& id = {});
29 
30 private:
31 	QHash<QString, QLabel*> m_customProperties;
32 };
33 
34 }
35