Skip to content

Commit

Permalink
Merge pull request #601 from pharo-graphics/599-Attempt-to-read-undec…
Browse files Browse the repository at this point in the history
…lared-variable-BlInfiniteMouseScrollListener-when-loading-bloctoplo

Move system settings to the corresponding package
  • Loading branch information
tinchodias authored Sep 24, 2024
2 parents 2914812 + af3c788 commit 4ff817f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
15 changes: 15 additions & 0 deletions src/Bloc-Infinite/BlInfiniteMouseScrollListener.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ BlInfiniteMouseScrollListener class >> scrollingVelocity: anInteger [
ScrollingVelocity := anInteger
]

{ #category : #settings }
BlInfiniteMouseScrollListener class >> settingsOn: aBuilder [
<systemsettings>

(aBuilder range: #scrollingVelocity)
parent: Bloc groupSymbolForBloc;
target: self;
order: 5;
label: 'Scrolling velocity';
description:
'A positive integer used as a multiplier to increase mousewheel scrolling velocity ';
range: (1 to: 200 by: 1);
default: OSPlatform current defaultScrollingVelocity
]

{ #category : #'mouse handlers' }
BlInfiniteMouseScrollListener >> canScrollDown: anInfiniteElement [
"Return true if an infinite element can be scrolled down"
Expand Down
9 changes: 1 addition & 8 deletions src/Bloc/Bloc.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Bloc class >> preferableChildrenDataStructure: anChildrenCollectionClass [
{ #category : #settings }
Bloc class >> preferencesOn: aBuilder [
<systemsettings>

(aBuilder group: self groupSymbolForBloc)
label: 'Bloc';
description: 'Bloc settings';
Expand All @@ -101,14 +102,6 @@ Bloc class >> preferencesOn: aBuilder [
domainValues: { BlChildrenArray . BlChildrenRope . BlChildrenLinkedList };
description: 'Choose which data structure should be used to store element''s children'.

(aBuilder range: #scrollingVelocity)
order: 5;
target: BlInfiniteMouseScrollListener;
label: 'Scrolling velocity';
description: 'A positive integer used as a multiplier to increase mousewheel scrolling velocity ';
range: (1 to: 200 by: 1);
default: OSPlatform current defaultScrollingVelocity.

(aBuilder setting: #assertionsEnabled)
order: 6;
target: self;
Expand Down

0 comments on commit 4ff817f

Please sign in to comment.