all repos — mgba @ 879d6983d180e597c06c1a46c528138328b47646

mGBA Game Boy Advance Emulator

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

 1/* Copyright (c) 2013-2018 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 <QDialog>
 9#include <QList>
10
11#include <memory>
12
13#include "ui_PlacementControl.h"
14
15namespace QGBA {
16
17class CoreController;
18
19class PlacementControl : public QDialog {
20Q_OBJECT
21
22public:
23	PlacementControl(std::shared_ptr<CoreController>, QWidget* parent = nullptr);
24
25private:
26	void adjustLayer(int layer, int32_t x, int32_t y);
27
28	std::shared_ptr<CoreController> m_controller;
29	QList<QPair<QSpinBox*, QSpinBox*>> m_layers;
30
31	Ui::PlacementControl m_ui;
32};
33
34}