src/platform/qt/AssetTile.h (view raw)
1/* Copyright (c) 2013-2016 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 "ui_AssetTile.h"
9
10#include <memory>
11
12#include <mgba/core/tile-cache.h>
13
14namespace QGBA {
15
16class CoreController;
17
18class AssetTile : public QGroupBox {
19Q_OBJECT
20
21public:
22 AssetTile(QWidget* parent = nullptr);
23 void setController(std::shared_ptr<CoreController>);
24
25public slots:
26 void setPalette(int);
27 void setPaletteSet(int, int boundary, int max);
28 void selectIndex(int);
29 void selectColor(int);
30
31private:
32 Ui::AssetTile m_ui;
33
34 mTileCache* m_tileCache;
35 int m_paletteId = 0;
36 int m_paletteSet = 0;
37 int m_index = 0;
38
39 int m_addressWidth;
40 int m_addressBase;
41 int m_boundary;
42 int m_boundaryBase;
43};
44
45}