NBTExplorer/Mac/AppDelegate.cs

291 lines
5.3 KiB
C#
Raw Permalink Normal View History

using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
namespace NBTExplorer
{
public partial class AppDelegate : NSApplicationDelegate
{
MainWindowController mainWindowController;
public AppDelegate ()
{
}
public override void FinishedLaunching (NSObject notification)
{
mainWindowController = new MainWindowController ();
mainWindowController.Window.MakeKeyAndOrderFront (this);
mainWindowController.Window.AppDelegate = this;
}
2012-11-11 01:32:46 +00:00
public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
{
return true;
}
public NSMenuItem MenuAbout
{
get { return _menuAbout; }
}
public NSMenuItem MenuQuit
{
get { return _menuQuit; }
}
public NSMenuItem MenuOpen
{
get { return _menuOpen; }
}
public NSMenuItem MenuOpenFolder
{
get { return _menuOpenFolder; }
}
public NSMenuItem MenuOpenMinecraft
{
get { return _menuOpenMinecraft; }
}
public NSMenuItem MenuSave
{
get { return _menuSave; }
}
public NSMenuItem MenuCut
{
get { return _menuCut; }
}
public NSMenuItem MenuCopy
{
get { return _menuCopy; }
}
public NSMenuItem MenuPaste
{
get { return _menuPaste; }
}
public NSMenuItem MenuRename
{
get { return _menuRename; }
}
public NSMenuItem MenuEditValue
{
get { return _menuEditValue; }
}
public NSMenuItem MenuDelete
{
get { return _menuDelete; }
}
public NSMenuItem MenuMoveUp
{
get { return _menuMoveUp; }
}
public NSMenuItem MenuMoveDown
{
get { return _menuMoveDown; }
}
public NSMenuItem MenuFind
{
get { return _menuFind; }
}
public NSMenuItem MenuFindNext
{
get { return _menuFindNext; }
}
public NSMenuItem MenuInsertByte
{
get { return _menuInsertByte; }
}
public NSMenuItem MenuInsertShort
{
get { return _menuInsertShort; }
}
public NSMenuItem MenuInsertInt
{
get { return _menuInsertInt; }
}
public NSMenuItem MenuInsertLong
{
get { return _menuInsertLong; }
}
public NSMenuItem MenuInsertFloat
{
get { return _menuInsertFloat; }
}
public NSMenuItem MenuInsertDouble
{
get { return _menuInsertDouble; }
}
public NSMenuItem MenuInsertByteArray
{
get { return _menuInsertByteArray; }
}
public NSMenuItem MenuInsertIntArray
{
get { return _menuInsertIntArray; }
}
public NSMenuItem MenuInsertString
{
get { return _menuInsertString; }
}
public NSMenuItem MenuInsertList
{
get { return _menuInsertList; }
}
public NSMenuItem MenuInsertCompound
{
get { return _menuInsertCompound; }
}
2012-11-11 01:32:46 +00:00
partial void ActionOpen (NSObject sender)
{
mainWindowController.Window.ActionOpen();
}
partial void ActionOpenFolder (NSObject sender)
{
mainWindowController.Window.ActionOpenFolder();
}
partial void ActionOpenMinecraft (NSObject sender)
{
mainWindowController.Window.ActionOpenMinecraft();
}
partial void ActionSave (NSObject sender)
{
mainWindowController.Window.ActionSave();
}
partial void ActionCut (NSObject sender)
{
mainWindowController.Window.ActionCut();
}
2012-11-11 01:32:46 +00:00
partial void ActionCopy (NSObject sender)
{
mainWindowController.Window.ActionCopy();
}
2012-11-11 01:32:46 +00:00
partial void ActionPaste (NSObject sender)
{
mainWindowController.Window.ActionPaste();
}
partial void ActionRename (NSObject sender)
{
mainWindowController.Window.ActionRenameValue();
}
partial void ActionEditValue (NSObject sender)
{
mainWindowController.Window.ActionEditValue();
}
partial void ActionDelete (NSObject sender)
{
mainWindowController.Window.ActionDeleteValue();
}
partial void ActionMoveUp (NSObject sender)
{
mainWindowController.Window.ActionMoveNodeUp();
}
partial void ActionMoveDown (NSObject sender)
{
mainWindowController.Window.ActionMoveNodeDown();
}
2012-11-11 01:32:46 +00:00
partial void ActionFind (NSObject sender)
{
mainWindowController.Window.ActionFind();
}
partial void ActionFindNext (NSObject sender)
{
mainWindowController.Window.ActionFindNext();
}
partial void ActionInsertByte (NSObject sender)
{
mainWindowController.Window.ActionInsertByteTag();
}
partial void ActionInsertShort (NSObject sender)
{
mainWindowController.Window.ActionInsertShortTag();
}
partial void ActionInsertInt (NSObject sender)
{
mainWindowController.Window.ActionInsertIntTag();
}
partial void ActionInsertLong (NSObject sender)
{
mainWindowController.Window.ActionInsertLongTag();
}
partial void ActionInsertFloat (NSObject sender)
{
mainWindowController.Window.ActionInsertFloatTag();
}
partial void ActionInsertDouble (NSObject sender)
{
mainWindowController.Window.ActionInsertDoubleTag();
}
partial void ActionInsertByteArray (NSObject sender)
{
mainWindowController.Window.ActionInsertByteArrayTag();
}
partial void ActionInsertIntArray (NSObject sender)
{
mainWindowController.Window.ActionInsertIntArrayTag();
}
partial void ActionInsertString (NSObject sender)
{
mainWindowController.Window.ActionInsertStringTag();
}
partial void ActionInsertList (NSObject sender)
{
mainWindowController.Window.ActionInsertListTag();
}
partial void ActionInsertCompound (NSObject sender)
{
mainWindowController.Window.ActionInsertCompoundTag();
}
}
}