all repos — mgba @ 3c18fe162c2c76eca80692d37083f6809bae4c8d

mGBA Game Boy Advance Emulator

src/platform/qt/PaletteView.h (view raw)

 1/* Copyright (c) 2013-2015 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_PALETTE_VIEW
 7#define QGBA_PALETTE_VIEW
 8
 9#include <QWidget>
10
11#include "GameController.h"
12#include "Swatch.h"
13
14#include "ui_PaletteView.h"
15
16class GameController;
17
18namespace QGBA {
19
20class Swatch;
21
22class PaletteView : public QWidget {
23Q_OBJECT
24
25public:
26	PaletteView(GameController* controller, QWidget* parent = nullptr);
27
28public slots:
29	void updatePalette();
30
31private slots:
32	void selectIndex(int);
33
34private:
35	void exportPalette(int start, int length);
36
37	Ui::PaletteView m_ui;
38
39	GameController* m_controller;
40};
41
42}
43
44#endif