-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b3b759
commit 77e24b4
Showing
34 changed files
with
193 additions
and
38 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Core.package/LQPollDraft.class/instance/asString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
asString | ||
^ self title |
4 changes: 2 additions & 2 deletions
4
packages/Liquid-Core.package/LQPollDraft.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
initialize-release | ||
initialize | ||
|
||
super initialize. | ||
self questionList: OrderedCollection new | ||
self questionList: OrderedCollection new; | ||
pollDraftId: UUID new asString |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
pollDraftId: aUUID | ||
pollDraftId := aUUID |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
pollDraftId | ||
^ pollDraftId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
pollDraftRepo: aLQObjectRepo | ||
PollDraftRepo := aLQObjectRepo |
5 changes: 5 additions & 0 deletions
5
packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
pollDraftRepo | ||
PollDraftRepo | ||
ifNil: [self pollDraftRepo: LQLocalObjectRepo new]. | ||
^ PollDraftRepo |
2 changes: 2 additions & 0 deletions
2
packages/Liquid-Network.package/LQRemotePollRepoServer.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/Liquid-UI.package/LQPollDraftBuilder.class/class/openWithPollDraft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
instance creation | ||
openWithPollDraft: aLQPollDraft | ||
| aPollDraftBuilder | | ||
aPollDraftBuilder := self new. | ||
aPollDraftBuilder pollDraft: aLQPollDraft. | ||
ToolBuilder open: aPollDraftBuilder |
3 changes: 1 addition & 2 deletions
3
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addQuestionButtonFrame.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
toolbuilder | ||
addQuestionButtonFrame | ||
|
||
^ self | ||
frame: 0.925 | ||
fromTop: 0.85 | ||
fromLeft: 0.25 | ||
width: 0.50 | ||
width: 0.5 |
12 changes: 12 additions & 0 deletions
12
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildSaveDraftButtonWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
toolbuilder | ||
buildSaveDraftButtonWith: aBuilder | ||
^ aBuilder pluggableButtonSpec new model: self; | ||
label: 'Save Draft'; | ||
help: 'Save the poll for later.'; | ||
action: #saveDraft; | ||
frame: (LayoutFrame new topFraction: 0.92; | ||
leftFraction: 0.33; | ||
rightFraction: 0.66; | ||
bottomFraction: 1; | ||
yourself); | ||
yourself |
32 changes: 13 additions & 19 deletions
32
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
toolbuilder | ||
buildWith: builder | ||
|
||
buildWith: builder | ||
| windowSpec | | ||
|
||
windowSpec := self buildWindowWith: builder specs: { | ||
(self questionListFrame) -> [self buildQuestionListWith: builder]. | ||
(self questionBuilderFrame) -> | ||
[builder pluggablePanelSpec new | ||
model: self; | ||
layout: #vertical; | ||
children: #buildQuestionBuilder; | ||
yourself]. | ||
(self runPollButtonFrame) -> [self buildRunPollButtonWith: builder]. | ||
(self addQuestionButtonFrame) -> [self buildAddQuestionButtonWith: builder]. | ||
(self addManageUserSetsFrame) -> [self buildManageUserSetsButton: builder]. | ||
(self removeQuestionButtonFrame) -> [self buildRemoveQuestionButtonWith: builder]. | ||
}. | ||
windowSpec := self buildWindowWith: builder specs: {self questionListFrame | ||
-> [self buildQuestionListWith: builder]. self questionBuilderFrame | ||
-> [builder pluggablePanelSpec new model: self; | ||
layout: #vertical; | ||
children: #buildQuestionBuilder; | ||
yourself]. self runPollButtonFrame | ||
-> [self buildRunPollButtonWith: builder]. self addQuestionButtonFrame | ||
-> [self buildAddQuestionButtonWith: builder]. self addManageUserSetsFrame | ||
-> [self buildManageUserSetsButton: builder]. self removeQuestionButtonFrame | ||
-> [self buildRemoveQuestionButtonWith: builder]. | ||
self saveDraftButtonFrame -> [self buildSaveDraftButtonWith: builder]}. | ||
windowSpec label: 'Liquid - Create a Poll'. | ||
^ builder build: windowSpec | ||
|
||
|
||
^ builder build: windowSpec |
5 changes: 2 additions & 3 deletions
5
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPollButtonFrame.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
toolbuilder | ||
runPollButtonFrame | ||
|
||
^ self | ||
frame: 1 | ||
fromTop: 0.925 | ||
fromLeft: 0.25 | ||
width: 0.75 | ||
fromLeft: 0.75 | ||
width: 0.25 |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraft.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
modifying | ||
saveDraft | ||
LQRemotePollRepoServer pollDraftRepo items at: self pollDraft pollDraftId put: self pollDraft |
7 changes: 7 additions & 0 deletions
7
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraftButtonFrame.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
toolbuilder | ||
saveDraftButtonFrame | ||
^ self | ||
frame: 1 | ||
fromTop: 0.925 | ||
fromLeft: 0.25 | ||
width: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
12 changes: 12 additions & 0 deletions
12
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildPollDraftListViewWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
as yet unclassified | ||
buildPollDraftListViewWith: aBuilder | ||
^ aBuilder pluggableListSpec new model: self; | ||
list: #pollDrafts; | ||
getIndex: #choiceSelected; | ||
setIndex: #choiceSelected:; | ||
frame: (LayoutFrame new topFraction: 0.1; | ||
bottomFraction: 0.65; | ||
leftFraction: 0.1; | ||
rightFraction: 0.9; | ||
yourself); | ||
yourself |
11 changes: 11 additions & 0 deletions
11
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildRemovePollDraftButtonWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
as yet unclassified | ||
buildRemovePollDraftButtonWith: aBuilder | ||
^ aBuilder pluggableButtonSpec new model: self; | ||
label: 'Remove Draft'; | ||
action: #removeDraft; | ||
frame: (LayoutFrame new topFraction: 0.83; | ||
bottomFraction: 0.98; | ||
leftFraction: 0.1; | ||
rightFraction: 0.9; | ||
yourself); | ||
yourself |
11 changes: 11 additions & 0 deletions
11
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildShowPollDraftButtonWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
as yet unclassified | ||
buildShowPollDraftButtonWith: aBuilder | ||
^ aBuilder pluggableButtonSpec new model: self; | ||
label: 'Show Draft'; | ||
action: #showDraft; | ||
frame: (LayoutFrame new topFraction: 0.67; | ||
bottomFraction: 0.82; | ||
leftFraction: 0.1; | ||
rightFraction: 0.9; | ||
yourself); | ||
yourself |
7 changes: 7 additions & 0 deletions
7
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
buildWith: aBuilder | ||
^ aBuilder build: (aBuilder pluggableWindowSpec new model: self; | ||
label: 'Liquid - Poll Drafts'; | ||
extent: self extent; | ||
children: {self buildPollDraftListViewWith: aBuilder. self buildShowPollDraftButtonWith: aBuilder. self buildRemovePollDraftButtonWith: aBuilder}; | ||
yourself) |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
choiceSelected: anIndex | ||
choiceSelected := anIndex. self changed: #choiceSelected |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
choiceSelected | ||
^ choiceSelected |
5 changes: 5 additions & 0 deletions
5
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
as yet unclassified | ||
initialize | ||
super initialize. | ||
self choiceSelected: 0; | ||
populatePollDrafts |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
pollDrafts: anOrderedCollection | ||
pollDrafts := anOrderedCollection. self changed: #pollDrafts |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
pollDrafts | ||
^ pollDrafts |
7 changes: 7 additions & 0 deletions
7
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/populatePollDrafts.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
populatePollDrafts | ||
| draftCollection | | ||
draftCollection := OrderedCollection new. | ||
LQRemotePollRepoServer pollDraftRepo items | ||
do: [:item | draftCollection add: item]. | ||
self pollDrafts: draftCollection |
8 changes: 8 additions & 0 deletions
8
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/removeDraft.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
as yet unclassified | ||
removeDraft | ||
| selectedDraft | | ||
self choiceSelected isZero | ||
ifTrue: [^ self]. | ||
selectedDraft := self pollDrafts at: self choiceSelected. | ||
LQRemotePollRepoServer pollDraftRepo removeKey: selectedDraft pollDraftId. | ||
self populatePollDrafts |
8 changes: 8 additions & 0 deletions
8
packages/Liquid-UI.package/LQPollDraftMenu.class/instance/showDraft.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
as yet unclassified | ||
showDraft | ||
| selectedDraft | | ||
self choiceSelected isZero | ||
ifTrue: [^ self]. | ||
selectedDraft := self pollDrafts at: self choiceSelected. | ||
LQPollDraftBuilder openWithPollDraft: selectedDraft. | ||
self destroy. |
16 changes: 16 additions & 0 deletions
16
packages/Liquid-UI.package/LQPollDraftMenu.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"buildPollDraftListViewWith:" : "FLST 6/4/2024 14:53", | ||
"buildRemovePollDraftButtonWith:" : "FLST 6/4/2024 15:22", | ||
"buildShowPollDraftButtonWith:" : "FLST 6/4/2024 15:22", | ||
"buildWith:" : "FLST 6/4/2024 15:23", | ||
"choiceSelected" : "FLST 6/4/2024 14:48", | ||
"choiceSelected:" : "FLST 6/4/2024 14:49", | ||
"initialize" : "FLST 6/4/2024 15:04", | ||
"pollDrafts" : "FLST 6/4/2024 15:00", | ||
"pollDrafts:" : "FLST 6/4/2024 15:31", | ||
"populatePollDrafts" : "FLST 6/4/2024 15:13", | ||
"removeDraft" : "FLST 6/4/2024 15:35", | ||
"showDraft" : "FLST 6/4/2024 15:17" } } |
15 changes: 15 additions & 0 deletions
15
packages/Liquid-UI.package/LQPollDraftMenu.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"category" : "Liquid-UI", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"choiceSelected", | ||
"pollDrafts" ], | ||
"name" : "LQPollDraftMenu", | ||
"pools" : [ | ||
], | ||
"super" : "LQModel", | ||
"type" : "normal" } |