Пример #1
0
 void HandleRowDeleted(object o, Gtk.RowDeletedArgs args)
 {
     Gtk.TreeIter outIter;
     if (TreeStore.GetIter(out outIter, args.Path) && outIter.Equals(Iter))
     {
         UnregisterTreeAnimation(this);
     }
 }
Пример #2
0
        void OnRowDeletedHandler(object sender, Gtk.RowDeletedArgs args)
        {
            if (NumberOfTasksChanged == null)
            {
                return;
            }

            NumberOfTasksChanged(this, EventArgs.Empty);
        }
Пример #3
0
        static void RowDeletedSignalCallback(IntPtr arg0, IntPtr arg1, IntPtr gch)
        {
            GLib.Signal sig = ((GCHandle)gch).Target as GLib.Signal;
            if (sig == null)
            {
                throw new Exception("Unknown signal GC handle received " + gch);
            }

            Gtk.RowDeletedArgs args = new Gtk.RowDeletedArgs();
            args.Args = new object[1];
            if (arg1 == IntPtr.Zero)
            {
                args.Args[0] = null;
            }
            else
            {
                args.Args[0] = new Gtk.TreePath(arg1);
            }
            Gtk.RowDeletedHandler handler = (Gtk.RowDeletedHandler)sig.Handler;
            handler(GLib.Object.GetObject(arg0), args);
        }
Пример #4
0
		void HandleRowDeleted (object o, RowDeletedArgs args)
		{
			var deleted = args.Path.Indices;
			int i;

			for (i = 0; i < deleted.Length && i < indices.Length; i++) {
				if (deleted[i] > indices[i]) {
					// the deleted node is listed below the node we are watching, ignore it
					return;
				}

				if (deleted[i] < indices[i]) {
					// the deleted node is listed above the node we are watching, update our position
					indices[i]--;
					path = null;
					return;
				}
			}

			if (deleted.Length <= indices.Length) {
				// the node we are watching (or its parent) has been deleted
				Invalidate ();
			}
		}
		/// <summary>
		/// Handles the row deletion event of the image tree model.
		/// </summary>
		/// <param name="s">
		/// A <see cref="System.Object"/>
		/// </param>
		/// <param name="a">
		/// A <see cref="RowDeletedArgs"/>
		/// </param>
		private void OnImagesStoreRowDeleted(object s, RowDeletedArgs a)
		{
			nextImageBtn.Sensitive = imagesStore.IterNChildren() > 0;
		}
Пример #6
0
 private void row_deleted(object o, RowDeletedArgs args)
 {
     changed = true;
 }
Пример #7
0
		private void row_deleted(object o, RowDeletedArgs args)
		{
			changed = true;
		}
Пример #8
0
 public void OnRowDeleted(object sender, RowDeletedArgs args)
 {
     --NrOfDocuments;
 }
 private void HandleDeleted(object sender, RowDeletedArgs args)
 {
     QueueUpdate();
 }
Пример #10
0
 private void OnRowDeleted(object o, RowDeletedArgs args)
 {
     iFolderViewGroup.CheckThread();
        if (args == null || args.Path == null) return;
        iFolderViewItem item = (iFolderViewItem)items[args.Path.ToString()];
        if (item != null)
        {
     Console.WriteLine("iFolderViewGroup.OnRowDeleted: {0}", item.Holder.iFolder.Name);
        }
        if (rebuildTableTimeoutID != 0)
        {
     GLib.Source.Remove(rebuildTableTimeoutID);
     rebuildTableTimeoutID = 0;
        }
        rebuildTableTimeoutID = GLib.Timeout.Add(
     rebuildTimeout, new GLib.TimeoutHandler(RebuildTableCallback));
        UpdateVisibility();
 }
Пример #11
0
 protected void OnImageListRowRemoved(object o, RowDeletedArgs arg)
 {
     TreeIter iter;
     if(arg.Path.Depth == 2)
     {
         arg.Path.Up ();
         this.GetIter (out iter, arg.Path);
         if(!this.IterHasChild (iter))
             this.Remove (ref iter);
     }
 }
Пример #12
0
		/// <summary>
		/// Updates the button greyed out states whenever an item is deleted.
		/// </summary>
		protected void HandleRowDeleted (object sender, RowDeletedArgs a)
		{
			UpdatePriorityButtons ();
		}
Пример #13
0
	private void OnModelRowDeleted (object o, RowDeletedArgs args) {
		EmitSubtitleCountChangedEvent();
	}
Пример #14
0
        private void OnGroupRowDeleted(object sender, RowDeletedArgs args)
        {
            if (groupButtonMap.ContainsKey (args.Path.Indices [0]) == false) {
                Logger.Debug ("GroupWindow.OnGroupRowDeleted () called on a path we don't know about.");
                return;
            }

            GroupButton groupButton = groupButtonMap [args.Path.Indices [0]];

            Logger.Debug ("GroupWindow.OnGroupRowDeleted removing group: {0}", groupButton.PersonGroup.DisplayName);

            groupButtonMap.Remove (args.Path.Indices [0]);

            groupButtonsVBox.Remove (groupButton);

            // If this is the currently selected group, switch the view
            // back to the Everyone group so that there aren't weirdnesses.
            if (selectedGroup == groupButton.PersonGroup) {
                OnEveryoneClicked (this, EventArgs.Empty);
            }

            // FIXME: Determine whether we should be calling groupButton.Destroy () here.
            groupButton.Destroy ();
        }
Пример #15
0
 void Model_RowDeleted(object o, RowDeletedArgs e)
 {
     Invalidate ();
 }
		void HandleRowDeleted (object o, RowDeletedArgs args)
		{
			var deleted = args.Path.Indices;
			int i;

			//If deleted is deeper then this path, it can't effect this path
			if (deleted.Length > indices.Length)
				return;

			for (i = 0; i < deleted.Length && i < indices.Length; i++) {
				if (deleted[i] > indices[i]) {
					// the deleted node is listed below the node we are watching, ignore it
					return;
				}

				if (deleted [i] < indices [i] && i < deleted.Length - 1) {
					// deleted is in different tree(not effecting our path)
					return;
				}

				if (deleted[i] < indices[i]) {
					// the deleted node is listed above the node we are watching, update our position
					indices[i]--;
					path = null;
					return;
				}
			}

			if (deleted.Length <= indices.Length) {
				// the node we are watching (or its parent) has been deleted
				Invalidate ();
			}
		}
Пример #17
0
 private void OnRowDeleted(object o, RowDeletedArgs args)
 {
     if (args == null || args.Path == null) return;
        if (rebuildTableTimeoutID != 0)
        {
     GLib.Source.Remove(rebuildTableTimeoutID);
     rebuildTableTimeoutID = 0;
        }
        rebuildTableTimeoutID = GLib.Timeout.Add(
     rebuildTimeout, new GLib.TimeoutHandler(RebuildTableCallback));
        UpdateVisibility();
 }
Пример #18
0
 private void OnPersonRowDeleted(object sender, RowDeletedArgs args)
 {
     //			Logger.Debug("PersonView:OnPersonRowDeleted Called");
     PersonCard card = (PersonCard) vbox.Children[args.Path.Indices [0]];
     vbox.Remove(card);
     foreach(TreeIter iter in personCardMap.Keys) {
         if(card == personCardMap[iter]) {
             personCardMap.Remove(iter);
             return;
         }
     }
 }