initial import
svn path=/trunk/monodevelop-visualizers/; revision=43021
This commit is contained in:
Коммит
b4f2adc1e0
|
@ -0,0 +1,13 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
|
[assembly: AssemblyTitle("MonoDevelop Debugger Visualizers")]
|
||||||
|
[assembly: AssemblyDescription("MonoDevelop Debugger Visualizers")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("")]
|
||||||
|
[assembly: AssemblyCopyright("(C) 2005 Novell, Inc.")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
|
@ -0,0 +1,21 @@
|
||||||
|
using System.Diagnostics;
|
||||||
|
using MonoDevelop.DebuggerVisualizers;
|
||||||
|
|
||||||
|
[assembly: DebuggerVisualizer (typeof (GtkVisualizers.PixbufVisualizer),
|
||||||
|
typeof (VisualizerObjectSource),
|
||||||
|
Target = typeof (Gdk.Pixbuf),
|
||||||
|
Description = "View Pixbuf")]
|
||||||
|
[assembly: DebuggerVisualizer (typeof (CorlibVisualizers.StringVisualizer),
|
||||||
|
typeof (VisualizerObjectSource),
|
||||||
|
Target = typeof (System.String),
|
||||||
|
Description = "View String")]
|
||||||
|
#if ENABLE_GECKO_VISUALIZERS
|
||||||
|
[assembly: DebuggerVisualizer (typeof (GeckoVisualizers.HTMLVisualizer),
|
||||||
|
typeof (VisualizerObjectSource),
|
||||||
|
Target = typeof (System.String),
|
||||||
|
Description = "View as HTML")]
|
||||||
|
[assembly: DebuggerVisualizer (typeof (GeckoVisualizers.XMLVisualizer),
|
||||||
|
typeof (VisualizerObjectSource),
|
||||||
|
Target = typeof (System.String),
|
||||||
|
Description = "View as XML")]
|
||||||
|
#endif
|
|
@ -0,0 +1,12 @@
|
||||||
|
CSC=mcs
|
||||||
|
|
||||||
|
SOURCES=AssemblyInfo.cs \
|
||||||
|
DebugAttributes.cs \
|
||||||
|
corlib/StringVisualizer.cs \
|
||||||
|
gtk/PixbufVisualizer.cs \
|
||||||
|
gecko/HTMLVisualizer.cs \
|
||||||
|
gecko/XMLVisualizer.cs \
|
||||||
|
gecko/GeckoWindow.cs
|
||||||
|
|
||||||
|
DebugAttributes.dll: $(SOURCES) gecko/geckovis.glade
|
||||||
|
$(CSC) -g -target:library $(SOURCES) -pkg:glade-sharp-2.0 -pkg:gecko-sharp-2.0 -r:/home/toshok/src/mono/MonoDevelop/build/AddIns/DebuggerAddIn/MonoDevelop.Visualizers.dll /resource:./gecko/geckovis.glade,geckovis.glade
|
|
@ -0,0 +1,25 @@
|
||||||
|
ASSEMBLY=DebuggerVisualizers.dll
|
||||||
|
|
||||||
|
if ENABLE_GECKO_VISUALIZERS
|
||||||
|
GECKO_SOURCES= gecko/HTMLVisualizer.cs \
|
||||||
|
gecko/XMLVisualizer.cs \
|
||||||
|
gecko/GeckoWindow.cs
|
||||||
|
|
||||||
|
GECKO_FLAGS= -define:ENABLE_GECKO_VISUALIZERS
|
||||||
|
|
||||||
|
GLADE_FILES=gecko/geckovis.glade
|
||||||
|
|
||||||
|
RESOURCES=
|
||||||
|
/resource:./gecko/geckovis.glade,geckovis.glade
|
||||||
|
endif
|
||||||
|
|
||||||
|
CSFILES=AssemblyInfo.cs \
|
||||||
|
DebugAttributes.cs \
|
||||||
|
corlib/StringVisualizer.cs \
|
||||||
|
gtk/PixbufVisualizer.cs
|
||||||
|
$(GECKO_SOURCES)
|
||||||
|
|
||||||
|
CSFLAGS=-g $(GECKO_FLAGS)
|
||||||
|
|
||||||
|
$(ASSSEMBLY): $(SOURCES) $(GLADE_FILES)
|
||||||
|
$(CSC) $(CSFLAGS) -target:library -out:$@ $(SOURCES) $(GLADE_SHARP_LIBS) $(GECKO_SHARP_LIBS) -r:/home/toshok/src/mono/MonoDevelop/build/AddIns/DebuggerAddIn/MonoDevelop.Visualizers.dll $(RESOURCES)
|
|
@ -0,0 +1,110 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Run this to generate all the initial makefiles, etc.
|
||||||
|
# Ripped off from GNOME macros version
|
||||||
|
|
||||||
|
DIE=0
|
||||||
|
|
||||||
|
srcdir=`dirname $0`
|
||||||
|
test -z "$srcdir" && srcdir=.
|
||||||
|
|
||||||
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "**Error**: You must have \`autoconf' installed to compile DebuggerVisualizers.dll."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$LIBTOOL" ]; then
|
||||||
|
LIBTOOL=`which glibtool 2>/dev/null`
|
||||||
|
if [ ! -x "$LIBTOOL" ]; then
|
||||||
|
LIBTOOL=`which libtool`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
|
||||||
|
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "**Error**: You must have \`libtool' installed to compile DebuggerVisualizers.dll."
|
||||||
|
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
|
||||||
|
echo "(or a newer version if it is available)"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "**Error**: You must have \`automake' installed to compile DebuggerVisualizers.dll."
|
||||||
|
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
|
||||||
|
echo "(or a newer version if it is available)"
|
||||||
|
DIE=1
|
||||||
|
NO_AUTOMAKE=yes
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# if no automake, don't bother testing for aclocal
|
||||||
|
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
|
||||||
|
echo "installed doesn't appear recent enough."
|
||||||
|
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
|
||||||
|
echo "(or a newer version if it is available)"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$DIE" -eq 1; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$*"; then
|
||||||
|
echo "**Warning**: I am going to run \`configure' with no arguments."
|
||||||
|
echo "If you wish to pass any to it, please specify them on the"
|
||||||
|
echo \`$0\'" command line."
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $CC in
|
||||||
|
xlc )
|
||||||
|
am_opt=--include-deps;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
|
||||||
|
if test -z "$NO_LIBTOOLIZE" ; then
|
||||||
|
echo "Running libtoolize..."
|
||||||
|
libtoolize --force --copy
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Running aclocal $ACLOCAL_FLAGS ..."
|
||||||
|
aclocal $ACLOCAL_FLAGS || {
|
||||||
|
echo
|
||||||
|
echo "**Error**: aclocal failed. This may mean that you have not"
|
||||||
|
echo "installed all of the packages you need, or you may need to"
|
||||||
|
echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
|
||||||
|
echo "for the prefix where you installed the packages whose"
|
||||||
|
echo "macros were not found"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
|
||||||
|
echo "Running autoheader..."
|
||||||
|
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Running automake --gnu $am_opt ..."
|
||||||
|
automake --add-missing --gnu $am_opt ||
|
||||||
|
{ echo "**Error**: automake failed."; exit 1; }
|
||||||
|
echo "Running autoconf ..."
|
||||||
|
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
|
||||||
|
|
||||||
|
|
||||||
|
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
|
||||||
|
|
||||||
|
if test x$NOCONFIGURE = x; then
|
||||||
|
echo Running $srcdir/configure $conf_flags "$@" ...
|
||||||
|
$srcdir/configure $conf_flags "$@" \
|
||||||
|
&& echo Now type \`make\' to compile $PKG_NAME || exit 1
|
||||||
|
else
|
||||||
|
echo Skipping configure process.
|
||||||
|
fi
|
|
@ -0,0 +1,25 @@
|
||||||
|
AC_INIT(README)
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
AM_INIT_AUTOMAKE(monodevelop-visualizers, 1.0.0)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
AC_PATH_PROG(CSC, mcs, no)
|
||||||
|
|
||||||
|
GTK_SHARP_REQUIRED_VERSION=1.9.3
|
||||||
|
GECKO_SHARP_REQUIRED_VERSION=-0.7
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES (GLADE_SHARP, glade-sharp-2.0 >= $GTK_SHARP_REQUIRED_VERSION, enable_glade_sharp=yes, enable_glade_sharp=no)
|
||||||
|
PKG_CHECK_MODULES (GECKO_SHARP, gecko-sharp-2.0 >= $GECKO_SHARP_REQUIRED_VERSION, enable_gecko_sharp=yes, enable_gecko_sharp=no)
|
||||||
|
|
||||||
|
if test x$enable_glade_sharp = xno; then
|
||||||
|
AC_MSG_ERROR ([You must have gtk-sharp installed to use the MonoDevelop Debugger Visualizers])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL (ENABLE_GECKO_VISUALIZERS, test "$enable_gecko_sharp" = "xyes")
|
||||||
|
|
||||||
|
AC_OUTPUT([
|
||||||
|
Makefile
|
||||||
|
])
|
|
@ -0,0 +1,19 @@
|
||||||
|
using Gtk;
|
||||||
|
using MonoDevelop.DebuggerVisualizers;
|
||||||
|
|
||||||
|
namespace CorlibVisualizers
|
||||||
|
{
|
||||||
|
public class StringVisualizer : DialogDebuggerVisualizer
|
||||||
|
{
|
||||||
|
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
|
||||||
|
{
|
||||||
|
MessageDialog dialog = new MessageDialog (null,
|
||||||
|
DialogFlags.Modal, MessageType.Info, ButtonsType.Close, false,
|
||||||
|
objectProvider.GetObject().ToString());
|
||||||
|
dialog.Title = "String Visualizer";
|
||||||
|
|
||||||
|
dialog.Run();
|
||||||
|
dialog.Hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,57 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
using Gtk;
|
||||||
|
using Glade;
|
||||||
|
using Gecko;
|
||||||
|
|
||||||
|
namespace GeckoVisualizers
|
||||||
|
{
|
||||||
|
public class GeckoWindow
|
||||||
|
{
|
||||||
|
[Widget] Gtk.Dialog gecko_dialog;
|
||||||
|
[Widget] WebControl gecko_control;
|
||||||
|
|
||||||
|
public GeckoWindow (string title, string data, string mime_type)
|
||||||
|
{
|
||||||
|
this.data = data;
|
||||||
|
this.mime_type = mime_type;
|
||||||
|
|
||||||
|
Glade.XML ui;
|
||||||
|
|
||||||
|
Glade.Global.SetCustomHandler (new XMLCustomWidgetHandler (CustomWidgetHandler));
|
||||||
|
|
||||||
|
ui = Glade.XML.FromAssembly ("geckovis.glade", "gecko_dialog", null);
|
||||||
|
ui.Autoconnect (this);
|
||||||
|
|
||||||
|
gecko_control.Show ();
|
||||||
|
|
||||||
|
gecko_dialog.SetDefaultSize (400, 300);
|
||||||
|
gecko_dialog.Title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Show ()
|
||||||
|
{
|
||||||
|
gecko_control.OpenStream ("visualizer-data:///", mime_type);
|
||||||
|
gecko_control.AppendData (data);
|
||||||
|
gecko_control.CloseStream();
|
||||||
|
|
||||||
|
gecko_dialog.Run();
|
||||||
|
gecko_dialog.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Widget CustomWidgetHandler (XML xml, string func_name, string name, string string1, string string2, int int1, int int2)
|
||||||
|
{
|
||||||
|
if (func_name.Equals ("CreateGeckoControl")) {
|
||||||
|
Console.WriteLine ("CreateGeckoControl");
|
||||||
|
return new Gecko.WebControl ();
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
string data;
|
||||||
|
string mime_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Gtk;
|
||||||
|
using MonoDevelop.DebuggerVisualizers;
|
||||||
|
|
||||||
|
namespace GeckoVisualizers
|
||||||
|
{
|
||||||
|
public class HTMLVisualizer : DialogDebuggerVisualizer
|
||||||
|
{
|
||||||
|
protected override void Show (IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
|
||||||
|
{
|
||||||
|
GeckoWindow win = new GeckoWindow ("HTML Visualizer", objectProvider.GetObject().ToString(), "text/html");
|
||||||
|
|
||||||
|
win.Show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Gtk;
|
||||||
|
using MonoDevelop.DebuggerVisualizers;
|
||||||
|
|
||||||
|
namespace GeckoVisualizers
|
||||||
|
{
|
||||||
|
public class XMLVisualizer : DialogDebuggerVisualizer
|
||||||
|
{
|
||||||
|
protected override void Show (IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
|
||||||
|
{
|
||||||
|
GeckoWindow win = new GeckoWindow ("XML Visualizer", objectProvider.GetObject().ToString(), "text/xml");
|
||||||
|
|
||||||
|
win.Show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,75 @@
|
||||||
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
|
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
|
|
||||||
|
<glade-interface>
|
||||||
|
|
||||||
|
<widget class="GtkDialog" id="gecko_dialog">
|
||||||
|
<property name="border_width">12</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="title" translatable="yes">gecko_dialog</property>
|
||||||
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
|
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||||
|
<property name="modal">True</property>
|
||||||
|
<property name="default_width">300</property>
|
||||||
|
<property name="default_height">400</property>
|
||||||
|
<property name="resizable">True</property>
|
||||||
|
<property name="destroy_with_parent">False</property>
|
||||||
|
<property name="decorated">True</property>
|
||||||
|
<property name="skip_taskbar_hint">False</property>
|
||||||
|
<property name="skip_pager_hint">False</property>
|
||||||
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
|
<property name="focus_on_map">True</property>
|
||||||
|
<property name="has_separator">True</property>
|
||||||
|
|
||||||
|
<child internal-child="vbox">
|
||||||
|
<widget class="GtkVBox" id="dialog-vbox1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="homogeneous">False</property>
|
||||||
|
<property name="spacing">0</property>
|
||||||
|
|
||||||
|
<child internal-child="action_area">
|
||||||
|
<widget class="GtkHButtonBox" id="dialog-action_area1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkButton" id="closebutton1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="label">gtk-close</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
|
<property name="focus_on_click">True</property>
|
||||||
|
<property name="response_id">-7</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="Custom" id="gecko_control">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="creation_function">CreateGeckoControl</property>
|
||||||
|
<property name="int1">0</property>
|
||||||
|
<property name="int2">0</property>
|
||||||
|
<property name="last_modification_time">Fri, 15 Apr 2005 01:01:08 GMT</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
</glade-interface>
|
|
@ -0,0 +1,75 @@
|
||||||
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
|
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
|
|
||||||
|
<glade-interface>
|
||||||
|
|
||||||
|
<widget class="GtkDialog" id="gecko_dialog">
|
||||||
|
<property name="border_width">12</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="title" translatable="yes">gecko_dialog</property>
|
||||||
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
|
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||||
|
<property name="modal">True</property>
|
||||||
|
<property name="default_width">200</property>
|
||||||
|
<property name="default_height">300</property>
|
||||||
|
<property name="resizable">True</property>
|
||||||
|
<property name="destroy_with_parent">False</property>
|
||||||
|
<property name="decorated">True</property>
|
||||||
|
<property name="skip_taskbar_hint">False</property>
|
||||||
|
<property name="skip_pager_hint">False</property>
|
||||||
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
|
<property name="focus_on_map">True</property>
|
||||||
|
<property name="has_separator">True</property>
|
||||||
|
|
||||||
|
<child internal-child="vbox">
|
||||||
|
<widget class="GtkVBox" id="dialog-vbox1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="homogeneous">False</property>
|
||||||
|
<property name="spacing">0</property>
|
||||||
|
|
||||||
|
<child internal-child="action_area">
|
||||||
|
<widget class="GtkHButtonBox" id="dialog-action_area1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkButton" id="closebutton1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="label">gtk-close</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
|
<property name="focus_on_click">True</property>
|
||||||
|
<property name="response_id">-7</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="Custom" id="gecko_control">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="creation_function">CreateGeckoControl</property>
|
||||||
|
<property name="int1">0</property>
|
||||||
|
<property name="int2">0</property>
|
||||||
|
<property name="last_modification_time">Fri, 15 Apr 2005 01:01:08 GMT</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
</glade-interface>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
|
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
|
||||||
|
|
||||||
|
<glade-project>
|
||||||
|
<name>Geckovis</name>
|
||||||
|
<program_name>geckovis</program_name>
|
||||||
|
<gnome_support>FALSE</gnome_support>
|
||||||
|
</glade-project>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
|
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
|
||||||
|
|
||||||
|
<glade-project>
|
||||||
|
<name>Geckovis</name>
|
||||||
|
<program_name>geckovis</program_name>
|
||||||
|
<gnome_support>FALSE</gnome_support>
|
||||||
|
</glade-project>
|
|
@ -0,0 +1,22 @@
|
||||||
|
using Gtk;
|
||||||
|
using Gdk;
|
||||||
|
using MonoDevelop.DebuggerVisualizers;
|
||||||
|
|
||||||
|
namespace GtkVisualizers
|
||||||
|
{
|
||||||
|
public class PixbufVisualizer : DialogDebuggerVisualizer
|
||||||
|
{
|
||||||
|
protected override void Show (IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
|
||||||
|
{
|
||||||
|
Gtk.Window window = new Gtk.Window (Gtk.WindowType.Toplevel);
|
||||||
|
Gdk.Pixbuf pixbuf = (Gdk.Pixbuf) objectProvider.GetObject ();
|
||||||
|
|
||||||
|
Widget image = new Gtk.Image(pixbuf);
|
||||||
|
|
||||||
|
window.Title = "Pixbuf Visualizer";
|
||||||
|
window.Add (image);
|
||||||
|
|
||||||
|
window.ShowAll ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Загрузка…
Ссылка в новой задаче