Skip to content

Commit

Permalink
merge FeatureLandingPage into master
Browse files Browse the repository at this point in the history
  • Loading branch information
FePrHPI committed Jun 22, 2024
1 parent dbff1d9 commit da83e3c
Show file tree
Hide file tree
Showing 31 changed files with 137 additions and 91 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
save/load
contains: anObject

^ self boards includesKey: anObject.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"boards" : "FP 6/3/2024 11:15",
"boards:" : "FP 6/3/2024 11:15",
"clear" : "FP 6/3/2024 11:15",
"contains:" : "FP 6/20/2024 17:14",
"delete:" : "FP 6/3/2024 11:15",
"load:" : "FP 6/8/2024 11:58",
"loadReadonly:" : "FP 6/8/2024 11:57",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
toolbuilder
buildAuthButtonSpecWith: aBuilder

^ aBuilder build: (aBuilder pluggableButtonSpec new
^ aBuilder pluggableButtonSpec new
model: self;
action: #openAuthPanel;
label: 'Open Auth Panel';
yourself).
yourself.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
toolbuilder-manage panel
buildDeleteAllLocalBoardsButtonSpecWith: aBuilder

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

yourself.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
toolbuilder-manage panel
buildDeleteLocalBoardButtonSpecWith: aBuilder withBoardName: aString

^ "aBuilder build:" (aBuilder pluggableButtonSpec new
model: self;
^ aBuilder pluggableButtonSpec new
model: [self deleteBoardFromButton: aString];
action: #value;
horizontalResizing: #shrinkWrap;
label: 'Delete';
yourself).

yourself.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ buildLocalBoardCommonActionsSpecWith: aBuilder

^ aBuilder pluggablePanelSpec new
model: self;
children: #buildLocalBoardCommonActionChildren;
children: {
self buildDeleteAllLocalBoardsButtonSpecWith: self usedBuilder.
self buildNewLocalBoardButtonSpecWith: self usedBuilder
};
layout: #horizontal;
verticalResizing: #shrinkWrap;
yourself.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
toolbuilder-manage panel
buildLocalBoardNameSpecWith: aBuilder withBoardName: aString

^ "aBuilder build:" (aBuilder pluggableTextSpec new
^ aBuilder pluggableButtonSpec new
model: self;
setText: aString;
yourself).

label: (aString copyFrom: SPBBoard localPrefix size + 1 to: aString size);
horizontalResizing: #shrinkWrap;
yourself.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
toolbuilder-manage panel
buildLocalBoardPanelSpecWith: aBuilder withName: aName

^ "aBuilder build:" (aBuilder pluggablePanelSpec new
^ aBuilder pluggablePanelSpec new
model: self;
layout: #horizontal;
minimumHeight: 50px;
horizontalResizing: #rigid;
minimumHeight: (50px);
children: {
self buildLocalBoardNameSpecWith: aBuilder withBoardName: aName.
self buildOpenLocalBoardButtonSpecWith: aBuilder withBoardName: aName.
self buildRenameLocalBoardButtonSpecWith: aBuilder withBoardName: aName.
self buildDeleteLocalBoardButtonSpecWith: aBuilder withBoardName: aName.
self buildLocalBoardNameSpecWith: aBuilder withBoardName: aName.
};
yourself).

yourself.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildLocalBoardsListSpecWith: aBuilder
^ aBuilder pluggableScrollPaneSpec new
model: self;
vScrollBarPolicy: #always;
children: "#buildLocalBoardsListChildren;"(self buildLocalBoardsListChildren);
layout: #horizontal;
children: self buildLocalBoardsListChildren;
layout: #vertical;
yourself.

Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ buildMainLayoutPanelSpecWith: aBuilder
^ aBuilder pluggablePanelSpec new
model: self;
frame: (0@0 corner: 1@1);
children:
{self buildSidebarSpecWith: aBuilder.
children: {
self buildSidebarSpecWith: aBuilder.
self buildContentPanelSpecWith: aBuilder.
};
layout: #horizontal;
yourself.

yourself.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
toolbuilder-manage panel
buildManageLocalBoardPanelSpecWith: aBuilder
"We just reuse this from the SquotBrowser, idk if this is good"

^ SquotGUIUtilities buildVerticalLayout: {
self buildLocalBoardsListSpecWith: aBuilder.
self buildLocalBoardCommonActionsSpecWith: aBuilder.
} with: aBuilder

^ aBuilder pluggablePanelSpec new
model: self;
layout: #vertical;
children: {
self buildLocalBoardsListSpecWith: aBuilder.
self buildLocalBoardCommonActionsSpecWith: aBuilder.
};
yourself.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
toolbuilder-manage panel
buildNewLocalBoardButtonSpecWith: aBuilder

^ aBuilder build: (aBuilder pluggableButtonSpec new
^ aBuilder pluggableButtonSpec new
model: self;
verticalResizing: #shrinkWrap;
verticalResizing: #rigid;
action: #openNewLocalBoard;
label: 'New Local';
yourself).

yourself.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
toolbuilder
buildOpenButtonSpecWith: aBuilder

^ aBuilder build: (aBuilder pluggableButtonSpec new
^ aBuilder pluggableButtonSpec new
model: self;
action: #openBoard;
label: 'Open Board';
yourself).
yourself.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
toolbuilder-manage panel
buildOpenLocalBoardButtonSpecWith: aBuilder withBoardName: aString

^ "aBuilder build:" (aBuilder pluggableButtonSpec new
model: self;
^ aBuilder pluggableButtonSpec new
model: [self openBoardFromButton: aString];
action: #value;
horizontalResizing: #shrinkWrap;
label: 'Open';
yourself).

yourself.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ buildRecentGitHubBoardsButtonSpecWith: aBuilder withBoardInfo: aDictionary

| name |
name := (aDictionary at: #repo), ' : ' ,( aDictionary at: #name).
^ aBuilder build: (aBuilder pluggableButtonSpec new
^ aBuilder pluggableButtonSpec new
model: [SPBBoard openFromPrompt: (aDictionary at: #url)];
label: name;
action: #value;
yourself).

yourself.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ buildRecentGitHubBoardsSpecWith: aBuilder
^ aBuilder pluggablePanelSpec new
name: #RecentGitHubBoards;
model: self;
children: #buildRecentGitHubBoardsChildren;
children: self buildRecentGitHubBoardsChildren;
layout: #horizontal;
yourself.

yourself.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
toolbuilder-recent boards
buildRecentLocalBoardsButtonSpecWith: aBuilder withName: aName

^ aBuilder build: (aBuilder pluggableButtonSpec new
^ aBuilder pluggableButtonSpec new
model: [SPBBoard openFromPrompt: aName];
action: #value;
label: aName;
yourself).

yourself.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ buildRecentLocalBoardsSpecWith: aBuilder
^ aBuilder pluggablePanelSpec new
name: #RecentLocalBoards;
model: self;
children: #buildRecentLocalBoardsChildren;
children: self buildRecentLocalBoardsChildren;
layout: #horizontal;
yourself.

yourself.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
toolbuilder-manage panel
buildRenameLocalBoardButtonSpecWith: aBuilder withBoardName: aString

^ "aBuilder build:" (aBuilder pluggableButtonSpec new
model: self;
^ aBuilder pluggableButtonSpec new
model: [self renameBoardFromButton: aString];
action: #value;
horizontalResizing: #shrinkWrap;
label: 'Rename';
yourself).

yourself.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ buildWith: aBuilder
model: self;
label: 'Squello Hub';
minimumExtent: 500px @200px;
children:
{self buildMainLayoutPanelSpecWith: aBuilder.
children: {
self buildMainLayoutPanelSpecWith: aBuilder.
};
yourself.
^ aBuilder build: spec.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
actions
deleteAllLocal

Transcript showln: 'delete all'.
SPBBoardSaver defaultSaver clear.
self updateUI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions
deleteBoardFromButton: aString

SPBBoardSaver defaultSaver delete: aString.
self updateUI.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ accessing
lastSidebarPart: anObject

lastSidebarPart := anObject.
self changed: #lastSidebarPart.
self changed: #contentPanelChildren.
self updateUI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions
openBoardFromButton: aString

SPBBoard openFromPrompt: aString.
self updateUI.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
actions
openNewLocalBoard

Transcript showln: 'dbhajdk'.

| prompt boardName |
prompt := FillInTheBlank request: 'Enter a name for the local board.'.
boardName := SPBBoard localPrefix, prompt.
(SPBBoardSaver defaultSaver contains: boardName)
ifTrue: [UIManager inform: 'A board with this name already exists'. ^self.].
SPBBoard openFromPrompt: boardName.
self updateUI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
actions
renameBoardFromButton: aString

| prompt boardName |
prompt := FillInTheBlank request: 'Enter a new name for the local board.'.
boardName := SPBBoard localPrefix, prompt.
(SPBBoardSaver defaultSaver contains: boardName)
ifTrue: [UIManager inform: 'A board with this name already exists'. ^ self.].
SPBBoardSaver defaultSaver save: (SPBBoardSaver defaultSaver load: aString) as: boardName.
SPBBoardSaver defaultSaver delete: aString.
self updateUI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions
updateUI

self changed: #lastSidebarPart.
self changed: #contentPanelChildren.
Loading

0 comments on commit da83e3c

Please sign in to comment.