summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/qt/mainwindow.h')
-rw-r--r--src/osd/modules/debugger/qt/mainwindow.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/osd/modules/debugger/qt/mainwindow.h b/src/osd/modules/debugger/qt/mainwindow.h
index 74f7b84b208..919c016704c 100644
--- a/src/osd/modules/debugger/qt/mainwindow.h
+++ b/src/osd/modules/debugger/qt/mainwindow.h
@@ -17,6 +17,8 @@
#include <vector>
+namespace osd::debugger::qt {
+
class DasmDockWidget;
class ProcessorDockWidget;
@@ -34,6 +36,8 @@ public:
void setProcessor(device_t *processor);
+ void setExiting() { m_exiting = true; }
+
protected:
virtual void saveConfigurationToNode(util::xml::data_node &node) override;
@@ -56,13 +60,15 @@ private slots:
void dasmViewUpdated();
- // Closing the main window actually exits the program
+ // Closing the main window hides the debugger and runs the emulated system
void debugActClose();
-
private:
void createImagesMenu();
+ void addToHistory(const QString& command);
+ void executeCommand(bool withClear);
+
// Widgets and docks
QLineEdit *m_inputEdit;
DebuggerView *m_consoleView;
@@ -77,8 +83,8 @@ private:
// Terminal history
int m_historyIndex;
std::vector<QString> m_inputHistory;
- void addToHistory(const QString& command);
- void executeCommand(bool withClear);
+
+ bool m_exiting;
};
@@ -160,7 +166,7 @@ class MainWindowQtConfig : public WindowQtConfig
{
public:
MainWindowQtConfig() :
- WindowQtConfig(osd::debugger::WINDOW_TYPE_CONSOLE),
+ WindowQtConfig(WINDOW_TYPE_CONSOLE),
m_rightBar(0),
m_windowState()
{}
@@ -175,5 +181,6 @@ public:
void recoverFromXmlNode(util::xml::data_node const &node);
};
+} // namespace osd::debugger::qt
#endif // MAME_DEBUGGER_QT_MAINWINDOW_H