all repos — mgba @ c689e32856c7564c7a7a28a25d2776e1a65a7f21

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
16namespace QGBA {
17
18class Swatch;
19
20class PaletteView : public QWidget {
21Q_OBJECT
22
23public:
24	PaletteView(GameController* controller, QWidget* parent = nullptr);
25
26public slots:
27	void updatePalette();
28
29private slots:
30	void selectIndex(int);
31
32private:
33	void exportPalette(int start, int length);
34
35	Ui::PaletteView m_ui;
36
37	GameController* m_controller;
38};
39
40}
41
42#endif