[Inspector] Inspection of Library and Elements

In edit mode, the user can now use the object
inspector to inspect the objects contained
within the Library and Elements panes.
This commit is contained in:
slhale 2015-08-28 11:50:16 -07:00
parent 8f40d7d9ee
commit 50c08a15d6
3 changed files with 11 additions and 7 deletions

View File

@ -54,7 +54,8 @@
> >
<mct-container key="accordion" label="Library"> <mct-container key="accordion" label="Library">
<mct-representation key="'tree'" <mct-representation key="'tree'"
mct-object="editPanes.getRoot()"> mct-object="editPanes.getRoot()"
ng-model="ngModel">
</mct-representation> </mct-representation>
</mct-container> </mct-container>
</div> </div>
@ -64,7 +65,9 @@
ng-controller="ToggleController as toggle" ng-controller="ToggleController as toggle"
> >
<mct-container key="accordion" label="Elements"> <mct-container key="accordion" label="Elements">
<mct-representation key="'edit-elements'" mct-object="domainObject"> <mct-representation key="'edit-elements'"
mct-object="domainObject"
ng-model="ngModel">
</mct-representation> </mct-representation>
</mct-container> </mct-container>
</div> </div>

View File

@ -24,7 +24,9 @@
<ul class="tree"> <ul class="tree">
<li ng-repeat="containedObject in composition"> <li ng-repeat="containedObject in composition">
<span class="tree-item"> <span class="tree-item">
<mct-representation key="'label'" mct-object="containedObject"> <mct-representation key="'label'"
mct-object="containedObject"
ng-click="ngModel.inspectionObjects = [containedObject]">
</mct-representation> </mct-representation>
</span> </span>
</li> </li>

View File

@ -21,10 +21,9 @@
--> -->
<span ng-controller="ToggleController as toggle"> <span ng-controller="ToggleController as toggle">
<span ng-controller="TreeNodeController as treeNode"> <span ng-controller="TreeNodeController as treeNode">
<span <span class="tree-item menus-to-left"
class="tree-item menus-to-left"
ng-class="{selected: treeNode.isSelected()}" ng-class="{selected: treeNode.isSelected()}"
> ng-click="ngModel.inspectionObjects = [domainObject]">
<span <span
class='ui-symbol view-control' class='ui-symbol view-control'
ng-click="toggle.toggle(); treeNode.trackExpansion()" ng-click="toggle.toggle(); treeNode.trackExpansion()"