diff --git a/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/UniversalEditor.Engines.GTK.Plugins.UnrealEngine.csproj b/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/UniversalEditor.Engines.GTK.Plugins.UnrealEngine.csproj index 0dc70b3d..134d9f2c 100644 --- a/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/UniversalEditor.Engines.GTK.Plugins.UnrealEngine.csproj +++ b/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/UniversalEditor.Engines.GTK.Plugins.UnrealEngine.csproj @@ -58,8 +58,8 @@ - + diff --git a/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/generated.cs b/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/generated.cs index 9636f6fc..8d3a3ae5 100644 --- a/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/generated.cs +++ b/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/generated.cs @@ -14,6 +14,58 @@ namespace Stetic } } + 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) diff --git a/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/gui.stetic b/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/gui.stetic index 3f71da4b..a6a23cfc 100644 --- a/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/gui.stetic +++ b/CSharp/Engines/GTK/Plugins/UniversalEditor.Engines.GTK.Plugins.UnrealEngine/gtk-gui/gui.stetic @@ -8,4 +8,11 @@ + + + False + + + + \ No newline at end of file diff --git a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/Editor.cs b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/Editor.cs index 8a2edc6a..6d54bdb8 100644 --- a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/Editor.cs +++ b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/Editor.cs @@ -4,7 +4,7 @@ using UniversalEditor.UserInterface; namespace UniversalEditor.Engines.GTK { [System.ComponentModel.ToolboxItem(true)] - public abstract partial class Editor : Gtk.Bin, IEditorImplementation + public partial class Editor : Gtk.Bin, IEditorImplementation { public Editor () { @@ -15,16 +15,29 @@ namespace UniversalEditor.Engines.GTK public event ToolboxItemEventHandler ToolboxItemAdded; public event ToolboxItemEventHandler ToolboxItemSelected; - public abstract void Copy (); - public abstract void Paste (); - public abstract void Delete (); + public virtual void Copy () + { + } + public virtual void Paste () + { + } + public virtual void Delete () + { + } - public abstract void Undo (); - public abstract void Redo (); + public virtual void Undo () + { + } + public virtual void Redo () + { + } - public abstract bool SelectToolboxItem (ToolboxItem item); + public virtual bool SelectToolboxItem (ToolboxItem item) + { + return false; + } - public abstract string Title { get; } + public virtual string Title { get { return String.Empty; } } private ObjectModelReference.ObjectModelReferenceCollection mvarSupportedObjectModels = new ObjectModelReference.ObjectModelReferenceCollection(); public ObjectModelReference.ObjectModelReferenceCollection SupportedObjectModels { get { return mvarSupportedObjectModels; } } diff --git a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/generated.cs b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/generated.cs index 8d3a3ae5..9636f6fc 100644 --- a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/generated.cs +++ b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/generated.cs @@ -14,58 +14,6 @@ namespace Stetic } } - 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) diff --git a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/gui.stetic b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/gui.stetic index a23e221a..5a6c3bb6 100644 --- a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/gui.stetic +++ b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/gtk-gui/gui.stetic @@ -8,244 +8,4 @@ - - - - Action - _File - _File - - - Action - _New - _New - - - Action - _Document... - _Document... - - - Action - _Project... - _Project... - - - Action - _Open - _Open - - - Action - _Document... - _Document... - - - Action - _Project... - _Project... - - - Action - _Close - _Close - - - Action - _Document - _Document - - - Action - _Project - _Project - - - Action - _Window - _Window - - - Action - _Quit - _Quit - gtk-quit - - - Action - _Edit - _Edit - - - Action - Cu_t - Cu_t - - - - Universal Editor - CenterOnParent - - - - - 6 - - - - - - - 0 - True - False - False - - - - - - False - - - - 1 - True - False - False - - - - - - True - -1 - - - 2 - False - - - - - - 6 - False - - - - 0 - Ready - - - 0 - False - - - - - 3 - True - False - False - - - - - - - - False - - - - - - - Create Document - CenterOnParent - 2 - False - - - - 2 - - - - True - 154 - - - - In - - - - True - True - - - - - False - - - - - - True - - - - - 0 - True - - - - - - - - 10 - 5 - 2 - End - - - - True - True - True - StockItem - gtk-cancel - -6 - gtk-cancel - - - False - False - - - - - - True - True - True - StockItem - gtk-ok - -5 - gtk-ok - - - 1 - False - False - - - - - \ No newline at end of file