Skip to content

Commit

Permalink
pluggable stuff all same order, refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruko Schmidt committed Jul 12, 2024
1 parent 538d1c3 commit 3da2f0f
Show file tree
Hide file tree
Showing 47 changed files with 102 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildInputPanel: aBuilder

^ aBuilder pluggablePanelSpec new
model: self;
frame: (0@0 corner: 1@1);
layout: #vertical;
children: (self buildInputFields: aBuilder);
frame: (0@0 corner: 1@1);
yourself.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ buildWith: aBuilder
extent: 600 @ 60;
exclusive: false;
message: 'Insert GitHub authentication data:';
children: {self buildInputPanel: aBuilder};
buttons: (self buildButtons: aBuilder);
children: {self buildInputPanel: aBuilder};
yourself).
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"actionSubmit" : "AH 7/12/2024 15:44",
"buildButtons:" : "FP 6/13/2024 11:10",
"buildInputFields:" : "mcr 8/4/2022 00:18",
"buildInputPanel:" : "tk 8/2/2022 23:42",
"buildWith:" : "AH 7/12/2024 15:45",
"buildInputPanel:" : "Haru 7/12/2024 20:08",
"buildWith:" : "Haru 7/12/2024 20:08",
"checkUserValid" : "lo 7/13/2022 19:16",
"close" : "lo 8/1/2022 14:16",
"errorEmptyField" : "mcr 8/4/2022 00:36",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-colum
buildAddColumnButtonPanelSpecWith: aBuilder

^ aBuilder pluggablePanelSpec new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
toolbuilder-colum
buildAddColumnButtonSpecWith: aBuilder

^ aBuilder pluggableActionButtonSpec new
frame: (0@0 corner: 1@0.1);
model: self;
frame: (0@0 corner: 1@0.1);
action: #addColumn;
label: '+ Add column';
help: 'add a new column to the board';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-colum
buildColumnAreaChildren

| children |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-colum
buildColumnAreaSpecWith: aBuilder

^ self buildColumnAreaSpecWith: aBuilder width: 0.75.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-colum
buildColumnAreaSpecWith: aBuilder width: aNumber

^ aBuilder resizeScrollPaneSpec new
model: self;
frame: (0@0 corner: aNumber@1);
name: #columnArea;
model: self;
scrollBarThickness: 20;
vScrollBarPolicy: #never;
children: #buildColumnAreaChildren;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-colum
buildColumnBodySpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggableScrollPaneSpec new
model: self;
frame: (0@0.15 corner: 1@1);
name: #columnScrollPane;
model: self;
hScrollBarPolicy: #never;
vScrollBarPolicy: #always;
children: {self buildColumnDropAreaWith: aBuilder and: anSPBColumn};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-colum
buildColumnDropAreaWith: aBuilder and: anSPBColumn

^ aBuilder pasteUpSpec new
minimumExtent: self class columnMinimumExtent;
model: anSPBColumn;
name: anSPBColumn id;
minimumExtent: self class columnMinimumExtent;
dropped: [:card :event | anSPBColumn cardDropped: card Event: event];
reject: [:morph :event | morph isCard not];
yourself.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
toolbuilder-colum
buildColumnHeaderAddCardButtonSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggableActionButtonSpec new
frame: (0@0.6 corner: 0.55@1);
model: anSPBColumn;
frame: (0@0.6 corner: 0.55@1);
action: #addCard;
label: '+ Add card';
help: 'add a new card to the column';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
toolbuilder-colum
buildColumnHeaderMoveColumnButtonSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggableActionButtonSpec new
frame: (0.7@0.6 corner: 0.85@1);
model: anSPBColumn;
frame: (0.7@0.6 corner: 0.85@1);
action: #moveColumn;
label: '<->';
help: 'move the column to another place';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
toolbuilder-colum
buildColumnHeaderMoveColumnLeftButtonSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggableActionButtonSpec new
frame: (0.55@0.6 corner: 0.7@1);
model: anSPBColumn;
frame: (0.55@0.6 corner: 0.7@1);
action: #swapLeft;
label: '<-';
help: 'move the column left';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
toolbuilder-colum
buildColumnHeaderMoveColumnRightButtonSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggableActionButtonSpec new
frame: (0.85@0.6 corner: 1@1);
model: anSPBColumn;
frame: (0.85@0.6 corner: 1@1);
action: #swapRight;
label: '->';
help: 'move the column right';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-colum
buildColumnHeaderSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggablePanelSpec new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder
toolbuilder-colum
buildColumnHeaderTitleSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggableTextSpec new
frame: (0@0 corner: 1@0.6);
model: anSPBColumn;
frame: (0@0 corner: 1@0.6);
getText: #title;
setText: #updateTitle:;
yourself.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-colum
buildColumnSpecWith: aBuilder

^ self columns collect: [:column | self buildColumnSpecWith: aBuilder and: column].
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-colum
buildColumnSpecWith: aBuilder and: anSPBColumn

^ aBuilder pluggablePanelSpec new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarAssigneeListSpecWith: aBuilder

^ aBuilder pluggableListSpec new
model: self sidebar;
name: #sidebarAssigneeList;
frame: (0@0 corner: 0.5@1);
name: #sidebarAssigneeList;
list: #activeCardAssigneeList;
getSelected: #assigneeSelected;
setSelected: #assigneeSelected:;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarAssigneePanelSpecWith: aBuilder

^ aBuilder pluggablePanelSpec new
model: self sidebar;
name: #sidebarAssigneeList;
frame: (0@0.1 corner: 1@0.25);
name: #sidebarAssigneeList;
minimumHeight: 20;
children: {self buildSidebarAssigneeListSpecWith: aBuilder.
self buildSidebarPotentialAssigneeListSpecWith: aBuilder};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarCloseButtonSpecWith: aBuilder

^ aBuilder pluggableButtonSpec new
model: self sidebar;
name: #sidebarCloseButton;
frame: (0@0.4 corner: 1@0.5);
name: #sidebarCloseButton;
label: #getCloseButtonLabel;
action: #onCloseButton;
yourself.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarDescriptionSpecWith: aBuilder

^ aBuilder pluggableTextSpec new
model: self sidebar;
frame: (0@0.5 corner: 1@1);
name: #sidebarDescription;
setText: #updateActiveCardDescription:;
getText: #activeCardDescription;
frame: (0@0.5 corner: 1@1);
setText: #updateActiveCardDescription:;
yourself.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarLabelListSpecWith: aBuilder

^ aBuilder pluggableListSpec new
model: self sidebar;
name: #sidebarLabelList;
frame: (0@0 corner: 0.5@1);
name: #sidebarLabelList;
list: #activeCardLabelList;
getSelected: #labelSelected;
setSelected: #labelSelected:;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarLabelPanelSpecWith: aBuilder

^ aBuilder pluggablePanelSpec new
model: self sidebar;
name: #sidebarLabelList;
frame: (0@0.25 corner: 1@0.4);
name: #sidebarLabelList;
minimumHeight: 20;
children: {self buildSidebarLabelListSpecWith: aBuilder.
self buildSidebarPotentialLabelListSpecWith: aBuilder};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarPotentialAssigneeListSpecWith: aBuilder

^ aBuilder pluggableListSpec new
model: self sidebar;
name: #sidebarPotentialAssigneeList;
frame: (0.5@0 corner: 1@1);
name: #sidebarPotentialAssigneeList;
list: #potentialAssigneesList;
getSelected: #potentialAssigneeSelected;
setSelected: #potentialAssigneeSelected:;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarPotentialLabelListSpecWith: aBuilder

^ aBuilder pluggableListSpec new
model: self sidebar;
name: #sidebarPotentialLabelList;
frame: (0.5@0 corner: 1@1);
name: #sidebarPotentialLabelList;
list: #potentialLabelsList;
getSelected: #potentialLabelSelected;
setSelected: #potentialLabelSelected:;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-sidebar
buildSidebarSpecWith: aBuilder

^ self buildSidebarSpecWith: aBuilder width: 0.75.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
toolbuilder-sidebar
buildSidebarSpecWith: aBuilder width: aNumber

^ aBuilder pluggablePanelSpec new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
toolbuilder
toolbuilder-sidebar
buildSidebarTitleSpecWith: aBuilder

^ aBuilder pluggableTextSpec new
model: self sidebar;
frame: (0@0 corner: 1@0.1);
name: #sidebarTitle;
setText: #updateActiveCardTitle:;
getText: #activeCardTitle;
frame: (0@0 corner: 1@0.1);
setText: #updateActiveCardTitle:;
yourself.
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBBoard.class/instance/buildWith..st
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ buildWith: aBuilder
model: self;
label: self boardName;
minimumExtent: 1040@400;
closeAction: #saveBoard;
children:
{self buildColumnAreaSpecWith: aBuilder.
self buildSidebarSpecWith: aBuilder};
closeAction: #saveBoard;
yourself.

^ self
Expand Down
38 changes: 19 additions & 19 deletions Squello-Core.package/SPBBoard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@
"boardProvider" : "jh 7/29/2022 11:34",
"boardProvider:" : "lo 7/31/2022 16:32",
"buildAddColumnButtonPanelSpecWith:" : "lo 8/1/2022 13:41",
"buildAddColumnButtonSpecWith:" : "lo 8/1/2022 11:01",
"buildAddColumnButtonSpecWith:" : "Haru 7/12/2024 19:57",
"buildAndOpen" : "mcr 8/3/2022 23:25",
"buildColumnAreaChildren" : "AH 6/20/2024 16:19",
"buildColumnAreaSpecWith:" : "tk 7/30/2022 21:40",
"buildColumnAreaSpecWith:width:" : "lo 8/1/2022 11:01",
"buildColumnBodySpecWith:and:" : "lo 8/1/2022 11:00",
"buildColumnDropAreaWith:and:" : "lo 8/1/2022 15:22",
"buildColumnHeaderAddCardButtonSpecWith:and:" : "L.L. 7/8/2024 15:06",
"buildColumnHeaderMoveColumnButtonSpecWith:and:" : "L.L. 7/8/2024 15:08",
"buildColumnHeaderMoveColumnLeftButtonSpecWith:and:" : "L.L. 7/8/2024 15:05",
"buildColumnHeaderMoveColumnRightButtonSpecWith:and:" : "L.L. 7/8/2024 15:08",
"buildColumnAreaSpecWith:width:" : "Haru 7/12/2024 19:57",
"buildColumnBodySpecWith:and:" : "Haru 7/12/2024 19:57",
"buildColumnDropAreaWith:and:" : "Haru 7/12/2024 19:58",
"buildColumnHeaderAddCardButtonSpecWith:and:" : "Haru 7/12/2024 19:58",
"buildColumnHeaderMoveColumnButtonSpecWith:and:" : "Haru 7/12/2024 19:58",
"buildColumnHeaderMoveColumnLeftButtonSpecWith:and:" : "Haru 7/12/2024 19:59",
"buildColumnHeaderMoveColumnRightButtonSpecWith:and:" : "Haru 7/12/2024 19:59",
"buildColumnHeaderSpecWith:and:" : "L.L. 7/8/2024 15:07",
"buildColumnHeaderTitleSpecWith:and:" : "lo 8/1/2022 11:04",
"buildColumnHeaderTitleSpecWith:and:" : "Haru 7/12/2024 20:00",
"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",
"buildSidebarCloseButtonSpecWith:" : "AH 5/25/2024 17:32",
"buildSidebarDescriptionSpecWith:" : "L.L. 6/19/2024 16:50",
"buildSidebarLabelListSpecWith:" : "lo 8/1/2022 11:07",
"buildSidebarLabelPanelSpecWith:" : "lo 8/1/2022 11:07",
"buildSidebarPotentialAssigneeListSpecWith:" : "lo 8/1/2022 11:07",
"buildSidebarPotentialLabelListSpecWith:" : "lo 8/1/2022 11:08",
"buildSidebarAssigneeListSpecWith:" : "Haru 7/12/2024 20:00",
"buildSidebarAssigneePanelSpecWith:" : "Haru 7/12/2024 20:01",
"buildSidebarCloseButtonSpecWith:" : "Haru 7/12/2024 20:01",
"buildSidebarDescriptionSpecWith:" : "Haru 7/12/2024 20:02",
"buildSidebarLabelListSpecWith:" : "Haru 7/12/2024 20:02",
"buildSidebarLabelPanelSpecWith:" : "Haru 7/12/2024 20:02",
"buildSidebarPotentialAssigneeListSpecWith:" : "Haru 7/12/2024 20:02",
"buildSidebarPotentialLabelListSpecWith:" : "Haru 7/12/2024 20:03",
"buildSidebarSpecWith:" : "mcr 8/1/2022 00:48",
"buildSidebarSpecWith:width:" : "AH 5/25/2024 15:26",
"buildSidebarTitleSpecWith:" : "lo 8/1/2022 11:08",
"buildWith:" : "FP 6/10/2024 15:36",
"buildSidebarTitleSpecWith:" : "Haru 7/12/2024 20:03",
"buildWith:" : "Haru 7/12/2024 19:56",
"changeActiveCardTo:" : "AH 7/8/2024 11:24",
"changeProvider" : "lo 7/8/2022 14:00",
"changeProvider:" : "lo 7/8/2022 15:29",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toolbuilder
minHighButton
minHeighButton

^ 50.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildDeleteAllLocalBoardsButtonSpecWith: aBuilder

^ aBuilder pluggableButtonSpec new
model: self;
verticalResizing: #rigid;
action: #deleteAllLocal;
label: 'Delete All';
verticalResizing: #rigid;
yourself.
Loading

0 comments on commit 3da2f0f

Please sign in to comment.