mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 08:40:24 +01:00
f2b9a9c2b0
* move profiler output to gui * addressed commits, rebased * removed whitespaces
43 lines
1018 B
C#
43 lines
1018 B
C#
using Gtk;
|
|
using System;
|
|
using GUI = Gtk.Builder.ObjectAttribute;
|
|
|
|
namespace Ryujinx.Debugger.UI
|
|
{
|
|
public class DebuggerWidget : Box
|
|
{
|
|
public event EventHandler DebuggerEnabled;
|
|
public event EventHandler DebuggerDisabled;
|
|
|
|
[GUI] Notebook _widgetNotebook;
|
|
|
|
public DebuggerWidget() : this(new Builder("Ryujinx.Debugger.UI.DebuggerWidget.glade")) { }
|
|
|
|
public DebuggerWidget(Builder builder) : base(builder.GetObject("_debuggerBox").Handle)
|
|
{
|
|
builder.Autoconnect(this);
|
|
|
|
LoadProfiler();
|
|
}
|
|
|
|
public void LoadProfiler()
|
|
{
|
|
ProfilerWidget widget = new ProfilerWidget();
|
|
|
|
widget.RegisterParentDebugger(this);
|
|
|
|
_widgetNotebook.AppendPage(widget, new Label("Profiler"));
|
|
}
|
|
|
|
public void Enable()
|
|
{
|
|
DebuggerEnabled.Invoke(this, null);
|
|
}
|
|
|
|
public void Disable()
|
|
{
|
|
DebuggerDisabled.Invoke(this, null);
|
|
}
|
|
}
|
|
}
|