[gnome-builder/wip/chergert/debugger: 98/100] debugger: add some panels for the debugger
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 98/100] debugger: add some panels for the debugger
- Date: Fri, 14 Apr 2017 21:39:45 +0000 (UTC)
commit f607bffa5af83cb7452dd8c62048cdbf70438d27
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 14 01:05:22 2017 -0700
debugger: add some panels for the debugger
libide/debugger/ide-debugger-perspective.c | 7 +-
libide/debugger/ide-debugger-perspective.h | 2 +-
libide/debugger/ide-debugger-perspective.ui | 152 ++++++++++++++++++++++++++-
3 files changed, 153 insertions(+), 8 deletions(-)
---
diff --git a/libide/debugger/ide-debugger-perspective.c b/libide/debugger/ide-debugger-perspective.c
index a8b6511..a108b33 100644
--- a/libide/debugger/ide-debugger-perspective.c
+++ b/libide/debugger/ide-debugger-perspective.c
@@ -23,6 +23,7 @@
#include "ide-debug.h"
+#include "buffers/ide-buffer.h"
#include "debugger/ide-debugger.h"
#include "debugger/ide-debugger-perspective.h"
#include "debugger/ide-debugger-view.h"
@@ -32,7 +33,7 @@
struct _IdeDebuggerPerspective
{
- IdeLayout parent_instance;
+ PnlDockBin parent_instance;
IdeDebugger *debugger;
EggSignalGroup *debugger_signals;
@@ -83,7 +84,7 @@ perspective_iface_init (IdePerspectiveInterface *iface)
iface->get_title = ide_debugger_perspective_get_title;
}
-G_DEFINE_TYPE_EXTENDED (IdeDebuggerPerspective, ide_debugger_perspective, IDE_TYPE_LAYOUT, 0,
+G_DEFINE_TYPE_EXTENDED (IdeDebuggerPerspective, ide_debugger_perspective, PNL_TYPE_DOCK_BIN, 0,
G_IMPLEMENT_INTERFACE (IDE_TYPE_PERSPECTIVE, perspective_iface_init))
static GParamSpec *properties [N_PROPS];
@@ -293,7 +294,7 @@ ide_debugger_perspective_load_source_cb (GObject *object,
{
IdeDebugger *debugger = (IdeDebugger *)object;
g_autoptr(IdeDebuggerPerspective) self = user_data;
- g_autoptr(GtkSourceBuffer) buffer = NULL;
+ g_autoptr(IdeBuffer) buffer = NULL;
g_autoptr(GError) error = NULL;
IdeLayoutView *view;
GtkWidget *stack;
diff --git a/libide/debugger/ide-debugger-perspective.h b/libide/debugger/ide-debugger-perspective.h
index c03ce73..84447db 100644
--- a/libide/debugger/ide-debugger-perspective.h
+++ b/libide/debugger/ide-debugger-perspective.h
@@ -26,7 +26,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_DEBUGGER_PERSPECTIVE (ide_debugger_perspective_get_type())
-G_DECLARE_FINAL_TYPE (IdeDebuggerPerspective, ide_debugger_perspective, IDE, DEBUGGER_PERSPECTIVE, IdeLayout)
+G_DECLARE_FINAL_TYPE (IdeDebuggerPerspective, ide_debugger_perspective, IDE, DEBUGGER_PERSPECTIVE,
PnlDockBin)
void ide_debugger_perspective_set_debugger (IdeDebuggerPerspective *self,
IdeDebugger *debugger);
diff --git a/libide/debugger/ide-debugger-perspective.ui b/libide/debugger/ide-debugger-perspective.ui
index 4a0765c..fbf8ebd 100644
--- a/libide/debugger/ide-debugger-perspective.ui
+++ b/libide/debugger/ide-debugger-perspective.ui
@@ -1,17 +1,160 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <template class="IdeDebuggerPerspective" parent="IdeLayout">
+ <template class="IdeDebuggerPerspective" parent="PnlDockBin">
<child>
<object class="IdeLayoutGrid" id="layout_grid">
<property name="visible">true</property>
</object>
</child>
+
+ <child internal-child="left">
+ <object class="PnlDockBinEdge">
+ <property name="reveal-child">true</property>
+ </object>
+ </child>
+ <child type="left">
+ <object class="PnlDockStack">
+ <property name="visible">true</property>
+ <property name="vexpand">true</property>
+ <child>
+ <object class="PnlDockWidget">
+ <property name="title" translatable="yes">Threads</property>
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="min-content-width">200</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkTreeView">
+ <property name="visible">true</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="left">
+ <object class="PnlDockStack">
+ <property name="visible">true</property>
+ <property name="vexpand">true</property>
+ <child>
+ <object class="PnlDockWidget">
+ <property name="title" translatable="yes">Stack</property>
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="min-content-width">200</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkTreeView">
+ <property name="visible">true</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+
+ <child internal-child="right">
+ <object class="PnlDockBinEdge">
+ <property name="reveal-child">true</property>
+ </object>
+ </child>
+ <child type="right">
+ <object class="PnlDockStack">
+ <property name="visible">true</property>
+ <property name="vexpand">true</property>
+ <child>
+ <object class="PnlDockWidget">
+ <property name="title" translatable="yes">Variables</property>
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="min-content-width">200</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkTreeView">
+ <property name="visible">true</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="right">
+ <object class="PnlDockStack">
+ <property name="visible">true</property>
+ <property name="vexpand">true</property>
+ <child>
+ <object class="PnlDockWidget">
+ <property name="title" translatable="yes">Registers</property>
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="min-content-width">200</property>
+ <property name="propagate-natural-height">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkTreeView">
+ <property name="visible">true</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+
<child internal-child="bottom">
<object class="PnlDockBinEdge">
<property name="reveal-child">true</property>
+ </object>
+ </child>
+ <child type="bottom">
+ <object class="PnlDockStack">
+ <property name="hexpand">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="PnlDockWidget">
+ <property name="title" translatable="yes">Application Output</property>
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ </object>
+ </child>
+ <child>
+ <object class="PnlDockWidget">
+ <property name="title" translatable="yes">Breakpoints</property>
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkTreeView" id="breakpoints_tree_view">
+ <property name="visible">true</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
<object class="PnlDockWidget">
- <property name="title">Debug Log</property>
+ <property name="title" translatable="yes">Log</property>
<property name="visible">true</property>
<child>
<object class="GtkScrolledWindow">
@@ -32,6 +175,7 @@
</object>
</child>
</template>
- <object class="GtkTextBuffer" id="log_buffer">
- </object>
+
+ <object class="GtkTextBuffer" id="log_buffer"/>
+
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]