all repos — mgba @ 3227d74e4d434d497673e5a77589b674e811c969

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