Skip to content
Permalink
Browse files

Merge pull request #652 from Inao0/feature/improvementsForIceberg

Additionnals features required for migrating Iceberg to Spec 2
  • Loading branch information...
jecisc committed Jul 16, 2019
2 parents 6d4cc44 + 61642e0 commit 246c1a7f24adaf711653d082ae7ef5804cf262bb
@@ -57,7 +57,8 @@ BaselineOfSpec2 >> baseline: spec [
package: 'Spec2-Backend-Tests'
with: [ spec requires: #('Spec2-Adapters-Morphic' 'ParametrizedTests') ];
package: 'Spec2-Compatibility-Tests'
with: [ spec requires: #('Spec2-Morphic-Backend-Tests' 'Spec2-Deprecated') ] ].
with: [ spec requires: #('Spec2-Morphic-Backend-Tests' 'Spec2-Deprecated') ]].

spec
for: #'pharo7.x'
do: [ self commander2: spec.
@@ -46,6 +46,13 @@ SpButtonBarPresenter >> items [
^ items value
]

{ #category : #api }
SpButtonBarPresenter >> items: aCollectionOfButtonPresenters [
items := OrderedCollection new asValueHolder.
items addAll: aCollectionOfButtonPresenters .
^ self
]

{ #category : #accessing }
SpButtonBarPresenter >> placeAtEnd [

@@ -93,6 +93,12 @@ SpTablePresenter >> showColumnHeaders [
showColumnHeaders := true
]

{ #category : #testing }
SpTablePresenter >> valueAtColumn: aColumn row: aRow [

^ (columns at: aColumn) readObject: (self model items at: aRow)
]

{ #category : #'api-events' }
SpTablePresenter >> whenColumnsChangedDo: aBlock [

@@ -54,6 +54,18 @@ SpBoxLayout >> add: aName expand: shouldExpand fill: shouldFill padding: aNumber
padding: aNumber ]
]

{ #category : #adding }
SpBoxLayout >> add: aPresenter height: anInteger [
self add: aPresenter withConstraints: [:constraints | constraints height: anInteger ].
]

{ #category : #adding }
SpBoxLayout >> add: aPresenter width: anInteger [
self
add: aPresenter
withConstraints: [ :constraints | constraints width: anInteger ].
]

{ #category : #adding }
SpBoxLayout >> add: aPresenter withConstraints: aBlock [

@@ -1,5 +1,10 @@
Extension { #name : #SpPresenter }

{ #category : #'*Spec2-PolyWidgets' }
SpPresenter class >> iconWidth [
^ 24
]

{ #category : #'*Spec2-PolyWidgets' }
SpPresenter class >> labelWidth [
^ 100

0 comments on commit 246c1a7

Please sign in to comment.
You can’t perform that action at this time.