Inspector 1st pass done

This commit is contained in:
Latif Khalifa
2013-12-01 23:43:13 +01:00
parent 6047cccca9
commit 266ce7e5d9
3 changed files with 27 additions and 11 deletions

View File

@@ -37,6 +37,16 @@ public partial class MainWindow : Gtk.Window
tabsMain.Page = 1;
mainSplit.Position = 600;
txtSummary.ModifyFont(Pango.FontDescription.FromString("monospace bold 9"));
txtRequest.ModifyFont(Pango.FontDescription.FromString("monospace 9"));
txtRequestRaw.ModifyFont(Pango.FontDescription.FromString("monospace 9"));
txtRequestNotation.ModifyFont(Pango.FontDescription.FromString("monospace 9"));
txtResponse.ModifyFont(Pango.FontDescription.FromString("monospace 9"));
txtResponseRaw.ModifyFont(Pango.FontDescription.FromString("monospace 9"));
txtResponseNotation.ModifyFont(Pango.FontDescription.FromString("monospace 9"));
sessionLogScroller.Add(messages = new MessageScroller());
messages.CursorChanged += messages_CursorChanged;
StatsTimer = new Timer(1000.0);
@@ -310,7 +320,7 @@ public partial class MainWindow : Gtk.Window
{
if (UDPFilterItems.Count > 0) return;
UDPFilterItems["Login Request"] = new FilterItem() { Enabled = false, Name = "Login Request", Type = ItemType.Login };
UDPFilterItems["Login Request"] = new FilterItem() { Enabled = true, Name = "Login Request", Type = ItemType.Login };
UDPFilterItems["Login Response"] = new FilterItem() { Enabled = true, Name = "Login Response", Type = ItemType.Login };
foreach (string name in Enum.GetNames(typeof(PacketType)))
{
@@ -386,7 +396,13 @@ public partial class MainWindow : Gtk.Window
var item = model.GetValue(iter, 0) as Session;
if (item != null)
{
OpenMetaverse.Logger.Log("Selected: " + item.Name, OpenMetaverse.Helpers.LogLevel.Info);
txtRequest.Buffer.Text = item.ToPrettyString(GridProxy.Direction.Outgoing);
txtRequestRaw.Buffer.Text = item.ToRawString(GridProxy.Direction.Outgoing);
txtRequestNotation.Buffer.Text = item.ToStringNotation(GridProxy.Direction.Outgoing);
txtResponse.Buffer.Text = item.ToPrettyString(GridProxy.Direction.Incoming);
txtResponseRaw.Buffer.Text = item.ToRawString(GridProxy.Direction.Incoming);
txtResponseNotation.Buffer.Text = item.ToStringNotation(GridProxy.Direction.Incoming);
}
}
}

View File

@@ -89,7 +89,7 @@ public partial class MainWindow
private global::Gtk.TextView txtResponseRaw;
private global::Gtk.Label label11;
private global::Gtk.ScrolledWindow GtkScrolledWindow5;
private global::Gtk.TextView txtResponseRaw1;
private global::Gtk.TextView txtResponseNotation;
private global::Gtk.Label label12;
private global::Gtk.Label label10;
@@ -626,7 +626,7 @@ public partial class MainWindow
this.tabsRequst1 = new global::Gtk.Notebook ();
this.tabsRequst1.CanFocus = true;
this.tabsRequst1.Name = "tabsRequst1";
this.tabsRequst1.CurrentPage = 2;
this.tabsRequst1.CurrentPage = 0;
// Container child tabsRequst1.Gtk.Notebook+NotebookChild
this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
@@ -668,11 +668,11 @@ public partial class MainWindow
this.GtkScrolledWindow5.Name = "GtkScrolledWindow5";
this.GtkScrolledWindow5.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow5.Gtk.Container+ContainerChild
this.txtResponseRaw1 = new global::Gtk.TextView ();
this.txtResponseRaw1.CanFocus = true;
this.txtResponseRaw1.Name = "txtResponseRaw1";
this.txtResponseRaw1.Editable = false;
this.GtkScrolledWindow5.Add (this.txtResponseRaw1);
this.txtResponseNotation = new global::Gtk.TextView ();
this.txtResponseNotation.CanFocus = true;
this.txtResponseNotation.Name = "txtResponseNotation";
this.txtResponseNotation.Editable = false;
this.GtkScrolledWindow5.Add (this.txtResponseNotation);
this.tabsRequst1.Add (this.GtkScrolledWindow5);
global::Gtk.Notebook.NotebookChild w59 = ((global::Gtk.Notebook.NotebookChild)(this.tabsRequst1 [this.GtkScrolledWindow5]));
w59.Position = 2;

View File

@@ -789,7 +789,7 @@ http://login.orgrid.org/</property>
<widget class="Gtk.Notebook" id="tabsRequst1">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="CurrentPage">2</property>
<property name="CurrentPage">0</property>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow3">
<property name="MemberName" />
@@ -846,7 +846,7 @@ http://login.orgrid.org/</property>
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TextView" id="txtResponseRaw1">
<widget class="Gtk.TextView" id="txtResponseNotation">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>