Skip to content

Commit

Permalink
Merge pull request #14 from moosetechnology/select-links
Browse files Browse the repository at this point in the history
Add menu item to select all/incoming/outgoing links
  • Loading branch information
Gabriel-Darbord authored Jun 28, 2024
2 parents 8dbd418 + f8c3c3b commit b304a3b
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 11 deletions.
6 changes: 0 additions & 6 deletions src/Hierarchical-Roassal-Menu/HAddLinkMenuItem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ HAddLinkMenuItem >> execute [
visualization rebuildLines: shape.
].
evt signalUpdate ].





]

{ #category : #accessing }
Expand All @@ -58,7 +53,6 @@ HAddLinkMenuItem >> modelFor: aShape [
^ aShape model
ifNil: [ self modelFor: aShape parent ]
ifNotNil: [ aShape model ]

]

{ #category : #accessing }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HHideAllLinksMenuItem >> group [

{ #category : #accessing }
HHideAllLinksMenuItem >> label [
^ 'Hide All links'
^ 'Hide all links'
]

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion src/Hierarchical-Roassal-Menu/HNewEntityMenuItem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ HNewEntityMenuItem >> group [

{ #category : #accessing }
HNewEntityMenuItem >> label [
^ 'New Entity'
^ 'New entity'
]

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion src/Hierarchical-Roassal-Menu/HRelayoutMenuItem.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"
This menu item uses the layout of an HNode to place roassal shapes in their positions
This menu item uses the layout of an HNode to place roassal shapes in their positions.
"
Class {
#name : #HRelayoutMenuItem,
Expand Down
33 changes: 33 additions & 0 deletions src/Hierarchical-Roassal-Menu/HSelectAllLinksMenuItem.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"
This menu item selects all the links of the node.
"
Class {
#name : #HSelectAllLinksMenuItem,
#superclass : #HNodeMenuItem,
#category : #'Hierarchical-Roassal-Menu'
}

{ #category : #execution }
HSelectAllLinksMenuItem >> execute [

visualization container setSelectedShapes:
shape outgoingShapes , shape incomingShapes
]

{ #category : #accessing }
HSelectAllLinksMenuItem >> group [

^ 3
]

{ #category : #accessing }
HSelectAllLinksMenuItem >> label [

^ 'Select all links'
]

{ #category : #accessing }
HSelectAllLinksMenuItem >> order [

^ 100
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"
This menu item selects the incoming links of the node.
"
Class {
#name : #HSelectIncomingLinksMenuItem,
#superclass : #HNodeMenuItem,
#category : #'Hierarchical-Roassal-Menu'
}

{ #category : #execution }
HSelectIncomingLinksMenuItem >> execute [

visualization container setSelectedShapes: shape incomingShapes
]

{ #category : #accessing }
HSelectIncomingLinksMenuItem >> group [

^ 3
]

{ #category : #accessing }
HSelectIncomingLinksMenuItem >> label [

^ 'Select incoming links'
]

{ #category : #accessing }
HSelectIncomingLinksMenuItem >> order [

^ 110
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"
This menu item selects the outgoing links of the node.
"
Class {
#name : #HSelectOutgoingLinksMenuItem,
#superclass : #HNodeMenuItem,
#category : #'Hierarchical-Roassal-Menu'
}

{ #category : #execution }
HSelectOutgoingLinksMenuItem >> execute [

visualization container setSelectedShapes: shape outgoingShapes
]

{ #category : #accessing }
HSelectOutgoingLinksMenuItem >> group [

^ 3
]

{ #category : #accessing }
HSelectOutgoingLinksMenuItem >> label [

^ 'Select outgoing links'
]

{ #category : #accessing }
HSelectOutgoingLinksMenuItem >> order [

^ 120
]
4 changes: 2 additions & 2 deletions src/Hierarchical-Roassal-Menu/HShowAllLinksMenuItem.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"
this menu item show all the links of the node and all children
This menu item shows all the links of the node and all children.
"
Class {
#name : #HShowAllLinksMenuItem,
Expand All @@ -20,7 +20,7 @@ HShowAllLinksMenuItem >> group [

{ #category : #accessing }
HShowAllLinksMenuItem >> label [
^ 'Show All links'
^ 'Show all links'
]

{ #category : #accessing }
Expand Down

0 comments on commit b304a3b

Please sign in to comment.