all repos — mgba @ ec1fc632b23749add411a2d9a9a4a32bd957a99c

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 <memory>
12
13#include "Swatch.h"
14
15#include "ui_PaletteView.h"
16
17namespace QGBA {
18
19class CoreController;
20class Swatch;
21
22class PaletteView : public QWidget {
23Q_OBJECT
24
25public:
26	PaletteView(std::shared_ptr<CoreController> 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	std::shared_ptr<CoreController> m_controller;
40};
41
42}
43
44#endif