all repos — mgba @ 8f1148498e12197745f62e477d9b8e07382cc72e

mGBA Game Boy Advance Emulator

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

 1/* Copyright (c) 2013-2016 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 "ui_DebuggerConsole.h"
 9
10namespace QGBA {
11
12class DebuggerConsoleController;
13
14class DebuggerConsole : public QWidget {
15Q_OBJECT
16
17public:
18	DebuggerConsole(DebuggerConsoleController* controller, QWidget* parent = nullptr);
19
20private slots:
21	void log(const QString&);
22	void postLine();
23
24protected:
25	bool eventFilter(QObject*, QEvent*) override;
26
27private:
28	Ui::DebuggerConsole m_ui;
29	QStringList m_history;
30	int m_historyOffset;
31
32	DebuggerConsoleController* m_consoleController;
33};
34
35}