#include <AIS.hxx>
#include <AIS_ListOfInteractive.hxx>
#include <SelectMgr_EntityOwner.hxx>
+#include <inspector/VInspector_ItemContextProperties.hxx>
#include <inspector/VInspector_ItemPresentableObject.hxx>
#include <inspector/VInspector_Tools.hxx>
if (Column() != 0)
return 0;
+ int aNbProperties = 1; // item to visualize Viewer information of context
+
Handle(AIS_InteractiveContext) aContext = Handle(AIS_InteractiveContext)::DownCast (Object());
if (aContext.IsNull())
return 0;
aNbPresentations++;
}
- return aNbPresentations;
+ return aNbProperties + aNbPresentations;
}
// =======================================================================
// =======================================================================
TreeModel_ItemBasePtr VInspector_ItemContext::createChild (int theRow, int theColumn)
{
- return VInspector_ItemPresentableObject::CreateItem (currentItem(), theRow, theColumn);
+ if (theRow == 0)
+ return VInspector_ItemContextProperties::CreateItem (currentItem(), theRow, theColumn);
+ else
+ return VInspector_ItemPresentableObject::CreateItem (currentItem(), theRow, theColumn);
}
// =======================================================================