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