示例#1
0
 public ViewSelectionBookmark(BookmarkManager aBookmarkManager, ModelBrowser aBrowser)
     : base()
 {
     iBookmarkManager = aBookmarkManager;
     iBrowser         = aBrowser;
     NSBundle.LoadNibNamedOwner("ViewSelectionBookmark.nib", this);
 }
示例#2
0
        public ViewAddBookmark(BookmarkManager aBookmarkManager, Location aLocation)
            : base()
        {
            iBookmarkManager = aBookmarkManager;
            iBookmark        = new Bookmark(aLocation);

            NSBundle.LoadNibNamedOwner("ViewAddBookmark.nib", this);
        }
示例#3
0
 public WindowSave(ISaveSupport aSaveSupport)
     : base()
 {
     iSaveSupport = aSaveSupport;
     iImageList   = new Dictionary <uint, System.Uri>();
     //iImages = new List<NSImage>();
     iImageLocations = new List <string>();
     NSBundle.LoadNibNamedOwner("WindowSave.nib", this);
 }
示例#4
0
        public WindowPopover(IViewPopover aView)
            : base()
        {
            iView = aView;
            bool ret = NSBundle.LoadNibNamedOwner("WindowPopover.nib", this);

            if (!ret)
            {
                Linn.UserLog.WriteLine(DateTime.Now + ": Logging for #822 nib failed to load");
            }
        }
示例#5
0
        public void DebugConsole(Id aSender)
        {
            // close existing debug window
            if (iUserLog != null)
            {
                iUserLog.Window.Close();
                iUserLog.Release();
                iUserLog = null;
            }

            // load a fresh debug window
            iUserLog = new UserLogDialogMonobjc();
            NSBundle.LoadNibNamedOwner("UserLog.nib", iUserLog);
            iUserLog.Window.MakeKeyAndOrderFront(this);
        }
示例#6
0
        public void ApplicationWillFinishLaunching(NSObject aNoticiation)
        {
            // create the main window
            iMainWindow = new WindowMainController();
            iMainWindow.EventWindowMainClosed += MainWindowClosed;
            NSBundle.LoadNibNamedOwner("MainWindow.nib", iMainWindow);

            // create the about box
            iWindowAbout = new WindowAbout();
            NSBundle.LoadNibNamedOwner("WindowAbout.nib", iWindowAbout);

            // initialise the main window from model data
            iController.InitialiseMainWindow(iMainWindow);

            // start the model - network stack etc...
            iController.Start(iMainWindow);

            //register for fast user switching notifications
            IntPtr handlerPtr = Monobjc.ObjectiveCRuntime.Selector("sessionChangedHandler:");

            NSWorkspace.SharedWorkspace.NotificationCenter.AddObserverSelectorNameObject(this, handlerPtr, NSWorkspace.NSWorkspaceSessionDidBecomeActiveNotification, null);
            NSWorkspace.SharedWorkspace.NotificationCenter.AddObserverSelectorNameObject(this, handlerPtr, NSWorkspace.NSWorkspaceSessionDidResignActiveNotification, null);
        }
示例#7
0
 public ViewSelectionRoom(IModelSelectionList <Linn.Kinsky.Room> aModel)
     : base()
 {
     iModel = aModel;
     NSBundle.LoadNibNamedOwner("ViewSelectionRoom.nib", this);
 }
示例#8
0
 public ViewSelectionSource(IModelSelectionList <Linn.Kinsky.Source> aModel)
     : base()
 {
     iModel = aModel;
     NSBundle.LoadNibNamedOwner("ViewSelectionSource.nib", this);
 }
示例#9
0
 public WindowNotification(INotification aNotification)
     : base()
 {
     iNotification = aNotification;
     NSBundle.LoadNibNamedOwner("WindowNotification.nib", this);
 }
示例#10
0
 public WindowUpdate(AutoUpdate aAutoUpdate)
     : base()
 {
     iAutoUpdate = aAutoUpdate;
     NSBundle.LoadNibNamedOwner("WindowUpdate.nib", this);
 }