Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Images/Menu/hide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Menu/hide.xcf
Binary file not shown.
Binary file added __pycache__/constants.cpython-311.pyc
Binary file not shown.
Binary file added adapter/__pycache__/arc_adapter.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added adapter/__pycache__/path_adapter.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added adapter/__pycache__/turn_adapter.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added common/__pycache__/dimensions.cpython-311.pyc
Binary file not shown.
Binary file added common/__pycache__/draw_order.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added common/__pycache__/font_manager.cpython-311.pyc
Binary file not shown.
Binary file added common/__pycache__/image_manager.cpython-311.pyc
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions common/image_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ImageID(Enum):
CHECKBOX_OFF = auto()
ADD_NODE = auto()
DELETE_NODE = auto()
HIDE_NODE = auto()
REVEAL_COMMAND = auto()
STRAIGHT_SEGMENT = auto()
ARC_SEGMENT = auto()
Expand Down Expand Up @@ -102,6 +103,7 @@ def __init__(self):
self.images[ImageID.ADD_NODE] = Image("menu/add.png")
self.images[ImageID.DELETE_NODE] = Image("menu/delete.png")
self.images[ImageID.REVEAL_COMMAND] = Image("menu/reveal.png")
self.images[ImageID.HIDE_NODE] = Image("menu/hide.png")

self.images[ImageID.STRAIGHT_SEGMENT] = Image("menu/straight_type.png")
self.images[ImageID.ARC_SEGMENT] = Image("menu/arc_type.png")
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added entity_base/__pycache__/entity.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added entity_ui/__pycache__/tooltip.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions entity_ui/selector_menu/configurations/node_menu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from common.reference_frame import PointRef, Ref
from entity_base.entity import Entity
from entity_base.image.image_state import ImageStatesFactory
from entity_ui.selector_menu.configurations.common_actions import HighlightCommandAction, HighlightID
from entity_ui.selector_menu.selector_menu_factory import *
Expand Down Expand Up @@ -29,6 +30,10 @@ def isActionAvailable(self, targetEntity: PathNodeEntity | T) -> bool:
def onClick(self, targetEntity: PathNodeEntity, mouse: tuple):
targetEntity.path.removeNode(targetEntity)

class HideNodeAction(MenuClickAction[PathNodeEntity]):

def onClick(self, targetEntity: PathNodeEntity, mouse: tuple):
targetEntity.path.hideNode(targetEntity)
"""
Menu for path nodes. Functionality for:
- revealing command associated with node
Expand Down Expand Up @@ -62,4 +67,8 @@ def configureNodeMenu() -> MenuDefinition:
states.addState(0, ImageID.DELETE_NODE, "Delete this node", None, "Cannot delete the only node")
segmentDefinition.add(states.create(), DeleteNodeAction())

states = ImageStatesFactory()
states.addState(0, ImageID.HIDE_NODE, "Hide this node")
segmentDefinition.add(states.create(), HideNodeAction())

return segmentDefinition
1 change: 1 addition & 0 deletions entity_ui/selector_menu/configurations/segment_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def onClick(self, targetEntity: PathSegmentEntity, mouse: tuple):
else:
raise Exception("Invalid segment type")


"""
Menu for segments. Functionality for:
- revealing command associated with node
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added root_container/__pycache__/path.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added utility/__pycache__/color.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file added utility/__pycache__/line.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.