Some fixes for GTK engine
This commit is contained in:
parent
88ccf823a3
commit
ac2ac92751
@ -5,13 +5,23 @@ namespace UniversalEditor.Environments.GTK
|
||||
{
|
||||
public class GTKEngine : UniversalEditor.UserInterface.Engine
|
||||
{
|
||||
protected override void BeforeInitialization ()
|
||||
{
|
||||
base.BeforeInitialization ();
|
||||
Application.Init ();
|
||||
}
|
||||
|
||||
protected override void MainLoop ()
|
||||
{
|
||||
Application.Init ();
|
||||
MainWindow win = new MainWindow ();
|
||||
win.Show ();
|
||||
Application.Run ();
|
||||
}
|
||||
|
||||
protected override UniversalEditor.UserInterface.IHostApplicationWindow OpenWindowInternal (params string[] FileNames)
|
||||
{
|
||||
MainWindow mw = new MainWindow();
|
||||
mw.Show ();
|
||||
return mw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ using Gtk;
|
||||
|
||||
using UniversalEditor.UserInterface;
|
||||
|
||||
public partial class MainWindow: Gtk.Window
|
||||
public partial class MainWindow: Gtk.Window, IHostApplicationWindow
|
||||
{
|
||||
public MainWindow (): base (Gtk.WindowType.Toplevel)
|
||||
{
|
||||
@ -76,4 +76,118 @@ public partial class MainWindow: Gtk.Window
|
||||
Application.Quit ();
|
||||
a.RetVal = true;
|
||||
}
|
||||
|
||||
#region IHostApplicationWindow implementation
|
||||
public event EventHandler WindowClosed;
|
||||
|
||||
public void NewFile ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void NewProject (bool combineObjects)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void OpenFile ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void OpenFile (params string[] FileNames)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void OpenProject (bool combineObjects)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void OpenProject (string FileName, bool combineObjects)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveFile ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveFileAs ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveFileAs (string FileName, UniversalEditor.DataFormat df)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveProject ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveProjectAs ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveProjectAs (string FileName, UniversalEditor.DataFormat df)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SaveAll ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void CloseFile ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void CloseWindow ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public bool ShowOptionsDialog ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void ToggleMenuItemEnabled (string menuItemName, bool enabled)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void RefreshCommand (object nativeCommandObject)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void UpdateStatus (string statusText)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void UpdateProgress (bool visible)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void UpdateProgress (int minimum, int maximium, int value)
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
|
||||
public void ActivateWindow ()
|
||||
{
|
||||
throw new System.NotImplementedException ();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
<widget class="Gtk.Toolbar" id="toolbar1">
|
||||
<property name="MemberName" />
|
||||
<property name="ShowArrow">False</property>
|
||||
<node name="__gtksharp_143_Stetic_Editor_ActionToolbar" type="Toolbar" />
|
||||
<node name="toolbar1" type="Toolbar" />
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="Position">1</property>
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Libraries/UniversalEditor.UserInterface/Engine.cs">
|
||||
<Files>
|
||||
<File FileName="Applications/UniversalEditor.Bootstrapper/Program.cs" Line="17" Column="1" />
|
||||
<File FileName="Libraries/UniversalEditor.UserInterface/Engine.cs" Line="30" Column="32" />
|
||||
<File FileName="Environments/GTK/Engines/UniversalEditor.Environments.GTK/GTKEngine.cs" Line="6" Column="62" />
|
||||
<File FileName="Libraries/UniversalEditor.UserInterface/Engine.cs" Line="327" Column="4" />
|
||||
</Files>
|
||||
<Pads>
|
||||
<Pad Id="ProjectPad">
|
||||
@ -13,11 +13,16 @@
|
||||
</Node>
|
||||
<Node name="Environments" expanded="True">
|
||||
<Node name="GTK" expanded="True">
|
||||
<Node name="UniversalEditor.Environments.GTK" expanded="True" selected="True" />
|
||||
<Node name="UniversalEditor.Environments.GTK" expanded="True" />
|
||||
</Node>
|
||||
</Node>
|
||||
<Node name="Libraries" expanded="True">
|
||||
<Node name="UniversalEditor.UserInterface" expanded="True" />
|
||||
<Node name="UniversalEditor.Core" expanded="True">
|
||||
<Node name="Accessors" expanded="True" />
|
||||
</Node>
|
||||
<Node name="UniversalEditor.UserInterface" expanded="True">
|
||||
<Node name="Engine.cs" selected="True" />
|
||||
</Node>
|
||||
</Node>
|
||||
</State>
|
||||
</Pad>
|
||||
@ -27,10 +32,7 @@
|
||||
</Pads>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore>
|
||||
<Breakpoint file="/home/beckermj/Documents/Projects2/UniversalEditor/CSharp/Applications/UniversalEditor.Bootstrapper/Program.cs" line="17" />
|
||||
<Breakpoint file="/home/beckermj/Documents/Projects2/UniversalEditor/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs" line="45" />
|
||||
</BreakpointStore>
|
||||
<BreakpointStore />
|
||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||
</Properties>
|
||||
Loading…
x
Reference in New Issue
Block a user