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