2015-01-04 11:36:57 -06:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2016-12-11 05:53:18 -06:00
|
|
|
#pragma once
|
|
|
|
|
2014-03-31 21:26:50 -05:00
|
|
|
#include <QDockWidget>
|
2014-06-22 15:37:07 -05:00
|
|
|
#include "ui_callstack.h"
|
2014-03-31 21:26:50 -05:00
|
|
|
|
|
|
|
class QStandardItemModel;
|
|
|
|
|
2016-09-17 19:38:01 -05:00
|
|
|
class CallstackWidget : public QDockWidget {
|
2014-03-31 21:26:50 -05:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-12-11 06:22:10 -06:00
|
|
|
explicit CallstackWidget(QWidget* parent = nullptr);
|
2014-03-31 21:26:50 -05:00
|
|
|
|
|
|
|
public slots:
|
2015-01-07 05:14:23 -06:00
|
|
|
void OnDebugModeEntered();
|
|
|
|
void OnDebugModeLeft();
|
2014-03-31 21:26:50 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::CallStack ui;
|
|
|
|
QStandardItemModel* callstack_model;
|
2015-01-11 00:39:00 -06:00
|
|
|
|
|
|
|
/// Clears the callstack widget while keeping the column widths the same
|
|
|
|
void Clear();
|
2014-03-31 21:26:50 -05:00
|
|
|
};
|