Advertisement
BloodknightStudios

Untitled

Jul 13th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. treeView = GuiEditorTreeView;
  2. new GuiTreeViewCtrl(GuiEditorTreeView) {
  3. exec( "./scripts/guiEditorTreeView.ed.cs" );
  4. GuiEditorTreeView.init();
  5. GuiEditorTreeView.open( %content );
  6. GuiEditorTreeView.expandItem( 1 );
  7. GuiEditorTreeView.update();
  8. GuiEditorTreeView.update();
  9. %action = UndoActionDeleteObject::create( %set, %this.getTrash(), GuiEditorTreeView );
  10. GuiEditorTreeView.update();
  11. GuiEditorTreeView.update();
  12. GuiEditorTreeView.clearSelection();
  13. GuiEditorTreeView.addSelection( %ctrl );
  14. GuiEditorTreeView.addSelection( %ctrl );
  15. GuiEditorTreeView.scrollVisibleByObjectId( %ctrl );
  16. GuiEditorTreeView.removeSelection( %ctrl );
  17. GuiEditorTreeView.clearSelection();
  18. GuiEditorTreeView.update();
  19. function GuiEditorTreeView::init(%this)
  20. item[ 0 ] = "Rename" TAB "" TAB "GuiEditorTreeView.showItemRenameCtrl( GuiEditorTreeView.findItemByObjectId( %this.object ) );";
  21. item[ 0 ] = "Rename" TAB "" TAB "GuiEditorTreeView.showItemRenameCtrl( GuiEditorTreeView.findItemByObjectId( %this.object ) );";
  22. item[ 3 ] = "Locked" TAB "" TAB "%this.object.setLocked( !%this.object.locked ); GuiEditorTreeView.update();";
  23. item[ 4 ] = "Hidden" TAB "" TAB "%this.object.setVisible( !%this.object.isVisible() ); GuiEditorTreeView.update();";
  24. function GuiEditorTreeView::update( %this )
  25. GuiEditorTreeView.clear();
  26. GuiEditorTreeView.open( %obj );
  27. GuiEditorTreeView.clearSelection();
  28. GuiEditorTreeView.addSelection( %selection.getObject( %i ) );
  29. function GuiEditorTreeView::onDefineIcons(%this)
  30. GuiEditorTreeView.buildIconTable( %icons );
  31. function GuiEditorTreeView::onRightMouseDown( %this, %item, %pts, %obj )
  32. function GuiEditorTreeView::onAddSelection(%this,%ctrl)
  33. function GuiEditorTreeView::onRemoveSelection( %this, %ctrl )
  34. function GuiEditorTreeView::onDeleteSelection(%this)
  35. function GuiEditorTreeView::onSelect( %this, %obj )
  36. function GuiEditorTreeView::isValidDragTarget( %this, %id, %obj )
  37. function GuiEditorTreeView::onBeginReparenting( %this )
  38. function GuiEditorTreeView::onReparent( %this, %obj, %oldParent, %newParent )
  39. function GuiEditorTreeView::onEndReparenting( %this )
  40. GuiEditorTreeView.update();
  41. GuiEditorTreeView.update();
  42. %act.tree = GuiEditorTreeView;
  43. %act = UndoActionAddObject::create(%set, %this.getTrash(), GuiEditorTreeView);
  44. %act = UndoActionAddObject::create(%selection, %this.getTrash(), GuiEditorTreeView);
  45. %act = UndoActionDeleteObject::create(%selection, %this.getTrash(), GuiEditorTreeView);
  46. GuiEditorTreeView.update();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement