Added stub tab for plugins

This commit is contained in:
Latif Khalifa
2013-12-04 22:54:54 +01:00
parent 74ac721030
commit c86172d99e
5 changed files with 147 additions and 6 deletions

View File

@@ -86,6 +86,7 @@
<Compile Include="MainWindow.Persistance.cs" />
<Compile Include="MessageScroller.cs" />
<Compile Include="PlatformDetection.cs" />
<Compile Include="PluginsScroller.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ProxyLogger.cs" />

View File

@@ -16,6 +16,7 @@ public partial class MainWindow : Gtk.Window
ListStore udpStore, capStore;
FilterScroller capScroller;
MessageScroller messages;
PluginsScroller plugins;
// stats tracking
int PacketCounter;
@@ -71,6 +72,7 @@ public partial class MainWindow : Gtk.Window
sessionLogScroller.Add(messages = new MessageScroller());
scrolledwindowPlugin.Add(plugins = new PluginsScroller());
messages.CursorChanged += messages_CursorChanged;
StatsTimer = new Timer(1000.0);
StatsTimer.Elapsed += StatsTimer_Elapsed;
@@ -662,4 +664,7 @@ public partial class MainWindow : Gtk.Window
about.Destroy();
}
protected void OnBtnLoadPluginClicked (object sender, EventArgs e)
{
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using Gtk;
using GridProxyGUI;
namespace GridProxyGUI
{
public class PluginsScroller : TreeView
{
public PluginsScroller()
{
}
}
}

View File

@@ -85,6 +85,11 @@ public partial class MainWindow
private global::Gtk.TextView txtResponseNotation;
private global::Gtk.Label label12;
private global::Gtk.Label label10;
private global::Gtk.VBox vboxPlugins;
private global::Gtk.HBox hbox1;
private global::Gtk.Button btnLoadPlugin;
private global::Gtk.ScrolledWindow scrolledwindowPlugin;
private global::Gtk.Label label13;
protected virtual void Build ()
{
@@ -235,7 +240,7 @@ public partial class MainWindow
this.mainSplit = new global::Gtk.HPaned ();
this.mainSplit.CanFocus = true;
this.mainSplit.Name = "mainSplit";
this.mainSplit.Position = 1;
this.mainSplit.Position = 500;
// Container child mainSplit.Gtk.Paned+PanedChild
this.vboxSessions = new global::Gtk.VBox ();
this.vboxSessions.Name = "vboxSessions";
@@ -275,7 +280,7 @@ public partial class MainWindow
this.tabsMain = new global::Gtk.Notebook ();
this.tabsMain.CanFocus = true;
this.tabsMain.Name = "tabsMain";
this.tabsMain.CurrentPage = 0;
this.tabsMain.CurrentPage = 3;
// Container child tabsMain.Gtk.Notebook+NotebookChild
this.vboxLog = new global::Gtk.VBox ();
this.vboxLog.Name = "vboxLog";
@@ -667,10 +672,51 @@ public partial class MainWindow
this.label10.LabelProp = global::Mono.Unix.Catalog.GetString ("Inspector");
this.tabsMain.SetTabLabel (this.vboxInspector, this.label10);
this.label10.ShowAll ();
// Container child tabsMain.Gtk.Notebook+NotebookChild
this.vboxPlugins = new global::Gtk.VBox ();
this.vboxPlugins.Name = "vboxPlugins";
this.vboxPlugins.Spacing = 6;
// Container child vboxPlugins.Gtk.Box+BoxChild
this.hbox1 = new global::Gtk.HBox ();
this.hbox1.Name = "hbox1";
this.hbox1.Spacing = 6;
// Container child hbox1.Gtk.Box+BoxChild
this.btnLoadPlugin = new global::Gtk.Button ();
this.btnLoadPlugin.CanFocus = true;
this.btnLoadPlugin.Name = "btnLoadPlugin";
this.btnLoadPlugin.UseUnderline = true;
this.btnLoadPlugin.Label = global::Mono.Unix.Catalog.GetString ("Load Plugin...");
this.hbox1.Add (this.btnLoadPlugin);
global::Gtk.Box.BoxChild w62 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnLoadPlugin]));
w62.Position = 0;
w62.Expand = false;
w62.Fill = false;
this.vboxPlugins.Add (this.hbox1);
global::Gtk.Box.BoxChild w63 = ((global::Gtk.Box.BoxChild)(this.vboxPlugins [this.hbox1]));
w63.Position = 0;
w63.Expand = false;
w63.Fill = false;
// Container child vboxPlugins.Gtk.Box+BoxChild
this.scrolledwindowPlugin = new global::Gtk.ScrolledWindow ();
this.scrolledwindowPlugin.CanFocus = true;
this.scrolledwindowPlugin.Name = "scrolledwindowPlugin";
this.scrolledwindowPlugin.ShadowType = ((global::Gtk.ShadowType)(1));
this.vboxPlugins.Add (this.scrolledwindowPlugin);
global::Gtk.Box.BoxChild w64 = ((global::Gtk.Box.BoxChild)(this.vboxPlugins [this.scrolledwindowPlugin]));
w64.Position = 1;
this.tabsMain.Add (this.vboxPlugins);
global::Gtk.Notebook.NotebookChild w65 = ((global::Gtk.Notebook.NotebookChild)(this.tabsMain [this.vboxPlugins]));
w65.Position = 3;
// Notebook tab
this.label13 = new global::Gtk.Label ();
this.label13.Name = "label13";
this.label13.LabelProp = global::Mono.Unix.Catalog.GetString ("Plugins");
this.tabsMain.SetTabLabel (this.vboxPlugins, this.label13);
this.label13.ShowAll ();
this.mainSplit.Add (this.tabsMain);
this.vboxMenuMain.Add (this.mainSplit);
global::Gtk.Box.BoxChild w63 = ((global::Gtk.Box.BoxChild)(this.vboxMenuMain [this.mainSplit]));
w63.Position = 1;
global::Gtk.Box.BoxChild w67 = ((global::Gtk.Box.BoxChild)(this.vboxMenuMain [this.mainSplit]));
w67.Position = 1;
this.Add (this.vboxMenuMain);
if ((this.Child != null)) {
this.Child.ShowAll ();
@@ -688,5 +734,6 @@ public partial class MainWindow
this.cbAutoScroll.Toggled += new global::System.EventHandler (this.OnCbAutoScrollToggled);
this.cbSelectAllUDP.Toggled += new global::System.EventHandler (this.OnCbSelectAllUDPToggled);
this.cbSelectAllCap.Toggled += new global::System.EventHandler (this.OnCbSelectAllCapToggled);
this.btnLoadPlugin.Clicked += new global::System.EventHandler (this.OnBtnLoadPluginClicked);
}
}

View File

@@ -222,7 +222,7 @@ http://login.orgrid.org/</property>
<widget class="Gtk.HPaned" id="mainSplit">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Position">1</property>
<property name="Position">500</property>
<child>
<widget class="Gtk.VBox" id="vboxSessions">
<property name="MemberName" />
@@ -284,7 +284,7 @@ http://login.orgrid.org/</property>
<widget class="Gtk.Notebook" id="tabsMain">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="CurrentPage">0</property>
<property name="CurrentPage">3</property>
<child>
<widget class="Gtk.VBox" id="vboxLog">
<property name="MemberName" />
@@ -847,6 +847,78 @@ http://login.orgrid.org/</property>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="Gtk.VBox" id="vboxPlugins">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.HBox" id="hbox1">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Button" id="btnLoadPlugin">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Type">TextOnly</property>
<property name="Label" translatable="yes">Load Plugin...</property>
<property name="UseUnderline">True</property>
<signal name="Clicked" handler="OnBtnLoadPluginClicked" />
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<placeholder />
</child>
<child>
<placeholder />
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="scrolledwindowPlugin">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.Viewport" id="GtkViewport1">
<property name="MemberName" />
<property name="ShadowType">None</property>
<child>
<placeholder />
</child>
</widget>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">3</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="label13">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Plugins</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
</widget>
</child>
</widget>