Added GTK FileSystem UserInterface plugin
This commit is contained in:
parent
c25dd83558
commit
e8012f6d9f
@ -0,0 +1,27 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
// Information about this assembly is defined by the following attributes.
|
||||
// Change them to the values specific to your project.
|
||||
|
||||
[assembly: AssemblyTitle("UniversalEditor.Engines.GTK.Plugins.FileSystem")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("beckermj")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using UniversalEditor.UserInterface;
|
||||
using UniversalEditor.Engines.GTK;
|
||||
|
||||
namespace UniversalEditor.Engines.GTK.Plugins.FileSystem
|
||||
{
|
||||
[System.ComponentModel.ToolboxItem(true)]
|
||||
public partial class FileSystemEditor : Editor
|
||||
{
|
||||
|
||||
public FileSystemEditor ()
|
||||
{
|
||||
this.Build ();
|
||||
}
|
||||
|
||||
#region implemented abstract members of UniversalEditor.Engines.GTK.Editor
|
||||
public override void Copy ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Paste ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Delete ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Undo ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Redo ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public override bool SelectToolboxItem (ToolboxItem item)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public override string Title { get { return "File System/Archive"; } }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
namespace UniversalEditor.Engines.GTK.Plugins.FileSystem
|
||||
{
|
||||
public class MyClass
|
||||
{
|
||||
public MyClass ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{C17E6B14-3DF4-45E4-9556-5E651868CA6B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>UniversalEditor.Engines.GTK.Plugins.FileSystem</RootNamespace>
|
||||
<AssemblyName>UniversalEditor.Engines.GTK.Plugins.FileSystem</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
|
||||
<Package>gtk-sharp-2.0</Package>
|
||||
</Reference>
|
||||
<Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
|
||||
<Package>gtk-sharp-2.0</Package>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Posix" />
|
||||
<Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
|
||||
<Private>False</Private>
|
||||
<Package>gtk-sharp-2.0</Package>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
<Compile Include="gtk-gui\generated.cs" />
|
||||
<Compile Include="FileSystemEditor.cs" />
|
||||
<Compile Include="gtk-gui\UniversalEditor.Engines.GTK.Plugins.FileSystem.FileSystemEditor.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="gtk-gui\gui.stetic">
|
||||
<LogicalName>gui.stetic</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\..\..\..\..\..\..\..\home\beckermj\Documents\Projects2\UniversalEditor\CSharp\Environments\GTK\Engines\UniversalEditor.Environments.GTK\UniversalEditor.Environments.GTK.csproj">
|
||||
<Project>{AF5F8ED3-D534-4609-94ED-B2800455B88F}</Project>
|
||||
<Name>UniversalEditor.Environments.GTK</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\..\..\..\..\..\..\..\..\home\beckermj\Documents\Projects2\UniversalEditor\CSharp\Libraries\UniversalEditor.UserInterface\UniversalEditor.UserInterface.csproj">
|
||||
<Project>{8622EBC4-8E20-476E-B284-33D472081F5C}</Project>
|
||||
<Name>UniversalEditor.UserInterface</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@ -0,0 +1,65 @@
|
||||
|
||||
// This file has been generated by the GUI designer. Do not modify.
|
||||
namespace UniversalEditor.Engines.GTK.Plugins.FileSystem
|
||||
{
|
||||
public partial class FileSystemEditor
|
||||
{
|
||||
private global::Gtk.UIManager UIManager;
|
||||
private global::Gtk.HPaned hpaned1;
|
||||
private global::Gtk.ScrolledWindow GtkScrolledWindow;
|
||||
private global::Gtk.VBox vbox1;
|
||||
private global::Gtk.Toolbar toolbar1;
|
||||
private global::Gtk.IconView iconview1;
|
||||
|
||||
protected virtual void Build ()
|
||||
{
|
||||
global::Stetic.Gui.Initialize (this);
|
||||
// Widget UniversalEditor.Engines.GTK.Plugins.FileSystem.FileSystemEditor
|
||||
Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this);
|
||||
this.UIManager = new global::Gtk.UIManager ();
|
||||
global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default");
|
||||
this.UIManager.InsertActionGroup (w2, 0);
|
||||
this.Name = "UniversalEditor.Engines.GTK.Plugins.FileSystem.FileSystemEditor";
|
||||
// Container child UniversalEditor.Engines.GTK.Plugins.FileSystem.FileSystemEditor.Gtk.Container+ContainerChild
|
||||
this.hpaned1 = new global::Gtk.HPaned ();
|
||||
this.hpaned1.CanFocus = true;
|
||||
this.hpaned1.Name = "hpaned1";
|
||||
this.hpaned1.Position = 190;
|
||||
// Container child hpaned1.Gtk.Paned+PanedChild
|
||||
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
|
||||
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
|
||||
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
|
||||
this.hpaned1.Add (this.GtkScrolledWindow);
|
||||
global::Gtk.Paned.PanedChild w3 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.GtkScrolledWindow]));
|
||||
w3.Resize = false;
|
||||
// Container child hpaned1.Gtk.Paned+PanedChild
|
||||
this.vbox1 = new global::Gtk.VBox ();
|
||||
this.vbox1.Name = "vbox1";
|
||||
this.vbox1.Spacing = 6;
|
||||
// Container child vbox1.Gtk.Box+BoxChild
|
||||
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar1'/></ui>");
|
||||
this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1")));
|
||||
this.toolbar1.Name = "toolbar1";
|
||||
this.toolbar1.ShowArrow = false;
|
||||
this.vbox1.Add (this.toolbar1);
|
||||
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.toolbar1]));
|
||||
w4.Position = 0;
|
||||
w4.Expand = false;
|
||||
w4.Fill = false;
|
||||
// Container child vbox1.Gtk.Box+BoxChild
|
||||
this.iconview1 = new global::Gtk.IconView ();
|
||||
this.iconview1.CanFocus = true;
|
||||
this.iconview1.Name = "iconview1";
|
||||
this.vbox1.Add (this.iconview1);
|
||||
global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.iconview1]));
|
||||
w5.Position = 1;
|
||||
this.hpaned1.Add (this.vbox1);
|
||||
this.Add (this.hpaned1);
|
||||
if ((this.Child != null)) {
|
||||
this.Child.ShowAll ();
|
||||
}
|
||||
w1.SetUiManager (UIManager);
|
||||
this.Hide ();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
|
||||
// This file has been generated by the GUI designer. Do not modify.
|
||||
namespace Stetic
|
||||
{
|
||||
internal class Gui
|
||||
{
|
||||
private static bool initialized;
|
||||
|
||||
internal static void Initialize (Gtk.Widget iconRenderer)
|
||||
{
|
||||
if ((Stetic.Gui.initialized == false)) {
|
||||
Stetic.Gui.initialized = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal class BinContainer
|
||||
{
|
||||
private Gtk.Widget child;
|
||||
private Gtk.UIManager uimanager;
|
||||
|
||||
public static BinContainer Attach (Gtk.Bin bin)
|
||||
{
|
||||
BinContainer bc = new BinContainer ();
|
||||
bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
|
||||
bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
|
||||
bin.Added += new Gtk.AddedHandler (bc.OnAdded);
|
||||
return bc;
|
||||
}
|
||||
|
||||
private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
|
||||
{
|
||||
if ((this.child != null)) {
|
||||
args.Requisition = this.child.SizeRequest ();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
|
||||
{
|
||||
if ((this.child != null)) {
|
||||
this.child.Allocation = args.Allocation;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnAdded (object sender, Gtk.AddedArgs args)
|
||||
{
|
||||
this.child = args.Widget;
|
||||
}
|
||||
|
||||
public void SetUiManager (Gtk.UIManager uim)
|
||||
{
|
||||
this.uimanager = uim;
|
||||
this.child.Realized += new System.EventHandler (this.OnRealized);
|
||||
}
|
||||
|
||||
private void OnRealized (object sender, System.EventArgs args)
|
||||
{
|
||||
if ((this.uimanager != null)) {
|
||||
Gtk.Widget w;
|
||||
w = this.child.Toplevel;
|
||||
if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
|
||||
((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
|
||||
this.uimanager = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal class ActionGroups
|
||||
{
|
||||
public static Gtk.ActionGroup GetActionGroup (System.Type type)
|
||||
{
|
||||
return Stetic.ActionGroups.GetActionGroup (type.FullName);
|
||||
}
|
||||
|
||||
public static Gtk.ActionGroup GetActionGroup (string name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<stetic-interface>
|
||||
<configuration>
|
||||
<images-root-path>../../UniversalEditor.Engines.GTK.Plugins.FileSystem</images-root-path>
|
||||
<target-gtk-version>2.12</target-gtk-version>
|
||||
</configuration>
|
||||
<import>
|
||||
<widget-library name="../../../../../../../../../../../../home/beckermj/Documents/Projects2/UniversalEditor/CSharp/Output/Debug/UniversalEditor.Environments.GTK.dll" />
|
||||
<widget-library name="../bin/Debug/UniversalEditor.Engines.GTK.Plugins.FileSystem.dll" internal="true" />
|
||||
</import>
|
||||
<widget class="Gtk.Bin" id="UniversalEditor.Engines.GTK.Plugins.FileSystem.FileSystemEditor" design-size="616 344">
|
||||
<action-group name="Default" />
|
||||
<property name="MemberName" />
|
||||
<property name="Visible">False</property>
|
||||
<child>
|
||||
<widget class="Gtk.HPaned" id="hpaned1">
|
||||
<property name="MemberName" />
|
||||
<property name="CanFocus">True</property>
|
||||
<property name="Position">190</property>
|
||||
<child>
|
||||
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
|
||||
<property name="MemberName" />
|
||||
<property name="ShadowType">In</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="Resize">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="Gtk.VBox" id="vbox1">
|
||||
<property name="MemberName" />
|
||||
<property name="Spacing">6</property>
|
||||
<child>
|
||||
<widget class="Gtk.Toolbar" id="toolbar1">
|
||||
<property name="MemberName" />
|
||||
<property name="ShowArrow">False</property>
|
||||
<node name="toolbar1" type="Toolbar" />
|
||||
</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.IconView" id="iconview1">
|
||||
<property name="MemberName" />
|
||||
<property name="CanFocus">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="Position">1</property>
|
||||
<property name="AutoSize">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</stetic-interface>
|
||||
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
namespace UniversalEditor.Environments.GTK
|
||||
{
|
||||
[System.ComponentModel.ToolboxItem(true)]
|
||||
public partial class Editor : Gtk.Bin
|
||||
{
|
||||
public Editor ()
|
||||
{
|
||||
this.Build ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
|
||||
namespace UniversalEditor.Environments.GTK
|
||||
{
|
||||
public partial class Editor
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user