Skip to content

Commit

Permalink
Merge pull request #1286 from moosetechnology/1284-CoUsageMap-setting…
Browse files Browse the repository at this point in the history
…-blocks-button-raises-an-error

fixing coUsageMap issue 1284
  • Loading branch information
NicolasAnquetil authored Dec 30, 2024
2 parents 6eb7395 + e03d242 commit 4aafa6c
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions src/MooseIDE-CoUsageMap/MiCoUsageMapBlockSettingsPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,6 @@ Class {
#category : #'MooseIDE-CoUsageMap-Settings'
}

{ #category : #layout }
MiCoUsageMapBlockSettingsPresenter class >> defaultLayout [
^ SpBoxLayout newTopToBottom
spacing: 3;
add: 'Children block:' asPresenter expand: false;
add: #childrenTextInput height: 200;
add: 'Outer box sort block:' asPresenter expand: false;
add: #sortOuterBoxTextInput height: 170;
add: 'Inner box sort block:' asPresenter expand: false;
add: #sortInnerBoxTextInput height: 170;
add: (SpBoxLayout newLeftToRight
hAlignCenter;
borderWidth: 5;
addLast: (SpBoxLayout newLeftToRight
add: #button;
add: #resetButton;
yourself) expand: false;
yourself) expand: false;
yourself
]

{ #category : #'accessing - private tests' }
MiCoUsageMapBlockSettingsPresenter >> applyButton [

Expand All @@ -58,6 +37,34 @@ MiCoUsageMapBlockSettingsPresenter >> connectPresenters [
sortInnerBoxTextInput text: set innerBoxSortBlockText.
]

{ #category : #layout }
MiCoUsageMapBlockSettingsPresenter >> defaultLayout [
^ SpBoxLayout newTopToBottom
spacing: 3;

add: 'Children block:' asPresenter expand: false ;
add: childrenTextInput height: 200 ;

add: 'Outer box sort block:' asPresenter expand: false ;
add: sortOuterBoxTextInput height: 170 ;

add: 'Inner box sort block:' asPresenter expand: false ;
add: sortInnerBoxTextInput height: 170 ;

add: (SpBoxLayout newLeftToRight
hAlignCenter;
borderWidth: 5;
addLast: (SpBoxLayout newLeftToRight
add: applyButton ;
add: resetButton ;
yourself)
expand: false;
yourself)
expand: false;

yourself
]

{ #category : #initialization }
MiCoUsageMapBlockSettingsPresenter >> initializeButtons [
applyButton := self newButton
Expand Down

0 comments on commit 4aafa6c

Please sign in to comment.