1 /* Copyright (c) 2013-2014 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 10 class QLineEdit; 11 class QPushButton; 12 13 namespace QGBA { 14 15 class GDBController; 16 17 class GDBWindow : public QDialog { 18 Q_OBJECT 19 20 public: 21 GDBWindow(GDBController* controller, QWidget* parent = nullptr); 22 23 private slots: 24 void portChanged(const QString&); 25 void bindAddressChanged(const QString&); 26 27 void started(); 28 void stopped(); 29 30 void failed(); 31 32 private: 33 GDBController* m_gdbController; 34 35 QLineEdit* m_portEdit; 36 QLineEdit* m_bindAddressEdit; 37 QPushButton* m_startStopButton; 38 QPushButton* m_breakButton; 39 }; 40 41 } 42