Updates content tree class heirarchy, updates all IActions to have the correct icon in c# and udpates the icon mapping

This commit is contained in:
Shannon
2013-08-01 12:20:28 +10:00
parent 60b40b09ff
commit f63988639f
36 changed files with 137 additions and 92 deletions

View File

@@ -8,6 +8,8 @@ using System.Web.Http;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Models.EntityBase;
using Umbraco.Core.Services;
using umbraco;
using umbraco.BusinessLogic.Actions;
using umbraco.businesslogic;
using umbraco.interfaces;
@@ -59,7 +61,17 @@ namespace Umbraco.Web.Trees
return base.CreateRootNode(queryStrings);
}
protected override TreeNodeCollection GetTreeData(string id, FormDataCollection queryStrings)
protected override int RecycleBinId
{
get { return Constants.System.RecycleBinContent; }
}
protected override bool RecycleBinSmells
{
get { return Services.ContentService.RecycleBinSmells(); }
}
protected override TreeNodeCollection PerformGetTreeNodes(string id, FormDataCollection queryStrings)
{
int iid;
if (int.TryParse(id, out iid) == false)
@@ -100,7 +112,7 @@ namespace Umbraco.Web.Trees
return nodes;
}
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
protected override MenuItemCollection PerformGetMenuForNode(string id, FormDataCollection queryStrings)
{
var menu = new MenuItemCollection();
@@ -163,5 +175,7 @@ namespace Umbraco.Web.Trees
menu.AddMenuItem<ActionRefresh>(true);
return menu;
}
}
}