Skip to content

Commit

Permalink
conforming Roassal3 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Aug 1, 2023
1 parent 66ace59 commit 51ab05d
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 18 deletions.
7 changes: 5 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNActivityShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ OPBPMNActivityShape >> renderShapeDetails [
RSLocation new
stick: icon on: self roassalShape;
offset: -28 @ -16.
self roassalShape when: RSShapeRemovedEvent do: [ icon remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [ icon remove ]
for: self.

self color: (Color fromHexString: 'f2f2f2').
"TODO for what are good bounds?????"
"TODO for what are good bounds?????"
self bounds: nil.
roassalShape @ OPRSSelectionDraggable.
selectable := OPRSSelectable new.
Expand Down
12 changes: 8 additions & 4 deletions repository/OpenPonk-BPMN/OPBPMNBoundaryEventShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,24 @@ OPBPMNBoundaryEventShape >> renderShapeDetails [
yourself.
self canvas add: icon.
RSLocation new stick: icon on: self roassalShape.
self roassalShape when: RSShapeRemovedEvent do: [ icon remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [ icon remove ]
for: self.

innerCircle := RSCircle new
size: 31;
borderColor: Color black;
color: Color transparent;
border: borderIn;
border: borderIn;
yourself.
self canvas add: innerCircle.
RSLocation new stick: innerCircle on: self roassalShape.
self roassalShape
when: RSShapeRemovedEvent
do: [ innerCircle remove ].
"TODO for what are good bounds?????"
do: [ innerCircle remove ]
for: self.
"TODO for what are good bounds?????"
self bounds: nil.
"roassalShape @ OPRSSelectionDraggable."
selectable := OPRSSelectable new.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,26 @@ Class {

{ #category : #testing }
OPBPMNCollapsedSubProcessController >> buildEditorForm: aForm [

| anEvent |
super buildEditorForm: aForm.
(aForm addDroplist: 'Marker')
items: #( #None #MarkerParallel #MarkerSequential #MarkerLoop #MarkerCompensation #MarkerAdhoc);
items:
#( #None #MarkerParallel #MarkerSequential #MarkerLoop #MarkerCompensation
#MarkerAdhoc );
displayIcon: [ :type | self model typeIconFor: type ];
display: [ :type | type asString ];
selectItem: self model type;
whenSelectedItemChangedDo: [ :newValue |
whenSelectedItemChangedDo: [ :newValue |
self model type: newValue.
self diagramElement modelChanged ].
(aForm addCheckbox: 'Is Call Activity?')
(aForm addCheckbox: 'Is Call Activity?')
state: self model isCallActivity;
whenChangedDo: [ :val |
whenChangedDo: [ :val |
self model isCallActivity: val.
self diagramElement modelChanged ].
(aForm addButton: 'Add Boundary Event') action: [

(aForm addButton: 'Add Boundary Event') action: [
anEvent := OPBPMNBoundaryEventController new
createModelIn: self model;
showInDiagram: self diagramController;
Expand All @@ -42,7 +45,8 @@ OPBPMNCollapsedSubProcessController >> buildEditorForm: aForm [
offset: -1 @ 22.
self diagramElement roassalShape
when: RSShapeRemovedEvent
do: [ anEvent diagramElement roassalShape remove ] ].
do: [ anEvent diagramElement roassalShape remove ]
for: self ].
self diagramElement modelChanged
]

Expand Down
14 changes: 10 additions & 4 deletions repository/OpenPonk-BPMN/OPBPMNCollapsedSubProcessShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ OPBPMNCollapsedSubProcessShape >> renderShapeDetails [
label shapeBuilder labelShape color: Color black.
roassalShape addInteraction: label.
subprocessIcon := RSBitmap new
form: self typeBasicIcon;
yourself.
form: self typeBasicIcon;
yourself.
icon := RSBitmap new
form: self typeIconForModel;
yourself.
Expand All @@ -66,11 +66,17 @@ OPBPMNCollapsedSubProcessShape >> renderShapeDetails [
RSLocation new
stick: icon on: self roassalShape;
offset: -16 @ 18.
self roassalShape when: RSShapeRemovedEvent do: [ icon remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [ icon remove ]
for: self.
RSLocation new
stick: subprocessIcon on: self roassalShape;
offset: 0 @ 18.
self roassalShape when: RSShapeRemovedEvent do: [ subprocessIcon remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [ subprocessIcon remove ]
for: self.
self color: (Color fromHexString: 'f2f2f2').

roassalShape @ OPRSSelectionDraggable.
Expand Down
5 changes: 4 additions & 1 deletion repository/OpenPonk-BPMN/OPBPMNDataObjectShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ OPBPMNDataObjectShape >> renderShapeDetails [
yourself.
self canvas add: icon.
RSLocation new stick: icon on: self roassalShape.
self roassalShape when: RSShapeRemovedEvent do: [ icon remove ].
self roassalShape
when: RSShapeRemovedEvent
do: [ icon remove ]
for: self.

roassalShape @ OPRSSelectionDraggable.
selectable := OPRSSelectable new.
Expand Down

0 comments on commit 51ab05d

Please sign in to comment.