Skip to content

Commit

Permalink
specified missing parameters, specfied objects in loops, remove imple…
Browse files Browse the repository at this point in the history
…mentation details in instance variables
  • Loading branch information
tk committed Aug 2, 2022
1 parent 5e7c5be commit f415dca
Show file tree
Hide file tree
Showing 65 changed files with 172 additions and 172 deletions.
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBAssignee.class/instance/id..st
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
accessing
id: anObject
id: aNumber

id := anObject.
id := aNumber.
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBAssignee.class/instance/username..st
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
accessing
username: anObject
username: aString

username := anObject.
username := aString.
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBAssignee.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"asString" : "lo 5/28/2022 12:17",
"hash" : "LW 7/14/2022 11:23",
"id" : "lo 5/16/2022 22:43",
"id:" : "lo 5/16/2022 22:39",
"id:" : "tk 8/2/2022 23:42",
"isAssignee" : "lo 8/1/2022 14:48",
"username" : "lo 5/16/2022 22:42",
"username:" : "lo 5/16/2022 22:43" } }
"username:" : "tk 8/2/2022 23:42" } }
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
toolbuilder
buildButtons: builder
buildButtons: aBuilder

^ {builder pluggableButtonSpec new
^ {aBuilder pluggableButtonSpec new
model: self;
label: 'Submit';
action: #actionSaveAndClose;
yourself.
builder pluggableButtonSpec new
aBuilder pluggableButtonSpec new
model: self;
label: 'Cancel';
action: #actionCancel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
toolbuilder
buildInputFields: builder
buildInputFields: aBuilder

^ {builder pluggableInputFieldSpec new
^ {aBuilder pluggableInputFieldSpec new
model: self;
getText: #actionUsername;
editText: #actionUsername:;
setText: #actionUsername:;
help: 'GitHub username.';
yourself.
builder pluggableInputFieldSpec new
aBuilder pluggableInputFieldSpec new
model: self;
font: (StrikeFont passwordFontSize: 12);
getText: #actionToken;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
buildInputPanel: builder
buildInputPanel: aBuilder

^ builder pluggablePanelSpec new
^ aBuilder pluggablePanelSpec new
model: self;
layout: #vertical;
children: (self buildInputFields: builder);
children: (self buildInputFields: aBuilder);
frame: (0@0 corner: 1@1);
yourself.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
toolbuilder
buildWith: builder
buildWith: aBuilder

^ builder build: (builder pluggableDialogSpec new
^ aBuilder build: (aBuilder pluggableDialogSpec new
model: self;
label: #labelString;
extent: 600@60;
exclusive: false;
message: 'Insert GitHub authentication data:';
children: {self buildInputPanel: builder};
buttons: (self buildButtons: builder);
children: {self buildInputPanel: aBuilder};
buttons: (self buildButtons: aBuilder);
yourself).
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"actionToken:" : "lo 7/13/2022 19:25",
"actionUsername" : "lo 7/13/2022 19:21",
"actionUsername:" : "lo 7/13/2022 19:25",
"buildButtons:" : "mcr 8/2/2022 16:48",
"buildInputFields:" : "lo 8/1/2022 14:19",
"buildInputPanel:" : "lo 8/1/2022 14:19",
"buildWith:" : "lo 8/1/2022 10:51",
"buildButtons:" : "tk 8/2/2022 23:42",
"buildInputFields:" : "tk 8/2/2022 23:42",
"buildInputPanel:" : "tk 8/2/2022 23:42",
"buildWith:" : "tk 8/2/2022 23:43",
"checkUserValid" : "lo 7/13/2022 19:16",
"close" : "lo 8/1/2022 14:16",
"labelString" : "lo 7/13/2022 19:29",
Expand Down
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBBoard.class/instance/addColumn.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ addColumn
ifTrue: [^ self].
[column := self boardProvider createColumn: prompt]
on: Error
do: [:ex | ^ self errorCannotAddColumn: ex messageText].
do: [:error | ^ self errorCannotAddColumn: error messageText].

column
board: self;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
buildColumnSpecWith: aBuilder

^ self columns collect: [:each | self buildColumnSpecWith: aBuilder and: each].
^ self columns collect: [:column | self buildColumnSpecWith: aBuilder and: column].
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBBoard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"registerInAppsMenu" : "lo 6/4/2022 23:19" },
"instance" : {
"activeCard" : "mcr 8/1/2022 02:31",
"addColumn" : "lo 8/1/2022 14:20",
"addColumn" : "tk 8/2/2022 23:31",
"boardProvider" : "jh 7/29/2022 11:34",
"boardProvider:" : "lo 7/31/2022 16:32",
"buildAddColumnButtonPanelSpecWith:" : "lo 8/1/2022 13:41",
Expand All @@ -24,7 +24,7 @@
"buildColumnHeaderMoveColumnButtonSpecWith:and:" : "lo 8/1/2022 11:02",
"buildColumnHeaderSpecWith:and:" : "lo 8/1/2022 11:02",
"buildColumnHeaderTitleSpecWith:and:" : "lo 8/1/2022 11:04",
"buildColumnSpecWith:" : "mcr 8/1/2022 02:18",
"buildColumnSpecWith:" : "tk 8/2/2022 23:32",
"buildColumnSpecWith:and:" : "lo 8/1/2022 13:42",
"buildSidebarAssigneeListSpecWith:" : "lo 8/1/2022 11:06",
"buildSidebarAssigneePanelSpecWith:" : "lo 8/1/2022 11:06",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
updating-local
addAssigneeLocal: anSPBAssignee

(self assignees anySatisfy: [:each | each = anSPBAssignee])
(self assignees anySatisfy: [:assignee | assignee = anSPBAssignee])
ifTrue: [^ self].

self assignees add: anSPBAssignee.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
updating-local
addLabelLocal: anSPBLabel

(self labels anySatisfy: [:each | each = anSPBLabel])
(self labels anySatisfy: [:label | label = anSPBLabel])
ifTrue: [^ self].

self labels add: anSPBLabel.
Expand Down
6 changes: 3 additions & 3 deletions Squello-Core.package/SPBCard.class/instance/alignLabels.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ updating-local
alignLabels

| previousLabel |
self labelMorphs
self labelModels
withIndexDo: [ :label :index | index = 1
ifTrue: [label position: self labelBorderOffset @ (self position y + self titleMorph extent y + self labelTitleOffset)]
ifFalse: [previousLabel := self labelMorphs at: index - 1.
ifTrue: [label position: self labelBorderOffset @ (self position y + self titleModel extent y + self labelTitleOffset)]
ifFalse: [previousLabel := self labelModels at: index - 1.
label position: self labelBorderOffset @ (previousLabel position y + (previousLabel extent y + self inbetweenLabelOffset))]]
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/assigneeModel..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
assigneeModel: aTextMorph

assigneeModel := aTextMorph.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/assigneeModel.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
assigneeModel

^ assigneeModel.
4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/assigneeMorph..st

This file was deleted.

4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/assigneeMorph.st

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ buildAssignee

self
addMorph: assigneeMorph;
assigneeMorph: assigneeMorph.
assigneeModel: assigneeMorph.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ buildIndicatorDetection

| extent |
extent := self extent.
self upperHalfMorph: (self buildIndicatorDetectionHalf
position: self position - (0 @ SPBColumn defaultSpaceBetweenCards);
self upperHalfIndicator: (self buildIndicatorDetectionHalf
position: self position - (0@ SPBColumn defaultSpaceBetweenCards);
location: #upper;
yourself).

self lowerHalfMorph: (self buildIndicatorDetectionHalf
position: self position x + (0 @ (extent y / 2));
self lowerHalfIndicator: (self buildIndicatorDetectionHalf
position: self position x + (0@ (extent y / 2));
location: #lower;
yourself).

self
addMorph: self upperHalfMorph;
addMorph: self lowerHalfMorph.
addMorph: self upperHalfIndicator;
addMorph: self lowerHalfIndicator.
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBCard.class/instance/buildTitle.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ buildTitle
yourself.

self
titleMorph: titleMorph;
titleModel: titleMorph;
addMorph: titleMorph.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/labelModels..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
labelModels: aCollection

labelModels := aCollection.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/labelModels.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
labelModels

^ labelModels ifNil: [labelModels := OrderedCollection new].
4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/labelMorphs..st

This file was deleted.

4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/labelMorphs.st

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
lowerHalfIndicator: anSPBIndicatorDetectionCard

lowerHalfIndicator := anSPBIndicatorDetectionCard.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
lowerHalfIndicator

^ lowerHalfIndicator.

This file was deleted.

4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/lowerHalfMorph.st

This file was deleted.

2 changes: 1 addition & 1 deletion Squello-Core.package/SPBCard.class/instance/resizeCard.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ updating-local
resizeCard

self setCardHeight.
self assigneeMorph position: self position + self extent - self assigneeOffset.
self assigneeModel position: self position + self extent - self assigneeOffset.
self column
alignCards;
resizeBottomDetection.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
updating-local
resizeIndicatorFields

self upperHalfMorph
self upperHalfIndicator
extent: self cardIndicatorExtent.
self lowerHalfMorph
position: self position + (0 @ self extent y / 2);
self lowerHalfIndicator
position: self position + (0@ self extent y / 2);
extent: self cardIndicatorExtent.
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBCard.class/instance/setCardHeight.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ setCardHeight

| labelHeightsSum |
labelHeightsSum := 0.
self labelMorphs
self labelModels
do: [:label | labelHeightsSum := labelHeightsSum + label extent y + self inbetweenLabelOffset].
self extent: self class defaultCardExtent x @ ((self titleMorph extent y + labelHeightsSum + self labelTitleOffset) max: self class defaultCardExtent y).
self extent: self class defaultCardExtent x @ ((self titleModel extent y + labelHeightsSum + self labelTitleOffset) max: self class defaultCardExtent y).
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/titleModel..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
titleModel: aTextMorph

titleModel := aTextMorph.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/titleModel.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
titleModel

^ titleModel.
4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/titleMorph..st

This file was deleted.

4 changes: 0 additions & 4 deletions Squello-Core.package/SPBCard.class/instance/titleMorph.st

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ updateAssigneeCount

| count |
count := self assignees size.
self assigneeMorph contents: count asString , ' assigned'.
self assigneeModel contents: count asString , ' assigned'.
self updateBalloonText.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ updateBalloonText
^ self].
text := 'Assignees:', Character cr.
self assignees
do: [:each | text := text, each asString, Character cr].
do: [:assignee | text := text, assignee asString, Character cr].
self balloonText: text.

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ updating-local
updateLabelIcons

| newLabel |
self labelMorphs
do: [:each | each abandon].
self labelMorphs: OrderedCollection new.
self labelModels
do: [:label | label abandon].
self labelModels: OrderedCollection new.

self labels
do: [:label | newLabel := label asMorph.
self labelMorphs add: newLabel.
self labelModels add: newLabel.
self addMorph: newLabel.
self alignLabels].
self column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ updateTitle: aString

self title == aString
ifFalse: [self title: aString.
self titleMorph contents: aString.
self titleModel contents: aString.
self boardProvider updateCard: self.
self updateLabelIcons.
self resizeCard].
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
upperHalfIndicator: anSPBIndicatorDetectionCard

upperHalfIndicator := anSPBIndicatorDetectionCard.
Loading

0 comments on commit f415dca

Please sign in to comment.