예제 #1
0
        // Overrides required for drag and drop

        public override bool WriteRows(NSTableView tableView, Foundation.NSIndexSet rowIndexes, NSPasteboard pboard)
        {
            NSData data = NSKeyedArchiver.ArchivedDataWithRootObject(rowIndexes);

            pboard.DeclareTypes(new string[] { DungeonToolsConstants.ECOUNTER_INITIATIVE_DRAG_DROP_TYPE }, this);
            pboard.SetDataForType(data, DungeonToolsConstants.ECOUNTER_INITIATIVE_DRAG_DROP_TYPE);
            return(true);
        }
예제 #2
0
        public void InsertObjects(TValue[] objects, NSIndexSet atIndexes)
        {
            if (objects == null)
            {
                throw new ArgumentNullException(nameof(objects));
            }

            if (atIndexes == null)
            {
                throw new ArgumentNullException(nameof(atIndexes));
            }

            if (objects.Length != atIndexes.Count)
            {
                throw new ArgumentOutOfRangeException("'" + nameof(objects) + "' and '" + nameof(atIndexes) + "' must contain the same number of elements");
            }

            for (int i = 0; i < objects.Length; i++)
            {
                if (objects [i] == null)
                {
                    throw new ArgumentNullException(nameof(objects) + "[" + i.ToString() + "]");
                }
            }

            nuint idx = atIndexes.FirstIndex;

            for (int i = 0; i < objects.Length; i++)
            {
                if (i > 0)
                {
                    idx = atIndexes.IndexGreaterThan(idx);
                }

                Insert(objects [i], (nint)idx);
            }
        }
예제 #3
0
 public virtual void InsertObjects(AnyObject[] objects, NSIndexSet atIndexes)
 {
 }
예제 #4
0
 public virtual void MoveObjectsAtIndexes(NSIndexSet indexes, int toIndex)
 {
 }
예제 #5
0
 public virtual void ReplaceObjectsAtIndexes(NSIndexSet indexes, AnyObject[] withObjects)
 {
 }
예제 #6
0
 public virtual void RemoveObjectsAtIndexes(NSIndexSet indexes)
 {
 }
예제 #7
0
 public virtual void RemoveObserver(NSObject anObserver, NSIndexSet fromObjectsAtIndexes, string forKeyPath)
 {
 }
예제 #8
0
 public virtual void AddObserver(NSObject anObserver, NSIndexSet toObjectsAtIndexes, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context)
 {
 }
예제 #9
0
 public virtual void RemoveIndexes(NSIndexSet indexSet)
 {
 }
예제 #10
0
 public virtual void EnumerateObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Action <AnyObject, int, UnsafeMutablePointer <ObjCBool> > usingBlock)
 {
 }
예제 #11
0
 public virtual NSIndexSet IndexesOfObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func <AnyObject, int, UnsafeMutablePointer <ObjCBool>, bool> passingTest)
 {
     return(default(NSIndexSet));
 }
예제 #12
0
 public virtual AnyObject[] ObjectsAtIndexes(NSIndexSet indexes)
 {
     return(default(AnyObject[]));
 }
예제 #13
0
 public virtual bool ContainsIndexes(NSIndexSet indexSet)
 {
     return(default(bool));
 }
예제 #14
0
 public NSIndexSet(NSIndexSet indexSet)
 {
 }
예제 #15
0
 public virtual bool IsEqualToIndexSet(NSIndexSet indexSet)
 {
     return(default(bool));
 }
예제 #16
0
 public override void ReloadData(Foundation.NSIndexSet rowIndexes, Foundation.NSIndexSet columnIndexes)
 {
     base.ReloadData(rowIndexes, columnIndexes);
     QueueColumnResize();
 }
예제 #17
0
 public virtual void RemoveObserver(NSObject observer, NSIndexSet fromObjectsAtIndexes, string forKeyPath, UnsafeMutablePointer context)
 {
 }
예제 #18
0
 public virtual void AddIndexes(NSIndexSet indexSet)
 {
 }