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