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

            NSBundle.LoadNibNamedOwner("ViewAddBookmark.nib", this);
        }
Esempio n. 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);
 }
Esempio n. 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");
            }
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 7
0
 public ViewSelectionRoom(IModelSelectionList <Linn.Kinsky.Room> aModel)
     : base()
 {
     iModel = aModel;
     NSBundle.LoadNibNamedOwner("ViewSelectionRoom.nib", this);
 }
Esempio n. 8
0
 public ViewSelectionSource(IModelSelectionList <Linn.Kinsky.Source> aModel)
     : base()
 {
     iModel = aModel;
     NSBundle.LoadNibNamedOwner("ViewSelectionSource.nib", this);
 }
Esempio n. 9
0
 public WindowNotification(INotification aNotification)
     : base()
 {
     iNotification = aNotification;
     NSBundle.LoadNibNamedOwner("WindowNotification.nib", this);
 }
Esempio n. 10
0
 public WindowUpdate(AutoUpdate aAutoUpdate)
     : base()
 {
     iAutoUpdate = aAutoUpdate;
     NSBundle.LoadNibNamedOwner("WindowUpdate.nib", this);
 }