Skip to content

Commit

Permalink
switched to new Roassal repository
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 25, 2023
1 parent c203ac6 commit bacecce
Show file tree
Hide file tree
Showing 81 changed files with 133 additions and 122 deletions.
35 changes: 23 additions & 12 deletions repository/BaselineOfOpenPonk/BaselineOfOpenPonk.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ BaselineOfOpenPonk >> baseline: spec [
self externalProjectsBaseline: spec.
self internalProjectsBaseline: spec.
spec
package: 'OpenPonk-Roassal3'
with: [ spec preLoadDoIt: #loadRoassal3 ];
package: 'OpenPonk-Roassal'
with: [ spec preLoadDoIt: #loadRoassal ];
package: 'OpenPonk-Core' with: [
spec requires:
#( 'Magritte' 'Mocketry' 'XMLParser' 'XPath' 'NeoJSON' 'OpenPonk-Roassal3' ) ];
Expand All @@ -26,7 +26,7 @@ BaselineOfOpenPonk >> baseline: spec [
spec
requires:
#( 'NewTools' 'Magritte' 'SynchronizedLinks' 'OpenPonk-Morphic' );
preLoadDoIt: #loadPetitParserAndRoassal3 ].
preLoadDoIt: #loadPetitParserAndRoassal ].
spec
group: 'default'
with: #( 'OpenPonk-Core' 'OpenPonk-Morphic' 'OpenPonk-Spec' ) ]
Expand Down Expand Up @@ -87,35 +87,46 @@ BaselineOfOpenPonk >> loadPetitParser [
]

{ #category : #baselines }
BaselineOfOpenPonk >> loadPetitParserAndRoassal3 [
BaselineOfOpenPonk >> loadPetitParserAndRoassal [

"PetitParser is not needed by core OP. It is needed by BormEditor, but due to Pharo bug https://github.com/pharo-project/pharo/issues/9913 it must be always loaded before Roassal in Pharo 10"

self
loadPetitParser;
loadRoassal3
loadRoassal
]

{ #category : #baselines }
BaselineOfOpenPonk >> loadRoassal3 [
BaselineOfOpenPonk >> loadRoassal [
"Roassal3 needs to be loaded this way because different version of it is already included in Pharo 10+"

| exporters |
Smalltalk at: #BaselineOfRoassal3Exporters ifPresent: [ ^ self ].
| exporters layouts |

Smalltalk at: #BaselineOfRoassalExporters ifPresent: [ ^ self ].

layouts := Metacello new.
layouts
baseline: 'RoassalLayouts';
repository: 'github://pharo-graphics/RoassalLayouts:136a902';
lock;
onConflictUseLoaded.

exporters := Metacello new.
exporters
baseline: 'Roassal3Exporters';
repository: 'github://ObjectProfile/Roassal3Exporters:6c61b1f';
baseline: 'RoassalExporters';
repository: 'github://pharo-graphics/RoassalExporters:v1.01';
lock;
onConflictUseLoaded.

[
Metacello new
baseline: 'Roassal3';
repository: 'github://ObjectProfile/Roassal3:v1.03';
baseline: 'Roassal';
repository: 'github://pharo-graphics/Roassal:b508334';
lock;
load: #Full ]
on: MCMergeOrLoadWarning
do: [ :warning | warning load ].

layouts load.
exporters load
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Announcer }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
Announcer >> suspendAllOf: anObject while: aBlock [

| originalSubscriptions result |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Color }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
Color >> withTransparencyAsWhite [

^ self class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Float }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
Float >> closeTo: num absolutePrecision: aPrecision [

"Tell whether the receiver and arguments are close from each other given a absolute precision"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Extension { #name : #GEllipse }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GEllipse >> bottom [

^ coVertex y max: center y + center y - coVertex y
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GEllipse >> left [

^ vertex x min: center x + center x - vertex x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GEllipse >> right [

^ vertex x max: center x + center x - vertex x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GEllipse >> top [

^ coVertex y min: center y + center y - coVertex y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Extension { #name : #GPoint }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPoint >> bottom [

^ self y
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPoint >> left [

^ self x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPoint >> right [

^ self x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPoint >> top [

^ self y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Extension { #name : #GPolygon }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPolygon >> bottom [

^ self encompassingRectangle bottom
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPolygon >> left [

^ self encompassingRectangle left
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPolygon >> right [

^ self encompassingRectangle right
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GPolygon >> top [

^ self encompassingRectangle top
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Extension { #name : #GRectangle }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GRectangle >> bottom [

^ (self vertices at: 3) y
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GRectangle >> left [

^ (self vertices at: 1) x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GRectangle >> right [

^ (self vertices at: 3) x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GRectangle >> top [

^ (self vertices at: 1) y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Extension { #name : #GSegment }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GSegment >> bottom [

^ v1 y max: v2 y
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GSegment >> left [

^ v1 x min: v2 x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GSegment >> right [

^ v1 x max: v2 x
]

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
GSegment >> top [

^ v1 y min: v2 y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Number }

{ #category : #'*OpenPonk-Roassal3' }
{ #category : #'*OpenPonk-Roassal' }
Number >> closeTo: num absolutePrecision: aPrecision [
"are these two numbers close?"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Class {
'line',
'shape'
],
#category : #'OpenPonk-Roassal3-Polyline'
#category : #'OpenPonk-Roassal-Polyline'
}

{ #category : #accessing }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'feedback'
],
#category : #'OpenPonk-Roassal3-CreationFeedback'
#category : #'OpenPonk-Roassal-CreationFeedback'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
'shape',
'padding'
],
#category : #'OpenPonk-Roassal3-Interactions'
#category : #'OpenPonk-Roassal-Interactions'
}

{ #category : #'instance creation' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class {
'verticalLocation',
'horizontalLocation'
],
#category : #'OpenPonk-Roassal3-Interactions'
#category : #'OpenPonk-Roassal-Interactions'
}

{ #category : #adding }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Class {
'positionReference',
'alwaysShowGuideLine'
],
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #building }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'balance'
],
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #'instance creation' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #OPRSAnchorConstraintEndDistanceReference,
#superclass : #OPRSAnchorConstraintFixedDistanceReference,
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'distance'
],
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #accessing }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
'previousSegmentsLength',
'lineLength'
],
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #calculated }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #OPRSAnchorConstraintReference,
#superclass : #RSObject,
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #'as yet unclassified' }
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #OPRSAnchorConstraintStartDistanceReference,
#superclass : #OPRSAnchorConstraintFixedDistanceReference,
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class {
'extraDistance',
'positionReference'
],
#category : #'OpenPonk-Roassal3-AnchorConstraint'
#category : #'OpenPonk-Roassal-AnchorConstraint'
}

{ #category : #building }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #OPRSBezier,
#superclass : #RSBezier,
#category : #'OpenPonk-Roassal3-Polyline'
#category : #'OpenPonk-Roassal-Polyline'
}

{ #category : #accessing }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #OPRSCanvasADFeedback,
#superclass : #OPRSAcceptDenyFeedbackBuilder,
#category : #'OpenPonk-Roassal3-CreationFeedback'
#category : #'OpenPonk-Roassal-CreationFeedback'
}

{ #category : #private }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'conditionBlock'
],
#category : #'OpenPonk-Roassal3-Interactions'
#category : #'OpenPonk-Roassal-Interactions'
}

{ #category : #initialization }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Class {
'dragAttachmentMargin',
'dragSnapComparisonsAmount'
],
#category : #'OpenPonk-Roassal3-Interactions'
#category : #'OpenPonk-Roassal-Interactions'
}

{ #category : #accessing }
Expand Down
Loading

0 comments on commit bacecce

Please sign in to comment.