diff --git a/.smalltalk.ston b/.smalltalk.ston
index 4f090afd..1a3cbccc 100644
--- a/.smalltalk.ston
+++ b/.smalltalk.ston
@@ -14,7 +14,7 @@ SmalltalkCISpec {
#packages : [ #Liquid-Core, #Liquid-Network, #Liquid-UI ]
},
#exclude : {
- #classes : [ #LQLintTests, #LQToolbuilderTests ]
+ #classes : [ #LQLintTests ]
}
}
}
@@ -23,3 +23,7 @@ Tests, #LQStatisticsWorkbenchIntegrationTests ]
}
}
}
+ionTests ]
+ }
+ }
+}
diff --git a/README.md b/README.md
index d581cedf..a15894ef 100644
--- a/README.md
+++ b/README.md
@@ -49,16 +49,21 @@ LQStartMenu open.
```
There you should be able to choose between the "Participant" and "Host" View.
-If you want to create a poll and run it, close a poll or show the results of a running poll choose "Host". For creating a poll, click "create poll" then type in your Question in the Header of the window.
-Every newline in the box under the question is a possible answer, so be sure to keep every answer on its own line.
-On the bottom you can run your poll and give it an id. Keep the id, it is used to access the poll and its results.
-If you want to close a poll click "close poll" in the host menu. After entering the poll id of the running poll you want to close, participants will not be able to send new answers.
-For the poll results, press "Show results" and input the respective poll id.
+If you want to create a poll and run it, close a poll or show the results of a running poll choose "Host". For creating a poll, click "create poll" then choose the type of question and type the question and if required possible answers in the according text fields. Alternatively you can create a poll from your saved drafts. When pressing the according button a new window opens showing the saved drafts.
+For MultipleChoice and Priotarization questions every newline in the box under the question represents a possible answer, so be sure to keep every answer on its own line.
+On the bottom you can run your poll and give it an id. The id is required for the participants to enter. To allow participants easy access to your poll press the copy poll link button while having the right poll selected in the host menu. Now you can send that link to participants by pasting it in.
+If you want to close a poll click "close poll" in the host menu. Now participants are not able to enter that poll anymore.
+For the poll results there is a live visualization in the host menu. You can also export the results to the DataExports directory in your squeak folder. The export file is named after your poll id. To minimize clutter press delete poll when a poll is not needed anymore.
+To stop any user from participating in any of your polls press stop server.
-Participants can choose the "Participant" button in the Start Menu. Enter the Poll id of the poll you want to participate in. Choose one or multiple answers and push the send button.
+Participants can choose the "Participant" button in the Start Menu. Enter the link of the poll you want to participate in. Answer every question by selecting or writing text and press send answers.
## Tests
We tested the application via:
- Integration Tests (can be found in `Liquid-Tests`-package)
- Unit Tests (can be found in `Liquid-Tests`-package)
- Use Case Tests (can be found in [Use Case Test Specification](https://github.com/hpi-swa-teaching/Liquid/blob/develop/docs/UseCases.md))
+
+
+Anmerkungen:
+Fürs Refactoring haben wir PoppyPrint verwendet. Daher werden unter anderem die Klassen LQUserSetMenu, LQUserSetSelectionMenu, LQMailDialog, LQAntiCheat, LQDelayMessageDecorator, LQLocalObjectDummy, LQObjectRepo, LQPollRepo, LQRemoteError, LQUserSetRepo, LiquidNetworkServiceProvider, LQUserSet, LQUser, LQPasswordManager, LQPasswordGuard, LQDuplicateDetector, LQChoiceProcessor, LQChoice als geändert angezeigt. Diese Klassen haben wir allerdings weder manuell refactored noch anderweitig verändert.
diff --git a/liquid_logo.png b/liquid_logo.png
index cad12ee9..92110876 100644
Binary files a/liquid_logo.png and b/liquid_logo.png differ
diff --git a/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/instance/baseline..st b/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/instance/baseline..st
index 69d8b238..e5a9947f 100644
--- a/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/instance/baseline..st
+++ b/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/instance/baseline..st
@@ -10,6 +10,10 @@ baseline: spec
baseline: 'SwaLint'
with: [spec repository: 'github://hpi-swa-teaching/SwaLint:release/packages'];
+ baseline: 'Squot'
+ with: [spec repository: 'github://hpi-swa/Squot:mapper/src'];
+
+
package: 'Liquid-Core'
with: [spec requires: #('libraries')];
@@ -22,7 +26,7 @@ baseline: spec
package: 'Liquid-Tests'
with: [spec requires: #('SwaLint' 'default')];
yourself.
- spec group: 'libraries' with: #('StatisticsWorkbench');
+ spec group: 'libraries' with: #('StatisticsWorkbench' 'Squot');
group: 'default' with: #('Liquid-Core' 'Liquid-Network' 'Liquid-UI');
group: 'tests' with: #('Liquid-Tests')];
yourself
\ No newline at end of file
diff --git a/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/methodProperties.json b/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/methodProperties.json
index df77d8e2..f6647147 100644
--- a/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/methodProperties.json
+++ b/packages/BaselineOfLiquid.package/BaselineOfLiquid.class/methodProperties.json
@@ -2,4 +2,4 @@
"class" : {
},
"instance" : {
- "baseline:" : "FLST 6/24/2024 09:16" } }
+ "baseline:" : "FLST 7/4/2024 10:57" } }
diff --git a/packages/Liquid-Core.package/LQAnswer.class/README.md b/packages/Liquid-Core.package/LQAnswer.class/README.md
index 0550d69b..6ab296da 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/README.md
+++ b/packages/Liquid-Core.package/LQAnswer.class/README.md
@@ -1,3 +1,4 @@
Answers belonging currently all Questions have this type. However, this might be later split up into different question modes.
Notable Instance Variables:
-- choicesRanking: An OrderedCollection of all the choices the participant voted.
\ No newline at end of file
+- choicesRanking: An OrderedCollection of all the choices the participant voted.
+
diff --git a/packages/Liquid-Core.package/LQAnswer.class/class/newWithQuestion..st b/packages/Liquid-Core.package/LQAnswer.class/class/newWithQuestion..st
new file mode 100644
index 00000000..6fec5090
--- /dev/null
+++ b/packages/Liquid-Core.package/LQAnswer.class/class/newWithQuestion..st
@@ -0,0 +1,6 @@
+class initialization
+newWithQuestion: aQuestion
+
+ ^ LQFreeTextAnswer new
+ questionId: aQuestion id;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/class/newWithQuestion.andVotes..st b/packages/Liquid-Core.package/LQAnswer.class/class/newWithQuestion.andVotes..st
deleted file mode 100644
index 7d67f189..00000000
--- a/packages/Liquid-Core.package/LQAnswer.class/class/newWithQuestion.andVotes..st
+++ /dev/null
@@ -1,7 +0,0 @@
-class initialization
-newWithQuestion: aQuestion andVotes: anOrderedCollection
-
- ^ LQAnswer new
- questionId: aQuestion id;
- choicesRanking: (anOrderedCollection collect: [:each | each description]) ;
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/instance/answer.st b/packages/Liquid-Core.package/LQAnswer.class/instance/answer.st
new file mode 100644
index 00000000..844ca73f
--- /dev/null
+++ b/packages/Liquid-Core.package/LQAnswer.class/instance/answer.st
@@ -0,0 +1,4 @@
+accessing
+answer
+
+ ^ ''
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking..st b/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking..st
deleted file mode 100644
index ed7e9d9c..00000000
--- a/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-choicesRanking: aChoiceList
-
- choicesRanking := aChoiceList
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking.st b/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking.st
index 5df9bf7b..a004133f 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking.st
+++ b/packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking.st
@@ -1,4 +1,4 @@
accessing
choicesRanking
- ^ choicesRanking
\ No newline at end of file
+ ^ OrderedCollection new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/instance/initialize.st b/packages/Liquid-Core.package/LQAnswer.class/instance/initialize.st
index 7b53f658..b7380354 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQAnswer.class/instance/initialize.st
@@ -2,5 +2,4 @@ initialize-release
initialize
super initialize.
- self id: UUID new asString.
- self choicesRanking: OrderedCollection new
\ No newline at end of file
+ self id: UUID new asString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/instance/printDataOn..st b/packages/Liquid-Core.package/LQAnswer.class/instance/printDataOn..st
index 286e70e0..65fa4ffa 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/instance/printDataOn..st
+++ b/packages/Liquid-Core.package/LQAnswer.class/instance/printDataOn..st
@@ -1,12 +1,4 @@
printing
printDataOn: aStream
- self choicesRanking ifEmpty: [^ self].
- self choicesRanking
- collect: [:votedChoice |
- aStream nextPutAll: votedChoice.
- aStream nextPutAll: ':']
- from: 1
- to: self choicesRanking size - 1.
-
- aStream nextPutAll: self choicesRanking last
\ No newline at end of file
+ SubclassResponsibility
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/methodProperties.json b/packages/Liquid-Core.package/LQAnswer.class/methodProperties.json
index 5b278bd3..aaae6ee6 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQAnswer.class/methodProperties.json
@@ -1,13 +1,12 @@
{
"class" : {
- "newWithQuestion:andVotes:" : "Anton Eichstädt 6/5/2024 17:28" },
+ "newWithQuestion:" : "FLST 7/11/2024 20:42" },
"instance" : {
- "choicesRanking" : "Anton Eichstädt 5/24/2024 15:23",
- "choicesRanking:" : "Anton Eichstädt 5/24/2024 15:24",
- "containsVoteForChoice:" : "Anton Eichstädt 5/24/2024 15:23",
+ "answer" : "FLST 7/11/2024 20:42",
+ "choicesRanking" : "FLST 7/11/2024 20:42",
"id" : "JT 8/2/2022 16:59",
"id:" : "JT 8/2/2022 16:59",
- "initialize" : "Anton Eichstädt 5/24/2024 15:24",
- "printDataOn:" : "Anton Eichstädt 5/24/2024 15:23",
+ "initialize" : "FLST 7/11/2024 20:42",
+ "printDataOn:" : "FLST 7/11/2024 20:42",
"questionId" : "JT 8/2/2022 17:01",
"questionId:" : "JT 8/2/2022 17:01" } }
diff --git a/packages/Liquid-Core.package/LQAnswer.class/properties.json b/packages/Liquid-Core.package/LQAnswer.class/properties.json
index 19dbf091..8abf3ac5 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/properties.json
+++ b/packages/Liquid-Core.package/LQAnswer.class/properties.json
@@ -7,8 +7,7 @@
"commentStamp" : "Anton Eichstädt 6/5/2024 17:29",
"instvars" : [
"id",
- "questionId",
- "choicesRanking" ],
+ "questionId" ],
"name" : "LQAnswer",
"pools" : [
],
diff --git a/packages/Liquid-Core.package/LQAnswerSet.class/class/newWithAnswers.for..st b/packages/Liquid-Core.package/LQAnswerSet.class/class/newWithAnswers.for..st
index 6601dc31..83c95d69 100644
--- a/packages/Liquid-Core.package/LQAnswerSet.class/class/newWithAnswers.for..st
+++ b/packages/Liquid-Core.package/LQAnswerSet.class/class/newWithAnswers.for..st
@@ -2,7 +2,6 @@ class initialization
newWithAnswers: anOrderedCollection for: aPoll
| answerSet |
-
answerSet := LQAnswerSet new pollId: aPoll id.
anOrderedCollection do: [:answer | answerSet addAnswer: answer].
diff --git a/packages/Liquid-Core.package/LQAnswerSet.class/instance/initialize.st b/packages/Liquid-Core.package/LQAnswerSet.class/instance/initialize.st
index a26e4642..0eed7934 100644
--- a/packages/Liquid-Core.package/LQAnswerSet.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQAnswerSet.class/instance/initialize.st
@@ -1,6 +1,6 @@
initialize-release
initialize
-
+
super initialize.
self answers: Dictionary new.
self id: UUID new asString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswerSet.class/instance/printDataOn.for.with..st b/packages/Liquid-Core.package/LQAnswerSet.class/instance/printDataOn.for.with..st
index 86ddedd8..0c679eb1 100644
--- a/packages/Liquid-Core.package/LQAnswerSet.class/instance/printDataOn.for.with..st
+++ b/packages/Liquid-Core.package/LQAnswerSet.class/instance/printDataOn.for.with..st
@@ -2,5 +2,5 @@ printing
printDataOn: aStream for: orderedQuestionIDs with: aDelimiter
orderedQuestionIDs do: [:answerId |
- self answers at: answerId ifPresent: [:printedAnswer | printedAnswer printDataOn: aStream].
- aStream nextPutAll: aDelimiter].
\ No newline at end of file
+ self answers at: answerId ifPresent: [:printedAnswer | printedAnswer printDataOn: aStream].
+ aStream nextPutAll: aDelimiter]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswerSet.class/methodProperties.json b/packages/Liquid-Core.package/LQAnswerSet.class/methodProperties.json
index 20a7a0c8..f6ce20d1 100644
--- a/packages/Liquid-Core.package/LQAnswerSet.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQAnswerSet.class/methodProperties.json
@@ -1,15 +1,15 @@
{
"class" : {
- "newWithAnswers:for:" : "bwe 8/5/2022 18:05" },
+ "newWithAnswers:for:" : "FLST 7/11/2024 20:42" },
"instance" : {
"addAnswer:" : "CG 7/30/2021 19:06",
"answers" : "JT 8/2/2022 16:51",
"answers:" : "bn 7/14/2022 22:40",
"id" : "JT 8/2/2022 16:52",
"id:" : "kge 6/25/2022 16:44",
- "initialize" : "JT 8/2/2022 16:53",
+ "initialize" : "FLST 7/11/2024 20:42",
"pollId" : "JS 5/18/2021 18:38",
"pollId:" : "JS 5/18/2021 18:37",
- "printDataOn:for:with:" : "leli 5/21/2024 11:35",
+ "printDataOn:for:with:" : "FLST 7/11/2024 20:42",
"token" : "JT 8/2/2022 16:55",
"token:" : "JT 8/2/2022 16:55" } }
diff --git a/packages/Liquid-Core.package/LQChoice.class/class/newFrom..st b/packages/Liquid-Core.package/LQChoice.class/class/newFrom..st
index 5e6950fb..cef63f3f 100644
--- a/packages/Liquid-Core.package/LQChoice.class/class/newFrom..st
+++ b/packages/Liquid-Core.package/LQChoice.class/class/newFrom..st
@@ -2,11 +2,10 @@ instance creation
newFrom: aString
| processor choice |
-
processor := LQChoiceProcessor new.
choice := LQChoice new.
choice
description: (processor extractDescription: aString);
excludedGroups: (processor extractGroups: aString);
rawString: aString.
- ^ choice
+ ^ choice
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoice.class/instance/excludesGroup..st b/packages/Liquid-Core.package/LQChoice.class/instance/excludesGroup..st
index 8ef9a166..f31ef1ca 100644
--- a/packages/Liquid-Core.package/LQChoice.class/instance/excludesGroup..st
+++ b/packages/Liquid-Core.package/LQChoice.class/instance/excludesGroup..st
@@ -1,4 +1,4 @@
accessing
excludesGroup: aString
-
+
^ self excludedGroups includes: aString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoice.class/instance/initialize.st b/packages/Liquid-Core.package/LQChoice.class/instance/initialize.st
index a523b8ea..c9595617 100644
--- a/packages/Liquid-Core.package/LQChoice.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQChoice.class/instance/initialize.st
@@ -3,6 +3,6 @@ initialize
super initialize.
- self
+ self
description: '';
excludedGroups: OrderedCollection new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoice.class/instance/rawString..st b/packages/Liquid-Core.package/LQChoice.class/instance/rawString..st
index 8db08928..98854735 100644
--- a/packages/Liquid-Core.package/LQChoice.class/instance/rawString..st
+++ b/packages/Liquid-Core.package/LQChoice.class/instance/rawString..st
@@ -1,4 +1,4 @@
accessing
rawString: aString
-
+
rawString := aString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoice.class/instance/rawString.st b/packages/Liquid-Core.package/LQChoice.class/instance/rawString.st
index 46be9c1c..8e99c621 100644
--- a/packages/Liquid-Core.package/LQChoice.class/instance/rawString.st
+++ b/packages/Liquid-Core.package/LQChoice.class/instance/rawString.st
@@ -1,4 +1,4 @@
accessing
rawString
-
+
^ rawString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoice.class/methodProperties.json b/packages/Liquid-Core.package/LQChoice.class/methodProperties.json
index 1f5aa099..6945ec35 100644
--- a/packages/Liquid-Core.package/LQChoice.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQChoice.class/methodProperties.json
@@ -1,12 +1,12 @@
{
"class" : {
- "newFrom:" : "JT 8/5/2022 18:20" },
+ "newFrom:" : "FLST 7/11/2024 20:42" },
"instance" : {
"description" : "JT 8/2/2022 16:55",
"description:" : "JT 8/2/2022 16:55",
"excludedGroups" : "JT 8/2/2022 16:55",
"excludedGroups:" : "JT 8/2/2022 16:56",
- "excludesGroup:" : "kge 8/3/2022 20:52",
- "initialize" : "JT 8/2/2022 16:55",
- "rawString" : "JT 8/2/2022 16:56",
- "rawString:" : "bn 6/12/2022 20:16" } }
+ "excludesGroup:" : "FLST 7/11/2024 20:42",
+ "initialize" : "FLST 7/11/2024 20:42",
+ "rawString" : "FLST 7/11/2024 20:42",
+ "rawString:" : "FLST 7/11/2024 20:42" } }
diff --git a/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractDescription..st b/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractDescription..st
index 9fa9b0d7..7d230a03 100644
--- a/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractDescription..st
+++ b/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractDescription..st
@@ -1,10 +1,9 @@
extracting
extractDescription: aString
-
- | firstBracketLocation rawDescription |
-
- firstBracketLocation := aString findString: '['.
- (firstBracketLocation == 0) ifTrue: [^ aString withBlanksTrimmed].
- rawDescription := aString copyFrom: 1 to: (firstBracketLocation - 1).
+ | firstBracketLocation rawDescription |
+ firstBracketLocation := aString findString: '['.
+ firstBracketLocation isZero ifTrue: [^ aString withBlanksTrimmed].
+
+ rawDescription := aString copyFrom: 1 to: firstBracketLocation - 1.
^ rawDescription withBlanksTrimmed
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractGroups..st b/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractGroups..st
index c4377da5..9d453812 100644
--- a/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractGroups..st
+++ b/packages/Liquid-Core.package/LQChoiceProcessor.class/instance/extractGroups..st
@@ -2,14 +2,14 @@ extracting
extractGroups: aString
| openingBracketLocation closingBracketLocation rawGroups splitGroups |
-
openingBracketLocation := aString findString: '['.
- closingBracketLocation := aString findLastOccurrenceOfString: ']' startingAt: openingBracketLocation.
-
- ((openingBracketLocation == 0) or: [closingBracketLocation == 0])
- ifTrue: [^ OrderedCollection new].
-
- rawGroups := aString copyFrom: openingBracketLocation + 1 to: (closingBracketLocation - 1).
+ closingBracketLocation := aString
+ findLastOccurrenceOfString: ']'
+ startingAt: openingBracketLocation.
+
+ (openingBracketLocation isZero or: [closingBracketLocation isZero]) ifTrue: [^ OrderedCollection new].
+
+ rawGroups := aString copyFrom: openingBracketLocation + 1 to: closingBracketLocation - 1.
splitGroups := rawGroups subStrings: ','.
^ (splitGroups collect: [:group | group withBlanksTrimmed]) asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoiceProcessor.class/methodProperties.json b/packages/Liquid-Core.package/LQChoiceProcessor.class/methodProperties.json
index 9e2d0746..cc36333b 100644
--- a/packages/Liquid-Core.package/LQChoiceProcessor.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQChoiceProcessor.class/methodProperties.json
@@ -2,5 +2,5 @@
"class" : {
},
"instance" : {
- "extractDescription:" : "JT 8/5/2022 18:21",
- "extractGroups:" : "JT 8/2/2022 16:59" } }
+ "extractDescription:" : "FLST 7/11/2024 20:42",
+ "extractGroups:" : "FLST 7/11/2024 20:42" } }
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/README.md b/packages/Liquid-Core.package/LQChoicesAnswer.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/class/newWithQuestion.andVotes..st b/packages/Liquid-Core.package/LQChoicesAnswer.class/class/newWithQuestion.andVotes..st
new file mode 100644
index 00000000..f414806a
--- /dev/null
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/class/newWithQuestion.andVotes..st
@@ -0,0 +1,7 @@
+as yet unclassified
+newWithQuestion: aQuestion andVotes: anOrderedCollection
+
+ ^ LQChoicesAnswer new
+ questionId: aQuestion id;
+ choicesRanking: (anOrderedCollection collect: [:each | each description]);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/choicesRanking..st b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/choicesRanking..st
new file mode 100644
index 00000000..14bcb623
--- /dev/null
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/choicesRanking..st
@@ -0,0 +1,4 @@
+accessing
+choicesRanking: anObject
+
+ votedChoiceList := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/choicesRanking.st b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/choicesRanking.st
new file mode 100644
index 00000000..98bb2623
--- /dev/null
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/choicesRanking.st
@@ -0,0 +1,4 @@
+accessing
+choicesRanking
+
+ ^ votedChoiceList
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQAnswer.class/instance/containsVoteForChoice..st b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/containsVoteForChoice..st
similarity index 88%
rename from packages/Liquid-Core.package/LQAnswer.class/instance/containsVoteForChoice..st
rename to packages/Liquid-Core.package/LQChoicesAnswer.class/instance/containsVoteForChoice..st
index 64f37bce..8f5326c5 100644
--- a/packages/Liquid-Core.package/LQAnswer.class/instance/containsVoteForChoice..st
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/containsVoteForChoice..st
@@ -1,4 +1,4 @@
-evaluation
+accessing
containsVoteForChoice: aChoice
^ self choicesRanking includes: aChoice description
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/printDataOn..st b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/printDataOn..st
new file mode 100644
index 00000000..8c7e08d0
--- /dev/null
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/instance/printDataOn..st
@@ -0,0 +1,12 @@
+printing
+printDataOn: aStream
+
+ self choicesRanking ifEmpty: [^ self].
+ self choicesRanking
+ collect: [:votedChoice |
+ aStream nextPutAll: votedChoice.
+ aStream nextPutAll: ':']
+ from: 1
+ to: self choicesRanking size - 1.
+
+ aStream nextPutAll: self choicesRanking last
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/methodProperties.json b/packages/Liquid-Core.package/LQChoicesAnswer.class/methodProperties.json
new file mode 100644
index 00000000..bf4e77cc
--- /dev/null
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/methodProperties.json
@@ -0,0 +1,8 @@
+{
+ "class" : {
+ "newWithQuestion:andVotes:" : "FLST 7/11/2024 20:42" },
+ "instance" : {
+ "choicesRanking" : "FLST 7/11/2024 20:42",
+ "choicesRanking:" : "FLST 7/11/2024 20:42",
+ "containsVoteForChoice:" : "FLST 7/11/2024 20:42",
+ "printDataOn:" : "FLST 7/11/2024 20:42" } }
diff --git a/packages/Liquid-Core.package/LQChoicesAnswer.class/properties.json b/packages/Liquid-Core.package/LQChoicesAnswer.class/properties.json
new file mode 100644
index 00000000..5d713932
--- /dev/null
+++ b/packages/Liquid-Core.package/LQChoicesAnswer.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Core",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "votedChoiceList" ],
+ "name" : "LQChoicesAnswer",
+ "pools" : [
+ ],
+ "super" : "LQAnswer",
+ "type" : "normal" }
diff --git a/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/identifyDuplicates..st b/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/identifyDuplicates..st
index 3c81e19c..ecffe842 100644
--- a/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/identifyDuplicates..st
+++ b/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/identifyDuplicates..st
@@ -2,7 +2,6 @@ duplicate-detection
identifyDuplicates: aCollection
| duplicates |
-
duplicates := aCollection copy.
- duplicates removeAll: aCollection asSet.
+ duplicates removeAll: aCollection asSet.
^ duplicates
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/mark.in.with..st b/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/mark.in.with..st
index 88fc3060..51fc356c 100644
--- a/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/mark.in.with..st
+++ b/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/mark.in.with..st
@@ -2,13 +2,10 @@ duplicate-detection
mark: aCollection in: aChoiceList with: aTextColor
| textStream |
-
textStream := TextStream on: Text new.
- aChoiceList
- do: [:item |
- (aCollection includes: item description)
- ifTrue: [textStream withAttribute: aTextColor
- do: [textStream nextPutAll: item rawString]]
- ifFalse: [textStream nextPutAll: item rawString].
- textStream cr].
- ^ textStream contents
+ aChoiceList do: [:item |
+ (aCollection includes: item description)
+ ifTrue: [textStream withAttribute: aTextColor do: [textStream nextPutAll: item rawString]]
+ ifFalse: [textStream nextPutAll: item rawString].
+ textStream cr].
+ ^ textStream contents
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/markDuplicatesIn..st b/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/markDuplicatesIn..st
index 839f1363..96651bf4 100644
--- a/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/markDuplicatesIn..st
+++ b/packages/Liquid-Core.package/LQDuplicateDetector.class/instance/markDuplicatesIn..st
@@ -2,9 +2,8 @@ duplicate-detection
markDuplicatesIn: aChoiceList
| duplicates choiceDescriptions |
-
choiceDescriptions := aChoiceList collect: [:value | value description].
duplicates := self identifyDuplicates: choiceDescriptions.
- ^ (self mark: duplicates in: aChoiceList with: (TextColor color: Color red))
\ No newline at end of file
+ ^ self mark: duplicates in: aChoiceList with: (TextColor color: Color red)
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQDuplicateDetector.class/methodProperties.json b/packages/Liquid-Core.package/LQDuplicateDetector.class/methodProperties.json
index 118b80ef..2831ce23 100644
--- a/packages/Liquid-Core.package/LQDuplicateDetector.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQDuplicateDetector.class/methodProperties.json
@@ -2,6 +2,6 @@
"class" : {
},
"instance" : {
- "identifyDuplicates:" : "JT 8/2/2022 17:02",
- "mark:in:with:" : "JT 8/5/2022 18:23",
- "markDuplicatesIn:" : "JT 8/2/2022 17:03" } }
+ "identifyDuplicates:" : "FLST 7/11/2024 20:42",
+ "mark:in:with:" : "FLST 7/11/2024 20:42",
+ "markDuplicatesIn:" : "FLST 7/11/2024 20:42" } }
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/README.md b/packages/Liquid-Core.package/LQFreeTextAnswer.class/README.md
new file mode 100644
index 00000000..43244c52
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/README.md
@@ -0,0 +1,3 @@
+Answers belonging currently all Questions have this type. However, this might be later split up into different question modes.
+Notable Instance Variables:
+- votedChoiceList: An OrderedCollection of all the choices the participant voted.
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/class/newWithQuestion.andAnswer..st b/packages/Liquid-Core.package/LQFreeTextAnswer.class/class/newWithQuestion.andAnswer..st
new file mode 100644
index 00000000..1fa078f5
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/class/newWithQuestion.andAnswer..st
@@ -0,0 +1,7 @@
+class initialization
+newWithQuestion: aQuestion andAnswer: anAnswer
+
+ ^ LQFreeTextAnswer new
+ questionId: aQuestion id;
+ answer: anAnswer;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/answer..st b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/answer..st
new file mode 100644
index 00000000..a74cf084
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/answer..st
@@ -0,0 +1,4 @@
+accessing
+answer: anObject
+
+ answer := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/answer.st b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/answer.st
new file mode 100644
index 00000000..e6ca211f
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/answer.st
@@ -0,0 +1,4 @@
+accessing
+answer
+
+ ^ answer
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/initialize.st b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/initialize.st
new file mode 100644
index 00000000..1f20fabd
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/initialize.st
@@ -0,0 +1,5 @@
+accessing
+initialize
+
+ super initialize.
+ self answer: String new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/printDataOn..st b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/printDataOn..st
new file mode 100644
index 00000000..8428ee9a
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/instance/printDataOn..st
@@ -0,0 +1,4 @@
+printing
+printDataOn: aStream
+
+ aStream nextPutAll: self answer
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/methodProperties.json b/packages/Liquid-Core.package/LQFreeTextAnswer.class/methodProperties.json
new file mode 100644
index 00000000..c6a2ed05
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/methodProperties.json
@@ -0,0 +1,8 @@
+{
+ "class" : {
+ "newWithQuestion:andAnswer:" : "FLST 7/11/2024 20:42" },
+ "instance" : {
+ "answer" : "FLST 7/11/2024 20:42",
+ "answer:" : "FLST 7/11/2024 20:42",
+ "initialize" : "Anton Eichstädt 6/19/2024 14:52",
+ "printDataOn:" : "FLST 7/11/2024 20:42" } }
diff --git a/packages/Liquid-Core.package/LQFreeTextAnswer.class/properties.json b/packages/Liquid-Core.package/LQFreeTextAnswer.class/properties.json
new file mode 100644
index 00000000..3334b905
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextAnswer.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Core",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "Anton Eichstädt 6/5/2024 17:39",
+ "instvars" : [
+ "answer" ],
+ "name" : "LQFreeTextAnswer",
+ "pools" : [
+ ],
+ "super" : "LQAnswer",
+ "type" : "normal" }
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/README.md b/packages/Liquid-Core.package/LQFreeTextQuestion.class/README.md
new file mode 100644
index 00000000..b8aa5dfc
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/README.md
@@ -0,0 +1,5 @@
+A specific type of LQQuestion for Single- and Multiple-Choice-Questions. A LQChoicesQuestion contains a number of choices as well as the maximum number of choices one participant can choose when answering the question.
+
+Notable Instance Variables:
+- choiceList: An OrderedCollection of Strings containing the Choices participants are presented.
+- maxNumberOfChoices: A Number between 1 and choiceList size.
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/buildEmptyAnswer.st b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/buildEmptyAnswer.st
new file mode 100644
index 00000000..8ef8a4a7
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/buildEmptyAnswer.st
@@ -0,0 +1,4 @@
+initialize-release
+buildEmptyAnswer
+
+ ^ LQFreeTextAnswer new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/initialize.st b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/initialize.st
new file mode 100644
index 00000000..704ba2d2
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/initialize.st
@@ -0,0 +1,5 @@
+initialize-release
+initialize
+
+ super initialize.
+ self maxNumberOfCharacters: 100
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/isFreeTextQuestion.st b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/isFreeTextQuestion.st
new file mode 100644
index 00000000..7f6dcdba
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/isFreeTextQuestion.st
@@ -0,0 +1,4 @@
+initialize-release
+isFreeTextQuestion
+
+ ^ true
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/maxNumberOfCharacters..st b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/maxNumberOfCharacters..st
new file mode 100644
index 00000000..f1ea86b8
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/maxNumberOfCharacters..st
@@ -0,0 +1,4 @@
+accessing
+maxNumberOfCharacters: aNumber
+
+ maxNumberOfCharacters := aNumber
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/maxNumberOfCharacters.st b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/maxNumberOfCharacters.st
new file mode 100644
index 00000000..7805594d
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/maxNumberOfCharacters.st
@@ -0,0 +1,4 @@
+accessing
+maxNumberOfCharacters
+
+ ^ maxNumberOfCharacters
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/toolTip.st b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/toolTip.st
new file mode 100644
index 00000000..d9aff301
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/instance/toolTip.st
@@ -0,0 +1,4 @@
+accessing
+toolTip
+
+ ^ 'Write your own answer!'
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/methodProperties.json b/packages/Liquid-Core.package/LQFreeTextQuestion.class/methodProperties.json
new file mode 100644
index 00000000..b39a1ac2
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/methodProperties.json
@@ -0,0 +1,10 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "buildEmptyAnswer" : "FLST 7/11/2024 20:42",
+ "initialize" : "leli 6/17/2024 14:04",
+ "isFreeTextQuestion" : "FLST 7/11/2024 20:42",
+ "maxNumberOfCharacters" : "leli 6/7/2024 11:54",
+ "maxNumberOfCharacters:" : "leli 6/7/2024 11:54",
+ "toolTip" : "leli 6/7/2024 11:13" } }
diff --git a/packages/Liquid-Core.package/LQFreeTextQuestion.class/properties.json b/packages/Liquid-Core.package/LQFreeTextQuestion.class/properties.json
new file mode 100644
index 00000000..a44b2c97
--- /dev/null
+++ b/packages/Liquid-Core.package/LQFreeTextQuestion.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Core",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "Anton Eichstädt 6/5/2024 17:39",
+ "instvars" : [
+ "maxNumberOfCharacters" ],
+ "name" : "LQFreeTextQuestion",
+ "pools" : [
+ ],
+ "super" : "LQQuestion",
+ "type" : "normal" }
diff --git a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/class/newFrom.and..st b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/class/newFrom.and..st
index 7897e5ac..a4dc9a94 100644
--- a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/class/newFrom.and..st
+++ b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/class/newFrom.and..st
@@ -3,6 +3,4 @@ newFrom: aChoiceList and: aGroup
^ self new
choiceList: aChoiceList;
- group: aGroup
-
-
\ No newline at end of file
+ group: aGroup
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/choiceListWithExclusionsMarked.st b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/choiceListWithExclusionsMarked.st
index 59c26d15..529f6758 100644
--- a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/choiceListWithExclusionsMarked.st
+++ b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/choiceListWithExclusionsMarked.st
@@ -2,6 +2,6 @@ answerExclusion
choiceListWithExclusionsMarked
^ self choiceList collect: [:choice |
- (choice excludedGroups includes: self group)
- ifTrue: [self colourGrey: choice description]
- ifFalse: [choice description]]
\ No newline at end of file
+ (choice excludedGroups includes: self group)
+ ifTrue: [self colourGrey: choice description]
+ ifFalse: [choice description]]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/colourGrey..st b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/colourGrey..st
index e5ebe1ae..ba82fd04 100644
--- a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/colourGrey..st
+++ b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/colourGrey..st
@@ -2,9 +2,8 @@ textColouring
colourGrey: aString
| textStream |
-
textStream := TextStream on: Text new.
-
+
textStream withAttribute: TextColor gray do: [textStream nextPutAll: aString].
-
+
^ textStream contents
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/initialize.st b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/initialize.st
new file mode 100644
index 00000000..1913e480
--- /dev/null
+++ b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/instance/initialize.st
@@ -0,0 +1,5 @@
+accessing
+initialize
+
+ super initialize.
+ self choiceList: OrderedCollection new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/methodProperties.json b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/methodProperties.json
index d449df78..7fbedbd5 100644
--- a/packages/Liquid-Core.package/LQGroupExclusionMarker.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQGroupExclusionMarker.class/methodProperties.json
@@ -1,11 +1,12 @@
{
"class" : {
- "newFrom:and:" : "JT 8/2/2022 17:03" },
+ "newFrom:and:" : "FLST 7/11/2024 20:42" },
"instance" : {
"choiceList" : "JT 8/2/2022 17:03",
"choiceList:" : "bn 7/14/2022 20:09",
- "choiceListWithExclusionsMarked" : "JT 8/2/2022 17:04",
- "colourGrey:" : "JT 8/2/2022 17:05",
+ "choiceListWithExclusionsMarked" : "FLST 7/11/2024 20:42",
+ "colourGrey:" : "FLST 7/11/2024 20:42",
"excludes:" : "kge 8/3/2022 20:53",
"group" : "JT 8/2/2022 17:05",
- "group:" : "bn 7/14/2022 20:09" } }
+ "group:" : "bn 7/14/2022 20:09",
+ "initialize" : "FLST 7/11/2024 20:42" } }
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/README.md b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/README.md
index fa88c14a..3fda9586 100644
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/README.md
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/README.md
@@ -1,4 +1,4 @@
-A specific type of LQQuestion for Single- and Multiple-Choice-Questions. A LQMultiChoiceQuestion contains a number of choices as well as the maximum number of choices one participant can choose when answering the question.
+A specific type of LQQuestion for Single- and Multiple-Choice-Questions. A LQMultiChoiceQuestion contains a number of choices as well as the maximum number of choices one participant can choose when answering the question
Notable Instance Variables:
- choiceList: An OrderedCollection of Strings containing the Choices participants are presented.
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/asString.st b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/asString.st
deleted file mode 100644
index 6d9f3dc8..00000000
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/asString.st
+++ /dev/null
@@ -1,5 +0,0 @@
-converting
-asString
-
- self title ifNil: [^ 'Untitled Question'].
- ^ self title
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/buildEmptyAnswer.st b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/buildEmptyAnswer.st
index 2793571c..ba6b7102 100644
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/buildEmptyAnswer.st
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/buildEmptyAnswer.st
@@ -1,4 +1,4 @@
initialize-release
buildEmptyAnswer
- ^ LQAnswer new
\ No newline at end of file
+ ^ LQChoicesAnswer new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/initialize.st b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/initialize.st
index 1ec545fc..390a6f0e 100644
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/initialize.st
@@ -2,6 +2,5 @@ initialize-release
initialize
super initialize.
- self id: UUID new asString.
- self choiceList: OrderedCollection new.
- self maxNumberOfChoices: 1
\ No newline at end of file
+ self maxNumberOfChoices: 1.
+ self choiceList: OrderedCollection new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isMultiChoiceQuestion.st b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isMultiChoiceQuestion.st
new file mode 100644
index 00000000..1a691fc9
--- /dev/null
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isMultiChoiceQuestion.st
@@ -0,0 +1,4 @@
+initialize-release
+isMultiChoiceQuestion
+
+ ^ true
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isVotedChoice.ValidFrom..st b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isVotedChoice.ValidFrom..st
index 695caab8..718b0eac 100644
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isVotedChoice.ValidFrom..st
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/isVotedChoice.ValidFrom..st
@@ -1,4 +1,4 @@
accessing
isVotedChoice: votedChoice ValidFrom: aUser
- ^ self choiceList noneSatisfy: [:choice | (choice description = votedChoice) and: [choice excludesGroup: aUser group]]
\ No newline at end of file
+ ^ self choiceList noneSatisfy: [:choice | choice description = votedChoice and: [choice excludesGroup: aUser group]]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/type.st b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/type.st
deleted file mode 100644
index 4a6070bb..00000000
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/type.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-type
-
- ^ 'multiChoice'
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/methodProperties.json b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/methodProperties.json
index cdc7436a..eb644fd7 100644
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/methodProperties.json
@@ -3,18 +3,13 @@
},
"instance" : {
"addChoice:" : "bwe 6/5/2022 22:20",
- "asString" : "JT 8/2/2022 17:01",
- "buildEmptyAnswer" : "Anton Eichstädt 6/5/2024 17:28",
+ "buildEmptyAnswer" : "leli 6/17/2024 14:09",
"choiceDescriptions" : "kge 8/1/2022 18:51",
"choiceList" : "JT 8/2/2022 17:01",
"choiceList:" : "CG 7/30/2021 19:06",
- "id" : "JT 8/2/2022 17:01",
- "id:" : "JT 8/2/2022 17:01",
- "initialize" : "kge 8/1/2022 18:51",
- "isVotedChoice:ValidFrom:" : "ms 8/4/2022 21:31",
+ "initialize" : "FLST 7/11/2024 20:42",
+ "isMultiChoiceQuestion" : "FLST 7/11/2024 20:42",
+ "isVotedChoice:ValidFrom:" : "FLST 7/11/2024 20:42",
"maxNumberOfChoices" : "CG 7/30/2021 19:06",
- "maxNumberOfChoices:" : "CG 7/30/2021 19:06",
- "title" : "JT 8/2/2022 17:02",
- "title:" : "JT 8/2/2022 17:02",
- "toolTip" : "bn 5/12/2022 22:11",
- "type" : "Anton Eichstädt 6/5/2024 17:37" } }
+ "maxNumberOfChoices:" : "FLST 7/11/2024 20:42",
+ "toolTip" : "bn 5/12/2022 22:11" } }
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/properties.json b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/properties.json
index 4bc0d2e7..5c4c7045 100644
--- a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/properties.json
+++ b/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/properties.json
@@ -6,12 +6,10 @@
],
"commentStamp" : "bwe 8/5/2022 16:10",
"instvars" : [
- "id",
- "title",
"maxNumberOfChoices",
"choiceList" ],
"name" : "LQMultiChoiceQuestion",
"pools" : [
],
- "super" : "Object",
+ "super" : "LQQuestion",
"type" : "normal" }
diff --git a/packages/Liquid-Core.package/LQPoll.class/class/pathToExport.st b/packages/Liquid-Core.package/LQPoll.class/class/pathToExport.st
index 488dfe63..941253f8 100644
--- a/packages/Liquid-Core.package/LQPoll.class/class/pathToExport.st
+++ b/packages/Liquid-Core.package/LQPoll.class/class/pathToExport.st
@@ -1,3 +1,4 @@
instance creation
pathToExport
- ^ FileDirectory default fullName , FileDirectory default pathNameDelimiter , 'DataExports'
\ No newline at end of file
+
+ ^ FileDirectory default fullName, FileDirectory default pathNameDelimiter, 'DataExports'
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/asString.st b/packages/Liquid-Core.package/LQPoll.class/instance/asString.st
index 39710a14..08cc5b62 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/asString.st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/asString.st
@@ -1,4 +1,4 @@
accessing
asString
- ^self pollDraft title
\ No newline at end of file
+ ^ self pollDraft title
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/countNumberOfAnswersWithChoice.ForQuestion..st b/packages/Liquid-Core.package/LQPoll.class/instance/countNumberOfAnswersWithChoice.ForQuestion..st
index 61182945..2539d1a8 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/countNumberOfAnswersWithChoice.ForQuestion..st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/countNumberOfAnswersWithChoice.ForQuestion..st
@@ -1,5 +1,4 @@
accessing - visualization
countNumberOfAnswersWithChoice: aChoice ForQuestion: aQuestion
- ^ self answerSets count: [:anAnswerSet |
- (anAnswerSet answers at: aQuestion id) containsVoteForChoice: aChoice]
\ No newline at end of file
+ ^ self answerSets count: [:anAnswerSet | (anAnswerSet answers at: aQuestion id) containsVoteForChoice: aChoice]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/exportCSV.st b/packages/Liquid-Core.package/LQPoll.class/instance/exportCSV.st
index 7db4cf17..62736f80 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/exportCSV.st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/exportCSV.st
@@ -1,16 +1,14 @@
printing
exportCSV
+
| filePath directory |
directory := FileDirectory on: self class pathToExport.
- directory exists
- ifFalse: [FileDirectory default createDirectory: self class pathToExport].
- filePath := self class pathToExport , FileDirectory default pathNameDelimiter , self id , '.csv'.
- (FileDirectory default fileExists: filePath)
- ifTrue: [| confirmDeletion |
- confirmDeletion := UIManager default confirm: 'A poll CSV file with that id already exists. Delete it and recreate it?'.
- confirmDeletion
- ifFalse: [^ self].
- FileDirectory default deleteFileNamed: filePath].
+ directory exists ifFalse: [FileDirectory default createDirectory: self class pathToExport].
+ filePath := self class pathToExport, FileDirectory default pathNameDelimiter, self id, '.csv'.
+ (FileDirectory default fileExists: filePath) ifTrue: [ | confirmDeletion |
+ confirmDeletion := UIManager default confirm: 'A poll CSV file with that id already exists. Delete it and recreate it?'.
+ confirmDeletion ifFalse: [^ self].
+ FileDirectory default deleteFileNamed: filePath].
FileStream
newFileNamed: filePath
do: [:aStream | self printDataOn: aStream withDelimiter: ';']
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/mailMapping.st b/packages/Liquid-Core.package/LQPoll.class/instance/mailMapping.st
index 0db709dd..1e183972 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/mailMapping.st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/mailMapping.st
@@ -2,6 +2,6 @@ printing
mailMapping
^ Dictionary new
- at: '{{poll-id}}' put: self id;
- at: '{{poll-title}}' put: self pollDraft title;
- yourself
\ No newline at end of file
+ at: '{{poll-id}}' put: self id;
+ at: '{{poll-title}}' put: self pollDraft title;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/myUserGroupWithToken..st b/packages/Liquid-Core.package/LQPoll.class/instance/myUserGroupWithToken..st
index 801756fa..c6281f17 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/myUserGroupWithToken..st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/myUserGroupWithToken..st
@@ -1,6 +1,6 @@
accessing
myUserGroupWithToken: aString
- ^ self requiresAuthentication
- ifTrue: [^ (self myUserWithToken: aString) group]
- ifFalse: [^ 'nil']
\ No newline at end of file
+ self requiresAuthentication
+ ifTrue: [^ (self myUserWithToken: aString) group]
+ ifFalse: [^ 'nil']
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/myUserSet.st b/packages/Liquid-Core.package/LQPoll.class/instance/myUserSet.st
index f66d2da9..db2dc6eb 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/myUserSet.st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/myUserSet.st
@@ -1,4 +1,4 @@
printing
myUserSet
- ^ (LQUserSetRepo default at: (self userSetID))
\ No newline at end of file
+ ^ LQUserSetRepo default at: self userSetID
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn..st b/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn..st
index 7e8b966d..0a419e54 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn..st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn..st
@@ -2,7 +2,6 @@ printing
printDataOn: aStream
| orderedIds |
-
orderedIds := self pollDraft questionList collect: [:aQuestion | aQuestion id].
self pollDraft questionList do: [:aQuestion |
aStream nextPutAll: aQuestion title.
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn.withDelimiter..st b/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn.withDelimiter..st
index 6a277a79..d524b05e 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn.withDelimiter..st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/printDataOn.withDelimiter..st
@@ -1,15 +1,12 @@
printing
-printDataOn: aStream withDelimiter: aDelimiter
+printDataOn: aStream withDelimiter: aDelimiter
+
| orderedIds |
- orderedIds := self pollDraft questionList
- collect: [:aQuestion | aQuestion id].
- self pollDraft questionList
- do: [:aQuestion |
- aStream nextPutAll: aQuestion title.
- aStream nextPutAll: aDelimiter].
+ orderedIds := self pollDraft questionList collect: [:aQuestion | aQuestion id].
+ self pollDraft questionList do: [:aQuestion |
+ aStream nextPutAll: aQuestion title.
+ aStream nextPutAll: aDelimiter].
aStream nextPut: Character cr.
- self answerSets
- do: [:answer |
- answer
- printDataOn: aStream for: orderedIds with: aDelimiter.
- aStream nextPut: Character cr].
\ No newline at end of file
+ self answerSets do: [:answer |
+ answer printDataOn: aStream for: orderedIds with: aDelimiter.
+ aStream nextPut: Character cr]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/returnDataWithDelimiter..st b/packages/Liquid-Core.package/LQPoll.class/instance/returnDataWithDelimiter..st
index f846a1b5..f75d40d5 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/returnDataWithDelimiter..st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/returnDataWithDelimiter..st
@@ -1,6 +1,7 @@
printing
-returnDataWithDelimiter: aDelimiter
+returnDataWithDelimiter: aDelimiter
+
| aStream |
aStream := String new writeStream.
self printDataOn: aStream withDelimiter: aDelimiter.
- ^ aStream contents
\ No newline at end of file
+ ^ aStream contents
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPoll.class/instance/sanitized.st b/packages/Liquid-Core.package/LQPoll.class/instance/sanitized.st
index ff3af901..b8c6026c 100644
--- a/packages/Liquid-Core.package/LQPoll.class/instance/sanitized.st
+++ b/packages/Liquid-Core.package/LQPoll.class/instance/sanitized.st
@@ -2,7 +2,6 @@ accessing
sanitized
| sanitizedPoll |
-
sanitizedPoll := STON fromString: (STON toString: self).
sanitizedPoll
answerSets: OrderedCollection new;
diff --git a/packages/Liquid-Core.package/LQPoll.class/methodProperties.json b/packages/Liquid-Core.package/LQPoll.class/methodProperties.json
index 500fe1d7..069ff37d 100644
--- a/packages/Liquid-Core.package/LQPoll.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQPoll.class/methodProperties.json
@@ -1,16 +1,16 @@
{
"class" : {
"newWithPollDraft:" : "CG 7/30/2021 19:06",
- "pathToExport" : "vl 5/23/2024 16:53" },
+ "pathToExport" : "FLST 7/11/2024 20:42" },
"instance" : {
"addAnswerSet:" : "kge 8/1/2022 19:01",
"answerSets" : "JS 5/25/2021 15:32",
"answerSets:" : "JT 8/2/2022 17:07",
"answeredByUser:" : "kge 8/3/2022 21:34",
- "asString" : "Ingmar Vogel 6/7/2024 17:10",
+ "asString" : "FLST 7/11/2024 20:42",
"closeWithPassword:" : "kge 8/1/2022 19:17",
- "countNumberOfAnswersWithChoice:ForQuestion:" : "kge 8/3/2022 22:06",
- "exportCSV" : "vl 6/2/2024 12:09",
+ "countNumberOfAnswersWithChoice:ForQuestion:" : "FLST 7/11/2024 20:42",
+ "exportCSV" : "FLST 7/11/2024 20:42",
"getChoiceIdentifiersFor:" : "kge 5/15/2022 13:02",
"getChoiceNamesFor:" : "kge 5/15/2022 13:02",
"getVotedChoicesPerChoiceFor:" : "kge 8/3/2022 22:04",
@@ -21,18 +21,18 @@
"initialize" : "kge 8/1/2022 19:03",
"isOpen" : "CG 7/30/2021 19:06",
"isOpen:" : "JT 8/2/2022 17:10",
- "mailMapping" : "ape 7/23/2022 09:45",
- "myUserGroupWithToken:" : "ms 8/4/2022 21:53",
- "myUserSet" : "JT 8/2/2022 17:10",
+ "mailMapping" : "FLST 7/11/2024 20:42",
+ "myUserGroupWithToken:" : "FLST 7/11/2024 20:42",
+ "myUserSet" : "FLST 7/11/2024 20:42",
"myUserWithToken:" : "kge 8/3/2022 20:51",
"pollDraft" : "JS 5/25/2021 15:33",
"pollDraft:" : "JS 5/25/2021 15:33",
- "printDataOn:" : "leli 5/21/2024 12:11",
- "printDataOn:withDelimiter:" : "leli 5/21/2024 11:33",
+ "printDataOn:" : "FLST 7/11/2024 20:42",
+ "printDataOn:withDelimiter:" : "FLST 7/11/2024 20:42",
"questionList" : "kge 8/3/2022 20:48",
"requiresAuthentication" : "kge 6/25/2022 16:46",
- "returnDataWithDelimiter:" : "leli 6/3/2024 16:29",
- "sanitized" : "ms 8/4/2022 21:26",
+ "returnDataWithDelimiter:" : "FLST 7/11/2024 20:42",
+ "sanitized" : "FLST 7/11/2024 20:42",
"startTime" : "JS 5/25/2021 15:55",
"startTime:" : "CG 7/30/2021 19:06",
"startWithId:andPassword:ifTaken:" : "kge 8/1/2022 19:03",
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/asString.st b/packages/Liquid-Core.package/LQPollDraft.class/instance/asString.st
index a040f113..3e53a6a3 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/instance/asString.st
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/asString.st
@@ -1,3 +1,4 @@
accessing
asString
+
^ self title
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/getChoiceIdentifiersFor..st b/packages/Liquid-Core.package/LQPollDraft.class/instance/getChoiceIdentifiersFor..st
index 0aabd7e6..76d5f2b6 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/instance/getChoiceIdentifiersFor..st
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/getChoiceIdentifiersFor..st
@@ -1,9 +1,8 @@
accessing - visualization
getChoiceIdentifiersFor: aQuestion
-
+
| count |
-
count := 0.
- ^ aQuestion choiceDescriptions collect: [:aChoice |
+ ^ aQuestion choiceDescriptions collect: [:aChoice |
count := count + 1.
count]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/initialize.st b/packages/Liquid-Core.package/LQPollDraft.class/instance/initialize.st
index 16739360..4924e026 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/initialize.st
@@ -1,5 +1,7 @@
initialize-release
initialize
+
super initialize.
- self questionList: OrderedCollection new;
- pollDraftId: UUID new asString
\ No newline at end of file
+ self
+ questionList: OrderedCollection new;
+ pollDraftId: UUID new asString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/isValid.st b/packages/Liquid-Core.package/LQPollDraft.class/instance/isValid.st
new file mode 100644
index 00000000..3efd3c9a
--- /dev/null
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/isValid.st
@@ -0,0 +1,6 @@
+accessing
+isValid
+
+ self questionList ifEmpty: [^ false].
+ (self questionList contains: [:question | (question title isEmptyOrNil not and: [question choiceList notEmpty or: [question isFreeTextQuestion]]) not]) ifTrue: [^ false].
+ ^ true
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId..st b/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId..st
index 1eb47727..0a86d5fd 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId..st
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId..st
@@ -1,3 +1,4 @@
accessing
pollDraftId: aUUID
+
pollDraftId := aUUID
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId.st b/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId.st
index 94bca4e7..6908596c 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId.st
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/pollDraftId.st
@@ -1,3 +1,4 @@
accessing
pollDraftId
+
^ pollDraftId
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/instance/removeQuestionAt..st b/packages/Liquid-Core.package/LQPollDraft.class/instance/removeQuestionAt..st
index 25b5da7f..ec326836 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/instance/removeQuestionAt..st
+++ b/packages/Liquid-Core.package/LQPollDraft.class/instance/removeQuestionAt..st
@@ -1,3 +1,4 @@
accessing
-removeQuestionAt: index
- self questionList removeAt: index
\ No newline at end of file
+removeQuestionAt: index
+
+ self questionList removeAt: index
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPollDraft.class/methodProperties.json b/packages/Liquid-Core.package/LQPollDraft.class/methodProperties.json
index 64d64160..94924018 100644
--- a/packages/Liquid-Core.package/LQPollDraft.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQPollDraft.class/methodProperties.json
@@ -3,15 +3,16 @@
},
"instance" : {
"addQuestion:" : "CG 7/30/2021 19:06",
- "asString" : "FLST 6/4/2024 15:12",
- "getChoiceIdentifiersFor:" : "JT 8/2/2022 18:14",
+ "asString" : "FLST 7/11/2024 20:42",
+ "getChoiceIdentifiersFor:" : "FLST 7/11/2024 20:42",
"getChoiceNamesFor:" : "bwe 5/22/2022 20:26",
- "initialize" : "FLST 6/4/2024 12:11",
- "pollDraftId" : "FLST 6/4/2024 11:59",
- "pollDraftId:" : "FLST 6/4/2024 12:00",
+ "initialize" : "FLST 7/11/2024 20:42",
+ "isValid" : "FLST 7/12/2024 09:23",
+ "pollDraftId" : "FLST 7/11/2024 20:42",
+ "pollDraftId:" : "FLST 7/11/2024 20:42",
"questionList" : "NM 5/13/2021 14:01",
"questionList:" : "CG 7/30/2021 19:06",
- "removeQuestionAt:" : "vl 5/27/2024 12:42",
+ "removeQuestionAt:" : "FLST 7/11/2024 20:42",
"title" : "frc 4/23/2021 12:50",
"title:" : "frc 4/23/2021 12:51",
"userSetID" : "JT 8/2/2022 17:13",
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/addChoice..st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/addChoice..st
index 3767de8e..d72f0af2 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/addChoice..st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/addChoice..st
@@ -1,4 +1,4 @@
modifying
addChoice: aChoice
- self choiceList add: aChoice.
\ No newline at end of file
+ self choiceList add: aChoice
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/buildEmptyAnswer.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/buildEmptyAnswer.st
index 2793571c..ba6b7102 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/buildEmptyAnswer.st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/buildEmptyAnswer.st
@@ -1,4 +1,4 @@
initialize-release
buildEmptyAnswer
- ^ LQAnswer new
\ No newline at end of file
+ ^ LQChoicesAnswer new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id..st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id..st
deleted file mode 100644
index d78169be..00000000
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-id: aString
-
- id := aString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id.st
deleted file mode 100644
index 44798f6f..00000000
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-id
-
- ^ id
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/initialize.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/initialize.st
index 668eb407..e3f2f6ca 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/initialize.st
@@ -2,6 +2,5 @@ initialize-release
initialize
super initialize.
- self id: UUID new asString.
self choiceList: OrderedCollection new.
- self numberOfChoices: (self choiceList size).
\ No newline at end of file
+ self numberOfChoices: self choiceList size
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isPriorityQuestion.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isPriorityQuestion.st
new file mode 100644
index 00000000..3187e88b
--- /dev/null
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isPriorityQuestion.st
@@ -0,0 +1,4 @@
+accessing
+isPriorityQuestion
+
+ ^ true
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isVotedChoice.ValidFrom..st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isVotedChoice.ValidFrom..st
index 695caab8..718b0eac 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isVotedChoice.ValidFrom..st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isVotedChoice.ValidFrom..st
@@ -1,4 +1,4 @@
accessing
isVotedChoice: votedChoice ValidFrom: aUser
- ^ self choiceList noneSatisfy: [:choice | (choice description = votedChoice) and: [choice excludesGroup: aUser group]]
\ No newline at end of file
+ ^ self choiceList noneSatisfy: [:choice | choice description = votedChoice and: [choice excludesGroup: aUser group]]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/maxNumberOfChoices.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/maxNumberOfChoices.st
index d4526b20..33fae0af 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/maxNumberOfChoices.st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/maxNumberOfChoices.st
@@ -1,3 +1,4 @@
accessing
maxNumberOfChoices
+
^ self choiceList size
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices..st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices..st
index 11be9d12..29d3dc70 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices..st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices..st
@@ -1,3 +1,4 @@
accessing
numberOfChoices: anObject
+
numberOfChoices := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices.st
index 9ac9c0e1..61e692ca 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices.st
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices.st
@@ -1,3 +1,4 @@
accessing
numberOfChoices
+
^ numberOfChoices
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title..st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title..st
deleted file mode 100644
index cca3812e..00000000
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-title: aString
-
- title := aString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title.st
deleted file mode 100644
index 3c1da9ab..00000000
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-title
-
- ^ title
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/type.st b/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/type.st
deleted file mode 100644
index 8cfc6836..00000000
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/type.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-type
-
- ^ 'priority'
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/methodProperties.json b/packages/Liquid-Core.package/LQPriorityQuestion.class/methodProperties.json
index 6e25b285..e3a3111f 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/methodProperties.json
@@ -2,20 +2,15 @@
"class" : {
},
"instance" : {
- "addChoice:" : "Anton Eichstädt 6/5/2024 11:46",
- "asString" : "JT 8/2/2022 17:01",
- "buildEmptyAnswer" : "Anton Eichstädt 6/5/2024 17:40",
+ "addChoice:" : "FLST 7/11/2024 20:42",
+ "buildEmptyAnswer" : "leli 6/17/2024 14:09",
"choiceDescriptions" : "kge 8/1/2022 18:51",
"choiceList" : "JT 8/2/2022 17:01",
"choiceList:" : "Anton Eichstädt 6/5/2024 11:46",
- "id" : "JT 8/2/2022 17:01",
- "id:" : "JT 8/2/2022 17:01",
- "initialize" : "Anton Eichstädt 6/4/2024 11:28",
- "isVotedChoice:ValidFrom:" : "ms 8/4/2022 21:31",
- "maxNumberOfChoices" : "Anton Eichstädt 6/5/2024 11:33",
- "numberOfChoices" : "Anton Eichstädt 6/4/2024 11:21",
- "numberOfChoices:" : "Anton Eichstädt 6/4/2024 11:21",
- "title" : "JT 8/2/2022 17:02",
- "title:" : "JT 8/2/2022 17:02",
- "toolTip" : "Anton Eichstädt 5/24/2024 15:15",
- "type" : "Anton Eichstädt 5/24/2024 15:11" } }
+ "initialize" : "FLST 7/11/2024 20:42",
+ "isPriorityQuestion" : "FLST 7/11/2024 20:42",
+ "isVotedChoice:ValidFrom:" : "FLST 7/11/2024 20:42",
+ "maxNumberOfChoices" : "FLST 7/11/2024 20:42",
+ "numberOfChoices" : "FLST 7/11/2024 20:42",
+ "numberOfChoices:" : "FLST 7/11/2024 20:42",
+ "toolTip" : "Anton Eichstädt 5/24/2024 15:15" } }
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/properties.json b/packages/Liquid-Core.package/LQPriorityQuestion.class/properties.json
index f2afe77e..882532f1 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/properties.json
+++ b/packages/Liquid-Core.package/LQPriorityQuestion.class/properties.json
@@ -6,12 +6,10 @@
],
"commentStamp" : "Anton Eichstädt 5/24/2024 15:19",
"instvars" : [
- "id",
- "title",
"choiceList",
"numberOfChoices" ],
"name" : "LQPriorityQuestion",
"pools" : [
],
- "super" : "Object",
+ "super" : "LQQuestion",
"type" : "normal" }
diff --git a/packages/Liquid-Core.package/LQQuestion.class/README.md b/packages/Liquid-Core.package/LQQuestion.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/asString.st b/packages/Liquid-Core.package/LQQuestion.class/instance/asString.st
similarity index 66%
rename from packages/Liquid-Core.package/LQPriorityQuestion.class/instance/asString.st
rename to packages/Liquid-Core.package/LQQuestion.class/instance/asString.st
index 6d9f3dc8..2b9d01d3 100644
--- a/packages/Liquid-Core.package/LQPriorityQuestion.class/instance/asString.st
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/asString.st
@@ -1,5 +1,5 @@
-converting
+initialize
asString
-
+
self title ifNil: [^ 'Untitled Question'].
- ^ self title
\ No newline at end of file
+ ^ self title
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/buildEmptyAnswer.st b/packages/Liquid-Core.package/LQQuestion.class/instance/buildEmptyAnswer.st
new file mode 100644
index 00000000..be6b55ee
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/buildEmptyAnswer.st
@@ -0,0 +1,4 @@
+mocking
+buildEmptyAnswer
+
+ ^ LQAnswer new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/choiceList.st b/packages/Liquid-Core.package/LQQuestion.class/instance/choiceList.st
new file mode 100644
index 00000000..ac072ce8
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/choiceList.st
@@ -0,0 +1,4 @@
+mocking
+choiceList
+
+ ^ OrderedCollection new
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/id..st b/packages/Liquid-Core.package/LQQuestion.class/instance/id..st
similarity index 100%
rename from packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/id..st
rename to packages/Liquid-Core.package/LQQuestion.class/instance/id..st
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/id.st b/packages/Liquid-Core.package/LQQuestion.class/instance/id.st
similarity index 100%
rename from packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/id.st
rename to packages/Liquid-Core.package/LQQuestion.class/instance/id.st
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/initialize.st b/packages/Liquid-Core.package/LQQuestion.class/instance/initialize.st
new file mode 100644
index 00000000..5c238854
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/initialize.st
@@ -0,0 +1,5 @@
+initialize
+initialize
+
+ super initialize.
+ self id: UUID new asString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/isFreeTextQuestion.st b/packages/Liquid-Core.package/LQQuestion.class/instance/isFreeTextQuestion.st
new file mode 100644
index 00000000..164ef0ba
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/isFreeTextQuestion.st
@@ -0,0 +1,4 @@
+initialize
+isFreeTextQuestion
+
+ ^ false
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/isMultiChoiceQuestion.st b/packages/Liquid-Core.package/LQQuestion.class/instance/isMultiChoiceQuestion.st
new file mode 100644
index 00000000..13a45075
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/isMultiChoiceQuestion.st
@@ -0,0 +1,4 @@
+initialize
+isMultiChoiceQuestion
+
+ ^ false
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/isPriorityQuestion.st b/packages/Liquid-Core.package/LQQuestion.class/instance/isPriorityQuestion.st
new file mode 100644
index 00000000..6a5bd062
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/isPriorityQuestion.st
@@ -0,0 +1,4 @@
+initialize
+isPriorityQuestion
+
+ ^ false
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/maxNumberOfCharacters.st b/packages/Liquid-Core.package/LQQuestion.class/instance/maxNumberOfCharacters.st
new file mode 100644
index 00000000..aba7c6ee
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/maxNumberOfCharacters.st
@@ -0,0 +1,4 @@
+mocking
+maxNumberOfCharacters
+
+ ^ 1
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/maxNumberOfChoices.st b/packages/Liquid-Core.package/LQQuestion.class/instance/maxNumberOfChoices.st
new file mode 100644
index 00000000..52666308
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/maxNumberOfChoices.st
@@ -0,0 +1,4 @@
+mocking
+maxNumberOfChoices
+
+ ^ 1
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/numberOfChoices.st b/packages/Liquid-Core.package/LQQuestion.class/instance/numberOfChoices.st
new file mode 100644
index 00000000..d745ec32
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/numberOfChoices.st
@@ -0,0 +1,4 @@
+mocking
+numberOfChoices
+
+ ^ 1
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/title..st b/packages/Liquid-Core.package/LQQuestion.class/instance/title..st
similarity index 100%
rename from packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/title..st
rename to packages/Liquid-Core.package/LQQuestion.class/instance/title..st
diff --git a/packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/title.st b/packages/Liquid-Core.package/LQQuestion.class/instance/title.st
similarity index 100%
rename from packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/title.st
rename to packages/Liquid-Core.package/LQQuestion.class/instance/title.st
diff --git a/packages/Liquid-Core.package/LQQuestion.class/instance/toolTip.st b/packages/Liquid-Core.package/LQQuestion.class/instance/toolTip.st
new file mode 100644
index 00000000..cbd3db8c
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/instance/toolTip.st
@@ -0,0 +1,4 @@
+initialize
+toolTip
+
+ SubclassResponsibility
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQQuestion.class/methodProperties.json b/packages/Liquid-Core.package/LQQuestion.class/methodProperties.json
new file mode 100644
index 00000000..894a528c
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/methodProperties.json
@@ -0,0 +1,19 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "asString" : "FLST 7/11/2024 20:42",
+ "buildEmptyAnswer" : "FLST 7/11/2024 20:42",
+ "choiceList" : "FLST 7/11/2024 20:42",
+ "id" : "leli 6/17/2024 14:05",
+ "id:" : "leli 6/17/2024 14:05",
+ "initialize" : "FLST 7/11/2024 20:42",
+ "isFreeTextQuestion" : "FLST 7/11/2024 20:42",
+ "isMultiChoiceQuestion" : "FLST 7/11/2024 20:42",
+ "isPriorityQuestion" : "FLST 7/11/2024 20:42",
+ "maxNumberOfCharacters" : "leli 6/17/2024 14:03",
+ "maxNumberOfChoices" : "FLST 7/11/2024 20:42",
+ "numberOfChoices" : "FLST 7/11/2024 20:42",
+ "title" : "leli 6/18/2024 15:52",
+ "title:" : "leli 6/17/2024 14:03",
+ "toolTip" : "leli 6/17/2024 14:07" } }
diff --git a/packages/Liquid-Core.package/LQQuestion.class/properties.json b/packages/Liquid-Core.package/LQQuestion.class/properties.json
new file mode 100644
index 00000000..a263a284
--- /dev/null
+++ b/packages/Liquid-Core.package/LQQuestion.class/properties.json
@@ -0,0 +1,15 @@
+{
+ "category" : "Liquid-Core",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "id",
+ "title" ],
+ "name" : "LQQuestion",
+ "pools" : [
+ ],
+ "super" : "Object",
+ "type" : "normal" }
diff --git a/packages/Liquid-Core.package/LQStringProcessor.class/class/replaceAll.in..st b/packages/Liquid-Core.package/LQStringProcessor.class/class/replaceAll.in..st
index 0a69b9cb..03494993 100644
--- a/packages/Liquid-Core.package/LQStringProcessor.class/class/replaceAll.in..st
+++ b/packages/Liquid-Core.package/LQStringProcessor.class/class/replaceAll.in..st
@@ -1,12 +1,9 @@
replacing
-replaceAll: aDictionary in: aString
+replaceAll: aDictionary in: aString
+
| result |
result := aString asString.
- aDictionary
- keysAndValuesDo: [:key :value |
- | correctedString |
- correctedString := value
- ifNil: ['Undefined'].
- [(result findString: key) isZero]
- whileFalse: [result := result copyReplaceAll: key with: correctedString]].
- ^ result
\ No newline at end of file
+ aDictionary keysAndValuesDo: [:key :value | | correctedString |
+ correctedString := value ifNil: ['Undefined'].
+ [(result findString: key) isZero] whileFalse: [result := result copyReplaceAll: key with: correctedString]].
+ ^ result
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQStringProcessor.class/methodProperties.json b/packages/Liquid-Core.package/LQStringProcessor.class/methodProperties.json
index 1f7bb008..c3452c16 100644
--- a/packages/Liquid-Core.package/LQStringProcessor.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQStringProcessor.class/methodProperties.json
@@ -1,5 +1,5 @@
{
"class" : {
- "replaceAll:in:" : "vl 5/30/2024 17:23" },
+ "replaceAll:in:" : "FLST 7/11/2024 20:42" },
"instance" : {
} }
diff --git a/packages/Liquid-Core.package/LQUser.class/class/newFromCollection..st b/packages/Liquid-Core.package/LQUser.class/class/newFromCollection..st
index 7e4a2c19..621cf2ef 100644
--- a/packages/Liquid-Core.package/LQUser.class/class/newFromCollection..st
+++ b/packages/Liquid-Core.package/LQUser.class/class/newFromCollection..st
@@ -1,14 +1,14 @@
building
newFromCollection: aCollection
-
+
| user |
-
user := self new.
- (aCollection size == self csvRecordSize)
- ifTrue: [user firstname: (aCollection first).
- user surname: (aCollection second).
- user mail: (aCollection third).
- user group: (aCollection fourth)]
- ifFalse: [Error new signal: 'Failed to parse csv.'].
+ aCollection size = self csvRecordSize
+ ifTrue: [
+ user firstname: aCollection first.
+ user surname: aCollection second.
+ user mail: aCollection third.
+ user group: aCollection fourth]
+ ifFalse: [Error new signal: 'Failed to parse csv.'].
^ user
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUser.class/instance/initialize.st b/packages/Liquid-Core.package/LQUser.class/instance/initialize.st
index 7899a8b6..8e2e9580 100644
--- a/packages/Liquid-Core.package/LQUser.class/instance/initialize.st
+++ b/packages/Liquid-Core.package/LQUser.class/instance/initialize.st
@@ -2,4 +2,4 @@ initialize-release
initialize
super initialize.
- self token: (UUID new asString)
\ No newline at end of file
+ self token: UUID new asString
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUser.class/instance/mailMapping.st b/packages/Liquid-Core.package/LQUser.class/instance/mailMapping.st
index 1af9d129..00758a29 100644
--- a/packages/Liquid-Core.package/LQUser.class/instance/mailMapping.st
+++ b/packages/Liquid-Core.package/LQUser.class/instance/mailMapping.st
@@ -2,8 +2,8 @@ accessing
mailMapping
^ Dictionary new
- at: '{{firstname}}' put: self firstname;
- at: '{{surname}}' put: self surname;
- at: '{{mail}}' put: self mail;
- at: '{{token}}' put: self token;
- yourself
\ No newline at end of file
+ at: '{{firstname}}' put: self firstname;
+ at: '{{surname}}' put: self surname;
+ at: '{{mail}}' put: self mail;
+ at: '{{token}}' put: self token;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUser.class/methodProperties.json b/packages/Liquid-Core.package/LQUser.class/methodProperties.json
index b22cf8d6..4f7b1435 100644
--- a/packages/Liquid-Core.package/LQUser.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQUser.class/methodProperties.json
@@ -1,16 +1,16 @@
{
"class" : {
"csvRecordSize" : "ms 8/4/2022 21:18",
- "newFromCollection:" : "JT 8/5/2022 19:18" },
+ "newFromCollection:" : "FLST 7/11/2024 20:42" },
"instance" : {
"firstname" : "kge 7/21/2022 21:50",
"firstname:" : "kge 7/21/2022 21:50",
"group" : "JT 8/2/2022 17:22",
"group:" : "bn 7/14/2022 22:39",
- "initialize" : "ms 8/1/2022 16:12",
+ "initialize" : "FLST 7/11/2024 20:42",
"mail" : "JT 8/2/2022 17:22",
"mail:" : "bn 7/14/2022 22:38",
- "mailMapping" : "ms 8/1/2022 16:12",
+ "mailMapping" : "FLST 7/11/2024 20:42",
"surname" : "JT 8/2/2022 17:22",
"surname:" : "bn 7/14/2022 22:37",
"token" : "JT 8/2/2022 17:22",
diff --git a/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile..st b/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile..st
index d29d4aca..9670f7d3 100644
--- a/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile..st
+++ b/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile..st
@@ -1,9 +1,7 @@
creation
createFromFile: aFileStream
-
+
| line userSet |
-
userSet := self new.
- [(line := aFileStream nextDelimited: Character cr) withoutTrailingBlanks = String empty]
- whileFalse: [userSet addUser: (LQUser newFromCollection: (line splitBy: ','))].
+ [(line := aFileStream nextDelimited: Character cr) withoutTrailingBlanks = String empty] whileFalse: [userSet addUser: (LQUser newFromCollection: (line splitBy: ','))].
^ userSet
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile.withName..st b/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile.withName..st
index e94cefdd..0c9c8d9f 100644
--- a/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile.withName..st
+++ b/packages/Liquid-Core.package/LQUserSet.class/class/createFromFile.withName..st
@@ -2,7 +2,6 @@ creation
createFromFile: aFileStream withName: aString
| userSet |
-
userSet := LQUserSet createFromFile: aFileStream.
aString ifNotEmpty: [userSet title: aString].
^ userSet
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUserSet.class/instance/addToRepo.st b/packages/Liquid-Core.package/LQUserSet.class/instance/addToRepo.st
index a61073b5..cddf128f 100644
--- a/packages/Liquid-Core.package/LQUserSet.class/instance/addToRepo.st
+++ b/packages/Liquid-Core.package/LQUserSet.class/instance/addToRepo.st
@@ -1,4 +1,4 @@
modifying
addToRepo
- LQUserSetRepo default at: (self id) ifPresent: [self error] ifAbsentPut: self
\ No newline at end of file
+ LQUserSetRepo default at: self id ifPresent: [self error] ifAbsentPut: self
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUserSet.class/instance/containsUserWithToken..st b/packages/Liquid-Core.package/LQUserSet.class/instance/containsUserWithToken..st
index c18c526e..f232f5b9 100644
--- a/packages/Liquid-Core.package/LQUserSet.class/instance/containsUserWithToken..st
+++ b/packages/Liquid-Core.package/LQUserSet.class/instance/containsUserWithToken..st
@@ -1,5 +1,4 @@
query
containsUserWithToken: aString
- ^ self userEntries anySatisfy: [:user | user token = aString]
-
\ No newline at end of file
+ ^ self userEntries anySatisfy: [:user | user token = aString]
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUserSet.class/instance/title.st b/packages/Liquid-Core.package/LQUserSet.class/instance/title.st
index f2370b2a..3517f335 100644
--- a/packages/Liquid-Core.package/LQUserSet.class/instance/title.st
+++ b/packages/Liquid-Core.package/LQUserSet.class/instance/title.st
@@ -1,4 +1,4 @@
accessing
title
- ^ title ifNil: [^title := 'unknown']
\ No newline at end of file
+ ^ title ifNil: [^ title := 'unknown']
\ No newline at end of file
diff --git a/packages/Liquid-Core.package/LQUserSet.class/methodProperties.json b/packages/Liquid-Core.package/LQUserSet.class/methodProperties.json
index 38911b14..9ae2d97a 100644
--- a/packages/Liquid-Core.package/LQUserSet.class/methodProperties.json
+++ b/packages/Liquid-Core.package/LQUserSet.class/methodProperties.json
@@ -1,17 +1,17 @@
{
"class" : {
- "createFromFile:" : "JT 8/2/2022 18:16",
- "createFromFile:withName:" : "JT 8/2/2022 18:16" },
+ "createFromFile:" : "FLST 7/11/2024 20:42",
+ "createFromFile:withName:" : "FLST 7/11/2024 20:42" },
"instance" : {
- "addToRepo" : "JT 8/2/2022 17:24",
+ "addToRepo" : "FLST 7/11/2024 20:42",
"addUser:" : "JT 8/2/2022 17:24",
"asString" : "JT 8/2/2022 17:25",
- "containsUserWithToken:" : "ms 8/1/2022 16:14",
+ "containsUserWithToken:" : "FLST 7/11/2024 20:42",
"getUserWithToken:" : "ms 8/1/2022 16:15",
"id" : "JT 8/2/2022 17:25",
"id:" : "JT 8/2/2022 17:25",
"initialize" : "JT 8/2/2022 17:25",
- "title" : "JT 8/2/2022 17:25",
+ "title" : "FLST 7/11/2024 20:42",
"title:" : "JT 8/2/2022 17:25",
"userEntries" : "JT 8/2/2022 17:25",
"userEntries:" : "JT 8/2/2022 17:25" } }
diff --git a/packages/Liquid-Network.package/LQAntiCheat.class/instance/is.From.ValidFor..st b/packages/Liquid-Network.package/LQAntiCheat.class/instance/is.From.ValidFor..st
index 94874e22..b846b3d5 100644
--- a/packages/Liquid-Network.package/LQAntiCheat.class/instance/is.From.ValidFor..st
+++ b/packages/Liquid-Network.package/LQAntiCheat.class/instance/is.From.ValidFor..st
@@ -1,7 +1,5 @@
anti-cheat
is: anAnswerSet From: aUser ValidFor: aPoll
- anAnswerSet answers keysAndValuesDo: [:questionID :answer |
- (self isAnswer: answer From: aUser ValidFor: questionID In: aPoll) ifFalse: [^ false]].
- ^ (aPoll answeredByUser: aUser) not
-
\ No newline at end of file
+ anAnswerSet answers keysAndValuesDo: [:questionID :answer | (self isAnswer: answer From: aUser ValidFor: questionID In: aPoll) ifFalse: [^ false]].
+ ^ (aPoll answeredByUser: aUser) not
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQAntiCheat.class/instance/isAnswer.From.ValidFor.In..st b/packages/Liquid-Network.package/LQAntiCheat.class/instance/isAnswer.From.ValidFor.In..st
index a25be36b..1939ced2 100644
--- a/packages/Liquid-Network.package/LQAntiCheat.class/instance/isAnswer.From.ValidFor.In..st
+++ b/packages/Liquid-Network.package/LQAntiCheat.class/instance/isAnswer.From.ValidFor.In..st
@@ -2,7 +2,5 @@ anti-cheat
isAnswer: answer From: aUser ValidFor: questionID In: aPoll
| question |
-
question := (aPoll questionList select: [:q | q id = questionID]) first.
- ^ answer choicesRanking allSatisfy: [:votedChoice |
- question isVotedChoice: votedChoice ValidFrom: aUser]
\ No newline at end of file
+ ^ answer choicesRanking allSatisfy: [:votedChoice | question isVotedChoice: votedChoice ValidFrom: aUser]
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQAntiCheat.class/methodProperties.json b/packages/Liquid-Network.package/LQAntiCheat.class/methodProperties.json
index 0c70cefd..239aaf77 100644
--- a/packages/Liquid-Network.package/LQAntiCheat.class/methodProperties.json
+++ b/packages/Liquid-Network.package/LQAntiCheat.class/methodProperties.json
@@ -2,5 +2,5 @@
"class" : {
},
"instance" : {
- "is:From:ValidFor:" : "bn 8/5/2022 20:41",
- "isAnswer:From:ValidFor:In:" : "bn 8/5/2022 20:41" } }
+ "is:From:ValidFor:" : "FLST 7/11/2024 20:43",
+ "isAnswer:From:ValidFor:In:" : "FLST 7/11/2024 20:43" } }
diff --git a/packages/Liquid-Network.package/LQDelayMessageDecorator.class/instance/doesNotUnderstand..st b/packages/Liquid-Network.package/LQDelayMessageDecorator.class/instance/doesNotUnderstand..st
index 0f2a3a48..464b0ff0 100644
--- a/packages/Liquid-Network.package/LQDelayMessageDecorator.class/instance/doesNotUnderstand..st
+++ b/packages/Liquid-Network.package/LQDelayMessageDecorator.class/instance/doesNotUnderstand..st
@@ -1,7 +1,7 @@
communication
doesNotUnderstand: aMessage
-
- |delay|
+
+ | delay |
delay := 80.
Delay forMilliseconds: delay.
^ aMessage sendTo: self object
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQDelayMessageDecorator.class/methodProperties.json b/packages/Liquid-Network.package/LQDelayMessageDecorator.class/methodProperties.json
index 82460bab..215207f5 100644
--- a/packages/Liquid-Network.package/LQDelayMessageDecorator.class/methodProperties.json
+++ b/packages/Liquid-Network.package/LQDelayMessageDecorator.class/methodProperties.json
@@ -2,7 +2,7 @@
"class" : {
"on:" : "CG 7/30/2021 19:14" },
"instance" : {
- "doesNotUnderstand:" : "ms 8/4/2022 10:53",
+ "doesNotUnderstand:" : "FLST 7/11/2024 20:43",
"object" : "JT 8/2/2022 18:05",
"object:" : "JT 8/2/2022 18:05",
"on:" : "kge 8/1/2022 18:52" } }
diff --git a/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/at.ifPresent.ifAbsentPut..st b/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/at.ifPresent.ifAbsentPut..st
index 1d05634f..dbd684eb 100644
--- a/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/at.ifPresent.ifAbsentPut..st
+++ b/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/at.ifPresent.ifAbsentPut..st
@@ -1,8 +1,8 @@
accessing
-at: key ifPresent: do ifAbsentPut: anObject
+at: key ifPresent: do ifAbsentPut: anObject
+
self items
at: key
ifPresent: [:arg | do value]
- ifAbsentPut: (STON
- fromString: (STON toString: anObject)).
+ ifAbsentPut: (STON fromString: (STON toString: anObject)).
self changed: #pollList
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/removeKey..st b/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/removeKey..st
index b70c98c9..fd83dc23 100644
--- a/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/removeKey..st
+++ b/packages/Liquid-Network.package/LQLocalObjectRepo.class/instance/removeKey..st
@@ -1,6 +1,5 @@
initialize-release
-removeKey: key
- self items
- removeKey: key
- ifAbsent: [self error].
+removeKey: key
+
+ self items removeKey: key ifAbsent: [self error].
self changed: #pollList
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQLocalObjectRepo.class/methodProperties.json b/packages/Liquid-Network.package/LQLocalObjectRepo.class/methodProperties.json
index d1f11652..55c6b9ec 100644
--- a/packages/Liquid-Network.package/LQLocalObjectRepo.class/methodProperties.json
+++ b/packages/Liquid-Network.package/LQLocalObjectRepo.class/methodProperties.json
@@ -5,11 +5,11 @@
"addAnswerSet:ToPoll:" : "JT 8/2/2022 18:06",
"at:" : "kge 8/1/2022 18:55",
"at:ifAbsent:" : "kge 8/1/2022 18:55",
- "at:ifPresent:ifAbsentPut:" : "Ingmar Vogel 6/18/2024 16:41",
+ "at:ifPresent:ifAbsentPut:" : "FLST 7/11/2024 20:43",
"groupAt:" : "ms 8/4/2022 21:56",
"includesKey:" : "kge 8/1/2022 18:56",
"initialize" : "kge 8/1/2022 18:56",
"items" : "JT 8/2/2022 18:06",
"items:" : "JT 8/2/2022 18:06",
- "removeKey:" : "Ingmar Vogel 6/18/2024 16:41",
+ "removeKey:" : "FLST 7/11/2024 20:43",
"values" : "kge 8/1/2022 18:56" } }
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/addAnswerSet.ToPoll..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/addAnswerSet.ToPoll..st
index 647835fb..d7aef6c0 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/addAnswerSet.ToPoll..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/addAnswerSet.ToPoll..st
@@ -1,6 +1,7 @@
accessing
addAnswerSet: anAnswerSet ToPoll: aPollId
- ^ WebClient httpPost:
- (self urlForPostingAnswerSet: anAnswerSet ToPoll: aPollId)
- content: (STON toString: anAnswerSet) type: 'text/plain'
\ No newline at end of file
+ ^ WebClient
+ httpPost: (self urlForPostingAnswerSet: anAnswerSet ToPoll: aPollId)
+ content: (STON toString: anAnswerSet)
+ type: 'text/plain'
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/at.ifAbsent..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/at.ifAbsent..st
index 257fc032..8b9a62a7 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/at.ifAbsent..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/at.ifAbsent..st
@@ -3,8 +3,8 @@ at: key ifAbsent: aBlock
| resp |
resp := self serverAt: key.
- resp isSuccess
- ifTrue: [^ STON fromString: resp content].
- (self shouldAskPasswordForResponse: resp) ifTrue: [self token: self requestToken.
- ^ self at: key ifAbsent: aBlock].
+ resp isSuccess ifTrue: [^ STON fromString: resp content].
+ (self shouldAskPasswordForResponse: resp) ifTrue: [
+ self token: self requestToken.
+ ^ self at: key ifAbsent: aBlock].
^ aBlock value
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/groupAt..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/groupAt..st
index f4598590..0b10bcf8 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/groupAt..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/groupAt..st
@@ -1,4 +1,4 @@
communication
groupAt: key
- ^ (WebClient httpGet: (self urlForGroupRequestForPollWithId: key)) content
+ ^ (WebClient httpGet: (self urlForGroupRequestForPollWithId: key)) content
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/requestToken.st b/packages/Liquid-Network.package/LQPollRepo.class/instance/requestToken.st
index 66be5ffe..5c9ded59 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/requestToken.st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/requestToken.st
@@ -1,4 +1,4 @@
authentication
requestToken
- ^ UIManager default request: 'Enter your Token!'
\ No newline at end of file
+ ^ UIManager default request: 'Enter your Token!'
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/serverAt..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/serverAt..st
index 8d1dbd8a..47e9518f 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/serverAt..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/serverAt..st
@@ -1,4 +1,4 @@
communication
serverAt: key
- ^ WebClient httpGet: (self urlForPollWithId: key)
+ ^ WebClient httpGet: (self urlForPollWithId: key)
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/shouldAskPasswordForResponse..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/shouldAskPasswordForResponse..st
index 7e49d24a..74e28990 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/shouldAskPasswordForResponse..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/shouldAskPasswordForResponse..st
@@ -1,4 +1,4 @@
communication
shouldAskPasswordForResponse: aWebResponse
- ^ (aWebResponse code = LQRemotePollRepoServer unauthorizedResponseCode) and: [self token isNil]
\ No newline at end of file
+ ^ aWebResponse code = LQRemotePollRepoServer unauthorizedResponseCode and: [self token isNil]
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForGroupRequestForPollWithId..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForGroupRequestForPollWithId..st
index a4027c24..a241b896 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForGroupRequestForPollWithId..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForGroupRequestForPollWithId..st
@@ -1,6 +1,4 @@
communication
urlForGroupRequestForPollWithId: aString
-
- ^ self url,
- '/?message=getGroup&id=', aString,
- '&token=', self token
\ No newline at end of file
+
+ ^ self url, '/?message=getGroup&id=', aString, '&token=', self token
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPollWithId..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPollWithId..st
index 09ad2de4..bf401339 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPollWithId..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPollWithId..st
@@ -1,6 +1,4 @@
communication
urlForPollWithId: aString
- ^ self url,
- '/?id=', aString,
- '&token=', self token
\ No newline at end of file
+ ^ self url, '/?id=', aString, '&token=', self token
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPostingAnswerSet.ToPoll..st b/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPostingAnswerSet.ToPoll..st
index 5b75b5fb..5c1416af 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPostingAnswerSet.ToPoll..st
+++ b/packages/Liquid-Network.package/LQPollRepo.class/instance/urlForPostingAnswerSet.ToPoll..st
@@ -1,6 +1,4 @@
communication
urlForPostingAnswerSet: anAnswerSet ToPoll: aPollId
- ^ self url,
- '/?message=addAnswerSet&token=', self token,
- '&id=', aPollId
\ No newline at end of file
+ ^ self url, '/?message=addAnswerSet&token=', self token, '&id=', aPollId
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQPollRepo.class/methodProperties.json b/packages/Liquid-Network.package/LQPollRepo.class/methodProperties.json
index 1a78bf3c..2920aa30 100644
--- a/packages/Liquid-Network.package/LQPollRepo.class/methodProperties.json
+++ b/packages/Liquid-Network.package/LQPollRepo.class/methodProperties.json
@@ -4,14 +4,14 @@
"default:" : "ape 6/22/2022 21:33",
"reset" : "JT 8/2/2022 18:09" },
"instance" : {
- "addAnswerSet:ToPoll:" : "JT 8/4/2022 21:39",
- "at:ifAbsent:" : "kge 8/3/2022 22:28",
- "groupAt:" : "kge 8/4/2022 10:21",
- "requestToken" : "JT 8/2/2022 18:06",
- "serverAt:" : "kge 8/4/2022 10:22",
- "shouldAskPasswordForResponse:" : "ms 8/4/2022 11:22",
+ "addAnswerSet:ToPoll:" : "FLST 7/11/2024 20:43",
+ "at:ifAbsent:" : "FLST 7/11/2024 20:43",
+ "groupAt:" : "FLST 7/11/2024 20:43",
+ "requestToken" : "FLST 7/11/2024 20:43",
+ "serverAt:" : "FLST 7/11/2024 20:43",
+ "shouldAskPasswordForResponse:" : "FLST 7/11/2024 20:43",
"url" : "JT 8/2/2022 18:07",
"url:" : "JT 8/2/2022 18:07",
- "urlForGroupRequestForPollWithId:" : "JT 8/4/2022 21:39",
- "urlForPollWithId:" : "JT 8/4/2022 21:41",
- "urlForPostingAnswerSet:ToPoll:" : "JT 8/4/2022 21:41" } }
+ "urlForGroupRequestForPollWithId:" : "FLST 7/11/2024 20:43",
+ "urlForPollWithId:" : "FLST 7/11/2024 20:43",
+ "urlForPostingAnswerSet:ToPoll:" : "FLST 7/11/2024 20:43" } }
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo..st
index 92386806..8ab01acd 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo..st
@@ -1,3 +1,4 @@
accessing
pollDraftRepo: aLQObjectRepo
+
PollDraftRepo := aLQObjectRepo
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo.st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo.st
index 15efa97f..5887fad0 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo.st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/pollDraftRepo.st
@@ -1,5 +1,5 @@
accessing
pollDraftRepo
- PollDraftRepo
- ifNil: [self pollDraftRepo: LQLocalObjectRepo new].
+
+ PollDraftRepo ifNil: [self pollDraftRepo: LQLocalObjectRepo new].
^ PollDraftRepo
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/serverActive..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/serverActive..st
index 5a384cb5..eb097640 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/serverActive..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/serverActive..st
@@ -1,7 +1,4 @@
accessing
serverActive: aBoolean
- aBoolean
- ifTrue: [self startServer]
- ifFalse: [self stopServer]
-
\ No newline at end of file
+ aBoolean ifTrue: [self startServer] ifFalse: [self stopServer]
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/stopServer.st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/stopServer.st
index 0ac8a241..73a47691 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/stopServer.st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/class/stopServer.st
@@ -4,4 +4,4 @@ stopServer
Server ifNotNil: [Server destroy].
Server := nil.
"Really ensure the server is dead - otherwise the server may linger on even without pointers to it; long running servers may not be garbage collected the first time round."
- Smalltalk garbageCollect.
\ No newline at end of file
+ Smalltalk garbageCollect
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGet..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGet..st
index 757a041b..e719d3f8 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGet..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGet..st
@@ -1,6 +1,5 @@
request handlers
httpGet: req
- (self isPollGetRequest: req) ifTrue: [^self httpGetPoll: req].
- (self isGroupGetRequest: req) ifTrue: [^self httpGetGroup: req]
-
\ No newline at end of file
+ (self isPollGetRequest: req) ifTrue: [^ self httpGetPoll: req].
+ (self isGroupGetRequest: req) ifTrue: [^ self httpGetGroup: req]
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetGroup..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetGroup..st
index 1dd585c7..1bc65700 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetGroup..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetGroup..st
@@ -2,14 +2,12 @@ request handlers
httpGetGroup: req
| poll id user |
-
- id := (req fields at: 'id').
- (self hasPollWithId: id)
- ifFalse: [^ req send404Response].
+ id := req fields at: 'id'.
+ (self hasPollWithId: id) ifFalse: [^ req send404Response].
poll := self pollWithId: id.
- (self request: req isAuthenticatedFor: poll)
- ifFalse: [^ self send401Response: req].
- (poll requiresAuthentication)
- ifTrue:[ user := (poll myUserWithToken: (req fields at: 'token')).
- req send200Response: user group]
- ifFalse:[req send200Response: '']
\ No newline at end of file
+ (self request: req isAuthenticatedFor: poll) ifFalse: [^ self send401Response: req].
+ poll requiresAuthentication
+ ifTrue: [
+ user := poll myUserWithToken: (req fields at: 'token').
+ req send200Response: user group]
+ ifFalse: [req send200Response: '']
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetPoll..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetPoll..st
index 687d80e4..90d609cd 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetPoll..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpGetPoll..st
@@ -2,13 +2,10 @@ request handlers
httpGetPoll: req
| poll id pollToSend |
-
- id := (req fields at: 'id').
- (self hasPollWithId: id)
- ifFalse: [^ req send404Response].
+ id := req fields at: 'id'.
+ (self hasPollWithId: id) ifFalse: [^ req send404Response].
poll := self pollWithId: id.
- (self request: req isAuthenticatedFor: poll)
- ifFalse: [^self send401Response: req].
-
+ (self request: req isAuthenticatedFor: poll) ifFalse: [^ self send401Response: req].
+
pollToSend := poll sanitized.
req send200Response: (STON toString: pollToSend)
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPost..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPost..st
index d6564cd6..df2aa697 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPost..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPost..st
@@ -1,4 +1,4 @@
request handlers
httpPost: req
-
- (self isAddAnswerSetRequest: req) ifTrue: [^self httpPostAddAnswerSet: req]
\ No newline at end of file
+
+ (self isAddAnswerSetRequest: req) ifTrue: [^ self httpPostAddAnswerSet: req]
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPostAddAnswerSet..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPostAddAnswerSet..st
index 7d027012..92ed6af7 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPostAddAnswerSet..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/httpPostAddAnswerSet..st
@@ -2,13 +2,14 @@ request handlers
httpPostAddAnswerSet: req
| poll answerSet user |
-
- poll := self class pollRepo at: (req fields at: 'id') ifAbsent: [^ req send404Response].
- (self request: req isAuthenticatedFor: poll)
- ifFalse: [^self send401Response: req].
- answerSet := STON fromString: req content.
- (poll requiresAuthentication) ifTrue: [
- user := (poll myUserSet getUserWithToken: (req fields at: 'token')).
- self addAnswerSet: answerSet FromUser: user ToPoll: poll.]
- ifFalse: [poll addAnswerSet: answerSet].
+ poll := self class pollRepo
+ at: (req fields at: 'id')
+ ifAbsent: [^ req send404Response].
+ (self request: req isAuthenticatedFor: poll) ifFalse: [^ self send401Response: req].
+ answerSet := STON fromString: req content.
+ poll requiresAuthentication
+ ifTrue: [
+ user := poll myUserSet getUserWithToken: (req fields at: 'token').
+ self addAnswerSet: answerSet FromUser: user ToPoll: poll]
+ ifFalse: [poll addAnswerSet: answerSet].
^ req send200Response: (STON toString: true)
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/request.isAuthenticatedFor..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/request.isAuthenticatedFor..st
index 6a973a96..d92c45d5 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/request.isAuthenticatedFor..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/request.isAuthenticatedFor..st
@@ -1,9 +1,5 @@
security
request: req isAuthenticatedFor: poll
- (poll requiresAuthentication)
- ifTrue:
- [((poll myUserSet) containsUserWithToken: (req fields at: 'token' ifAbsent:
- [^ false]))
- ifFalse: [^ false]].
+ poll requiresAuthentication ifTrue: [(poll myUserSet containsUserWithToken: (req fields at: 'token' ifAbsent: [^ false])) ifFalse: [^ false]].
^ true
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/send401Response..st b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/send401Response..st
index 5dd0fd35..ec1ba952 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/send401Response..st
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/instance/send401Response..st
@@ -4,7 +4,8 @@ send401Response: request
| message |
message := '
', self class unauthorizedResponseCode, 'Unauthorized'.
- request sendResponseCode: self class unauthorizedResponseCode
+ request
+ sendResponseCode: self class unauthorizedResponseCode
content: message squeakToUtf8
type: 'text/plain; charset=utf-8'
close: true
\ No newline at end of file
diff --git a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/methodProperties.json b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/methodProperties.json
index 0d8b92e5..1ea02663 100644
--- a/packages/Liquid-Network.package/LQRemotePollRepoServer.class/methodProperties.json
+++ b/packages/Liquid-Network.package/LQRemotePollRepoServer.class/methodProperties.json
@@ -1,31 +1,31 @@
{
"class" : {
"isServerActive" : "JT 8/2/2022 18:09",
- "pollDraftRepo" : "FLST 6/4/2024 11:46",
- "pollDraftRepo:" : "FLST 6/4/2024 11:46",
+ "pollDraftRepo" : "FLST 7/11/2024 20:43",
+ "pollDraftRepo:" : "FLST 7/11/2024 20:43",
"pollRepo" : "ape 6/19/2022 15:11",
"pollRepo:" : "JT 8/2/2022 18:09",
"port" : "ms 8/4/2022 11:23",
"resetPollRepo" : "ms 6/19/2022 19:15",
- "serverActive:" : "JT 8/2/2022 18:09",
+ "serverActive:" : "FLST 7/11/2024 20:43",
"startServer" : "ms 8/4/2022 11:25",
- "stopServer" : "kge 7/21/2022 14:34",
+ "stopServer" : "FLST 7/11/2024 20:43",
"unauthorizedResponseCode" : "ms 8/4/2022 11:23",
"unavailableResponseCode" : "ms 8/4/2022 23:07" },
"instance" : {
"addAnswerSet:FromUser:ToPoll:" : "JT 8/2/2022 19:20",
"hasPollWithId:" : "kge 8/3/2022 21:42",
- "httpGet:" : "kge 8/3/2022 21:48",
- "httpGetGroup:" : "JT 8/5/2022 19:02",
- "httpGetPoll:" : "JT 8/5/2022 19:03",
- "httpPost:" : "kge 8/3/2022 21:40",
- "httpPostAddAnswerSet:" : "JT 8/5/2022 19:04",
+ "httpGet:" : "FLST 7/11/2024 20:43",
+ "httpGetGroup:" : "FLST 7/11/2024 20:43",
+ "httpGetPoll:" : "FLST 7/11/2024 20:43",
+ "httpPost:" : "FLST 7/11/2024 20:43",
+ "httpPostAddAnswerSet:" : "FLST 7/11/2024 20:43",
"initialize" : "JT 8/2/2022 18:08",
"isAddAnswerSetRequest:" : "kge 8/3/2022 21:40",
"isGroupGetRequest:" : "kge 8/3/2022 21:48",
"isPollGetRequest:" : "kge 8/3/2022 22:16",
"onRequest:" : "ms 6/19/2022 19:59",
"pollWithId:" : "kge 8/3/2022 21:43",
- "request:isAuthenticatedFor:" : "ms 8/1/2022 16:18",
- "send401Response:" : "bn 8/4/2022 21:18",
+ "request:isAuthenticatedFor:" : "FLST 7/11/2024 20:43",
+ "send401Response:" : "FLST 7/11/2024 20:43",
"unauthorizedResponseCode" : "ms 8/4/2022 11:19" } }
diff --git a/packages/Liquid-Tests.package/LQAnswerPanelTests.class/instance/testToolTipWith..st b/packages/Liquid-Tests.package/LQAnswerPanelTests.class/instance/testToolTipWith..st
index 8cbe1e6d..c923a2ee 100644
--- a/packages/Liquid-Tests.package/LQAnswerPanelTests.class/instance/testToolTipWith..st
+++ b/packages/Liquid-Tests.package/LQAnswerPanelTests.class/instance/testToolTipWith..st
@@ -2,8 +2,7 @@ testing
testToolTipWith: aQuestion
| answerPanel toolTip |
-
- answerPanel := LQAnswerPanel new.
+ answerPanel := LQSelectionAnswerPanel new.
answerPanel question: aQuestion.
toolTip := answerPanel buildQuestionTooltipWith: ToolBuilder default.
diff --git a/packages/Liquid-Tests.package/LQAnswerPanelTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQAnswerPanelTests.class/methodProperties.json
index 5fae72b5..75b5890b 100644
--- a/packages/Liquid-Tests.package/LQAnswerPanelTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQAnswerPanelTests.class/methodProperties.json
@@ -2,5 +2,5 @@
"class" : {
},
"instance" : {
- "testToolTip" : "JT 8/2/2022 17:50",
- "testToolTipWith:" : "JT 8/5/2022 18:18" } }
+ "testToolTip" : "FLST 7/11/2024 19:20",
+ "testToolTipWith:" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet1.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet1.st
index e7c3f815..ecb341bc 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet1.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet1.st
@@ -1,6 +1,6 @@
helper methods
createAnswerSet1
-
+
self answerSet1: (LQAnswerSet new
- pollId: (self poll id);
+ pollId: self poll id;
yourself)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet2.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet2.st
index b22579bc..988746f4 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet2.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createAnswerSet2.st
@@ -1,6 +1,6 @@
helper methods
createAnswerSet2
-
+
self answerSet2: (LQAnswerSet new
- pollId: (self poll id);
+ pollId: self poll id;
yourself)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createPoll.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createPoll.st
index 24265e72..3ccdcd85 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createPoll.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createPoll.st
@@ -1,8 +1,7 @@
helper methods
createPoll
-
+
| pollId |
-
self poll: (LQPoll newWithPollDraft: LQPollDraft new).
self poll pollDraft questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
@@ -11,7 +10,5 @@ createPoll
self poll userSetID: self userSet id.
pollId := 'gotta-catch-rayquaza'.
- (LQRemotePollRepoServer pollRepo includesKey: pollId)
- ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
- self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
-
+ (LQRemotePollRepoServer pollRepo includesKey: pollId) ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
+ self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser1.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser1.st
index 54ede783..5a86eea7 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser1.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser1.st
@@ -1,4 +1,9 @@
helper methods
createUser1
- ^ LQUser new firstname: 'erika'; surname: 'musterfrau'; mail: 'erika.mustermann@hotmail.com'; group: 'group1';yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'erika';
+ surname: 'musterfrau';
+ mail: 'erika.mustermann@hotmail.com';
+ group: 'group1';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser2.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser2.st
index 99fcaafe..e0d95132 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser2.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUser2.st
@@ -1,4 +1,9 @@
helper methods
createUser2
- ^ LQUser new firstname: 'Lucia'; surname: ''; mail: 'luci@mail.com'; group: '3';yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'Lucia';
+ surname: '';
+ mail: 'luci@mail.com';
+ group: '3';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUserSet1.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUserSet1.st
index 69c4e518..d7d7d57b 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUserSet1.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/createUserSet1.st
@@ -1,6 +1,6 @@
helper methods
createUserSet1
-
+
self user1: self createUser1.
self user2: self createUser2.
self userSet: (LQUserSet new
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/setQuestion1.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/setQuestion1.st
index 4522ad9b..1b962f3b 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/setQuestion1.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/setQuestion1.st
@@ -1,4 +1,4 @@
helper methods
setQuestion1
-
+
self q1: self poll questionList first
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testGroupBasedAnswerExclusionEnforced.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testGroupBasedAnswerExclusionEnforced.st
index 19e502a4..7bcfc952 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testGroupBasedAnswerExclusionEnforced.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testGroupBasedAnswerExclusionEnforced.st
@@ -2,14 +2,14 @@ testing
testGroupBasedAnswerExclusionEnforced
self answerSet1 token: self user1 token.
- self answerSet1 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList first) description};
+ self answerSet1 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList first description};
yourself).
- self answerSet2 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList second) description};
+ self answerSet2 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList second description};
yourself).
- self deny: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll).
+ self deny: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll).
self poll addAnswerSet: self answerSet1.
- self deny: ((LQAntiCheat new) is: self answerSet2 From: self user2 ValidFor: self poll)
\ No newline at end of file
+ self deny: (LQAntiCheat new is: self answerSet2 From: self user2 ValidFor: self poll)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented1.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented1.st
index a1d9e6cf..f782b0bc 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented1.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented1.st
@@ -1,8 +1,7 @@
testing
testMultipleAnsweringPrevented1
-
+
self answerSet1 token: self user1 token.
- self assert: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll).
+ self assert: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll).
self poll addAnswerSet: self answerSet1.
- self deny: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll)
-
\ No newline at end of file
+ self deny: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented2.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented2.st
index 205c24b4..32a13773 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented2.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testMultipleAnsweringPrevented2.st
@@ -1,18 +1,17 @@
testing
testMultipleAnsweringPrevented2
-
+
self answerSet1 token: self user1 token.
- self answerSet1 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList second) description};
+ self answerSet1 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList second description};
yourself).
self answerSet2 token: self user1 token.
- self answerSet2 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList second) description};
+ self answerSet2 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList second description};
yourself).
- self assert: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll).
+ self assert: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll).
self poll addAnswerSet: self answerSet1.
- self deny: ((LQAntiCheat new) is: self answerSet2 From: self user1 ValidFor: self poll)
-
\ No newline at end of file
+ self deny: (LQAntiCheat new is: self answerSet2 From: self user1 ValidFor: self poll)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testNormalAnsweringAllowed.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testNormalAnsweringAllowed.st
index e33bc10d..dfb8a42d 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testNormalAnsweringAllowed.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testNormalAnsweringAllowed.st
@@ -1,18 +1,17 @@
testing
testNormalAnsweringAllowed
-
+
self answerSet1 token: self user1 token.
- self answerSet1 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList second) description};
+ self answerSet1 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList second description};
yourself).
self answerSet2 token: self user2 token.
- self answerSet2 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList first) description};
+ self answerSet2 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList first description};
yourself).
- self assert: ((LQAntiCheat new) is: self answerSet1 From: self user1 ValidFor: self poll).
+ self assert: (LQAntiCheat new is: self answerSet1 From: self user1 ValidFor: self poll).
self poll addAnswerSet: self answerSet1.
- self assert: ((LQAntiCheat new) is: self answerSet2 From: self user2 ValidFor: self poll)
-
\ No newline at end of file
+ self assert: (LQAntiCheat new is: self answerSet2 From: self user2 ValidFor: self poll)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testPollSanitization.st b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testPollSanitization.st
index 645f08a1..779cff79 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testPollSanitization.st
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/instance/testPollSanitization.st
@@ -2,15 +2,21 @@ testing
testPollSanitization
self answerSet1 token: self user1 token.
- self answerSet1 addAnswer: (LQAnswer new
- questionId: (self q1 id);
- choicesRanking: {(self q1 choiceList second) description};
+ self answerSet1 addAnswer: (LQChoicesAnswer new
+ questionId: self q1 id;
+ choicesRanking: {self q1 choiceList second description};
yourself).
LQPollRepo default token: self user1 token.
LQPollRepo default addAnswerSet: self answerSet1 ToPoll: self poll id.
- self assert: 1 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
- self assert: 0 equals: ((LQPollRepo default at: self poll id ifAbsent: [^self fail]) answerSets size).
+ self assert: 1 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
+ self
+ assert: 0
+ equals: (LQPollRepo default at: self poll id ifAbsent: [^ self fail]) answerSets size.
LQPollRepo default token: self user2 token.
- self assert: 0 equals: ((LQPollRepo default at: self poll id ifAbsent: [^self fail]) answerSets size).
- self assert: ((LQPollRepo default at: self poll id ifAbsent: [^self fail]) guard hashedPassword isNil).
- self assert: '' equals: ((LQPollRepo default at: self poll id ifAbsent: [^self fail]) pollDraft userSetID)
\ No newline at end of file
+ self
+ assert: 0
+ equals: (LQPollRepo default at: self poll id ifAbsent: [^ self fail]) answerSets size.
+ self assert: (LQPollRepo default at: self poll id ifAbsent: [^ self fail]) guard hashedPassword isNil.
+ self
+ assert: ''
+ equals: (LQPollRepo default at: self poll id ifAbsent: [^ self fail]) pollDraft userSetID
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAntiCheatTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQAntiCheatTests.class/methodProperties.json
index c2677ada..d541f5fe 100644
--- a/packages/Liquid-Tests.package/LQAntiCheatTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQAntiCheatTests.class/methodProperties.json
@@ -6,23 +6,23 @@
"answerSet1:" : "kge 8/4/2022 18:22",
"answerSet2" : "kge 8/4/2022 18:22",
"answerSet2:" : "kge 8/4/2022 18:22",
- "createAnswerSet1" : "kge 8/4/2022 18:23",
- "createAnswerSet2" : "kge 8/4/2022 18:24",
- "createPoll" : "bn 8/2/2022 17:41",
- "createUser1" : "kge 8/1/2022 20:37",
- "createUser2" : "kge 8/1/2022 20:37",
- "createUserSet1" : "bn 8/2/2022 17:41",
+ "createAnswerSet1" : "FLST 7/12/2024 15:55",
+ "createAnswerSet2" : "FLST 7/12/2024 15:55",
+ "createPoll" : "FLST 7/12/2024 15:55",
+ "createUser1" : "FLST 7/12/2024 15:55",
+ "createUser2" : "FLST 7/12/2024 15:55",
+ "createUserSet1" : "FLST 7/12/2024 15:55",
"poll" : "kge 7/21/2022 22:10",
"poll:" : "kge 7/21/2022 22:10",
"q1" : "kge 8/4/2022 18:24",
"q1:" : "kge 8/4/2022 18:24",
- "setQuestion1" : "kge 8/4/2022 18:26",
+ "setQuestion1" : "FLST 7/12/2024 15:55",
"setUp" : "kge 8/4/2022 18:26",
- "testGroupBasedAnswerExclusionEnforced" : "kge 8/4/2022 18:28",
- "testMultipleAnsweringPrevented1" : "kge 8/4/2022 18:29",
- "testMultipleAnsweringPrevented2" : "kge 8/4/2022 18:30",
- "testNormalAnsweringAllowed" : "kge 8/4/2022 18:32",
- "testPollSanitization" : "kge 8/4/2022 18:33",
+ "testGroupBasedAnswerExclusionEnforced" : "FLST 7/12/2024 15:55",
+ "testMultipleAnsweringPrevented1" : "FLST 7/12/2024 15:55",
+ "testMultipleAnsweringPrevented2" : "FLST 7/12/2024 15:55",
+ "testNormalAnsweringAllowed" : "FLST 7/12/2024 15:55",
+ "testPollSanitization" : "FLST 7/12/2024 15:55",
"testUserAnsweredPollFalse" : "kge 8/1/2022 19:44",
"testUserAnsweredPollTrue" : "kge 8/4/2022 18:35",
"user1" : "kge 7/21/2022 22:13",
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll.st
index 4204a1d7..a4309f0d 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll.st
@@ -1,8 +1,7 @@
helper methods
createPoll
-
+
| pollId |
-
self poll: (LQPoll newWithPollDraft: LQPollDraft new).
self poll pollDraft questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
@@ -11,6 +10,5 @@ createPoll
self poll userSetID: self userSet id.
pollId := 'gotta-catch-rayquaza'.
- (LQRemotePollRepoServer pollRepo includesKey: pollId)
- ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
- self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
+ (LQRemotePollRepoServer pollRepo includesKey: pollId) ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
+ self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll2.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll2.st
index 750d3c34..b6f26a80 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll2.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createPoll2.st
@@ -1,8 +1,7 @@
helper methods
createPoll2
-
+
| pollId |
-
self poll2: (LQPoll newWithPollDraft: LQPollDraft new).
self poll2 pollDraft questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
@@ -11,6 +10,5 @@ createPoll2
self poll2 userSetID: self userSet2 id.
pollId := 'yet-another-poll-id'.
- (LQRemotePollRepoServer pollRepo includesKey: pollId)
- ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
- self poll2 startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
+ (LQRemotePollRepoServer pollRepo includesKey: pollId) ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
+ self poll2 startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser1.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser1.st
index 9809297e..5a86eea7 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser1.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser1.st
@@ -1,4 +1,9 @@
helper methods
createUser1
- ^ LQUser new firstname: 'erika'; surname: 'musterfrau'; mail: 'erika.mustermann@hotmail.com'; group: 'group1'; yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'erika';
+ surname: 'musterfrau';
+ mail: 'erika.mustermann@hotmail.com';
+ group: 'group1';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser2.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser2.st
index e1ecd4a9..e0d95132 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser2.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser2.st
@@ -1,4 +1,9 @@
helper methods
createUser2
- ^ LQUser new firstname: 'Lucia'; surname: ''; mail: 'luci@mail.com'; group: '3'; yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'Lucia';
+ surname: '';
+ mail: 'luci@mail.com';
+ group: '3';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser3.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser3.st
index 672dddb3..80247c4e 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser3.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUser3.st
@@ -1,4 +1,9 @@
helper methods
createUser3
- ^ LQUser new firstname: 'Ash'; surname: 'Ketchum'; mail: 'ash@mail.com'; group: 'Rocket'; yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'Ash';
+ surname: 'Ketchum';
+ mail: 'ash@mail.com';
+ group: 'Rocket';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet1.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet1.st
index 90d10aa2..5efc4c5d 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet1.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet1.st
@@ -1,6 +1,6 @@
helper methods
createUserSet1
-
+
self userSet: (LQUserSet new
addUser: self user1;
addUser: self user2;
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet2.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet2.st
index 91bd8560..6d07b11a 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet2.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/createUserSet2.st
@@ -1,6 +1,6 @@
helper methods
createUserSet2
-
+
self userSet2: (LQUserSet new
addUser: self user3;
yourself).
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/setUp.st
index 1d266490..de4325ad 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/setUp.st
@@ -6,5 +6,4 @@ setUp
createUserSet1;
createUserSet2;
createPoll;
- createPoll2
-
\ No newline at end of file
+ createPoll2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser1.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser1.st
index aa4592ed..51d544f5 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser1.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser1.st
@@ -2,4 +2,4 @@ testing
testPollRepo200ResponseForUser1
LQPollRepo default token: self user1 token.
- self assert: ((LQPollRepo default serverAt: self poll id) isSuccess)
\ No newline at end of file
+ self assert: (LQPollRepo default serverAt: self poll id) isSuccess
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser2.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser2.st
index 3aec457d..d66bbcda 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser2.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo200ResponseForUser2.st
@@ -2,4 +2,4 @@ testing
testPollRepo200ResponseForUser2
LQPollRepo default token: self user2 token.
- self assert: ((LQPollRepo default serverAt: self poll id) isSuccess)
\ No newline at end of file
+ self assert: (LQPollRepo default serverAt: self poll id) isSuccess
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForEmptyToken.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForEmptyToken.st
index 0cc86604..404a5e85 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForEmptyToken.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForEmptyToken.st
@@ -2,5 +2,6 @@ testing
testPollRepo401ResponseForEmptyToken
LQPollRepo default token: ''.
- self assert: LQRemotePollRepoServer unauthorizedResponseCode
- equals: ((LQPollRepo default serverAt: self poll id) code)
\ No newline at end of file
+ self
+ assert: LQRemotePollRepoServer unauthorizedResponseCode
+ equals: (LQPollRepo default serverAt: self poll id) code
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForInvalidToken.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForInvalidToken.st
index 475502f2..b5fe0cbb 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForInvalidToken.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForInvalidToken.st
@@ -4,5 +4,6 @@ testPollRepo401ResponseForInvalidToken
| invalidToken |
invalidToken := -100.
LQPollRepo default token: invalidToken.
- self assert: LQRemotePollRepoServer unauthorizedResponseCode equals:
- ((LQPollRepo default serverAt: self poll id) code)
+ self
+ assert: LQRemotePollRepoServer unauthorizedResponseCode
+ equals: (LQPollRepo default serverAt: self poll id) code
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForUser3.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForUser3.st
index 6fd8249a..d9efc6c3 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForUser3.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo401ResponseForUser3.st
@@ -2,5 +2,6 @@ testing
testPollRepo401ResponseForUser3
LQPollRepo default token: self user3 token.
- self assert: LQRemotePollRepoServer unauthorizedResponseCode
- equals: ((LQPollRepo default serverAt: self poll id) code)
\ No newline at end of file
+ self
+ assert: LQRemotePollRepoServer unauthorizedResponseCode
+ equals: (LQPollRepo default serverAt: self poll id) code
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForEmptyPollId.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForEmptyPollId.st
index 07bc87db..5cd0ba31 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForEmptyPollId.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForEmptyPollId.st
@@ -2,5 +2,6 @@ testing
testPollRepo404ResponseForEmptyPollId
LQPollRepo default token: self user1 token.
- self assert: LQRemotePollRepoServer unavailableResponseCode
- equals: ((LQPollRepo default serverAt: '') code)
\ No newline at end of file
+ self
+ assert: LQRemotePollRepoServer unavailableResponseCode
+ equals: (LQPollRepo default serverAt: '') code
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForInvalidPollId.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForInvalidPollId.st
index c7373336..ef6c8d2e 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForInvalidPollId.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/testPollRepo404ResponseForInvalidPollId.st
@@ -4,5 +4,6 @@ testPollRepo404ResponseForInvalidPollId
| invalidPollId |
invalidPollId := -100.
LQPollRepo default token: self user1 token.
- self assert: LQRemotePollRepoServer unavailableResponseCode
- equals: ((LQPollRepo default serverAt: invalidPollId) code)
\ No newline at end of file
+ self
+ assert: LQRemotePollRepoServer unavailableResponseCode
+ equals: (LQPollRepo default serverAt: invalidPollId) code
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user1.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user1.st
index 8bc36705..cbab5ec2 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user1.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user1.st
@@ -1,10 +1,11 @@
accessing
user1
- user1 ifNil: [user1 := LQUser new
- firstname: 'erika';
- surname: 'musterfrau';
- mail: 'erika.mustermann@hotmail.com';
- group: 'group1';
- yourself].
+ user1 ifNil: [
+ user1 := LQUser new
+ firstname: 'erika';
+ surname: 'musterfrau';
+ mail: 'erika.mustermann@hotmail.com';
+ group: 'group1';
+ yourself].
^ user1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user2.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user2.st
index 472ab024..3be37595 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user2.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user2.st
@@ -1,5 +1,11 @@
accessing
user2
- user2 ifNil: [user2 := LQUser new firstname: 'Lucia'; surname: ''; mail: 'luci@mail.com'; group: '3'; yourself].
+ user2 ifNil: [
+ user2 := LQUser new
+ firstname: 'Lucia';
+ surname: '';
+ mail: 'luci@mail.com';
+ group: '3';
+ yourself].
^ user2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user3.st b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user3.st
index 328209bc..2826262f 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user3.st
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/instance/user3.st
@@ -1,10 +1,11 @@
accessing
user3
- user3 ifNil: [user3 := LQUser new
- firstname: 'Ash';
- surname: 'Ketchum';
- mail: 'ash@mail.com';
- group: 'Rocket';
- yourself].
+ user3 ifNil: [
+ user3 := LQUser new
+ firstname: 'Ash';
+ surname: 'Ketchum';
+ mail: 'ash@mail.com';
+ group: 'Rocket';
+ yourself].
^ user3
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQAuthenticationTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQAuthenticationTests.class/methodProperties.json
index 72cb6f8d..99ae6113 100644
--- a/packages/Liquid-Tests.package/LQAuthenticationTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQAuthenticationTests.class/methodProperties.json
@@ -2,34 +2,34 @@
"class" : {
},
"instance" : {
- "createPoll" : "bn 8/2/2022 17:43",
- "createPoll2" : "bn 8/2/2022 17:43",
- "createUser1" : "kge 8/1/2022 20:38",
- "createUser2" : "kge 8/1/2022 20:38",
- "createUser3" : "kge 8/1/2022 20:39",
- "createUserSet1" : "bn 8/2/2022 17:43",
- "createUserSet2" : "bn 8/2/2022 17:43",
+ "createPoll" : "FLST 7/12/2024 15:55",
+ "createPoll2" : "FLST 7/12/2024 15:55",
+ "createUser1" : "FLST 7/12/2024 15:55",
+ "createUser2" : "FLST 7/12/2024 15:55",
+ "createUser3" : "FLST 7/12/2024 15:55",
+ "createUserSet1" : "FLST 7/12/2024 15:55",
+ "createUserSet2" : "FLST 7/12/2024 15:55",
"id" : "bn 8/2/2022 17:43",
"poll" : "bn 8/2/2022 17:43",
"poll2" : "bn 8/2/2022 17:43",
"poll2:" : "bn 8/2/2022 17:44",
"poll:" : "bn 8/2/2022 17:45",
- "setUp" : "kge 7/21/2022 22:16",
- "testPollRepo200ResponseForUser1" : "bn 8/2/2022 17:45",
- "testPollRepo200ResponseForUser2" : "bn 8/2/2022 17:45",
- "testPollRepo401ResponseForEmptyToken" : "ms 8/4/2022 23:06",
- "testPollRepo401ResponseForInvalidToken" : "ms 8/4/2022 23:09",
- "testPollRepo401ResponseForUser3" : "ms 8/4/2022 23:06",
- "testPollRepo404ResponseForEmptyPollId" : "ms 8/4/2022 23:07",
- "testPollRepo404ResponseForInvalidPollId" : "ms 8/4/2022 23:09",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testPollRepo200ResponseForUser1" : "FLST 7/12/2024 15:55",
+ "testPollRepo200ResponseForUser2" : "FLST 7/12/2024 15:55",
+ "testPollRepo401ResponseForEmptyToken" : "FLST 7/12/2024 15:55",
+ "testPollRepo401ResponseForInvalidToken" : "FLST 7/12/2024 15:55",
+ "testPollRepo401ResponseForUser3" : "FLST 7/12/2024 15:55",
+ "testPollRepo404ResponseForEmptyPollId" : "FLST 7/12/2024 15:55",
+ "testPollRepo404ResponseForInvalidPollId" : "FLST 7/12/2024 15:55",
"testPollRepoAlwaysDefined" : "kge 8/4/2022 18:57",
"testPollRepoWithServerUnreachable" : "bn 8/2/2022 17:47",
"thisMessageDoesNotExist" : "bn 8/2/2022 17:47",
- "user1" : "JT 8/4/2022 21:56",
+ "user1" : "FLST 7/12/2024 15:55",
"user1:" : "bn 8/2/2022 17:47",
- "user2" : "kge 8/1/2022 20:39",
+ "user2" : "FLST 7/12/2024 15:55",
"user2:" : "bn 8/2/2022 17:48",
- "user3" : "JT 8/4/2022 21:57",
+ "user3" : "FLST 7/12/2024 15:55",
"user3:" : "bn 8/2/2022 17:48",
"userSet" : "bn 8/2/2022 17:48",
"userSet2" : "bn 8/2/2022 17:48",
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionForBadFormattedStrings.st b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionForBadFormattedStrings.st
index bf8ca4cf..355b8902 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionForBadFormattedStrings.st
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionForBadFormattedStrings.st
@@ -3,6 +3,6 @@ testExtractionOfDescriptionForBadFormattedStrings
| choiceEntry expectedDescription actualDescription |
expectedDescription := 'Lorem ipsum dolor sit amet ]'.
- choiceEntry := expectedDescription, '[gru3[, fews]'.
+ choiceEntry := expectedDescription, '[gru3[, fews]'.
actualDescription := self processor extractDescription: choiceEntry.
self assert: expectedDescription equals: actualDescription
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionWithMultipleExcludedGroups.st b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionWithMultipleExcludedGroups.st
index 83480f0e..b1060c96 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionWithMultipleExcludedGroups.st
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfDescriptionWithMultipleExcludedGroups.st
@@ -3,6 +3,6 @@ testExtractionOfDescriptionWithMultipleExcludedGroups
| choiceEntry expectedDescription actualDescription |
expectedDescription := 'Lorem ipsum dolor sit amet'.
- choiceEntry := expectedDescription, '[group1,group 2]'.
+ choiceEntry := expectedDescription, '[group1,group 2]'.
actualDescription := self processor extractDescription: choiceEntry.
self assert: expectedDescription equals: actualDescription
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForBadFormattedStrings.st b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForBadFormattedStrings.st
index 23e60b0a..113ba3cc 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForBadFormattedStrings.st
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForBadFormattedStrings.st
@@ -2,7 +2,6 @@ testing
testExtractionOfGroupsForBadFormattedStrings
| choiceEntry expectedGroups actualGroups |
-
expectedGroups := OrderedCollection new
add: 'group1';
add: '[group2]';
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForWellFormattedStrings.st b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForWellFormattedStrings.st
index cb730c97..e0cbcf14 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForWellFormattedStrings.st
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsForWellFormattedStrings.st
@@ -2,7 +2,6 @@ testing
testExtractionOfGroupsForWellFormattedStrings
| choiceEntry expectedGroups actualGroups |
-
expectedGroups := OrderedCollection new
add: 'group1';
add: 'group 2';
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsWithMultipleExcludedGroups.st b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsWithMultipleExcludedGroups.st
index 6062b720..a4a31b52 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsWithMultipleExcludedGroups.st
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testExtractionOfGroupsWithMultipleExcludedGroups.st
@@ -2,7 +2,6 @@ testing
testExtractionOfGroupsWithMultipleExcludedGroups
| choiceEntry expectedGroups actualGroups |
-
expectedGroups := OrderedCollection new
add: 'group1';
add: 'group2';
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testWhitespaceTrimmingForGroups.st b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testWhitespaceTrimmingForGroups.st
index 0c34ad61..e1fd7b35 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testWhitespaceTrimmingForGroups.st
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/instance/testWhitespaceTrimmingForGroups.st
@@ -2,7 +2,6 @@ testing
testWhitespaceTrimmingForGroups
| choiceEntry expectedGroups actualGroups |
-
expectedGroups := OrderedCollection new
add: 'group1';
add: 'group2';
diff --git a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/methodProperties.json
index 9ebca163..058b9609 100644
--- a/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQChoiceProcessorTests.class/methodProperties.json
@@ -5,16 +5,16 @@
"processor" : "bn 8/2/2022 17:49",
"processor:" : "bn 8/2/2022 17:49",
"setUp" : "ape 6/22/2022 21:35",
- "testExtractionOfDescriptionForBadFormattedStrings" : "kge 8/4/2022 18:40",
+ "testExtractionOfDescriptionForBadFormattedStrings" : "FLST 7/12/2024 15:55",
"testExtractionOfDescriptionForWellFormattedStrings" : "kge 8/4/2022 18:40",
- "testExtractionOfDescriptionWithMultipleExcludedGroups" : "kge 8/4/2022 18:40",
+ "testExtractionOfDescriptionWithMultipleExcludedGroups" : "FLST 7/12/2024 15:55",
"testExtractionOfDescriptionWithoutExcludedGroups" : "kge 8/4/2022 18:40",
- "testExtractionOfGroupsForBadFormattedStrings" : "JT 8/5/2022 18:22",
- "testExtractionOfGroupsForWellFormattedStrings" : "JT 8/5/2022 18:22",
+ "testExtractionOfGroupsForBadFormattedStrings" : "FLST 7/12/2024 15:55",
+ "testExtractionOfGroupsForWellFormattedStrings" : "FLST 7/12/2024 15:55",
"testExtractionOfGroupsWithEmptyBrackets" : "kge 8/4/2022 18:40",
- "testExtractionOfGroupsWithMultipleExcludedGroups" : "JT 8/5/2022 18:22",
+ "testExtractionOfGroupsWithMultipleExcludedGroups" : "FLST 7/12/2024 15:55",
"testExtractionOfGroupsWithoutExcludedGroups" : "kge 8/4/2022 18:40",
"testLeadingWhiteSpaceTrimmingOfDescription" : "kge 8/4/2022 18:40",
"testLeadingWhiteSpaceTrimmingOfDescriptionWhenNoBracketsArePresent" : "kge 8/4/2022 18:40",
"testTrailingWhiteSpaceTrimmingOfDescription" : "kge 8/4/2022 18:40",
- "testWhitespaceTrimmingForGroups" : "JT 8/5/2022 18:22" } }
+ "testWhitespaceTrimmingForGroups" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQChoiceTests.class/instance/testExcludedGroups.st b/packages/Liquid-Tests.package/LQChoiceTests.class/instance/testExcludedGroups.st
index a32bb670..b9523beb 100644
--- a/packages/Liquid-Tests.package/LQChoiceTests.class/instance/testExcludedGroups.st
+++ b/packages/Liquid-Tests.package/LQChoiceTests.class/instance/testExcludedGroups.st
@@ -2,7 +2,6 @@ testing
testExcludedGroups
| choiceEntry expectedGroups actualGroups |
-
expectedGroups := OrderedCollection new
add: 'group1';
add: 'group2';
diff --git a/packages/Liquid-Tests.package/LQChoiceTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQChoiceTests.class/methodProperties.json
index ad09937f..af82b1a8 100644
--- a/packages/Liquid-Tests.package/LQChoiceTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQChoiceTests.class/methodProperties.json
@@ -2,4 +2,4 @@
"class" : {
},
"instance" : {
- "testExcludedGroups" : "JT 8/5/2022 00:06" } }
+ "testExcludedGroups" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionOne.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionOne.st
index edfb5f6f..8dd9664c 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionOne.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionOne.st
@@ -1,6 +1,4 @@
helper methods
createCollectionOne
- ^ {LQChoice newFrom: 'Hallo' . LQChoice newFrom: 'Welt' . LQChoice newFrom: '!'} asOrderedCollection
-
-
+ ^ {LQChoice newFrom: 'Hallo'. LQChoice newFrom: 'Welt'. LQChoice newFrom: '!'} asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithDuplicates.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithDuplicates.st
index b6529bb8..9510ee61 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithDuplicates.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithDuplicates.st
@@ -2,5 +2,5 @@ helper methods
createCollectionThreeWithDuplicates
| values |
- values := {1 . 1 . 2 . 2 . 3 . 3}.
+ values := {1. 1. 2. 2. 3. 3}.
^ values asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithoutDuplicates.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithoutDuplicates.st
index 08dab204..43906e95 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithoutDuplicates.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionThreeWithoutDuplicates.st
@@ -2,5 +2,5 @@ helper methods
createCollectionThreeWithoutDuplicates
| values |
- values := {1 . 2 . 3}.
+ values := {1. 2. 3}.
^ values asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionTwo.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionTwo.st
index 12712184..2b571092 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionTwo.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionTwo.st
@@ -1,9 +1,8 @@
helper methods
createCollectionTwo
- ^ {LQChoice newFrom: 'Hallo'
- . LQChoice newFrom: 'Welt'
- . LQChoice newFrom: '!'
- . LQChoice newFrom: 'Hallo [123]'} asOrderedCollection
-
-
+ ^ {
+ LQChoice newFrom: 'Hallo'.
+ LQChoice newFrom: 'Welt'.
+ LQChoice newFrom: '!'.
+ LQChoice newFrom: 'Hallo [123]'} asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionWithNoDuplicates.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionWithNoDuplicates.st
index e84ccb3e..397475f6 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionWithNoDuplicates.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createCollectionWithNoDuplicates.st
@@ -2,5 +2,5 @@ helper methods
createCollectionWithNoDuplicates
| values |
- values := {1 . 2 . 3 . 4 . 5 . 6}.
+ values := {1. 2. 3. 4. 5. 6}.
^ values asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createTextOne.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createTextOne.st
index 95f33bf3..42f66cc1 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createTextOne.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/createTextOne.st
@@ -2,9 +2,14 @@ helper methods
createTextOne
| textStream |
-
textStream := TextStream on: Text new.
- textStream nextPutAll: 'Hallo'; cr.
- textStream nextPutAll: 'Welt'; cr.
- textStream nextPutAll: '!'; cr.
+ textStream
+ nextPutAll: 'Hallo';
+ cr.
+ textStream
+ nextPutAll: 'Welt';
+ cr.
+ textStream
+ nextPutAll: '!';
+ cr.
^ textStream contents
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testDuplicateMarkingWithMarking.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testDuplicateMarkingWithMarking.st
index 20dda338..3f128f0d 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testDuplicateMarkingWithMarking.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testDuplicateMarkingWithMarking.st
@@ -2,9 +2,8 @@ testing
testDuplicateMarkingWithMarking
| collection color1 color2 |
-
collection := self createCollectionTwo.
color1 := (LQDuplicateDetector new markDuplicatesIn: collection) attributesAt: 2.
- color2 := ((LQDuplicateDetector new markDuplicatesIn: collection) attributesAt: 7).
+ color2 := (LQDuplicateDetector new markDuplicatesIn: collection) attributesAt: 7.
self assert: (color1 includes: (TextColor color: Color red)).
- self deny: (color2 includes: (TextColor color: Color red))
\ No newline at end of file
+ self deny: (color2 includes: (TextColor color: Color red))
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testMultipleDuplicates.st b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testMultipleDuplicates.st
index 9dfa1a34..6ed94ff3 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testMultipleDuplicates.st
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/instance/testMultipleDuplicates.st
@@ -2,6 +2,6 @@ testing
testMultipleDuplicates
| original onlyDuplicates |
- original := {'1' . '1' . '2' . '3' . '4' . '5' . '5' . '5' . '5' . '10'} asOrderedCollection.
- onlyDuplicates := {'1' . '5' . '5' . '5'} asOrderedCollection.
+ original := {'1'. '1'. '2'. '3'. '4'. '5'. '5'. '5'. '5'. '10'} asOrderedCollection.
+ onlyDuplicates := {'1'. '5'. '5'. '5'} asOrderedCollection.
self assert: onlyDuplicates equals: (LQDuplicateDetector new identifyDuplicates: original)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/methodProperties.json
index c802d843..ac636b60 100644
--- a/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQDuplicateDetectorTests.class/methodProperties.json
@@ -2,14 +2,14 @@
"class" : {
},
"instance" : {
- "createCollectionOne" : "bn 8/2/2022 17:52",
- "createCollectionThreeWithDuplicates" : "ms 8/5/2022 15:51",
- "createCollectionThreeWithoutDuplicates" : "ms 8/5/2022 15:51",
- "createCollectionTwo" : "JT 8/4/2022 21:59",
- "createCollectionWithNoDuplicates" : "ms 8/5/2022 15:49",
- "createTextOne" : "JT 8/5/2022 18:23",
+ "createCollectionOne" : "FLST 7/12/2024 15:55",
+ "createCollectionThreeWithDuplicates" : "FLST 7/12/2024 15:55",
+ "createCollectionThreeWithoutDuplicates" : "FLST 7/12/2024 15:55",
+ "createCollectionTwo" : "FLST 7/12/2024 15:55",
+ "createCollectionWithNoDuplicates" : "FLST 7/12/2024 15:55",
+ "createTextOne" : "FLST 7/12/2024 15:55",
"testDuplicateMarkingNoMarking" : "kge 8/4/2022 18:41",
- "testDuplicateMarkingWithMarking" : "JT 8/4/2022 22:01",
- "testMultipleDuplicates" : "kge 8/4/2022 18:42",
+ "testDuplicateMarkingWithMarking" : "FLST 7/12/2024 15:55",
+ "testMultipleDuplicates" : "FLST 7/12/2024 15:55",
"testNoDuplicate" : "ms 8/5/2022 15:50",
"testSingleDuplicates" : "ms 8/5/2022 15:51" } }
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/README.md b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/README.md
new file mode 100644
index 00000000..54b5e866
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/README.md
@@ -0,0 +1,14 @@
+LQMultiChoiceQuestionBuilderTests is a class containing the tests for the class LQMultiChoiceQuestionBuilder in Liquid-UI.
+
+It ensures that contents are displayed the intended way.
+
+Instance Variables
+ builder:
+ questionBuilder:
+
+builder
+ a Toolbuilder used to build the LQMultiChoiceQuestionBuilder in order to test it
+
+questionBuilder
+ the LQMultiChoiceQuestionBuilder that is being tested
+
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/builder..st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/builder..st
new file mode 100644
index 00000000..ec8a6d38
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/builder..st
@@ -0,0 +1,4 @@
+accessing
+builder: aBuilder
+
+ builder := aBuilder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/builder.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/builder.st
new file mode 100644
index 00000000..dfc206cd
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/builder.st
@@ -0,0 +1,4 @@
+accessing
+builder
+
+ ^ builder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/createText.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/createText.st
new file mode 100644
index 00000000..9aa0391b
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/createText.st
@@ -0,0 +1,4 @@
+helper methods
+createText
+
+ ^ 'Das ist eine Antwort' asText
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/questionBuilder..st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/questionBuilder..st
new file mode 100644
index 00000000..b346153c
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/questionBuilder..st
@@ -0,0 +1,4 @@
+accessing
+questionBuilder: aBuilder
+
+ questionBuilder := aBuilder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/questionBuilder.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/questionBuilder.st
new file mode 100644
index 00000000..d65f7ff5
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/questionBuilder.st
@@ -0,0 +1,4 @@
+accessing
+questionBuilder
+
+ ^ questionBuilder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/setUp.st
new file mode 100644
index 00000000..83b7ddf2
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/setUp.st
@@ -0,0 +1,7 @@
+running
+setUp
+
+ super setUp.
+ self builder: ToolBuilder default.
+ self questionBuilder: LQFreeTextQuestionBuilder new.
+ self questionBuilder question: LQFreeTextQuestion new
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
new file mode 100644
index 00000000..53bea35b
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
@@ -0,0 +1,4 @@
+testing
+testBuildWithReturnsPannelMorph
+
+ self assert: ((self questionBuilder buildWith: self builder) isMemberOf: PluggablePanelMorph)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testDetermineMaxNumberOfCharacters.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testDetermineMaxNumberOfCharacters.st
new file mode 100644
index 00000000..3bfbd982
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testDetermineMaxNumberOfCharacters.st
@@ -0,0 +1,6 @@
+testing
+testDetermineMaxNumberOfCharacters
+
+ | maxNumberOfCharacters |
+ maxNumberOfCharacters := self questionBuilder determineMaxNumberOfCharactersFrom: '5' asText.
+ self assert: maxNumberOfCharacters equals: 5
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testLabelCreation.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testLabelCreation.st
new file mode 100644
index 00000000..59333107
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testLabelCreation.st
@@ -0,0 +1,6 @@
+testing
+testLabelCreation
+
+ | labelText |
+ labelText := 'Maximum number of characters participants can write'.
+ self assert: self questionBuilder createMaxNumberOfCharactersLabel equals: labelText
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfCharactersBadInput.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfCharactersBadInput.st
new file mode 100644
index 00000000..02b3a2e3
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfCharactersBadInput.st
@@ -0,0 +1,5 @@
+testing
+testMaxNumberOfCharactersBadInput
+
+ self questionBuilder maxNumberOfCharacters: 'no valid number'.
+ self assert: questionBuilder maxNumberOfCharacters equals: '100'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfCharactersCorrectInput.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfCharactersCorrectInput.st
new file mode 100644
index 00000000..c4be4091
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfCharactersCorrectInput.st
@@ -0,0 +1,5 @@
+testing
+testMaxNumberOfCharactersCorrectInput
+
+ self questionBuilder maxNumberOfCharacters: '3'.
+ self assert: questionBuilder maxNumberOfCharacters equals: '3'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st
new file mode 100644
index 00000000..9ec6dbcb
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st
@@ -0,0 +1,6 @@
+testing
+testMaxNumberOfChoicesToHighInput
+
+ | maxNumber |
+ maxNumber := self questionBuilder determineMaxNumberOfCharactersFrom: '1000000' asText.
+ self assert: maxNumber equals: 10000
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testTitelChange.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testTitelChange.st
new file mode 100644
index 00000000..25594faa
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testTitelChange.st
@@ -0,0 +1,8 @@
+testing
+testTitelChange
+
+ self questionBuilder title: 'Hallo' asText.
+
+ self assert: self questionBuilder title equals: 'Hallo'.
+
+ self assert: self questionBuilder question title equals: 'Hallo'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
new file mode 100644
index 00000000..6d66e321
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
@@ -0,0 +1,6 @@
+testing
+testToolbuilderMethodsReturnSpecs
+
+ self assert: ((self questionBuilder buildTitleInputWith: self builder) isMemberOf: PluggableTextSpec).
+ self assert: ((self questionBuilder buildMaxNumberOfCharactersLabelWith: self builder) isMemberOf: PluggableTextSpec).
+ self assert: ((self questionBuilder buildMaxNumberOfCharactersInputWith: self builder) isMemberOf: PluggableTextSpec)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/methodProperties.json
new file mode 100644
index 00000000..57e3aad2
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/methodProperties.json
@@ -0,0 +1,18 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "builder" : "JT 8/2/2022 17:56",
+ "builder:" : "bwe 6/26/2022 15:02",
+ "createText" : "leli 7/11/2024 13:21",
+ "questionBuilder" : "JT 8/2/2022 17:57",
+ "questionBuilder:" : "bwe 6/26/2022 15:02",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testBuildWithReturnsPannelMorph" : "FLST 7/12/2024 15:55",
+ "testDetermineMaxNumberOfCharacters" : "FLST 7/12/2024 15:55",
+ "testLabelCreation" : "FLST 7/12/2024 15:55",
+ "testMaxNumberOfCharactersBadInput" : "FLST 7/12/2024 15:55",
+ "testMaxNumberOfCharactersCorrectInput" : "FLST 7/12/2024 15:55",
+ "testMaxNumberOfChoicesToHighInput" : "FLST 7/12/2024 15:55",
+ "testTitelChange" : "FLST 7/12/2024 15:55",
+ "testToolbuilderMethodsReturnSpecs" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/properties.json b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/properties.json
new file mode 100644
index 00000000..03b43f53
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionBuilderTests.class/properties.json
@@ -0,0 +1,15 @@
+{
+ "category" : "Liquid-Tests",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "builder",
+ "questionBuilder" ],
+ "name" : "LQFreeTextQuestionBuilderTests",
+ "pools" : [
+ ],
+ "super" : "LQTestCase",
+ "type" : "normal" }
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/README.md b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/README.md
new file mode 100644
index 00000000..82457648
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/README.md
@@ -0,0 +1,10 @@
+LQMultiChoiceQuestionTests is a class containing the tests for the class LQMultiChoiceQuestion in Liquid-Core.
+
+It ensures that one can add choices to the question print it as string and build an empty answer for it.
+It further ensures that the Question is of correct type and has the intended amount of choices.
+
+Instance Variables
+ question:
+
+question
+ the LQMultiChoiceQuestion that is being tested
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/question..st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/question..st
similarity index 100%
rename from packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/question..st
rename to packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/question..st
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/question.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/question.st
similarity index 100%
rename from packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/question.st
rename to packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/question.st
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/setUp.st
new file mode 100644
index 00000000..5d638e0c
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/setUp.st
@@ -0,0 +1,5 @@
+running
+setUp
+
+ super setUp.
+ self question: LQFreeTextQuestion new
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testAsStringNoTitle.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testAsStringNoTitle.st
new file mode 100644
index 00000000..78d221bf
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testAsStringNoTitle.st
@@ -0,0 +1,4 @@
+testing
+testAsStringNoTitle
+
+ self assert: self question asString equals: 'Untitled Question'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testAsStringWithTitle.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testAsStringWithTitle.st
new file mode 100644
index 00000000..459d1a72
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testAsStringWithTitle.st
@@ -0,0 +1,5 @@
+testing
+testAsStringWithTitle
+
+ self question title: 'Meine Frage ist toll'.
+ self assert: self question asString equals: 'Meine Frage ist toll'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testBuildEmptyChoicesAnswer.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testBuildEmptyChoicesAnswer.st
new file mode 100644
index 00000000..3874b525
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testBuildEmptyChoicesAnswer.st
@@ -0,0 +1,4 @@
+testing
+testBuildEmptyChoicesAnswer
+
+ self assert: (self question buildEmptyAnswer isKindOf: LQFreeTextAnswer)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testType.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testType.st
new file mode 100644
index 00000000..3663e572
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testType.st
@@ -0,0 +1,4 @@
+testing
+testType
+
+ self assert: self question isFreeTextQuestion
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testmaxCharacters.st b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testmaxCharacters.st
new file mode 100644
index 00000000..69210a37
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/instance/testmaxCharacters.st
@@ -0,0 +1,7 @@
+testing
+testmaxCharacters
+
+ | numberOfCharacters |
+ numberOfCharacters := 1234.
+ self question maxNumberOfCharacters: numberOfCharacters.
+ self assert: self question maxNumberOfCharacters equals: numberOfCharacters
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/methodProperties.json
new file mode 100644
index 00000000..cec0fe56
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/methodProperties.json
@@ -0,0 +1,12 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "question" : "NM 7/9/2021 16:49",
+ "question:" : "bn 8/2/2022 17:52",
+ "setUp" : "leli 7/11/2024 14:19",
+ "testAsStringNoTitle" : "bn 6/25/2022 20:47",
+ "testAsStringWithTitle" : "bn 6/25/2022 20:48",
+ "testBuildEmptyChoicesAnswer" : "leli 7/11/2024 14:22",
+ "testType" : "FLST 7/12/2024 15:55",
+ "testmaxCharacters" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/properties.json b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/properties.json
similarity index 64%
rename from packages/Liquid-Tests.package/LQRunningPollViewTests.class/properties.json
rename to packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/properties.json
index a847b37d..87c22551 100644
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/properties.json
+++ b/packages/Liquid-Tests.package/LQFreeTextQuestionTests.class/properties.json
@@ -4,10 +4,10 @@
],
"classvars" : [
],
- "commentStamp" : "bwe 8/5/2022 15:21",
+ "commentStamp" : "",
"instvars" : [
- "poll" ],
- "name" : "LQRunningPollViewTests",
+ "question" ],
+ "name" : "LQFreeTextQuestionTests",
"pools" : [
],
"super" : "LQTestCase",
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/createChoiceList.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/createChoiceList.st
index 8b09efab..46ae7b19 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/createChoiceList.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/createChoiceList.st
@@ -1,6 +1,7 @@
helper methods
createChoiceList
- ^ {LQChoice newFrom: 'choice1[group1, group2]'.
- LQChoice newFrom: 'choice2[group3, group4]'.
- LQChoice newFrom: 'choice3[group1, group4]'}
\ No newline at end of file
+ ^ {
+ LQChoice newFrom: 'choice1[group1, group2]'.
+ LQChoice newFrom: 'choice2[group3, group4]'.
+ LQChoice newFrom: 'choice3[group1, group4]'}
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/excludedGroup.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/excludedGroup.st
index fe360969..87c11431 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/excludedGroup.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/excludedGroup.st
@@ -1,4 +1,4 @@
accessing
excludedGroup
- ^'group4'
\ No newline at end of file
+ ^ 'group4'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker..st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker..st
index 5d254640..b7eb8d68 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker..st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker..st
@@ -1,4 +1,4 @@
accessing
exclusionMarker: anExclusionMarker
- exclusionMarker := anExclusionMarker
\ No newline at end of file
+ exclusionMarker := anExclusionMarker
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker.st
index eadba92e..82eb748e 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/exclusionMarker.st
@@ -1,4 +1,4 @@
accessing
exclusionMarker
- ^ exclusionMarker
\ No newline at end of file
+ ^ exclusionMarker
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/setUp.st
index 2c7c89e1..7c688662 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/setUp.st
@@ -2,5 +2,4 @@ running
setUp
super setUp.
- self exclusionMarker:
- (LQGroupExclusionMarker newFrom: self createChoiceList and: self excludedGroup)
\ No newline at end of file
+ self exclusionMarker: (LQGroupExclusionMarker newFrom: self createChoiceList and: self excludedGroup)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testChoiceListwithExclusionsMarked.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testChoiceListwithExclusionsMarked.st
index 7c903d97..897e37d7 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testChoiceListwithExclusionsMarked.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testChoiceListwithExclusionsMarked.st
@@ -2,9 +2,8 @@ testing
testChoiceListwithExclusionsMarked
| listOfExclusions |
-
listOfExclusions := self exclusionMarker choiceListWithExclusionsMarked.
- self assert: ((listOfExclusions first) isByteString).
- self assert: ((listOfExclusions second) isText).
- self assert: (((listOfExclusions second) runs first) includes: (TextColor gray)).
- self assert: (((listOfExclusions third) runs first) includes: (TextColor gray))
\ No newline at end of file
+ self assert: listOfExclusions first isByteString.
+ self assert: listOfExclusions second isText.
+ self assert: (listOfExclusions second runs first includes: TextColor gray).
+ self assert: (listOfExclusions third runs first includes: TextColor gray)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testColourGray.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testColourGray.st
index a36f2ee9..08c24a61 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testColourGray.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testColourGray.st
@@ -1,9 +1,6 @@
testing
testColourGray
-
+
| string1 |
-
string1 := 'Lieblingseis'.
- (self exclusionMarker colourGrey: string1) runs do:
- [:attribute |
- self assert: (attribute includes: (TextColor gray))].
\ No newline at end of file
+ (self exclusionMarker colourGrey: string1) runs do: [:attribute | self assert: (attribute includes: TextColor gray)]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testExcludes.st b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testExcludes.st
index 327aeee6..384c86e0 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testExcludes.st
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/instance/testExcludes.st
@@ -1,7 +1,7 @@
testing
testExcludes
-
"group in exclusionMarker is excluded in choice 2 and 3"
- self assert: ((self exclusionMarker excludes: 1) not).
+
+ self assert: (self exclusionMarker excludes: 1) not.
self assert: (self exclusionMarker excludes: 2).
self assert: (self exclusionMarker excludes: 3)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/methodProperties.json
index 0bf0c326..af4a0961 100644
--- a/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQGroupExclusionMarkerTests.class/methodProperties.json
@@ -2,11 +2,11 @@
"class" : {
},
"instance" : {
- "createChoiceList" : "JT 8/4/2022 22:02",
- "excludedGroup" : "ms 8/5/2022 16:21",
- "exclusionMarker" : "bn 8/2/2022 17:53",
- "exclusionMarker:" : "kge 7/21/2022 16:14",
- "setUp" : "ms 8/5/2022 16:20",
- "testChoiceListwithExclusionsMarked" : "ms 8/5/2022 16:25",
- "testColourGray" : "ms 8/5/2022 16:13",
- "testExcludes" : "ms 8/5/2022 16:24" } }
+ "createChoiceList" : "FLST 7/12/2024 15:55",
+ "excludedGroup" : "FLST 7/12/2024 15:55",
+ "exclusionMarker" : "FLST 7/12/2024 15:55",
+ "exclusionMarker:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testChoiceListwithExclusionsMarked" : "FLST 7/12/2024 15:55",
+ "testColourGray" : "FLST 7/12/2024 15:55",
+ "testExcludes" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQHostMenuTests.class/README.md b/packages/Liquid-Tests.package/LQHostMenuTests.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Tests.package/LQHostMenuTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQHostMenuTests.class/methodProperties.json
new file mode 100644
index 00000000..0e4a6622
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQHostMenuTests.class/methodProperties.json
@@ -0,0 +1,5 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ } }
diff --git a/packages/Liquid-Tests.package/LQHostMenuTests.class/properties.json b/packages/Liquid-Tests.package/LQHostMenuTests.class/properties.json
new file mode 100644
index 00000000..738927ad
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQHostMenuTests.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Tests",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ ],
+ "name" : "LQHostMenuTests",
+ "pools" : [
+ ],
+ "super" : "LQTestCase",
+ "type" : "normal" }
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/assertAll.areEqualTo..st b/packages/Liquid-Tests.package/LQLintTests.class/instance/assertAll.areEqualTo..st
index 91d19210..eb0d5083 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/assertAll.areEqualTo..st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/assertAll.areEqualTo..st
@@ -1,6 +1,4 @@
helper methods
assertAll: aDictionary areEqualTo: anObject
- aDictionary keysAndValuesDo:
- [:name :result |
- self assert: anObject equals: result description: 'Linter failed for ', name]
\ No newline at end of file
+ aDictionary keysAndValuesDo: [:name :result | self assert: anObject equals: result description: 'Linter failed for ', name]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/findTestObjects.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/findTestObjects.st
index 7d1de6af..a3bcd90d 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/findTestObjects.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/findTestObjects.st
@@ -4,7 +4,5 @@ findTestObjects
^ self objectsToTest ifNil: [ | objects blacklist |
blacklist := {#WeakSmalltalkParser}.
- objects := SystemNavigation default allClasses select:
- [:x |
- (x class category beginsWith: 'Liquid') and: (blacklist includes: x name) not].
- self objectsToTest: (objects collect: [:aObject | aObject as: SLTestObject])]
\ No newline at end of file
+ objects := SystemNavigation default allClasses select: [:x | (x class category beginsWith: 'Liquid') and: (blacklist includes: x name) not].
+ self objectsToTest: (objects collect: [:aObject | aObject as: SLTestObject])]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/lint.except..st b/packages/Liquid-Tests.package/LQLintTests.class/instance/lint.except..st
index 7cf59c49..f7bec039 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/lint.except..st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/lint.except..st
@@ -2,15 +2,9 @@ helper methods
lint: aLinterRule except: aCollectionOfClasses
| testObjects temporaryTestRunner |
-
- testObjects := self findTestObjects select:
- [:aTestClassObject |
- (aCollectionOfClasses includes: aTestClassObject testClass) not].
+ testObjects := self findTestObjects select: [:aTestClassObject | (aCollectionOfClasses includes: aTestClassObject testClass) not].
temporaryTestRunner := SLTestRunner new environment: SLDefaultEnvironment new.
temporaryTestRunner runOnTests: {aLinterRule} andTestObjects: testObjects.
^ Dictionary new
- addAll: (testObjects collect:
- [:testObject |
- Association key: testObject testClass name
- value: (testObject resultValueOf: aLinterRule)]);
+ addAll: (testObjects collect: [:testObject | Association key: testObject testClass name value: (testObject resultValueOf: aLinterRule)]);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/testInstanceVariableNamesSpelling.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/testInstanceVariableNamesSpelling.st
index 04e74fde..99501fcd 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/testInstanceVariableNamesSpelling.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/testInstanceVariableNamesSpelling.st
@@ -1,4 +1,4 @@
spelling
testInstanceVariableNamesSpelling
- self assertAllZero: (self lint: #smallLintInstanceVariableNamesSpelling except: {LQUser . LQAnswerSet})
\ No newline at end of file
+ self assertAllZero: (self lint: #smallLintInstanceVariableNamesSpelling except: {LQUser. LQAnswerSet})
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/testLongMethodsWithoutEmptyLines.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/testLongMethodsWithoutEmptyLines.st
index 7dc59a04..8fe165c3 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/testLongMethodsWithoutEmptyLines.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/testLongMethodsWithoutEmptyLines.st
@@ -1,4 +1,6 @@
coding styles
testLongMethodsWithoutEmptyLines
- self assertAllZero: (self lint: #longMethod: except: (LQTestCase allSubclasses add: LQTestCase; yourself))
\ No newline at end of file
+ self assertAllZero: (self lint: #longMethod: except: (LQTestCase allSubclasses
+ add: LQTestCase;
+ yourself))
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoDataClass.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoDataClass.st
index 433e24a8..2d1135bd 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoDataClass.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoDataClass.st
@@ -1,4 +1,4 @@
disharmonies
testNoDataClass
- self assertAllFalse: (self lint: #dataClass: except: {LQUser . LQChoice . LQTestCase})
+ self assertAllFalse: (self lint: #dataClass: except: {LQUser. LQChoice. LQTestCase})
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoExcessiveNumberOfMethods.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoExcessiveNumberOfMethods.st
index 091f88cc..620a05a5 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoExcessiveNumberOfMethods.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoExcessiveNumberOfMethods.st
@@ -1,4 +1,6 @@
misc
testNoExcessiveNumberOfMethods
- self
- assertAllZero: (self lint: #smallLintExcessiveMethods except: {self class. LQParticipantMenuTests. LQAuthenticationTests. LQPollDraftBuilder. LQHostMenu. })
\ No newline at end of file
+
+ self assertAllZero: (self
+ lint: #smallLintExcessiveMethods
+ except: {self class. LQParticipantMenuTests. LQAuthenticationTests. LQPollDraftBuilder. LQHostMenu})
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoGodClass.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoGodClass.st
index c36b2dbe..ddf3b53e 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoGodClass.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoGodClass.st
@@ -1,4 +1,4 @@
disharmonies
testNoGodClass
- self assertAllFalse: (self lint: #godClass: except: {LQHostMenu})
\ No newline at end of file
+ self assertAllFalse: (self lint: #godClass: except: {LQHostMenu. LQPollDraftBuilder})
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoMessagesSentButNotImplemented.st b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoMessagesSentButNotImplemented.st
index 3695afb4..0870174d 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoMessagesSentButNotImplemented.st
+++ b/packages/Liquid-Tests.package/LQLintTests.class/instance/testNoMessagesSentButNotImplemented.st
@@ -1,5 +1,5 @@
bugs
testNoMessagesSentButNotImplemented
- self
- assertAllZero: (self lint: #smallLintSentNotImplemented except: {LQAuthenticationTests. LQVisualizationView})
- "Note: The test for LQVisualizationView does not properly work as SwaLint can't locate the StatisticsWorkbench"
\ No newline at end of file
+
+ self assertAllZero: (self lint: #smallLintSentNotImplemented except: {LQAuthenticationTests. LQVisualizationView})
+ "Note: The test for LQVisualizationView does not properly work as SwaLint can't locate the StatisticsWorkbench"
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLintTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQLintTests.class/methodProperties.json
index f92072d9..0300c389 100644
--- a/packages/Liquid-Tests.package/LQLintTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQLintTests.class/methodProperties.json
@@ -2,20 +2,20 @@
"class" : {
},
"instance" : {
- "assertAll:areEqualTo:" : "JT 8/4/2022 22:06",
+ "assertAll:areEqualTo:" : "FLST 7/12/2024 15:55",
"assertAllFalse:" : "psi 7/1/2021 20:45",
"assertAllZero:" : "psi 7/1/2021 20:45",
- "findTestObjects" : "JT 8/5/2022 18:29",
+ "findTestObjects" : "FLST 7/12/2024 15:55",
"lint:" : "CG 7/30/2021 19:06",
- "lint:except:" : "JT 8/4/2022 22:08",
+ "lint:except:" : "FLST 7/12/2024 15:55",
"objectsToTest" : "bn 8/2/2022 17:35",
"objectsToTest:" : "bn 8/2/2022 17:35",
"testClassCategoriesSpelling" : "psi 5/26/2021 20:47",
"testClassVariableCapitalization" : "psi 5/26/2021 20:47",
"testClassVariableCapitzlization" : "psi 5/26/2021 20:47",
"testClassVariableNamesSpelling" : "psi 5/26/2021 20:48",
- "testInstanceVariableNamesSpelling" : "kge 7/21/2022 14:56",
- "testLongMethodsWithoutEmptyLines" : "bn 8/2/2022 18:22",
+ "testInstanceVariableNamesSpelling" : "FLST 7/12/2024 15:55",
+ "testLongMethodsWithoutEmptyLines" : "FLST 7/12/2024 15:55",
"testNoAsOrderedCollectionAsArrayNotNeeded" : "psi 5/26/2021 20:50",
"testNoAssignmentInsideUnwindBlocksShouldBeOutside" : "psi 5/26/2021 20:50",
"testNoAssignmentWithoutEffect" : "CG 7/30/2021 19:06",
@@ -24,22 +24,22 @@
"testNoBrainClass" : "psi 5/26/2021 20:52",
"testNoComplexMethods" : "psi 5/26/2021 20:52",
"testNoContainsAReturnInAnEnsureBlock" : "psi 5/26/2021 20:52",
- "testNoDataClass" : "kge 6/25/2022 21:21",
+ "testNoDataClass" : "FLST 7/12/2024 15:55",
"testNoDebuggingCodeLeftInMethods" : "psi 5/26/2021 20:52",
"testNoDoesntUseTheResultOfAYourselfMessage" : "psi 5/26/2021 20:52",
"testNoEmptyExceptionHandler" : "psi 5/26/2021 20:53",
"testNoEqualNotUsed" : "psi 5/26/2021 20:53",
"testNoExcessiveInheritanceDepth" : "psi 5/26/2021 20:53",
"testNoExcessiveNumberOfArguments" : "psi 5/26/2021 20:53",
- "testNoExcessiveNumberOfMethods" : "FLST 6/24/2024 09:50",
+ "testNoExcessiveNumberOfMethods" : "FLST 7/12/2024 15:55",
"testNoExcessiveNumberOfVariables" : "psi 5/26/2021 20:54",
"testNoFloatEqualityComparison" : "psi 6/8/2021 10:26",
- "testNoGodClass" : "FLST 6/24/2024 10:00",
+ "testNoGodClass" : "FLST 7/11/2024 17:01",
"testNoInstanceVariableCapitalization" : "psi 5/26/2021 20:54",
"testNoInstanceVariableNotReadAndWritten" : "psi 5/26/2021 20:55",
"testNoLiteralArrayContainsComma" : "psi 5/26/2021 20:55",
"testNoLiteralArrayContainsSuspiciousTrueFalseOrNil" : "psi 5/26/2021 20:56",
- "testNoMessagesSentButNotImplemented" : "FLST 6/7/2024 14:32",
+ "testNoMessagesSentButNotImplemented" : "FLST 7/12/2024 15:55",
"testNoMethodEquivalentDefinedInSuperclass" : "CG 7/30/2021 19:06",
"testNoMethodHasNoTimestamp" : "psi 5/26/2021 20:56",
"testNoMethodJustSendsSuperMessage" : "CG 7/30/2021 19:06",
diff --git a/packages/Liquid-Tests.package/LQLoadTests.class/instance/createPoll.st b/packages/Liquid-Tests.package/LQLoadTests.class/instance/createPoll.st
index 1bfeb757..fe3f35ee 100644
--- a/packages/Liquid-Tests.package/LQLoadTests.class/instance/createPoll.st
+++ b/packages/Liquid-Tests.package/LQLoadTests.class/instance/createPoll.st
@@ -2,7 +2,6 @@ helper methods
createPoll
| poll pollId |
-
poll := LQPoll newWithPollDraft: LQPollDraft new.
poll questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
@@ -10,7 +9,6 @@ createPoll
yourself).
pollId := 'gotta-catch-rayquaza'.
- (LQRemotePollRepoServer pollRepo includesKey: pollId)
- ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
+ (LQRemotePollRepoServer pollRepo includesKey: pollId) ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken'].
^ poll
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLoadTests.class/instance/let.ParticipantsInteractWithPollId..st b/packages/Liquid-Tests.package/LQLoadTests.class/instance/let.ParticipantsInteractWithPollId..st
index f6368426..74a57745 100644
--- a/packages/Liquid-Tests.package/LQLoadTests.class/instance/let.ParticipantsInteractWithPollId..st
+++ b/packages/Liquid-Tests.package/LQLoadTests.class/instance/let.ParticipantsInteractWithPollId..st
@@ -1,17 +1,18 @@
helper methods
let: target ParticipantsInteractWithPollId: aString
- target timesRepeat: [
- | p q answerSet |
- p := LQPollRepo default
- at: aString
- ifAbsent: [self fail: 'Poll not found at given ID'].
- q := p questionList first.
- answerSet := (LQAnswerSet new
- addAnswer: (LQAnswer new
- questionId: q id;
- choicesRanking: {LQChoice newFrom: 'in Whiscashs throat'};
- yourself);
- pollId: p id;
- yourself).
- (LQDelayMessageDecorator on: LQPollRepo default) addAnswerSet: answerSet ToPoll: p id].
\ No newline at end of file
+ target timesRepeat: [ | p q answerSet |
+ p := LQPollRepo default
+ at: aString
+ ifAbsent: [self fail: 'Poll not found at given ID'].
+ q := p questionList first.
+ answerSet := LQAnswerSet new
+ addAnswer: (LQChoicesAnswer new
+ questionId: q id;
+ choicesRanking: {LQChoice newFrom: 'in Whiscashs throat'};
+ yourself);
+ pollId: p id;
+ yourself.
+ (LQDelayMessageDecorator on: LQPollRepo default)
+ addAnswerSet: answerSet
+ ToPoll: p id]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLoadTests.class/instance/testTwoHundredUsers.st b/packages/Liquid-Tests.package/LQLoadTests.class/instance/testTwoHundredUsers.st
index 76a1a1a4..507e0cbf 100644
--- a/packages/Liquid-Tests.package/LQLoadTests.class/instance/testTwoHundredUsers.st
+++ b/packages/Liquid-Tests.package/LQLoadTests.class/instance/testTwoHundredUsers.st
@@ -3,11 +3,11 @@ testTwoHundredUsers
| poll hostPoll target |
-
poll := self createPoll.
target := 200.
self let: target ParticipantsInteractWithPollId: poll id.
- poll closeWithPassword: (LQPasswordManager default findPasswordFor: poll id
- ifAbsent: [self fail: 'expected pw to be present']).
+ poll closeWithPassword: (LQPasswordManager default
+ findPasswordFor: poll id
+ ifAbsent: [self fail: 'expected pw to be present']).
hostPoll := LQRemotePollRepoServer pollRepo at: poll id.
self assert: target equals: hostPoll answerSets size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLoadTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQLoadTests.class/methodProperties.json
index f24b88ef..54ed7aa2 100644
--- a/packages/Liquid-Tests.package/LQLoadTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQLoadTests.class/methodProperties.json
@@ -2,6 +2,6 @@
"class" : {
},
"instance" : {
- "createPoll" : "JT 8/5/2022 18:31",
- "let:ParticipantsInteractWithPollId:" : "kge 8/4/2022 18:49",
- "testTwoHundredUsers" : "JT 8/5/2022 18:33" } }
+ "createPoll" : "FLST 7/12/2024 15:55",
+ "let:ParticipantsInteractWithPollId:" : "FLST 7/12/2024 15:55",
+ "testTwoHundredUsers" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testErrorHandling.st b/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testErrorHandling.st
index 9287a44c..9fe5dc2b 100644
--- a/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testErrorHandling.st
+++ b/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testErrorHandling.st
@@ -2,9 +2,9 @@ testing
testErrorHandling
| dummy |
-
- self client at: 'thrower'
- ifPresent: [self fail: 'Poll already exists']
- ifAbsentPut: LQThrowerOfErrors new.
+ self client
+ at: 'thrower'
+ ifPresent: [self fail: 'Poll already exists']
+ ifAbsentPut: LQThrowerOfErrors new.
dummy := self client at: 'thrower' ifAbsent: [self fail: 'Poll not found at given ID'].
self should: [dummy escalate] raise: self errorType
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testIfPresentIfAbsent.st b/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testIfPresentIfAbsent.st
index b3b2ac17..30df0155 100644
--- a/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testIfPresentIfAbsent.st
+++ b/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/instance/testIfPresentIfAbsent.st
@@ -2,13 +2,14 @@ testing
testIfPresentIfAbsent
| presentCheck |
-
presentCheck := false.
- self client at: 'newPoll'
- ifPresent: [self fail: 'Poll ID already taken']
- ifAbsentPut: 'This is good'.
+ self client
+ at: 'newPoll'
+ ifPresent: [self fail: 'Poll ID already taken']
+ ifAbsentPut: 'This is good'.
self client at: 'newPoll' ifAbsent: [self fail: 'Poll not found at given ID'].
- self client at: 'newPoll'
- ifPresent: [presentCheck := true]
- ifAbsentPut: 'This shouldn''t be happening, but we can''t self fail here'.
+ self client
+ at: 'newPoll'
+ ifPresent: [presentCheck := true]
+ ifAbsentPut: 'This shouldn''t be happening, but we can''t self fail here'.
self assert: presentCheck equals: true
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/methodProperties.json
index 89ad908b..badfeae5 100644
--- a/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQLocalObjectRepoTests.class/methodProperties.json
@@ -6,5 +6,5 @@
"client:" : "CG 7/30/2021 19:06",
"errorType" : "CG 7/30/2021 19:06",
"setUp" : "ape 6/22/2022 21:43",
- "testErrorHandling" : "JT 8/5/2022 18:34",
- "testIfPresentIfAbsent" : "JT 8/5/2022 18:34" } }
+ "testErrorHandling" : "FLST 7/12/2024 15:55",
+ "testIfPresentIfAbsent" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/README.md b/packages/Liquid-Tests.package/LQLogoTests.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/instance..st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/instance..st
new file mode 100644
index 00000000..dab2d86f
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/instance..st
@@ -0,0 +1,4 @@
+accessing
+instance: aLQLogo
+
+ instance := aLQLogo
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/instance.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/instance.st
new file mode 100644
index 00000000..09ff636b
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/instance.st
@@ -0,0 +1,4 @@
+accessing
+instance
+
+ ^ instance
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/setUp.st
new file mode 100644
index 00000000..ac64b20e
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/setUp.st
@@ -0,0 +1,8 @@
+running
+setUp
+
+ | instanceProto |
+ super setUp.
+ instanceProto := LQLogo new.
+ instanceProto logoMorph: nil.
+ self instance: instanceProto
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testAddDefaultLogo.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testAddDefaultLogo.st
new file mode 100644
index 00000000..cf06c61d
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testAddDefaultLogo.st
@@ -0,0 +1,8 @@
+testing
+testAddDefaultLogo
+
+ self instance addDefaultLogo.
+ self assert: self instance submorphs isEmptyOrNil not.
+ self assert: self instance submorphs first class equals: Morph.
+ self assert: self instance submorphs first submorphs isEmptyOrNil not.
+ self assert: self instance submorphs first submorphs first class equals: ImageMorph
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testBaseMorph.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testBaseMorph.st
new file mode 100644
index 00000000..13c1ae3e
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testBaseMorph.st
@@ -0,0 +1,9 @@
+testing
+testBaseMorph
+
+ | baseMorph |
+ baseMorph := self instance baseMorph.
+ self assert: baseMorph notNil.
+ self assert: baseMorph class equals: Morph.
+ self assert: baseMorph color equals: Color transparent.
+ self assert: baseMorph extent equals: self instance minimumLogoSize
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testCreateLogoMorphWithValidImage.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testCreateLogoMorphWithValidImage.st
new file mode 100644
index 00000000..4d746859
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testCreateLogoMorphWithValidImage.st
@@ -0,0 +1,9 @@
+testing
+testCreateLogoMorphWithValidImage
+
+ | image logoMorph |
+ image := Form squeakLogo.
+ logoMorph := self instance createLogoMorph: image.
+ self assert: logoMorph class equals: Morph.
+ self assert: logoMorph submorphs notEmpty.
+ self assert: logoMorph extent equals: image extent
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testCreateLogoMorphWithoutImage.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testCreateLogoMorphWithoutImage.st
new file mode 100644
index 00000000..a40fe746
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testCreateLogoMorphWithoutImage.st
@@ -0,0 +1,9 @@
+testing
+testCreateLogoMorphWithoutImage
+
+ | image logoMorph |
+ image := nil.
+ logoMorph := self instance createLogoMorph: image.
+ self assert: logoMorph class equals: Morph.
+ self assert: logoMorph submorphs isEmpty.
+ self assert: logoMorph extent equals: self instance minimumLogoSize
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadDefaultLogo.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadDefaultLogo.st
new file mode 100644
index 00000000..f3547934
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadDefaultLogo.st
@@ -0,0 +1,7 @@
+testing
+testLoadDefaultLogo
+
+ | logo |
+ logo := self instance loadDefaultLogo.
+ self assert: logo notNil.
+ self assert: logo class equals: ColorForm
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadLogoWithInvalidName.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadLogoWithInvalidName.st
new file mode 100644
index 00000000..71484391
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadLogoWithInvalidName.st
@@ -0,0 +1,6 @@
+testing
+testLoadLogoWithInvalidName
+
+ | logo |
+ self should: [logo := self instance loadLogo: 'INVALID'] raise: FileDoesNotExist
+ "self assert: logo isNil"
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadLogoWithValidName.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadLogoWithValidName.st
new file mode 100644
index 00000000..87c5dcc6
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testLoadLogoWithValidName.st
@@ -0,0 +1,7 @@
+testing
+testLoadLogoWithValidName
+
+ | logo |
+ logo := self instance loadLogo: 'liquid_logo.png'.
+ self assert: logo notNil.
+ self assert: logo class equals: ColorForm
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testMinimumLogoSize.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testMinimumLogoSize.st
new file mode 100644
index 00000000..34f6184f
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testMinimumLogoSize.st
@@ -0,0 +1,7 @@
+testing
+testMinimumLogoSize
+
+ | minimumLogoSize |
+ minimumLogoSize := self instance minimumLogoSize.
+ self assert: minimumLogoSize notNil.
+ self assert: minimumLogoSize class equals: Point
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/instance/testSetDefaultLogoMorph.st b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testSetDefaultLogoMorph.st
new file mode 100644
index 00000000..71e5ca69
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/instance/testSetDefaultLogoMorph.st
@@ -0,0 +1,6 @@
+testing
+testSetDefaultLogoMorph
+
+ self instance setDefaultLogoMorph.
+ self assert: self instance logoMorph notNil.
+ self assert: self instance logoMorph class equals: Morph
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQLogoTests.class/methodProperties.json
new file mode 100644
index 00000000..affd11ec
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/methodProperties.json
@@ -0,0 +1,16 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "instance" : "FLST 7/12/2024 15:55",
+ "instance:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testAddDefaultLogo" : "FLST 7/12/2024 15:55",
+ "testBaseMorph" : "FLST 7/12/2024 15:55",
+ "testCreateLogoMorphWithValidImage" : "FLST 7/12/2024 15:55",
+ "testCreateLogoMorphWithoutImage" : "FLST 7/12/2024 15:55",
+ "testLoadDefaultLogo" : "FLST 7/12/2024 15:55",
+ "testLoadLogoWithInvalidName" : "FLST 7/12/2024 15:55",
+ "testLoadLogoWithValidName" : "FLST 7/12/2024 15:55",
+ "testMinimumLogoSize" : "FLST 7/12/2024 15:55",
+ "testSetDefaultLogoMorph" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQLogoTests.class/properties.json b/packages/Liquid-Tests.package/LQLogoTests.class/properties.json
new file mode 100644
index 00000000..7fe3b9ec
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQLogoTests.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Tests",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "instance" ],
+ "name" : "LQLogoTests",
+ "pools" : [
+ ],
+ "super" : "LQTestCase",
+ "type" : "normal" }
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/createPoll.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/createPoll.st
index 31af5f09..92dfb983 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/createPoll.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/createPoll.st
@@ -1,8 +1,7 @@
helper methods
createPoll
-
+
| pollId |
-
self poll: (LQPoll newWithPollDraft: (LQPollDraft new title: 'TestTitle')).
self poll pollDraft questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
@@ -11,6 +10,5 @@ createPoll
self poll userSetID: self userSet1 id.
pollId := 'gotta-catch-rayquaza'.
- (LQRemotePollRepoServer pollRepo includesKey: pollId)
- ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
+ (LQRemotePollRepoServer pollRepo includesKey: pollId) ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser1.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser1.st
index 851da961..54a5807a 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser1.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser1.st
@@ -1,4 +1,9 @@
helper methods
createUser1
- ^ LQUser new firstname: 'erika'; surname: 'musterfrau'; mail: 'erika.mustermann@example.com'; group: 'group1'; yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'erika';
+ surname: 'musterfrau';
+ mail: 'erika.mustermann@example.com';
+ group: 'group1';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser2.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser2.st
index 1975f15a..f08625f9 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser2.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/createUser2.st
@@ -1,4 +1,9 @@
helper methods
createUser2
- ^ LQUser new firstname: 'Lucia'; surname: ''; mail: 'luci@example.com'; group: '3'; yourself
\ No newline at end of file
+ ^ LQUser new
+ firstname: 'Lucia';
+ surname: '';
+ mail: 'luci@example.com';
+ group: '3';
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/createUserSet1.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/createUserSet1.st
index 50a8d066..bb2a2812 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/createUserSet1.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/createUserSet1.st
@@ -1,6 +1,6 @@
helper methods
createUserSet1
-
+
self userSet1: (LQUserSet new
addUser: self user1;
addUser: self user2;
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/mailDialog.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/mailDialog.st
index 0192e40e..bbc0e475 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/mailDialog.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/mailDialog.st
@@ -1,4 +1,4 @@
accessing
mailDialog
- ^ mailDialog ifNil: [^mailDialog := LQMailDialog new]
\ No newline at end of file
+ ^ mailDialog ifNil: [^ mailDialog := LQMailDialog new]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/setUp.st
index 3bed68f3..69648f73 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/setUp.st
@@ -7,5 +7,7 @@ setUp
user2: self createUser2;
createUserSet1;
createPoll;
- mailDialog: (LQMailDialog new poll: self poll; yourself).
+ mailDialog: (LQMailDialog new
+ poll: self poll;
+ yourself).
ToolBuilder open: self mailDialog
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementList.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementList.st
index 2b474adc..844a65cc 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementList.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementList.st
@@ -3,4 +3,4 @@ testReplacementList
self mailDialog rawMailText: ''.
self mailDialog replacementSelectedIndex: 1.
- self assert: self mailDialog rawMailText equals: (self mailDialog replacementList first)
\ No newline at end of file
+ self assert: self mailDialog rawMailText equals: self mailDialog replacementList first
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementListView.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementListView.st
index 3129d7db..63e0f3e3 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementListView.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/testReplacementListView.st
@@ -1,7 +1,7 @@
testing
testReplacementListView
- self assert: self mailDialog replacementList equals: (OrderedCollection new
- addAll: LQUser new mailMapping keys;
- addAll: {'{{poll-id}}' . '{{poll-title}}'};
- yourself)
\ No newline at end of file
+ self assert: self mailDialog replacementList equals: (OrderedCollection new
+ addAll: LQUser new mailMapping keys;
+ addAll: {'{{poll-id}}'. '{{poll-title}}'};
+ yourself)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/instance/testUserSetData.st b/packages/Liquid-Tests.package/LQMailTests.class/instance/testUserSetData.st
index b4729b6f..2e6f5017 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/instance/testUserSetData.st
+++ b/packages/Liquid-Tests.package/LQMailTests.class/instance/testUserSetData.st
@@ -1,4 +1,6 @@
testing
testUserSetData
- self assert: self mailDialog userSetData equals: (self userSet1 userEntries collect: [:user | user mail])
\ No newline at end of file
+ self
+ assert: self mailDialog userSetData
+ equals: (self userSet1 userEntries collect: [:user | user mail])
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMailTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQMailTests.class/methodProperties.json
index c9f6a731..2ce32315 100644
--- a/packages/Liquid-Tests.package/LQMailTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQMailTests.class/methodProperties.json
@@ -2,15 +2,15 @@
"class" : {
},
"instance" : {
- "createPoll" : "bn 8/2/2022 17:55",
- "createUser1" : "ape 7/16/2022 14:22",
- "createUser2" : "ape 7/16/2022 14:22",
- "createUserSet1" : "bn 8/2/2022 17:55",
- "mailDialog" : "kge 7/21/2022 22:22",
+ "createPoll" : "FLST 7/12/2024 15:55",
+ "createUser1" : "FLST 7/12/2024 15:55",
+ "createUser2" : "FLST 7/12/2024 15:55",
+ "createUserSet1" : "FLST 7/12/2024 15:55",
+ "mailDialog" : "FLST 7/12/2024 15:55",
"mailDialog:" : "kge 7/21/2022 22:22",
"poll" : "kge 7/21/2022 22:22",
"poll:" : "kge 7/21/2022 22:23",
- "setUp" : "JT 8/5/2022 18:39",
+ "setUp" : "FLST 7/12/2024 15:55",
"tearDown" : "kge 8/4/2022 19:00",
"testDefaultMailSender" : "kge 7/21/2022 22:23",
"testDefaultMailText" : "kge 7/21/2022 22:24",
@@ -20,10 +20,10 @@
"testMailText" : "kge 7/21/2022 22:24",
"testPollDataReplacement" : "kge 8/4/2022 19:00",
"testProgressBar" : "kge 8/4/2022 18:58",
- "testReplacementList" : "kge 8/1/2022 20:01",
- "testReplacementListView" : "kge 7/21/2022 22:27",
+ "testReplacementList" : "FLST 7/12/2024 15:55",
+ "testReplacementListView" : "FLST 7/12/2024 15:55",
"testUserDataReplacement" : "kge 8/4/2022 18:58",
- "testUserSetData" : "ape 7/16/2022 11:27",
+ "testUserSetData" : "FLST 7/12/2024 15:55",
"testUserSetLabel" : "kge 7/21/2022 22:24",
"user1" : "kge 7/21/2022 22:21",
"user1:" : "kge 7/21/2022 22:21",
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/setUp.st
index 313a78b3..37f64a5f 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/setUp.st
@@ -4,5 +4,4 @@ setUp
super setUp.
self builder: ToolBuilder default.
self questionBuilder: LQMultiChoiceQuestionBuilder new.
- self questionBuilder question: LQMultiChoiceQuestion new
-
\ No newline at end of file
+ self questionBuilder question: LQMultiChoiceQuestion new
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
index 859bedca..53bea35b 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
@@ -1,6 +1,4 @@
testing
testBuildWithReturnsPannelMorph
- self assert: ((self questionBuilder buildWith: self builder) isMemberOf: PluggablePanelMorph)
-
-
\ No newline at end of file
+ self assert: ((self questionBuilder buildWith: self builder) isMemberOf: PluggablePanelMorph)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testDuplicateMarkingInChoiceList.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testDuplicateMarkingInChoiceList.st
index 26823e7b..7593c707 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testDuplicateMarkingInChoiceList.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testDuplicateMarkingInChoiceList.st
@@ -2,11 +2,11 @@ testing
testDuplicateMarkingInChoiceList
| temporaryQuestionBuilder text color1 color2 |
-
text := self createText.
temporaryQuestionBuilder := LQMultiChoiceQuestionBuilder new.
- temporaryQuestionBuilder question: LQMultiChoiceQuestion new;
+ temporaryQuestionBuilder
+ question: LQMultiChoiceQuestion new;
choiceList: text.
color1 := temporaryQuestionBuilder choiceDescriptions attributesAt: 20.
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testLabelCreation.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testLabelCreation.st
index 6de6a37f..406a63fb 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testLabelCreation.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testLabelCreation.st
@@ -2,7 +2,5 @@ testing
testLabelCreation
| labelText |
-
labelText := 'Maximum number of choices participants can vote:'.
- self assert: self questionBuilder createMaxNumberOfChoicesLabel equals: labelText
-
\ No newline at end of file
+ self assert: self questionBuilder createMaxNumberOfChoicesLabel equals: labelText
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesBadInput.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesBadInput.st
index 3469cbdf..d45d89a5 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesBadInput.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesBadInput.st
@@ -2,9 +2,7 @@ testing
testMaxNumberOfChoicesBadInput
| testChoiceList |
-
- testChoiceList := {LQChoice newFrom: 'a'.LQChoice newFrom: 'a'.LQChoice newFrom: 'a'.LQChoice newFrom: 'a'}.
+ testChoiceList := {LQChoice newFrom: 'a'. LQChoice newFrom: 'a'. LQChoice newFrom: 'a'. LQChoice newFrom: 'a'}.
self questionBuilder question choiceList: testChoiceList.
self questionBuilder maxNumberOfChoices: 'üiebtr' asText.
- self assert: self questionBuilder maxNumberOfChoices equals: '1'
-
\ No newline at end of file
+ self assert: self questionBuilder maxNumberOfChoices equals: '1'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesCorrectInput.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesCorrectInput.st
index f71457a7..73c58214 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesCorrectInput.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesCorrectInput.st
@@ -2,9 +2,7 @@ testing
testMaxNumberOfChoicesCorrectInput
| testChoiceList |
-
- testChoiceList := {LQChoice newFrom: 'a'.LQChoice newFrom: 'a'.LQChoice newFrom: 'a'.LQChoice newFrom: 'a'}.
+ testChoiceList := {LQChoice newFrom: 'a'. LQChoice newFrom: 'a'. LQChoice newFrom: 'a'. LQChoice newFrom: 'a'}.
self questionBuilder question choiceList: testChoiceList.
self questionBuilder maxNumberOfChoices: '3' asText.
- self assert: self questionBuilder maxNumberOfChoices equals: '3'
-
\ No newline at end of file
+ self assert: self questionBuilder maxNumberOfChoices equals: '3'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st
index 27fb33dc..2d336305 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testMaxNumberOfChoicesToHighInput.st
@@ -2,9 +2,7 @@ testing
testMaxNumberOfChoicesToHighInput
| testChoiceList |
-
- testChoiceList := {LQChoice newFrom: 'a'.LQChoice newFrom: 'a'.LQChoice newFrom: 'a'.LQChoice newFrom: 'a'}.
+ testChoiceList := {LQChoice newFrom: 'a'. LQChoice newFrom: 'a'. LQChoice newFrom: 'a'. LQChoice newFrom: 'a'}.
self questionBuilder question choiceList: testChoiceList.
self questionBuilder maxNumberOfChoices: '5' asText.
- self assert: self questionBuilder maxNumberOfChoices equals: '4'
-
\ No newline at end of file
+ self assert: self questionBuilder maxNumberOfChoices equals: '4'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testTitelChange.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testTitelChange.st
index d0aea9cc..25594faa 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testTitelChange.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testTitelChange.st
@@ -5,6 +5,4 @@ testTitelChange
self assert: self questionBuilder title equals: 'Hallo'.
- self assert: self questionBuilder question title equals: 'Hallo'.
-
-
\ No newline at end of file
+ self assert: self questionBuilder question title equals: 'Hallo'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
index a3838a91..68cb5da5 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
@@ -4,5 +4,4 @@ testToolbuilderMethodsReturnSpecs
self assert: ((self questionBuilder buildTitleInputWith: self builder) isMemberOf: PluggableTextSpec).
self assert: ((self questionBuilder buildMaxNumberOfChoicesLabelWith: self builder) isMemberOf: PluggableTextSpec).
self assert: ((self questionBuilder buildMaxNumberOfChoicesInputWith: self builder) isMemberOf: PluggableTextSpec).
- self assert: ((self questionBuilder buildChoicesInputWith: self builder) isMemberOf: PluggableTextSpec)
-
\ No newline at end of file
+ self assert: ((self questionBuilder buildChoicesInputWith: self builder) isMemberOf: PluggableTextSpec)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/methodProperties.json
index bbe11044..e2ab7faa 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionBuilderTests.class/methodProperties.json
@@ -7,12 +7,12 @@
"createText" : "JT 8/2/2022 17:56",
"questionBuilder" : "JT 8/2/2022 17:57",
"questionBuilder:" : "bwe 6/26/2022 15:02",
- "setUp" : "JT 8/2/2022 17:57",
- "testBuildWithReturnsPannelMorph" : "bn 6/25/2022 21:00",
- "testDuplicateMarkingInChoiceList" : "ms 8/5/2022 21:22",
- "testLabelCreation" : "JT 8/4/2022 21:45",
- "testMaxNumberOfChoicesBadInput" : "JT 8/4/2022 21:47",
- "testMaxNumberOfChoicesCorrectInput" : "JT 8/4/2022 21:48",
- "testMaxNumberOfChoicesToHighInput" : "JT 8/4/2022 21:50",
- "testTitelChange" : "bn 6/25/2022 21:19",
- "testToolbuilderMethodsReturnSpecs" : "bn 6/25/2022 21:04" } }
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testBuildWithReturnsPannelMorph" : "FLST 7/12/2024 15:55",
+ "testDuplicateMarkingInChoiceList" : "FLST 7/12/2024 15:55",
+ "testLabelCreation" : "FLST 7/12/2024 15:55",
+ "testMaxNumberOfChoicesBadInput" : "FLST 7/12/2024 15:55",
+ "testMaxNumberOfChoicesCorrectInput" : "FLST 7/12/2024 15:55",
+ "testMaxNumberOfChoicesToHighInput" : "FLST 7/12/2024 15:55",
+ "testTitelChange" : "FLST 7/12/2024 15:55",
+ "testToolbuilderMethodsReturnSpecs" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testAddChoice.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testAddChoice.st
index 058f7b0f..7d3b10ca 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testAddChoice.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testAddChoice.st
@@ -2,6 +2,6 @@ testing
testAddChoice
self assert: [self question choiceDescriptions isEmpty].
- self question addChoice: (LQChoice newFrom: 'An interesting choice').
- self assert: (self question choiceDescriptions size) equals: 1.
+ self question addChoice: (LQChoice newFrom: 'An interesting choice').
+ self assert: self question choiceDescriptions size equals: 1.
self assert: self question choiceDescriptions first equals: 'An interesting choice'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testCorrectQuestionType.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testCorrectQuestionType.st
index 76842157..b9565d98 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testCorrectQuestionType.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testCorrectQuestionType.st
@@ -1,4 +1,4 @@
testing
testCorrectQuestionType
- self assert: self question type equals: 'multiChoice'
\ No newline at end of file
+ self assert: self question isMultiChoiceQuestion
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testmaxChoices.st b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testmaxChoices.st
index 3b419888..2acd7fc7 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testmaxChoices.st
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/instance/testmaxChoices.st
@@ -1,6 +1,6 @@
testing
testmaxChoices
-
+
| numberOfChoices |
numberOfChoices := 1234.
self question maxNumberOfChoices: numberOfChoices.
diff --git a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/methodProperties.json
index 6427a1bf..4e71081a 100644
--- a/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQMultiChoiceQuestionTests.class/methodProperties.json
@@ -4,10 +4,10 @@
"instance" : {
"question" : "NM 7/9/2021 16:49",
"question:" : "bn 8/2/2022 17:52",
- "setUp" : "kge 8/1/2022 18:52",
- "testAddChoice" : "kge 8/4/2022 18:41",
+ "setUp" : "leli 6/18/2024 11:57",
+ "testAddChoice" : "FLST 7/12/2024 15:55",
"testAsStringNoTitle" : "bn 6/25/2022 20:47",
"testAsStringWithTitle" : "bn 6/25/2022 20:48",
"testBuildEmptyChoicesAnswer" : "Anton Eichstädt 5/24/2024 15:38",
- "testCorrectQuestionType" : "Anton Eichstädt 6/5/2024 17:37",
- "testmaxChoices" : "ms 8/4/2022 23:10" } }
+ "testCorrectQuestionType" : "Anton Eichstädt 7/8/2024 16:54",
+ "testmaxChoices" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/createParticipantMenuwith.and..st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/createParticipantMenuwith.and..st
index 379db1df..22b4e590 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/createParticipantMenuwith.and..st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/createParticipantMenuwith.and..st
@@ -4,4 +4,4 @@ createParticipantMenuwith: anAnswerSet and: aPoll
^ LQParticipantMenu new
poll: aPoll;
answerSet: anAnswerSet;
- yourself
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/expectedQuestionCounterText.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/expectedQuestionCounterText.st
index b2d4e062..53bd1f71 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/expectedQuestionCounterText.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/expectedQuestionCounterText.st
@@ -1,5 +1,4 @@
helper methods
expectedQuestionCounterText
- ^ 'Question: ', self participantMenu currentQuestionIndex,
- ' / ', self participantMenu poll pollDraft questionList size
\ No newline at end of file
+ ^ 'Question: ', self participantMenu currentQuestionIndex, ' / ', self participantMenu poll pollDraft questionList size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/setUp.st
index 003ae13a..ef42bae4 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/setUp.st
@@ -1,6 +1,6 @@
running
setUp
-
+
super setUp.
self participantMenu: (LQParticipantMenu new
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/tearDown.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/tearDown.st
index e089fc55..95431108 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/tearDown.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/tearDown.st
@@ -1,6 +1,8 @@
running
tearDown
-
- LQParticipantMenu answeredPollIds remove: self participantMenu poll id ifAbsent: [].
+
+ LQParticipantMenu answeredPollIds
+ remove: self participantMenu poll id
+ ifAbsent: [].
self participantMenu destroy.
super tearDown
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonCurrentQuestionIndex.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonCurrentQuestionIndex.st
index 5bb59135..a69241d4 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonCurrentQuestionIndex.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonCurrentQuestionIndex.st
@@ -2,7 +2,6 @@ testing
testNextButtonCurrentQuestionIndex
| indexBefore indexAfter |
-
indexBefore := 1.
indexAfter := 2.
self participantMenu currentQuestionIndex: indexBefore.
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabel.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabel.st
index b7b9c476..f3d37ef0 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabel.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabel.st
@@ -1,10 +1,9 @@
testing
testNextButtonLabel
-
- self participantMenu currentQuestionIndex: 1.
- 1 to: (self participantMenu poll pollDraft questionList size) - 1 do:
- [:i |
- self assert: self participantMenu nextButtonLabel equals: 'Next'.
- self participantMenu nextQuestion.].
+ self participantMenu currentQuestionIndex: 1.
+ 1 to: self participantMenu poll pollDraft questionList size - 1 do: [:i |
+ self assert: self participantMenu nextButtonLabel equals: 'Next'.
+ self participantMenu nextQuestion].
+
self assert: self participantMenu nextButtonLabel equals: 'Send Answers'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabelOnLastQuestion.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabelOnLastQuestion.st
index b43c969c..de4ba2a4 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabelOnLastQuestion.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonLabelOnLastQuestion.st
@@ -1,5 +1,5 @@
testing
testNextButtonLabelOnLastQuestion
-
+
self participantMenu currentQuestionIndex: self participantMenu poll pollDraft questionList size.
self assert: self participantMenu nextButtonLabel equals: 'Send Answers'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonSendAnswerOnLastIndex.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonSendAnswerOnLastIndex.st
index 42027ae6..8fa03c54 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonSendAnswerOnLastIndex.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testNextButtonSendAnswerOnLastIndex.st
@@ -2,7 +2,6 @@ testing
testNextButtonSendAnswerOnLastIndex
| startMenu |
-
self participantMenu currentQuestionIndex: self participantMenu poll pollDraft questionList size.
startMenu := self participantMenu nextQuestionOrSend.
self assert: (startMenu model isKindOf: LQStartMenu).
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButton.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButton.st
index 97fc5df8..0c4a1b36 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButton.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButton.st
@@ -1,9 +1,8 @@
testing
testPreviousButton
-
- self participantMenu currentQuestionIndex: (self participantMenu poll pollDraft questionList size).
+
+ self participantMenu currentQuestionIndex: self participantMenu poll pollDraft questionList size.
self assert: self participantMenu previousButtonEnabled equals: true.
- self participantMenu poll pollDraft questionList do:
- [:i |
- self participantMenu nextQuestion.
- self assert: self participantMenu previousButtonEnabled equals: true.]
\ No newline at end of file
+ self participantMenu poll pollDraft questionList do: [:i |
+ self participantMenu nextQuestion.
+ self assert: self participantMenu previousButtonEnabled equals: true]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonCurrentQuestionIndex.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonCurrentQuestionIndex.st
index d8183944..852de408 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonCurrentQuestionIndex.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonCurrentQuestionIndex.st
@@ -2,7 +2,6 @@ testing
testPreviousButtonCurrentQuestionIndex
| indexBefore indexAfter |
-
indexBefore := 2.
indexAfter := 1.
self participantMenu currentQuestionIndex: indexBefore.
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonDisabledOnFirstQuestion.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonDisabledOnFirstQuestion.st
index 7bacf51c..07644d7e 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonDisabledOnFirstQuestion.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonDisabledOnFirstQuestion.st
@@ -1,5 +1,5 @@
testing
testPreviousButtonDisabledOnFirstQuestion
-
+
self participantMenu currentQuestionIndex: 1.
self deny: self participantMenu previousButtonEnabled
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabled.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabled.st
index b90aa64f..48c0f90c 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabled.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabled.st
@@ -1,10 +1,9 @@
testing
testPreviousButtonEnabled
-
+
self participantMenu currentQuestionIndex: 1.
self assert: self participantMenu previousButtonEnabled equals: false.
- self participantMenu poll pollDraft questionList do:
- [:i |
- self participantMenu nextQuestion.
- self assert: self participantMenu previousButtonEnabled equals: true.]
\ No newline at end of file
+ self participantMenu poll pollDraft questionList do: [:i |
+ self participantMenu nextQuestion.
+ self assert: self participantMenu previousButtonEnabled equals: true]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabledOnSecondQuestion.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabledOnSecondQuestion.st
index ce4bf54d..f83e79bd 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabledOnSecondQuestion.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testPreviousButtonEnabledOnSecondQuestion.st
@@ -1,6 +1,6 @@
testing
testPreviousButtonEnabledOnSecondQuestion
-
+
self participantMenu currentQuestionIndex: 1.
self participantMenu nextQuestionOrSend.
self assert: self participantMenu previousButtonEnabled
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testQuestionCounterIndex.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testQuestionCounterIndex.st
index ead3d2fb..ea844229 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testQuestionCounterIndex.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testQuestionCounterIndex.st
@@ -1,6 +1,6 @@
testing
testQuestionCounterIndex
-
+
self participantMenu currentQuestionIndex: 1.
self assert: self participantMenu questionCounterText equals: self expectedQuestionCounterText.
self participantMenu nextQuestionOrSend.
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testSendAnswer.st b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testSendAnswer.st
index d8ff8435..ccd294f8 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testSendAnswer.st
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/instance/testSendAnswer.st
@@ -2,7 +2,6 @@ testing
testSendAnswer
| startMenu answerSet |
-
startMenu := self participantMenu sendAnswer.
answerSet := (LQRemotePollRepoServer pollRepo at: self poll id) answerSets first.
diff --git a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/methodProperties.json
index 26cd4f37..30c97def 100644
--- a/packages/Liquid-Tests.package/LQParticipantMenuTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQParticipantMenuTests.class/methodProperties.json
@@ -2,20 +2,20 @@
"class" : {
},
"instance" : {
- "createParticipantMenuwith:and:" : "bn 8/2/2022 17:58",
- "expectedQuestionCounterText" : "JT 8/4/2022 22:13",
+ "createParticipantMenuwith:and:" : "FLST 7/12/2024 15:55",
+ "expectedQuestionCounterText" : "FLST 7/12/2024 15:55",
"participantMenu" : "bn 8/2/2022 17:56",
"participantMenu:" : "bn 8/2/2022 17:58",
- "setUp" : "ms 8/5/2022 20:38",
- "tearDown" : "bn 8/2/2022 18:01",
- "testNextButtonCurrentQuestionIndex" : "ms 8/5/2022 16:30",
- "testNextButtonLabel" : "bn 8/2/2022 18:01",
- "testNextButtonLabelOnLastQuestion" : "bn 8/2/2022 18:01",
- "testNextButtonSendAnswerOnLastIndex" : "bn 8/2/2022 18:01",
- "testPreviousButton" : "JT 8/2/2022 19:49",
- "testPreviousButtonCurrentQuestionIndex" : "ms 8/5/2022 16:30",
- "testPreviousButtonDisabledOnFirstQuestion" : "bn 8/2/2022 18:01",
- "testPreviousButtonEnabled" : "JT 8/2/2022 19:50",
- "testPreviousButtonEnabledOnSecondQuestion" : "bn 8/2/2022 18:02",
- "testQuestionCounterIndex" : "JT 8/4/2022 22:13",
- "testSendAnswer" : "ms 8/5/2022 20:48" } }
+ "setUp" : "FLST 7/12/2024 15:55",
+ "tearDown" : "FLST 7/12/2024 15:55",
+ "testNextButtonCurrentQuestionIndex" : "FLST 7/12/2024 15:55",
+ "testNextButtonLabel" : "FLST 7/12/2024 15:55",
+ "testNextButtonLabelOnLastQuestion" : "FLST 7/12/2024 15:55",
+ "testNextButtonSendAnswerOnLastIndex" : "FLST 7/12/2024 15:55",
+ "testPreviousButton" : "FLST 7/12/2024 15:55",
+ "testPreviousButtonCurrentQuestionIndex" : "FLST 7/12/2024 15:55",
+ "testPreviousButtonDisabledOnFirstQuestion" : "FLST 7/12/2024 15:55",
+ "testPreviousButtonEnabled" : "FLST 7/12/2024 15:55",
+ "testPreviousButtonEnabledOnSecondQuestion" : "FLST 7/12/2024 15:55",
+ "testQuestionCounterIndex" : "FLST 7/12/2024 15:55",
+ "testSendAnswer" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPasswordGuardTest.class/instance/testPasswordGuard.st b/packages/Liquid-Tests.package/LQPasswordGuardTest.class/instance/testPasswordGuard.st
index 18d5eae4..46924f72 100644
--- a/packages/Liquid-Tests.package/LQPasswordGuardTest.class/instance/testPasswordGuard.st
+++ b/packages/Liquid-Tests.package/LQPasswordGuardTest.class/instance/testPasswordGuard.st
@@ -2,7 +2,6 @@ testing
testPasswordGuard
| someBlock guard |
-
someBlock := [Number one].
guard := LQPasswordGuard newWithPassword: 'pikachu'.
self assert: (guard isValid: 'pikachu').
diff --git a/packages/Liquid-Tests.package/LQPasswordGuardTest.class/methodProperties.json b/packages/Liquid-Tests.package/LQPasswordGuardTest.class/methodProperties.json
index caa2d87c..a3265fd4 100644
--- a/packages/Liquid-Tests.package/LQPasswordGuardTest.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQPasswordGuardTest.class/methodProperties.json
@@ -2,4 +2,4 @@
"class" : {
},
"instance" : {
- "testPasswordGuard" : "ms 8/5/2022 16:35" } }
+ "testPasswordGuard" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexSetNormally.st b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexSetNormally.st
index 9582b389..34dd5fd0 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexSetNormally.st
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexSetNormally.st
@@ -2,7 +2,6 @@ testing
testIndexSetNormally
| index |
-
index := 123.
self pollDraftBuilder setIndex: index.
self assert: self pollDraftBuilder getIndex equals: index
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexViaAddQuestion.st b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexViaAddQuestion.st
index ec8a8bff..49904971 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexViaAddQuestion.st
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testIndexViaAddQuestion.st
@@ -2,10 +2,10 @@ testing
testIndexViaAddQuestion
| indexBefore indexAfter |
-
- indexBefore := 2.
- indexAfter := 3.
+ indexBefore := 1.
+ indexAfter := 2.
self pollDraftBuilder addMultiChoiceQuestion.
self assert: self pollDraftBuilder getIndex equals: indexBefore.
self pollDraftBuilder addMultiChoiceQuestion.
+
self assert: self pollDraftBuilder getIndex equals: indexAfter
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionBuilderList.st b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionBuilderList.st
index 51f81ca3..d9a491af 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionBuilderList.st
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionBuilderList.st
@@ -4,7 +4,7 @@ testQuestionBuilderList
| b1 b2 b3 expectedSize |
b1 := LQMultiChoiceQuestionBuilder new.
b2 := LQMultiChoiceQuestionBuilder new.
- b3 := LQMultiChoiceQuestionBuilder new.
+ b3 := LQPriorityQuestionBuilder new.
expectedSize := 2.
self pollDraftBuilder questionBuilders: {b1} asOrderedCollection.
self pollDraftBuilder addQuestionBuilder: b2.
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionList.st b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionList.st
index fd06c643..b3c64b09 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionList.st
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testQuestionList.st
@@ -2,10 +2,10 @@ testing
testQuestionList
| sizeBefore sizeAfter |
-
- sizeBefore := 1.
+ sizeBefore := 0.
sizeAfter := 2.
self assert: self pollDraftBuilder list size equals: sizeBefore.
self pollDraftBuilder addMultiChoiceQuestion.
+ self pollDraftBuilder addPriorityQuestion.
self assert: self pollDraftBuilder list size equals: sizeAfter.
- self pollDraftBuilder list do: [:question | self assert: (question isKindOf: LQMultiChoiceQuestion)]
\ No newline at end of file
+ self pollDraftBuilder list do: [:question | self assert: (question isKindOf: LQMultiChoiceQuestion orOf: LQPriorityQuestion)]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testRandomIDisUnique.st b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testRandomIDisUnique.st
index dffc5518..a5c65ca6 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testRandomIDisUnique.st
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testRandomIDisUnique.st
@@ -1,4 +1,6 @@
testing
testRandomIDisUnique
- self assert: false equals: (self pollDraftBuilder generateRandomID == self pollDraftBuilder generateRandomID)
\ No newline at end of file
+ self
+ assert: false
+ equals: self pollDraftBuilder generateRandomID = self pollDraftBuilder generateRandomID
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
index 2d1fa5c9..0054a1a1 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
@@ -3,4 +3,8 @@ testToolbuilderMethodsReturnSpecs
self assert: ((self pollDraftBuilder buildRunPollButtonWith: self builder) isMemberOf: PluggableButtonSpec).
self assert: ((self pollDraftBuilder buildQuestionListWith: self builder) isMemberOf: PluggableListSpec).
- self assert: ((self pollDraftBuilder buildAddMultiChoiceQuestionButtonWith: self builder) isMemberOf: PluggableButtonSpec)
\ No newline at end of file
+ self assert: ((self pollDraftBuilder buildAddMultiChoiceQuestionButtonWith: self builder) isMemberOf: PluggableButtonSpec).
+ self assert: ((self pollDraftBuilder buildAddPriorityQuestionButtonWith: self builder) isMemberOf: PluggableButtonSpec).
+ self assert: ((self pollDraftBuilder buildRemoveQuestionButtonWith: self builder) isMemberOf: PluggableButtonSpec).
+
+ self assert: ((self pollDraftBuilder buildSaveDraftButtonWith: self builder) isMemberOf: PluggableButtonSpec)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/methodProperties.json
index 9c944e13..3ae80a6c 100644
--- a/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQPollDraftBuilderTests.class/methodProperties.json
@@ -8,10 +8,10 @@
"pollDraftBuilder:" : "bn 8/4/2022 19:25",
"setUp" : "ape 7/23/2022 10:01",
"testBuildWithReturnsWindowMorph" : "bn 6/25/2022 21:32",
- "testIndexSetNormally" : "ms 8/5/2022 16:35",
- "testIndexViaAddQuestion" : "Anton Eichstädt 6/5/2024 17:31",
+ "testIndexSetNormally" : "FLST 7/12/2024 15:55",
+ "testIndexViaAddQuestion" : "FLST 7/12/2024 15:55",
"testPollTitle" : "ape 7/23/2022 10:03",
- "testQuestionBuilderList" : "ms 8/5/2022 16:38",
- "testQuestionList" : "Anton Eichstädt 6/5/2024 17:31",
- "testRandomIDisUnique" : "bn 6/25/2022 22:00",
- "testToolbuilderMethodsReturnSpecs" : "Anton Eichstädt 6/5/2024 17:30" } }
+ "testQuestionBuilderList" : "FLST 7/12/2024 15:55",
+ "testQuestionList" : "FLST 7/12/2024 15:55",
+ "testRandomIDisUnique" : "FLST 7/12/2024 15:55",
+ "testToolbuilderMethodsReturnSpecs" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionOne.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionOne.st
index aaf90b7e..4f4498fb 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionOne.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionOne.st
@@ -1,7 +1,12 @@
helper methods
createQuestionOne
- ^ LQMultiChoiceQuestion new choiceList: {
- LQChoice newFrom: 'Mary had a little lamb '
- . LQChoice newFrom: 'bidabababadap '
- . LQChoice newFrom: 'a b c d e f g h i j k l' } asOrderedCollection
\ No newline at end of file
+ | question |
+ question := LQMultiChoiceQuestion new.
+ question
+ title: 'Q1';
+ choiceList: {
+ LQChoice newFrom: 'Mary had a little lamb '.
+ LQChoice newFrom: 'bidabababadap '.
+ LQChoice newFrom: 'a b c d e f g h i j k l'} asOrderedCollection.
+ ^ question
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionThree.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionThree.st
index 98f0187c..5f103d10 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionThree.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionThree.st
@@ -1,7 +1,12 @@
helper methods
createQuestionThree
- ^ LQMultiChoiceQuestion new choiceList: {
- LQChoice newFrom: 'Allein der Vortrag macht des Redners Glück; Ich fühl es wohl noch bin ich weit zurück. '
- . LQChoice newFrom: 'Selbst der Taxifahrer kennt mich' .
- LQChoice newFrom: ' aaa ' } asOrderedCollection
+ | question |
+ question := LQMultiChoiceQuestion new.
+ question
+ title: 'Q2';
+ choiceList: {
+ LQChoice newFrom: 'Allein der Vortrag macht des Redners Glück; Ich fühl es wohl noch bin ich weit zurück. '.
+ LQChoice newFrom: 'Selbst der Taxifahrer kennt mich'.
+ LQChoice newFrom: ' aaa '} asOrderedCollection.
+ ^ question
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionTwo.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionTwo.st
index 9e26c4a7..39416f66 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionTwo.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createQuestionTwo.st
@@ -1,7 +1,12 @@
helper methods
createQuestionTwo
- ^ LQMultiChoiceQuestion new choiceList: {
- LQChoice newFrom: 'Und ihre vorgeschriebne Reise Vollendet sie mit Donnergang '
- . LQChoice newFrom: 'wapdapdabadibadawapdap '
- . LQChoice newFrom: 'aaaa bbbbbbb aa aa sssss ' } asOrderedCollection
+ | question |
+ question := LQMultiChoiceQuestion new.
+ question
+ title: 'Q3';
+ choiceList: {
+ LQChoice newFrom: 'Und ihre vorgeschriebne Reise Vollendet sie mit Donnergang '.
+ LQChoice newFrom: 'wapdapdabadibadawapdap '.
+ LQChoice newFrom: 'aaaa bbbbbbb aa aa sssss '} asOrderedCollection.
+ ^ question
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionOne.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionOne.st
index 8490deca..f82a9327 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionOne.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionOne.st
@@ -1,7 +1,4 @@
helper methods
createSolutionOne
- ^ {
- 'Mary had a little lamb' .
- 'bidabababadap' .
- 'a b c d e f g h i j k l' } asOrderedCollection
\ No newline at end of file
+ ^ {'Mary had a little lamb'. 'bidabababadap'. 'a b c d e f g h i j k l'} asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionThree.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionThree.st
index 6ef5d092..35f6367e 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionThree.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionThree.st
@@ -2,6 +2,6 @@ helper methods
createSolutionThree
^ {
- 'Allein der Vortrag macht des Redners Glück; Ich fühl es wohl noch bin ich weit zurück.'
- . 'Selbst der Taxifahrer kennt mich'
- . 'aaa' } asOrderedCollection
\ No newline at end of file
+ 'Allein der Vortrag macht des Redners Glück; Ich fühl es wohl noch bin ich weit zurück.'.
+ 'Selbst der Taxifahrer kennt mich'.
+ 'aaa'} asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionTwo.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionTwo.st
index 1bcb73cb..fbb38a9d 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionTwo.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/createSolutionTwo.st
@@ -2,6 +2,6 @@ helper methods
createSolutionTwo
^ {
- 'Und ihre vorgeschriebne Reise Vollendet sie mit Donnergang' .
- 'wapdapdabadibadawapdap' .
- 'aaaa bbbbbbb aa aa sssss' } asOrderedCollection
\ No newline at end of file
+ 'Und ihre vorgeschriebne Reise Vollendet sie mit Donnergang'.
+ 'wapdapdabadibadawapdap'.
+ 'aaaa bbbbbbb aa aa sssss'} asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testAddPrioQuestion.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testAddPrioQuestion.st
new file mode 100644
index 00000000..04a03ae4
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testAddPrioQuestion.st
@@ -0,0 +1,10 @@
+testing
+testAddPrioQuestion
+
+ | question |
+ self assert: self pollDraft questionList isEmpty.
+ question := LQPriorityQuestion new.
+ question title: 'An interesting question!'.
+ self pollDraft addQuestion: question.
+ self assert: self pollDraft questionList size equals: 1.
+ self assert: self pollDraft questionList first title equals: 'An interesting question!'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithValidPollDraft.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithValidPollDraft.st
new file mode 100644
index 00000000..939c36a1
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithValidPollDraft.st
@@ -0,0 +1,5 @@
+testing
+testIsValidWithValidPollDraft
+
+ self pollDraft questionList: {self createQuestionOne. self createQuestionTwo. self createQuestionThree}.
+ self assert: self pollDraft isValid
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutChoiceList.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutChoiceList.st
new file mode 100644
index 00000000..b39bf0d1
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutChoiceList.st
@@ -0,0 +1,7 @@
+testing
+testIsValidWithoutChoiceList
+
+ | invalidQuestion |
+ invalidQuestion := self createQuestionOne choiceList: {}.
+ self pollDraft questionList: {invalidQuestion. self createQuestionTwo. self createQuestionThree}.
+ self assert: self pollDraft isValid not
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutQuestionList.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutQuestionList.st
new file mode 100644
index 00000000..e4e6925a
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutQuestionList.st
@@ -0,0 +1,5 @@
+testing
+testIsValidWithoutQuestionList
+
+ self assert: self pollDraft questionList isEmpty.
+ self assert: self pollDraft isValid not
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutTitle.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutTitle.st
new file mode 100644
index 00000000..8e77da79
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testIsValidWithoutTitle.st
@@ -0,0 +1,7 @@
+testing
+testIsValidWithoutTitle
+
+ | invalidQuestion |
+ invalidQuestion := self createQuestionOne title: nil.
+ self pollDraft questionList: {invalidQuestion. self createQuestionTwo. self createQuestionThree}.
+ self assert: self pollDraft isValid not
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testRemoveQuestion.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testRemoveQuestion.st
index aa739f1e..91d63d2c 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testRemoveQuestion.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testRemoveQuestion.st
@@ -1,8 +1,9 @@
testing
testRemoveQuestion
+
| question1 question2 |
self assert: self pollDraft questionList isEmpty.
- question1 := LQMultiChoiceQuestion new.
+ question1 := LQMultiChoiceQuestion new.
question1 title: 'An interesting first question!'.
self pollDraft addQuestion: question1.
question2 := LQMultiChoiceQuestion new.
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testWhitespaceRemoving.st b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testWhitespaceRemoving.st
index c3019041..ffac33cc 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testWhitespaceRemoving.st
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/instance/testWhitespaceRemoving.st
@@ -1,12 +1,11 @@
testing
testWhitespaceRemoving
-
+
| q1 q2 q3 temporaryPollDraft s1 s2 s3 |
-
q1 := self createQuestionOne.
q2 := self createQuestionTwo.
q3 := self createQuestionThree.
- temporaryPollDraft := LQPollDraft new questionList: {q1 . q2 . q3}.
+ temporaryPollDraft := LQPollDraft new questionList: {q1. q2. q3}.
s1 := self createSolutionOne.
s2 := self createSolutionTwo.
s3 := self createSolutionThree.
diff --git a/packages/Liquid-Tests.package/LQPollDraftTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQPollDraftTests.class/methodProperties.json
index 65a45631..85118aae 100644
--- a/packages/Liquid-Tests.package/LQPollDraftTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQPollDraftTests.class/methodProperties.json
@@ -2,16 +2,21 @@
"class" : {
},
"instance" : {
- "createQuestionOne" : "JT 8/2/2022 18:01",
- "createQuestionThree" : "JT 8/2/2022 18:01",
- "createQuestionTwo" : "JT 8/4/2022 22:17",
- "createSolutionOne" : "JT 8/2/2022 18:01",
- "createSolutionThree" : "JT 8/2/2022 18:01",
- "createSolutionTwo" : "JT 8/4/2022 22:17",
+ "createQuestionOne" : "FLST 7/12/2024 15:55",
+ "createQuestionThree" : "FLST 7/12/2024 15:55",
+ "createQuestionTwo" : "FLST 7/12/2024 15:55",
+ "createSolutionOne" : "FLST 7/12/2024 15:55",
+ "createSolutionThree" : "FLST 7/12/2024 15:55",
+ "createSolutionTwo" : "FLST 7/12/2024 15:55",
"pollDraft" : "NM 7/9/2021 16:21",
"pollDraft:" : "NM 7/9/2021 16:21",
"setUp" : "CG 7/30/2021 19:06",
+ "testAddPrioQuestion" : "FLST 7/12/2024 15:55",
"testAddQuestion" : "Ingmar Vogel 5/20/2024 11:07",
+ "testIsValidWithValidPollDraft" : "FLST 7/12/2024 15:55",
+ "testIsValidWithoutChoiceList" : "FLST 7/12/2024 15:55",
+ "testIsValidWithoutQuestionList" : "FLST 7/12/2024 15:55",
+ "testIsValidWithoutTitle" : "FLST 7/12/2024 15:55",
"testPollDraftTitleCanBeSet" : "CG 7/30/2021 19:06",
- "testRemoveQuestion" : "vl 5/27/2024 12:41",
- "testWhitespaceRemoving" : "JT 8/5/2022 18:53" } }
+ "testRemoveQuestion" : "FLST 7/12/2024 15:55",
+ "testWhitespaceRemoving" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1..st
index 4febe713..4e5a0502 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1..st
@@ -1,3 +1,4 @@
accessing
as1: anObject
+
as1 := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1.st
index 3def240c..6d27d9c3 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as1.st
@@ -1,3 +1,4 @@
accessing
as1
+
^ as1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2..st
index 327d1c6a..cbcd5ab9 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2..st
@@ -1,3 +1,4 @@
accessing
as2: anObject
+
as2 := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2.st
index eba9a887..2feb61d2 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/as2.st
@@ -1,3 +1,4 @@
accessing
as2
+
^ as2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildAnswerSets.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildAnswerSets.st
index af0801ad..6628c93b 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildAnswerSets.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildAnswerSets.st
@@ -1,11 +1,13 @@
initialize-release
buildAnswerSets
-
- self as1: (LQAnswerSet newWithAnswers: {
- LQAnswer newWithQuestion: self q1 andVotes: {self q1a1 . self q1a2} .
- LQAnswer newWithQuestion: self q2 andVotes: {self q1a2}
- } for: self poll).
- self as2: (LQAnswerSet newWithAnswers: {
- LQAnswer newWithQuestion: self q1 andVotes: {self q1a1} .
- LQAnswer newWithQuestion: self q2 andVotes: {self q2a1}
- } for: self poll).
\ No newline at end of file
+
+ self as1: (LQAnswerSet
+ newWithAnswers: {
+ LQChoicesAnswer newWithQuestion: self q1 andVotes: {self q1a1. self q1a2}.
+ LQChoicesAnswer newWithQuestion: self q2 andVotes: {self q1a2}}
+ for: self poll).
+ self as2: (LQAnswerSet
+ newWithAnswers: {
+ LQChoicesAnswer newWithQuestion: self q1 andVotes: {self q1a1}.
+ LQChoicesAnswer newWithQuestion: self q2 andVotes: {self q2a1}}
+ for: self poll)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildPoll.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildPoll.st
index 4fd66565..2613c1c0 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildPoll.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildPoll.st
@@ -4,4 +4,4 @@ buildPoll
self poll: (LQPoll newWithPollDraft: LQPollDraft new).
self poll pollDraft questionList
add: self q1;
- add: self q2.
\ No newline at end of file
+ add: self q2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildQuestions.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildQuestions.st
index cfe7e76e..e0fb0b89 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildQuestions.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/buildQuestions.st
@@ -5,5 +5,5 @@ buildQuestions
self q1a2: (LQChoice newFrom: 'Q1A2').
self q2a1: (LQChoice newFrom: 'Q2A1').
self q2a2: (LQChoice newFrom: 'Q2A2').
- self q1: (self createQuestionTitled: 'Question 1' withChoices: {self q1a1 . self q1a2}).
- self q2: (self createQuestionTitled: 'Question 2' withChoices: {self q2a1 . self q2a2}).
\ No newline at end of file
+ self q1: (self createQuestionTitled: 'Question 1' withChoices: {self q1a1. self q1a2}).
+ self q2: (self createQuestionTitled: 'Question 2' withChoices: {self q2a1. self q2a2})
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createAnswerWithQuestion.withVotes..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createAnswerWithQuestion.withVotes..st
index 5247cbff..cdaf4704 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createAnswerWithQuestion.withVotes..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createAnswerWithQuestion.withVotes..st
@@ -1,7 +1,7 @@
helper methods
createAnswerWithQuestion: aQuestion withVotes: anOrderedCollection
- ^ LQAnswer new
- questionId: aQuestion id;
- choicesRanking: anOrderedCollection;
- yourself
\ No newline at end of file
+ ^ LQChoicesAnswer new
+ questionId: aQuestion id;
+ choicesRanking: anOrderedCollection;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createPoll.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createPoll.st
index d4bd7976..3ca82077 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createPoll.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createPoll.st
@@ -2,7 +2,7 @@ helper methods
createPoll
| createdPoll |
- createdPoll := (LQPoll newWithPollDraft: LQPollDraft new).
+ createdPoll := LQPoll newWithPollDraft: LQPollDraft new.
createdPoll pollDraft questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
yourself).
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createQuestionTitled.withChoices..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createQuestionTitled.withChoices..st
index e59e91a0..e0685c22 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createQuestionTitled.withChoices..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createQuestionTitled.withChoices..st
@@ -2,6 +2,6 @@ helper methods
createQuestionTitled: aString withChoices: anOrderedCollection
^ LQMultiChoiceQuestion new
- title: aString;
- choiceList: anOrderedCollection;
- yourself
\ No newline at end of file
+ title: aString;
+ choiceList: anOrderedCollection;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createUserSet.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createUserSet.st
index c6b1a6d8..454903b7 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createUserSet.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/createUserSet.st
@@ -2,12 +2,14 @@ helper methods
createUserSet
^ LQUserSet new
- addUser: (LQUser new firstname: 'erika';
+ addUser: (LQUser new
+ firstname: 'erika';
surname: 'musterfrau';
mail: 'erika.mustermann@hotmail.com';
group: 'group1';
yourself);
- addUser: (LQUser new firstname: 'max';
+ addUser: (LQUser new
+ firstname: 'max';
surname: 'mustermann';
mail: 'max.mustermann@hotmail.com';
group: 'group2';
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll..st
index 5174548d..31df2787 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll..st
@@ -1,3 +1,4 @@
accessing
poll: aPoll
+
poll := aPoll
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll.st
index b75b96c9..c0fab0b1 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/poll.st
@@ -1,3 +1,4 @@
accessing
poll
+
^ poll
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1..st
index 783d4b36..9e3a4994 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1..st
@@ -1,3 +1,4 @@
accessing
q1: aChoiceQuestion
+
q1 := aChoiceQuestion
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1.st
index 985be26d..d57a14d2 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1.st
@@ -1,3 +1,4 @@
accessing
q1
+
^ q1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1..st
index 30b48bcc..d0368fe6 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1..st
@@ -1,3 +1,4 @@
accessing
q1a1: anChoiceAnswer
+
q1a1 := anChoiceAnswer
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1.st
index 76660b5b..70411675 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a1.st
@@ -1,3 +1,4 @@
accessing
q1a1
+
^ q1a1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2..st
index 23a24320..4c464219 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2..st
@@ -1,3 +1,4 @@
accessing
q1a2: anChoiceAnswer
+
q1a2 := anChoiceAnswer
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2.st
index 9c0fa4d6..1690bc30 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q1a2.st
@@ -1,3 +1,4 @@
accessing
q1a2
+
^ q1a2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2..st
index 36c4a380..99cd6003 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2..st
@@ -1,3 +1,4 @@
accessing
q2: aChoiceQuestion
+
q2 := aChoiceQuestion
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2.st
index 1c58927f..1abf5ebe 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2.st
@@ -1,3 +1,4 @@
accessing
q2
+
^ q2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1..st
index a2b59a83..d862ed0a 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1..st
@@ -1,3 +1,4 @@
accessing
q2a1: anChoiceAnswer
+
q2a1 := anChoiceAnswer
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1.st
index e40363f0..821726d8 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a1.st
@@ -1,3 +1,4 @@
accessing
q2a1
+
^ q2a1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2..st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2..st
index 4981090c..0c7d982e 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2..st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2..st
@@ -1,3 +1,4 @@
accessing
q2a2: anChoiceAnswer
+
q2a2 := anChoiceAnswer
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2.st
index e4bad298..b96b856b 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/q2a2.st
@@ -1,3 +1,4 @@
accessing
q2a2
+
^ q2a2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/setUp.st
index b44eded0..2d64e768 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/instance/setUp.st
@@ -1,10 +1,10 @@
running
setUp
-
+
super setUp.
self buildQuestions.
self buildPoll.
self buildAnswerSets.
- self poll startWithId: 'IAmAPoll' ifTaken: [self fail: 'Poll ID already taken'].
\ No newline at end of file
+ self poll startWithId: 'IAmAPoll' ifTaken: [self fail: 'Poll ID already taken']
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/methodProperties.json
index 545a3c92..8fe0df6f 100644
--- a/packages/Liquid-Tests.package/LQPollIntegrationTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQPollIntegrationTests.class/methodProperties.json
@@ -2,29 +2,29 @@
"class" : {
},
"instance" : {
- "as1" : "ms 8/5/2022 20:32",
- "as1:" : "ms 8/5/2022 20:32",
- "as2" : "ms 8/5/2022 20:32",
- "as2:" : "ms 8/5/2022 20:32",
- "buildAnswerSets" : "ms 8/5/2022 20:47",
- "buildPoll" : "ms 8/5/2022 20:35",
- "buildQuestions" : "ms 8/5/2022 20:36",
- "createAnswerWithQuestion:withVotes:" : "bwe 8/5/2022 18:54",
- "createPoll" : "bn 8/5/2022 20:47",
- "createQuestionTitled:withChoices:" : "bwe 8/5/2022 18:55",
- "createUserSet" : "bwe 8/5/2022 18:55",
- "poll" : "ms 8/5/2022 20:32",
- "poll:" : "ms 8/5/2022 20:33",
- "q1" : "ms 8/5/2022 20:32",
- "q1:" : "ms 8/5/2022 20:33",
- "q1a1" : "ms 8/5/2022 20:32",
- "q1a1:" : "ms 8/5/2022 20:33",
- "q1a2" : "ms 8/5/2022 20:32",
- "q1a2:" : "ms 8/5/2022 20:34",
- "q2" : "ms 8/5/2022 20:32",
- "q2:" : "ms 8/5/2022 20:33",
- "q2a1" : "ms 8/5/2022 20:32",
- "q2a1:" : "ms 8/5/2022 20:34",
- "q2a2" : "ms 8/5/2022 20:33",
- "q2a2:" : "ms 8/5/2022 20:34",
- "setUp" : "ms 8/5/2022 20:37" } }
+ "as1" : "FLST 7/12/2024 15:55",
+ "as1:" : "FLST 7/12/2024 15:55",
+ "as2" : "FLST 7/12/2024 15:55",
+ "as2:" : "FLST 7/12/2024 15:55",
+ "buildAnswerSets" : "FLST 7/12/2024 15:55",
+ "buildPoll" : "FLST 7/12/2024 15:55",
+ "buildQuestions" : "FLST 7/12/2024 15:55",
+ "createAnswerWithQuestion:withVotes:" : "FLST 7/12/2024 15:55",
+ "createPoll" : "FLST 7/12/2024 15:55",
+ "createQuestionTitled:withChoices:" : "FLST 7/12/2024 15:55",
+ "createUserSet" : "FLST 7/12/2024 15:55",
+ "poll" : "FLST 7/12/2024 15:55",
+ "poll:" : "FLST 7/12/2024 15:55",
+ "q1" : "FLST 7/12/2024 15:55",
+ "q1:" : "FLST 7/12/2024 15:55",
+ "q1a1" : "FLST 7/12/2024 15:55",
+ "q1a1:" : "FLST 7/12/2024 15:55",
+ "q1a2" : "FLST 7/12/2024 15:55",
+ "q1a2:" : "FLST 7/12/2024 15:55",
+ "q2" : "FLST 7/12/2024 15:55",
+ "q2:" : "FLST 7/12/2024 15:55",
+ "q2a1" : "FLST 7/12/2024 15:55",
+ "q2a1:" : "FLST 7/12/2024 15:55",
+ "q2a2" : "FLST 7/12/2024 15:55",
+ "q2a2:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testAnswerSetPollID.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testAnswerSetPollID.st
index f8afe0bc..2313241a 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testAnswerSetPollID.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testAnswerSetPollID.st
@@ -2,9 +2,7 @@ testing
testAnswerSetPollID
| participantMenu |
-
participantMenu := LQParticipantMenu new importPollWithId: self poll id.
-
- self assert: participantMenu isNil not.
+ self assert: participantMenu notNil.
self assert: participantMenu answerSet pollId equals: self poll id
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testCSVExport.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testCSVExport.st
index 807eda1b..38a98e17 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testCSVExport.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testCSVExport.st
@@ -1,11 +1,10 @@
testing
testCSVExport
+
| filePath fileStream buffer match |
self poll addAnswerSet: self as1.
- filePath := LQPoll pathToExport , FileDirectory default pathNameDelimiter , self poll id , '.csv'.
- FileDirectory default
- deleteFileNamed: filePath
- ifAbsent: [].
+ filePath := LQPoll pathToExport, FileDirectory default pathNameDelimiter, self poll id, '.csv'.
+ FileDirectory default deleteFileNamed: filePath ifAbsent: [].
self poll exportCSV.
fileStream := FileStream fileNamed: filePath.
buffer := fileStream contents.
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testClosePoll.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testClosePoll.st
index aa6a2556..14be893d 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testClosePoll.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testClosePoll.st
@@ -1,12 +1,11 @@
testing
testClosePoll
- self poll addAnswerSet: self as1;
- closeWithPassword: (LQPasswordManager default
- findPasswordFor: self poll id
- ifAbsent: [self fail: 'expected password to exist']);
- addAnswerSet: self as2.
-
- LQResultsView newWithPoll: self poll.
+ self poll
+ addAnswerSet: self as1;
+ closeWithPassword: (LQPasswordManager default
+ findPasswordFor: self poll id
+ ifAbsent: [self fail: 'expected password to exist']);
+ addAnswerSet: self as2.
self assert: self poll isOpen equals: false.
self assert: self poll answerSets size equals: 1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testIDsAreUUIDsToPreventCollisions.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testIDsAreUUIDsToPreventCollisions.st
index 25fa9912..3695b99e 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testIDsAreUUIDsToPreventCollisions.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testIDsAreUUIDsToPreventCollisions.st
@@ -2,11 +2,5 @@ testing
testIDsAreUUIDsToPreventCollisions
| allIDs |
-
- allIDs := { LQAnswer new id.
- LQAnswerSet new id.
- LQPoll new id.
- LQMultiChoiceQuestion new id.
- LQUserSet new id }.
- allIDs do: [:id |
- self assert: (UUID fromString: id) asString equals: id]
\ No newline at end of file
+ allIDs := {LQAnswer new id. LQAnswerSet new id. LQPoll new id. LQMultiChoiceQuestion new id. LQUserSet new id}.
+ allIDs do: [:id | self assert: (UUID fromString: id) asString equals: id]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSet.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSet.st
index 83dd53a0..f785d60b 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSet.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSet.st
@@ -2,8 +2,7 @@ testing
testMyUserSet
| userSet |
-
- userSet := self createUserSet.
+ userSet := self createUserSet.
userSet addToRepo.
self poll userSetID: userSet id.
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSetWithUserSetNotInRepo.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSetWithUserSetNotInRepo.st
index bffa78f2..71036511 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSetWithUserSetNotInRepo.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testMyUserSetWithUserSetNotInRepo.st
@@ -2,8 +2,7 @@ testing
testMyUserSetWithUserSetNotInRepo
| userSet |
-
- userSet := self createUserSet.
+ userSet := self createUserSet.
self poll userSetID: userSet id.
self should: [self poll myUserSet id] raise: KeyNotFound
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationFalse.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationFalse.st
index 37609995..d2b2a0b7 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationFalse.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationFalse.st
@@ -2,9 +2,7 @@ testing
testRequiresAuthenticationFalse
| userSet |
-
- userSet := self createUserSet.
+ userSet := self createUserSet.
self poll userSetID: userSet id.
- self assert: self poll requiresAuthentication not
-
\ No newline at end of file
+ self assert: self poll requiresAuthentication not
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationTrue.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationTrue.st
index 611d4d8a..fa5effd4 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationTrue.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testRequiresAuthenticationTrue.st
@@ -2,8 +2,7 @@ testing
testRequiresAuthenticationTrue
| userSet |
-
- userSet := self createUserSet.
+ userSet := self createUserSet.
userSet addToRepo.
self poll userSetID: userSet id.
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testStartTime.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testStartTime.st
index 16ed5b42..4abfd44d 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testStartTime.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testStartTime.st
@@ -2,12 +2,11 @@ testing
testStartTime
| testPoll timeBeforeStart timeAfterStart |
-
timeBeforeStart := DateAndTime now.
(Delay forMilliseconds: 1) wait.
testPoll := LQPoll newWithPollDraft: LQPollDraft new.
testPoll startWithId: 'RandomPollId' ifTaken: [self fail: 'Poll ID already taken'].
(Delay forMilliseconds: 1) wait.
timeAfterStart := DateAndTime now.
-
+
self assert: (testPoll startTime between: timeBeforeStart and: timeAfterStart)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/instance/testVisualizationDataCollection.st b/packages/Liquid-Tests.package/LQPollTests.class/instance/testVisualizationDataCollection.st
index 55dc3ec3..6e0673c7 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/instance/testVisualizationDataCollection.st
+++ b/packages/Liquid-Tests.package/LQPollTests.class/instance/testVisualizationDataCollection.st
@@ -6,6 +6,7 @@ testVisualizationDataCollection
addAnswerSet: self as2.
self assert: (self poll getVotedChoicesPerChoiceFor: self q1) equals: {2. 1} asArray.
- self assert: (self poll getChoiceIdentifiersFor: self q1) equals: {1 . 2} asArray.
- self assert: (self poll getChoiceNamesFor: self q1)
- equals: {self q1a1 description. self q1a2 description} asArray
\ No newline at end of file
+ self assert: (self poll getChoiceIdentifiersFor: self q1) equals: {1. 2} asArray.
+ self
+ assert: (self poll getChoiceNamesFor: self q1)
+ equals: {self q1a1 description. self q1a2 description} asArray
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPollTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQPollTests.class/methodProperties.json
index 083a7a05..de9b4dff 100644
--- a/packages/Liquid-Tests.package/LQPollTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQPollTests.class/methodProperties.json
@@ -2,14 +2,14 @@
"class" : {
},
"instance" : {
- "testAnswerSetPollID" : "ms 8/5/2022 20:38",
- "testCSVExport" : "leli 6/5/2024 17:01",
- "testClosePoll" : "ms 8/5/2022 20:38",
- "testIDsAreUUIDsToPreventCollisions" : "JT 8/4/2022 23:31",
- "testMyUserSet" : "ms 8/5/2022 20:39",
- "testMyUserSetWithUserSetNotInRepo" : "ms 8/5/2022 20:39",
- "testRequiresAuthenticationFalse" : "ms 8/5/2022 20:39",
- "testRequiresAuthenticationTrue" : "ms 8/5/2022 20:39",
- "testStartTime" : "bn 8/5/2022 20:45",
+ "testAnswerSetPollID" : "FLST 7/12/2024 15:55",
+ "testCSVExport" : "FLST 7/12/2024 15:55",
+ "testClosePoll" : "FLST 7/12/2024 15:55",
+ "testIDsAreUUIDsToPreventCollisions" : "FLST 7/12/2024 15:55",
+ "testMyUserSet" : "FLST 7/12/2024 15:55",
+ "testMyUserSetWithUserSetNotInRepo" : "FLST 7/12/2024 15:55",
+ "testRequiresAuthenticationFalse" : "FLST 7/12/2024 15:55",
+ "testRequiresAuthenticationTrue" : "FLST 7/12/2024 15:55",
+ "testStartTime" : "FLST 7/12/2024 15:55",
"testUserSetId" : "ms 8/5/2022 20:39",
- "testVisualizationDataCollection" : "ms 8/5/2022 20:39" } }
+ "testVisualizationDataCollection" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/README.md b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/builder..st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/builder..st
new file mode 100644
index 00000000..b484400e
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/builder..st
@@ -0,0 +1,4 @@
+accessing
+builder: anObject
+
+ builder := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/builder.st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/builder.st
new file mode 100644
index 00000000..dfc206cd
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/builder.st
@@ -0,0 +1,4 @@
+accessing
+builder
+
+ ^ builder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/questionBuilder..st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/questionBuilder..st
new file mode 100644
index 00000000..0d57ec8c
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/questionBuilder..st
@@ -0,0 +1,4 @@
+accessing
+questionBuilder: anObject
+
+ questionBuilder := anObject
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/questionBuilder.st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/questionBuilder.st
new file mode 100644
index 00000000..d65f7ff5
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/questionBuilder.st
@@ -0,0 +1,4 @@
+accessing
+questionBuilder
+
+ ^ questionBuilder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/setUp.st
new file mode 100644
index 00000000..14449c84
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/setUp.st
@@ -0,0 +1,7 @@
+running
+setUp
+
+ super setUp.
+ self builder: ToolBuilder default.
+ self questionBuilder: LQPriorityQuestionBuilder new.
+ self questionBuilder question: LQPriorityQuestion new
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
new file mode 100644
index 00000000..53bea35b
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testBuildWithReturnsPannelMorph.st
@@ -0,0 +1,4 @@
+testing
+testBuildWithReturnsPannelMorph
+
+ self assert: ((self questionBuilder buildWith: self builder) isMemberOf: PluggablePanelMorph)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testTitelChange.st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testTitelChange.st
new file mode 100644
index 00000000..77b455c3
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testTitelChange.st
@@ -0,0 +1,6 @@
+testing
+testTitelChange
+
+ self questionBuilder title: 'Prio' asText.
+ self assert: self questionBuilder title equals: 'Prio'.
+ self assert: self questionBuilder question title equals: 'Prio'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
new file mode 100644
index 00000000..8be0b03a
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/instance/testToolbuilderMethodsReturnSpecs.st
@@ -0,0 +1,5 @@
+testing
+testToolbuilderMethodsReturnSpecs
+
+ self assert: ((self questionBuilder buildTitleInputWith: self builder) isMemberOf: PluggableTextSpec).
+ self assert: ((self questionBuilder buildChoicesInputWith: self builder) isMemberOf: PluggableTextSpec)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/methodProperties.json
new file mode 100644
index 00000000..fe994fa1
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/methodProperties.json
@@ -0,0 +1,12 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "builder" : "FLST 7/12/2024 15:55",
+ "builder:" : "FLST 7/12/2024 15:55",
+ "questionBuilder" : "FLST 7/12/2024 15:55",
+ "questionBuilder:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testBuildWithReturnsPannelMorph" : "FLST 7/12/2024 15:55",
+ "testTitelChange" : "FLST 7/12/2024 15:55",
+ "testToolbuilderMethodsReturnSpecs" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/properties.json b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/properties.json
new file mode 100644
index 00000000..9df04caa
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionBuilderTests.class/properties.json
@@ -0,0 +1,15 @@
+{
+ "category" : "Liquid-Tests",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "builder",
+ "questionBuilder" ],
+ "name" : "LQPriorityQuestionBuilderTests",
+ "pools" : [
+ ],
+ "super" : "LQTestCase",
+ "type" : "normal" }
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/README.md b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/question..st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/question..st
new file mode 100644
index 00000000..f28c5ec9
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/question..st
@@ -0,0 +1,4 @@
+accessing
+question: anObject
+
+ question := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/question.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/question.st
similarity index 100%
rename from packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/question.st
rename to packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/question.st
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/setUp.st
new file mode 100644
index 00000000..c1429c12
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/setUp.st
@@ -0,0 +1,5 @@
+running
+setUp
+
+ super setUp.
+ self question: LQPriorityQuestion new
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAddChoice.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAddChoice.st
new file mode 100644
index 00000000..bc3de3a1
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAddChoice.st
@@ -0,0 +1,7 @@
+testing
+testAddChoice
+
+ self assert: self question choiceDescriptions isEmpty.
+ self question addChoice: (LQChoice newFrom: 'TestChoice').
+ self assert: self question choiceDescriptions size equals: 1.
+ self assert: self question choiceDescriptions first equals: 'TestChoice'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAsStringNoTitle.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAsStringNoTitle.st
new file mode 100644
index 00000000..78d221bf
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAsStringNoTitle.st
@@ -0,0 +1,4 @@
+testing
+testAsStringNoTitle
+
+ self assert: self question asString equals: 'Untitled Question'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAsStringWithTitle.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAsStringWithTitle.st
new file mode 100644
index 00000000..596305a0
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testAsStringWithTitle.st
@@ -0,0 +1,5 @@
+testing
+testAsStringWithTitle
+
+ self question title: 'PrioQuestion'.
+ self assert: self question asString equals: 'PrioQuestion'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testBuildEmptyChoicesAnswer.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testBuildEmptyChoicesAnswer.st
new file mode 100644
index 00000000..623c7806
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testBuildEmptyChoicesAnswer.st
@@ -0,0 +1,4 @@
+testing
+testBuildEmptyChoicesAnswer
+
+ self assert: (self question buildEmptyAnswer isKindOf: LQAnswer)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testCorrectQuestionType.st b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testCorrectQuestionType.st
new file mode 100644
index 00000000..472270d3
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/instance/testCorrectQuestionType.st
@@ -0,0 +1,4 @@
+testing
+testCorrectQuestionType
+
+ self assert: self question isPriorityQuestion
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/methodProperties.json
new file mode 100644
index 00000000..f4df5069
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/methodProperties.json
@@ -0,0 +1,12 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "question" : "FLST 7/12/2024 15:55",
+ "question:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testAddChoice" : "FLST 7/12/2024 15:55",
+ "testAsStringNoTitle" : "FLST 7/12/2024 15:55",
+ "testAsStringWithTitle" : "FLST 7/12/2024 15:55",
+ "testBuildEmptyChoicesAnswer" : "FLST 7/12/2024 15:55",
+ "testCorrectQuestionType" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/properties.json b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/properties.json
new file mode 100644
index 00000000..79274a07
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQPriorityQuestionTests.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Tests",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "question" ],
+ "name" : "LQPriorityQuestionTests",
+ "pools" : [
+ ],
+ "super" : "LQTestCase",
+ "type" : "normal" }
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet1With.and..st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet1With.and..st
index 270b2fc2..45b3d073 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet1With.and..st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet1With.and..st
@@ -2,15 +2,14 @@ helper methods
createAnswerSet1With: aQuestion and: anAnswer
| temporaryAnswerSet |
-
- temporaryAnswerSet := LQAnswerSet new
+ temporaryAnswerSet := LQAnswerSet new
token: self user1 token;
- pollId: (self poll id);
+ pollId: self poll id;
yourself.
-
- temporaryAnswerSet addAnswer: (LQAnswer new
- questionId: (aQuestion id);
+
+ temporaryAnswerSet addAnswer: (LQChoicesAnswer new
+ questionId: aQuestion id;
choicesRanking: {anAnswer description};
yourself).
-
+
^ temporaryAnswerSet
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet2With.and..st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet2With.and..st
index 032705bf..20487053 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet2With.and..st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createAnswerSet2With.and..st
@@ -2,15 +2,14 @@ helper methods
createAnswerSet2With: aQuestion and: anAnswer
| temporaryAnswerSet |
-
- temporaryAnswerSet := LQAnswerSet new
+ temporaryAnswerSet := LQAnswerSet new
token: self user2 token;
- pollId: (self poll id);
+ pollId: self poll id;
yourself.
- temporaryAnswerSet addAnswer: (LQAnswer new
- questionId: (aQuestion id);
+ temporaryAnswerSet addAnswer: (LQChoicesAnswer new
+ questionId: aQuestion id;
choicesRanking: {anAnswer description};
yourself).
-
+
^ temporaryAnswerSet
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createPoll.st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createPoll.st
index c499cf9a..3ccdcd85 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createPoll.st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createPoll.st
@@ -1,8 +1,7 @@
helper methods
createPoll
-
+
| pollId |
-
self poll: (LQPoll newWithPollDraft: LQPollDraft new).
self poll pollDraft questionList add: (LQMultiChoiceQuestion new
title: 'Where is the master ball';
@@ -11,6 +10,5 @@ createPoll
self poll userSetID: self userSet id.
pollId := 'gotta-catch-rayquaza'.
- (LQRemotePollRepoServer pollRepo includesKey: pollId)
- ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
- self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
+ (LQRemotePollRepoServer pollRepo includesKey: pollId) ifTrue: [LQRemotePollRepoServer pollRepo removeKey: pollId].
+ self poll startWithId: pollId ifTaken: [self fail: 'Poll ID already taken']
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createUserSet1.st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createUserSet1.st
index 69c4e518..d7d7d57b 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createUserSet1.st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/createUserSet1.st
@@ -1,6 +1,6 @@
helper methods
createUserSet1
-
+
self user1: self createUser1.
self user2: self createUser2.
self userSet: (LQUserSet new
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByGroupBasedAnswerExclusion.st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByGroupBasedAnswerExclusion.st
index 3714a698..bc37b656 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByGroupBasedAnswerExclusion.st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByGroupBasedAnswerExclusion.st
@@ -2,15 +2,14 @@ testing
testAddAnswerSetPreventedByGroupBasedAnswerExclusion
| answerSet1 answerSet2 q1 |
+ q1 := self poll pollDraft questionList first.
+ answerSet1 := self createAnswerSet1With: q1 and: q1 choiceList first.
+ answerSet2 := self createAnswerSet2With: q1 and: q1 choiceList second.
- q1 := (self poll pollDraft questionList first).
- answerSet1 := self createAnswerSet1With: q1 and: (q1 choiceList first).
- answerSet2 := self createAnswerSet2With: q1 and: (q1 choiceList second).
-
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default token: self user1 token.
LQPollRepo default addAnswerSet: answerSet1 ToPoll: self poll id.
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default token: self user2 token.
LQPollRepo default addAnswerSet: answerSet2 ToPoll: self poll id.
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size)
\ No newline at end of file
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByMultipleAnswers.st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByMultipleAnswers.st
index 7c217046..deae66ed 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByMultipleAnswers.st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByMultipleAnswers.st
@@ -2,20 +2,19 @@ testing
testAddAnswerSetPreventedByMultipleAnswers
| answerSet1 q1 |
-
- q1 := (self poll pollDraft questionList first).
- answerSet1 := LQAnswerSet new
+ q1 := self poll pollDraft questionList first.
+ answerSet1 := LQAnswerSet new
token: self user1 token;
- pollId: (self poll id);
+ pollId: self poll id;
yourself.
- answerSet1 addAnswer: (LQAnswer new
- questionId: (q1 id);
- choicesRanking: {(q1 choiceList second) description};
+ answerSet1 addAnswer: (LQChoicesAnswer new
+ questionId: q1 id;
+ choicesRanking: {q1 choiceList second description};
yourself).
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default token: self user1 token.
LQPollRepo default addAnswerSet: answerSet1 ToPoll: self poll id.
- self assert: 1 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+ self assert: 1 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default addAnswerSet: answerSet1 ToPoll: self poll id.
- self assert: 1 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size)
\ No newline at end of file
+ self assert: 1 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByWrongToken.st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByWrongToken.st
index d9bdd8c4..4eb1f483 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByWrongToken.st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetPreventedByWrongToken.st
@@ -2,18 +2,17 @@ testing
testAddAnswerSetPreventedByWrongToken
| answerSet1 q1 |
-
- q1 := (self poll pollDraft questionList first).
- answerSet1 := LQAnswerSet new
+ q1 := self poll pollDraft questionList first.
+ answerSet1 := LQAnswerSet new
token: self user1 token;
- pollId: (self poll id);
+ pollId: self poll id;
yourself.
- answerSet1 addAnswer: (LQAnswer new
- questionId: (q1 id);
- choicesRanking: {(q1 choiceList second) description};
+ answerSet1 addAnswer: (LQChoicesAnswer new
+ questionId: q1 id;
+ choicesRanking: {q1 choiceList second description};
yourself).
-
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default token: 'This is incorrect'.
LQPollRepo default addAnswerSet: answerSet1 ToPoll: self poll id.
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size)
\ No newline at end of file
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetSuccessfully.st b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetSuccessfully.st
index 686bc1c6..77e3b1e7 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetSuccessfully.st
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/instance/testAddAnswerSetSuccessfully.st
@@ -2,15 +2,14 @@ testing
testAddAnswerSetSuccessfully
| answerSet1 answerSet2 q1 |
+ q1 := self poll pollDraft questionList first.
+ answerSet1 := self createAnswerSet1With: q1 and: q1 choiceList second.
+ answerSet2 := self createAnswerSet2With: q1 and: q1 choiceList first.
- q1 := (self poll pollDraft questionList first).
- answerSet1 := self createAnswerSet1With: q1 and: (q1 choiceList second).
- answerSet2 := self createAnswerSet2With: q1 and: (q1 choiceList first).
-
- self assert: 0 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+ self assert: 0 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default token: self user1 token.
LQPollRepo default addAnswerSet: answerSet1 ToPoll: self poll id.
- self assert: 1 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size).
+ self assert: 1 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size.
LQPollRepo default token: self user2 token.
LQPollRepo default addAnswerSet: answerSet2 ToPoll: self poll id.
- self assert: 2 equals: ((LQRemotePollRepoServer pollRepo at: self poll id) answerSets size)
\ No newline at end of file
+ self assert: 2 equals: (LQRemotePollRepoServer pollRepo at: self poll id) answerSets size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/methodProperties.json
index e6898a10..06054c4f 100644
--- a/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQRemotePollRepoServerTests.class/methodProperties.json
@@ -2,19 +2,19 @@
"class" : {
},
"instance" : {
- "createAnswerSet1With:and:" : "JT 8/5/2022 00:47",
- "createAnswerSet2With:and:" : "JT 8/5/2022 00:47",
- "createPoll" : "JT 8/2/2022 17:53",
+ "createAnswerSet1With:and:" : "FLST 7/12/2024 15:55",
+ "createAnswerSet2With:and:" : "FLST 7/12/2024 15:55",
+ "createPoll" : "FLST 7/12/2024 15:55",
"createUser1" : "JT 8/2/2022 17:53",
"createUser2" : "JT 8/2/2022 17:53",
- "createUserSet1" : "JT 8/2/2022 17:54",
+ "createUserSet1" : "FLST 7/12/2024 15:55",
"poll" : "kge 7/21/2022 22:31",
"poll:" : "kge 7/21/2022 22:32",
"setUp" : "kge 7/21/2022 22:38",
- "testAddAnswerSetPreventedByGroupBasedAnswerExclusion" : "JT 8/5/2022 19:06",
- "testAddAnswerSetPreventedByMultipleAnswers" : "JT 8/5/2022 19:07",
- "testAddAnswerSetPreventedByWrongToken" : "JT 8/5/2022 19:07",
- "testAddAnswerSetSuccessfully" : "JT 8/5/2022 19:07",
+ "testAddAnswerSetPreventedByGroupBasedAnswerExclusion" : "FLST 7/12/2024 15:55",
+ "testAddAnswerSetPreventedByMultipleAnswers" : "FLST 7/12/2024 15:55",
+ "testAddAnswerSetPreventedByWrongToken" : "FLST 7/12/2024 15:55",
+ "testAddAnswerSetSuccessfully" : "FLST 7/12/2024 15:55",
"user1" : "kge 7/21/2022 22:30",
"user1:" : "kge 7/21/2022 22:30",
"user2" : "kge 7/21/2022 22:30",
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/README.md b/packages/Liquid-Tests.package/LQRunningPollViewTests.class/README.md
deleted file mode 100644
index 6301287c..00000000
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-LQRunningPollViewTests is a class containing the tests for the class LQRunningPollView in Liquid-UI.
-
-It tests whether the Copy to Clipboard works
-
-Instance Variables
- poll:
-
-poll
- an LQPoll used for testing
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/poll..st b/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/poll..st
deleted file mode 100644
index 31df2787..00000000
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/poll..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-poll: aPoll
-
- poll := aPoll
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/poll.st b/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/poll.st
deleted file mode 100644
index c0fab0b1..00000000
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/poll.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-poll
-
- ^ poll
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/setUp.st
deleted file mode 100644
index 3330321e..00000000
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/setUp.st
+++ /dev/null
@@ -1,14 +0,0 @@
-running
-setUp
-
- | question1 |
-
- super setUp.
- self poll: (LQPoll newWithPollDraft: LQPollDraft new).
- self poll id: 'test-id'.
-
- question1 := LQMultiChoiceQuestion new
- title: 'Question 1';
- choiceList: {'Q1A1'. 'Q1A2'};
- yourself.
- self poll pollDraft questionList add: question1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/testCopyIdButton.st b/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/testCopyIdButton.st
deleted file mode 100644
index ab386241..00000000
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/instance/testCopyIdButton.st
+++ /dev/null
@@ -1,13 +0,0 @@
-testing
-testCopyIdButton
-
- | runningPollView |
-
- runningPollView := LQRunningPollView newWithPoll: self poll.
- runningPollView copyPollId.
- "interacting with System clipboard is not instantaneous, therefore we wait"
- (Delay forSeconds: 1) wait.
- self assert: 'test-id' equals: (runningPollView pollId).
- self assert: 'test-id' equals: Clipboard clipboardText asString
-
-
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQRunningPollViewTests.class/methodProperties.json
deleted file mode 100644
index 3c084abe..00000000
--- a/packages/Liquid-Tests.package/LQRunningPollViewTests.class/methodProperties.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "class" : {
- },
- "instance" : {
- "poll" : "JT 8/2/2022 18:03",
- "poll:" : "JT 8/2/2022 18:03",
- "setUp" : "JT 8/5/2022 19:12",
- "testCopyIdButton" : "JT 8/2/2022 18:03" } }
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/createPollDraft.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/createPollDraft.st
index cbfbb7b1..54392a82 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/createPollDraft.st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/createPollDraft.st
@@ -1,8 +1,15 @@
testing
createPollDraft
- | question |
- self pollDraft: LQPollDraft new.
+
+ | question questionPrio questionFreeText |
+ self pollDraft: LQPollDraft new.
self pollDraft title: 'TestDraft'.
question := LQMultiChoiceQuestion new.
question title: 'Question'.
- self pollDraft questionList add: question.
\ No newline at end of file
+ questionPrio := LQPriorityQuestion new.
+ questionPrio title: 'Prio'.
+ questionFreeText := LQFreeTextQuestion new.
+ questionFreeText title: 'Freetext'.
+ self pollDraft questionList add: question.
+ self pollDraft questionList add: questionPrio.
+ self pollDraft questionList add: questionFreeText
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft..st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft..st
index 4300e974..29e70e00 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft..st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft..st
@@ -1,3 +1,4 @@
accessing
pollDraft: aPollDraft
+
pollDraft := aPollDraft
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft.st
index e2a95d0c..a3e86e33 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft.st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/pollDraft.st
@@ -1,3 +1,4 @@
accessing
-pollDraft
+pollDraft
+
^ pollDraft
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/setUp.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/setUp.st
index d0a92ee2..2d36101c 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/setUp.st
@@ -1,4 +1,5 @@
testing
setUp
+
super setUp.
- self createPollDraft.
\ No newline at end of file
+ self createPollDraft
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/tearDown.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/tearDown.st
index d2a5250b..90f95915 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/tearDown.st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/tearDown.st
@@ -1,5 +1,6 @@
testing
tearDown
+
LQRemotePollRepoServer pollDraftRepo items
removeKey: self pollDraft pollDraftId
ifAbsent: []
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testNewWithPollDraft.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testNewWithPollDraft.st
new file mode 100644
index 00000000..c6572abe
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testNewWithPollDraft.st
@@ -0,0 +1,9 @@
+testing
+testNewWithPollDraft
+
+ | pollDraftBuilder |
+ pollDraftBuilder := LQPollDraftBuilder newWithPollDraft: self pollDraft.
+ self assert: pollDraftBuilder questionBuilders size equals: 3.
+ self assert: pollDraftBuilder questionBuilders first class equals: LQMultiChoiceQuestionBuilder.
+ self assert: pollDraftBuilder questionBuilders second class equals: LQPriorityQuestionBuilder.
+ self assert: pollDraftBuilder questionBuilders third class equals: LQFreeTextQuestionBuilder
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testRemovePollDrafts.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testRemovePollDrafts.st
index 80224c4c..2808de62 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testRemovePollDrafts.st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testRemovePollDrafts.st
@@ -1,9 +1,12 @@
testing
testRemovePollDrafts
+
| size |
- LQRemotePollRepoServer pollDraftRepo items at: self pollDraft pollDraftId put: self pollDraft.
+ LQRemotePollRepoServer pollDraftRepo items
+ at: self pollDraft pollDraftId
+ put: self pollDraft.
size := LQRemotePollRepoServer pollDraftRepo items size.
LQRemotePollRepoServer pollDraftRepo items
- removeKey: self pollDraft pollDraftId
+ removeKey: self pollDraft pollDraftId
ifAbsent: [].
self assert: LQRemotePollRepoServer pollDraftRepo items size < size
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testSavePollDrafts.st b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testSavePollDrafts.st
index 558f1796..b8bda348 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testSavePollDrafts.st
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/instance/testSavePollDrafts.st
@@ -1,7 +1,12 @@
testing
testSavePollDrafts
+
| size |
- size := LQRemotePollRepoServer pollDraftRepo items size.
- LQRemotePollRepoServer pollDraftRepo items at: self pollDraft pollDraftId put: self pollDraft.
+ size := LQRemotePollRepoServer pollDraftRepo items size.
+ LQRemotePollRepoServer pollDraftRepo items
+ at: self pollDraft pollDraftId
+ put: self pollDraft.
self assert: LQRemotePollRepoServer pollDraftRepo items size > size.
- self assert: (LQRemotePollRepoServer pollDraftRepo items at: self pollDraft pollDraftId) title equals: 'TestDraft'.
\ No newline at end of file
+ self
+ assert: (LQRemotePollRepoServer pollDraftRepo items at: self pollDraft pollDraftId) title
+ equals: 'TestDraft'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/methodProperties.json b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/methodProperties.json
index 911b37f8..489abddb 100644
--- a/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQSavePollDraftsTest.class/methodProperties.json
@@ -2,10 +2,11 @@
"class" : {
},
"instance" : {
- "createPollDraft" : "FLST 6/22/2024 14:05",
- "pollDraft" : "vl 6/6/2024 20:06",
- "pollDraft:" : "vl 6/6/2024 20:06",
- "setUp" : "vl 6/6/2024 20:02",
- "tearDown" : "vl 6/6/2024 20:20",
- "testRemovePollDrafts" : "vl 6/6/2024 20:20",
- "testSavePollDrafts" : "vl 6/7/2024 14:27" } }
+ "createPollDraft" : "FLST 7/12/2024 15:55",
+ "pollDraft" : "FLST 7/12/2024 15:55",
+ "pollDraft:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "tearDown" : "FLST 7/12/2024 15:55",
+ "testNewWithPollDraft" : "FLST 7/12/2024 15:55",
+ "testRemovePollDrafts" : "FLST 7/12/2024 15:55",
+ "testSavePollDrafts" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/README.md b/packages/Liquid-Tests.package/LQStartMenuTests.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/objectInstance.st b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/objectInstance.st
new file mode 100644
index 00000000..bd90098a
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/objectInstance.st
@@ -0,0 +1,4 @@
+testing
+objectInstance
+
+ ^ objectInstance
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/setUp.st
new file mode 100644
index 00000000..5c24a50c
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/setUp.st
@@ -0,0 +1,4 @@
+testing
+setUp
+
+ objectInstance := LQStartMenu new
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testExtractPollIdWithValidId.st b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testExtractPollIdWithValidId.st
new file mode 100644
index 00000000..95e40992
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testExtractPollIdWithValidId.st
@@ -0,0 +1,8 @@
+testing
+testExtractPollIdWithValidId
+
+ | url |
+ url := 'http:/test:1234/1234'.
+ self
+ assert: (self objectInstance extractAndValidatePollIdAndURL: url)
+ equals: {'http:/test:1234/'. '1234'}
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testGetPollId.st b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testGetPollId.st
new file mode 100644
index 00000000..618c9157
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testGetPollId.st
@@ -0,0 +1,6 @@
+testing
+testGetPollId
+
+ | url |
+ url := 'http:/test:1234/12345'.
+ self assert: (self objectInstance getPollIdFrom: url with: 16) equals: '12345'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testGetUrl.st b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testGetUrl.st
new file mode 100644
index 00000000..bd5ef128
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testGetUrl.st
@@ -0,0 +1,6 @@
+testing
+testGetUrl
+
+ | url |
+ url := 'http:/test:1234/12345'.
+ self assert: (self objectInstance getUrlFrom: url with: 15) equals: 'http:/test:1234'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testStartMenuCanBeBuilt.st b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testStartMenuCanBeBuilt.st
similarity index 98%
rename from packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testStartMenuCanBeBuilt.st
rename to packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testStartMenuCanBeBuilt.st
index f1dc2e26..a4061276 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testStartMenuCanBeBuilt.st
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/instance/testStartMenuCanBeBuilt.st
@@ -2,7 +2,6 @@ testing
testStartMenuCanBeBuilt
| startMenu |
-
startMenu := LQStartMenu new.
ToolBuilder open: startMenu.
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQStartMenuTests.class/methodProperties.json
new file mode 100644
index 00000000..aa2a3e81
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/methodProperties.json
@@ -0,0 +1,10 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "objectInstance" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testExtractPollIdWithValidId" : "FLST 7/12/2024 15:55",
+ "testGetPollId" : "FLST 7/12/2024 15:55",
+ "testGetUrl" : "FLST 7/12/2024 15:55",
+ "testStartMenuCanBeBuilt" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQStartMenuTests.class/properties.json b/packages/Liquid-Tests.package/LQStartMenuTests.class/properties.json
new file mode 100644
index 00000000..169abfc1
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQStartMenuTests.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-Tests",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ "objectInstance" ],
+ "name" : "LQStartMenuTests",
+ "pools" : [
+ ],
+ "super" : "TestCase",
+ "type" : "normal" }
diff --git a/packages/Liquid-Tests.package/LQStringProcessorTests.class/instance/testStringReplacments.st b/packages/Liquid-Tests.package/LQStringProcessorTests.class/instance/testStringReplacments.st
index 99413f40..0311a9de 100644
--- a/packages/Liquid-Tests.package/LQStringProcessorTests.class/instance/testStringReplacments.st
+++ b/packages/Liquid-Tests.package/LQStringProcessorTests.class/instance/testStringReplacments.st
@@ -2,8 +2,7 @@ testing
testStringReplacments
| replacements formatString finalString |
-
- replacements := Dictionary new
+ replacements := Dictionary new
at: '{{surname}}' put: 'musterfrau';
at: '{{firstname}}' put: 'erika';
yourself.
diff --git a/packages/Liquid-Tests.package/LQStringProcessorTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQStringProcessorTests.class/methodProperties.json
index 710a81ba..3c849c81 100644
--- a/packages/Liquid-Tests.package/LQStringProcessorTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQStringProcessorTests.class/methodProperties.json
@@ -2,4 +2,4 @@
"class" : {
},
"instance" : {
- "testStringReplacments" : "JT 8/5/2022 19:16" } }
+ "testStringReplacments" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQTestCase.class/instance/tearDown.st b/packages/Liquid-Tests.package/LQTestCase.class/instance/tearDown.st
index fa682f3d..c8b995c8 100644
--- a/packages/Liquid-Tests.package/LQTestCase.class/instance/tearDown.st
+++ b/packages/Liquid-Tests.package/LQTestCase.class/instance/tearDown.st
@@ -7,5 +7,4 @@ tearDown
LQRemotePollRepoServer pollRepo: self savedServerPollRepo.
LQRemotePollRepoServer serverActive: self wasServerActive.
LQPasswordManager default: self savedPasswordManager.
- LQParticipantMenu answeredPollIds: self savedAnsweredPollIds
-
+ LQParticipantMenu answeredPollIds: self savedAnsweredPollIds
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQTestCase.class/methodProperties.json b/packages/Liquid-Tests.package/LQTestCase.class/methodProperties.json
index 8d15512c..db9a7cbf 100644
--- a/packages/Liquid-Tests.package/LQTestCase.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQTestCase.class/methodProperties.json
@@ -13,6 +13,6 @@
"savedUserSetRepo" : "bn 8/2/2022 17:40",
"savedUserSetRepo:" : "bn 8/2/2022 17:40",
"setUp" : "JT 8/4/2022 23:50",
- "tearDown" : "bn 8/2/2022 17:40",
+ "tearDown" : "FLST 7/12/2024 15:55",
"wasServerActive" : "bn 8/2/2022 17:40",
"wasServerActive:" : "bn 8/2/2022 17:40" } }
diff --git a/packages/Liquid-Tests.package/LQThrowerOfErrors.class/instance/error..st b/packages/Liquid-Tests.package/LQThrowerOfErrors.class/instance/error..st
index 90ee44df..3cffb7b7 100644
--- a/packages/Liquid-Tests.package/LQThrowerOfErrors.class/instance/error..st
+++ b/packages/Liquid-Tests.package/LQThrowerOfErrors.class/instance/error..st
@@ -1,4 +1,4 @@
error handling
error: aString
-
+
^ LQRemoteError new signal: aString
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQThrowerOfErrors.class/methodProperties.json b/packages/Liquid-Tests.package/LQThrowerOfErrors.class/methodProperties.json
index 8cfab175..41816388 100644
--- a/packages/Liquid-Tests.package/LQThrowerOfErrors.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQThrowerOfErrors.class/methodProperties.json
@@ -2,5 +2,5 @@
"class" : {
},
"instance" : {
- "error:" : "kge 6/23/2022 22:23",
+ "error:" : "FLST 7/12/2024 15:55",
"escalate" : "CG 7/30/2021 19:06" } }
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createPollDraftWith.and..st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createPollDraftWith.and..st
index f4f154de..424d9fb4 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createPollDraftWith.and..st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createPollDraftWith.and..st
@@ -1,7 +1,7 @@
helper-methods
createPollDraftWith: aQuestion and: anotherQuestion
- self pollDraft: (LQPollDraft new).
+ self pollDraft: LQPollDraft new.
self pollDraft title: 'this is a title'.
self pollDraft addQuestion: aQuestion.
self pollDraft addQuestion: anotherQuestion
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ1.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ1.st
index bb76f27d..1e1f9bf0 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ1.st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ1.st
@@ -2,7 +2,6 @@ helper-methods
createQ1
| q1 |
-
q1 := LQMultiChoiceQuestion new.
q1 title: 'Question 1'.
q1 addChoice: (LQChoice newFrom: 'Option 1 [UserGroup1]').
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ2.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ2.st
index 349ac4f0..d40c4a95 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ2.st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/createQ2.st
@@ -2,7 +2,6 @@ helper-methods
createQ2
| q2 |
-
q2 := LQMultiChoiceQuestion new.
q2 title: 'Question 2'.
q2 addChoice: (LQChoice newFrom: 'Option 1 [UserGroup1]').
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/setUp.st
index 2553f9a1..5ff6a3be 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/setUp.st
@@ -1,14 +1,13 @@
running
setUp
-
+
| q1 q2 |
-
super setUp.
q1 := self createQ1.
q2 := self createQ2.
-
+
self createPollDraftWith: q1 and: q2.
- self poll: (LQPoll newWithPollDraft: (self pollDraft)).
+ self poll: (LQPoll newWithPollDraft: self pollDraft).
self poll id: 'this-is-a-poll-id'.
self poll startWithId: 'this-is-a-poll-id' ifTaken: []
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testHostMenuCanBeBuilt.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testHostMenuCanBeBuilt.st
index 959bc466..56657eb7 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testHostMenuCanBeBuilt.st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testHostMenuCanBeBuilt.st
@@ -2,7 +2,6 @@ testing
testHostMenuCanBeBuilt
| hostMenu |
-
hostMenu := LQHostMenu new.
ToolBuilder open: hostMenu.
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testParticipantMenuCanBeBuilt.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testParticipantMenuCanBeBuilt.st
index be76d9bd..4089737f 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testParticipantMenuCanBeBuilt.st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testParticipantMenuCanBeBuilt.st
@@ -2,11 +2,10 @@ testing
testParticipantMenuCanBeBuilt
| participantMenu answeredPollIds |
-
answeredPollIds := Set new.
answeredPollIds add: 'this-is-a-poll-id'.
LQParticipantMenu answeredPollIds: answeredPollIds.
participantMenu := LQParticipantMenu new.
- participantMenu importPollWithId: (self poll id).
+ participantMenu importPollWithId: self poll id.
ToolBuilder open: participantMenu.
participantMenu destroy
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testPollDraftMenuCanBeBuilt.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testPollDraftMenuCanBeBuilt.st
new file mode 100644
index 00000000..a426edad
--- /dev/null
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testPollDraftMenuCanBeBuilt.st
@@ -0,0 +1,7 @@
+testing
+testPollDraftMenuCanBeBuilt
+
+ | pollDraftMenu |
+ pollDraftMenu := LQPollDraftMenu new.
+ ToolBuilder open: pollDraftMenu.
+ pollDraftMenu destroy
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testResultsViewCanBeBuilt.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testResultsViewCanBeBuilt.st
deleted file mode 100644
index afc7d237..00000000
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testResultsViewCanBeBuilt.st
+++ /dev/null
@@ -1,10 +0,0 @@
-testing
-testResultsViewCanBeBuilt
-
- | resultsView |
-
- resultsView := LQResultsView newWithPoll: self poll.
-
- ToolBuilder open: resultsView.
-
- resultsView destroy
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testRunningPollViewCanBeBuilt.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testRunningPollViewCanBeBuilt.st
deleted file mode 100644
index 1f931772..00000000
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testRunningPollViewCanBeBuilt.st
+++ /dev/null
@@ -1,9 +0,0 @@
-testing
-testRunningPollViewCanBeBuilt
-
- | runningPollView |
-
- runningPollView := LQRunningPollView newWithPoll: self poll.
- ToolBuilder open: runningPollView.
- runningPollView closePoll.
- runningPollView destroy
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testUserSetMenuCanBeBuilt.st b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testUserSetMenuCanBeBuilt.st
index 3a528435..7d6ad591 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testUserSetMenuCanBeBuilt.st
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/instance/testUserSetMenuCanBeBuilt.st
@@ -2,7 +2,6 @@ testing
testUserSetMenuCanBeBuilt
| userSetMenu |
-
userSetMenu := LQUserSetMenu new.
ToolBuilder open: userSetMenu.
diff --git a/packages/Liquid-Tests.package/LQToolbuilderTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQToolbuilderTests.class/methodProperties.json
index 8056a211..30c05d35 100644
--- a/packages/Liquid-Tests.package/LQToolbuilderTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQToolbuilderTests.class/methodProperties.json
@@ -2,17 +2,15 @@
"class" : {
},
"instance" : {
- "createPollDraftWith:and:" : "JT 8/4/2022 23:57",
- "createQ1" : "JT 8/5/2022 19:17",
- "createQ2" : "JT 8/5/2022 19:17",
+ "createPollDraftWith:and:" : "FLST 7/12/2024 15:55",
+ "createQ1" : "FLST 7/12/2024 15:55",
+ "createQ2" : "FLST 7/12/2024 15:55",
"poll" : "JT 8/2/2022 17:43",
"poll:" : "bn 8/4/2022 19:28",
"pollDraft" : "JT 8/2/2022 17:43",
"pollDraft:" : "bn 8/4/2022 19:28",
- "setUp" : "JT 8/5/2022 19:17",
- "testHostMenuCanBeBuilt" : "bwe 6/26/2022 13:48",
- "testParticipantMenuCanBeBuilt" : "JT 8/5/2022 19:17",
- "testResultsViewCanBeBuilt" : "5/22/2024 19:59:29",
- "testRunningPollViewCanBeBuilt" : "JT 8/5/2022 19:18",
- "testStartMenuCanBeBuilt" : "bwe 6/26/2022 13:51",
- "testUserSetMenuCanBeBuilt" : "bwe 6/26/2022 13:52" } }
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testHostMenuCanBeBuilt" : "FLST 7/12/2024 15:55",
+ "testParticipantMenuCanBeBuilt" : "FLST 7/12/2024 15:55",
+ "testPollDraftMenuCanBeBuilt" : "FLST 7/12/2024 15:55",
+ "testUserSetMenuCanBeBuilt" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/checkEqualityOf.and..st b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/checkEqualityOf.and..st
index 6a66c036..4b29da8a 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/checkEqualityOf.and..st
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/checkEqualityOf.and..st
@@ -1,6 +1,6 @@
helper methods
checkEqualityOf: aLQUserSet and: anotherLQUserSet
- ^(aLQUserSet id = anotherLQUserSet id)
+ ^ aLQUserSet id = anotherLQUserSet id
and: [aLQUserSet title = anotherLQUserSet title]
and: [aLQUserSet userEntries size = anotherLQUserSet userEntries size]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/setUp.st
index fe9ee1e8..1ff5adab 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/setUp.st
@@ -3,8 +3,8 @@ setUp
super setUp.
ToolBuilder open: self userSetMenu.
- self userSet: (LQUserSet new
- id: UUID new asString;
- title: 'lorem ipsum Meine Oma fährt im Hühnerstall Motorrad';
- addUser: LQUserSetTests new createUser1;
- yourself)
\ No newline at end of file
+ self userSet: (LQUserSet new
+ id: UUID new asString;
+ title: 'lorem ipsum Meine Oma fährt im Hühnerstall Motorrad';
+ addUser: LQUserSetTests new createUser1;
+ yourself)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/tearDown.st b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/tearDown.st
index c8f7ea73..54e21bf8 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/tearDown.st
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/tearDown.st
@@ -1,5 +1,5 @@
running
tearDown
-
+
self userSetMenu destroy.
super tearDown
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testAddUserSet.st b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testAddUserSet.st
index 86cdf9fc..b1d60a77 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testAddUserSet.st
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testAddUserSet.st
@@ -2,10 +2,7 @@ testing
testAddUserSet
| previousSize |
-
previousSize := self userSetMenu userSets size.
self userSet addToRepo.
self assert: self userSetMenu userSets size equals: previousSize + 1.
- self assert: (self userSetMenu userSets contains:
- [ :currentUserSet |
- self checkEqualityOf: currentUserSet and: self userSet])
\ No newline at end of file
+ self assert: (self userSetMenu userSets contains: [:currentUserSet | self checkEqualityOf: currentUserSet and: self userSet])
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testRemoveUserSet.st b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testRemoveUserSet.st
index b4170183..dd5c5ec3 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testRemoveUserSet.st
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/testRemoveUserSet.st
@@ -7,6 +7,4 @@ testRemoveUserSet
self userSetMenu choiceSelected: 1.
self userSetMenu removeSelectedUserSet.
self assert: self userSetMenu userSets size equals: previousSize - 1.
- self deny: (self userSetMenu userSets contains:
- [ :currentUserSet |
- self checkEqualityOf: currentUserSet and: self userSet])
\ No newline at end of file
+ self deny: (self userSetMenu userSets contains: [:currentUserSet | self checkEqualityOf: currentUserSet and: self userSet])
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/userSetMenu.st b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/userSetMenu.st
index 87c9d7d6..6edfaf5c 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/userSetMenu.st
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/instance/userSetMenu.st
@@ -1,4 +1,4 @@
accessing
userSetMenu
-
- ^ userSetMenu ifNil: [^userSetMenu := LQUserSetMenu new]
\ No newline at end of file
+
+ ^ userSetMenu ifNil: [^ userSetMenu := LQUserSetMenu new]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/methodProperties.json
index 47f8a481..52f5e548 100644
--- a/packages/Liquid-Tests.package/LQUserSetMenuTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQUserSetMenuTests.class/methodProperties.json
@@ -2,12 +2,12 @@
"class" : {
},
"instance" : {
- "checkEqualityOf:and:" : "JT 8/2/2022 17:42",
- "setUp" : "kge 8/1/2022 20:38",
- "tearDown" : "JT 8/2/2022 17:42",
- "testAddUserSet" : "bn 8/5/2022 20:45",
- "testRemoveUserSet" : "ms 8/5/2022 20:19",
+ "checkEqualityOf:and:" : "FLST 7/12/2024 15:55",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "tearDown" : "FLST 7/12/2024 15:55",
+ "testAddUserSet" : "FLST 7/12/2024 15:55",
+ "testRemoveUserSet" : "FLST 7/12/2024 15:55",
"userSet" : "JT 8/2/2022 17:43",
"userSet:" : "bn 8/4/2022 19:29",
- "userSetMenu" : "ms 6/27/2022 10:36",
+ "userSetMenu" : "FLST 7/12/2024 15:55",
"userSetMenu:" : "bn 8/4/2022 19:28" } }
diff --git a/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/instance/userSetMenu.st b/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/instance/userSetMenu.st
index 4e20ac6f..9bd593d0 100644
--- a/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/instance/userSetMenu.st
+++ b/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/instance/userSetMenu.st
@@ -1,4 +1,4 @@
accessing
userSetMenu
-
- ^ userSetMenu ifNil: [^userSetMenu := LQUserSetSelectionMenu new]
\ No newline at end of file
+
+ ^ userSetMenu ifNil: [^ userSetMenu := LQUserSetSelectionMenu new]
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/methodProperties.json
index 56133f3f..25ba7bfb 100644
--- a/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQUserSetSelectionMenuTests.class/methodProperties.json
@@ -5,4 +5,4 @@
"setUp" : "JT 8/2/2022 17:41",
"testClearSelection" : "JT 8/2/2022 17:41",
"testSelectUserSet" : "JT 8/2/2022 17:41",
- "userSetMenu" : "ms 6/27/2022 10:37" } }
+ "userSetMenu" : "FLST 7/12/2024 15:55" } }
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/compareUser1.user2..st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/compareUser1.user2..st
index 9d85a581..ea319c14 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/compareUser1.user2..st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/compareUser1.user2..st
@@ -1,7 +1,7 @@
helper methods
compareUser1: aLQUser1 user2: aLQUser2
- ^ (aLQUser1 firstname = aLQUser2 firstname)
- and: (aLQUser1 surname = aLQUser2 surname)
- and: (aLQUser1 mail = aLQUser2 mail)
- and: (aLQUser1 group = aLQUser2 group)
\ No newline at end of file
+ ^ aLQUser1 firstname = aLQUser2 firstname
+ and: aLQUser1 surname = aLQUser2 surname
+ and: aLQUser1 mail = aLQUser2 mail
+ and: aLQUser1 group = aLQUser2 group
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/setUp.st
index 8ad8d187..d9d549b5 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/setUp.st
@@ -2,7 +2,6 @@ running
setUp
super setUp.
- self
+ self
user1: self createUser1;
- user2: self createUser2
-
\ No newline at end of file
+ user2: self createUser2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddOneUser.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddOneUser.st
index 77c64d0d..c4aa1115 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddOneUser.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddOneUser.st
@@ -2,9 +2,7 @@ testing
testAddOneUser
| userSet |
-
- userSet := LQUserSet new
- addUser: self user1.
+ userSet := LQUserSet new addUser: self user1.
self assert: userSet userEntries size equals: 1.
self assert: (userSet userEntries includes: self user1)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddToRepo.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddToRepo.st
index 6398b54f..7d09de11 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddToRepo.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddToRepo.st
@@ -2,12 +2,11 @@ testing
testAddToRepo
| userSet myUUID |
-
myUUID := UUID new.
userSet := LQUserSet new.
- userSet id: myUUID;
+ userSet
+ id: myUUID;
title: 'lorem ipsum Meine Oma fährt im Hühnerstall Motorrad';
addToRepo.
self assert: (LQUserSetRepo default at: myUUID) title equals: userSet title.
- LQUserSetRepo default removeKey: myUUID
-
\ No newline at end of file
+ LQUserSetRepo default removeKey: myUUID
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddTwoUsers.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddTwoUsers.st
index d4cf1e53..9aec8c1e 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddTwoUsers.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAddTwoUsers.st
@@ -2,7 +2,6 @@ testing
testAddTwoUsers
| userSet |
-
userSet := LQUserSet new
addUser: self user1;
addUser: self user2;
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAsString.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAsString.st
index cc376e28..cdf29f7c 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAsString.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testAsString.st
@@ -4,5 +4,4 @@ testAsString
| userSet |
userSet := LQUserSet new.
userSet title: 'Lorem ipsum'.
- self assert: userSet asString equals: 'Lorem ipsum'
-
\ No newline at end of file
+ self assert: userSet asString equals: 'Lorem ipsum'
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testContainsUserWithId.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testContainsUserWithId.st
index 64372354..0994bd46 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testContainsUserWithId.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testContainsUserWithId.st
@@ -2,9 +2,7 @@ testing
testContainsUserWithId
| userSet |
-
- userSet := LQUserSet new
- addUser: self user1.
+ userSet := LQUserSet new addUser: self user1.
self assert: (userSet containsUserWithToken: self user1 token).
self deny: (userSet containsUserWithToken: self user2 token).
self deny: (userSet containsUserWithToken: -1).
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testCreateFromCSV.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testCreateFromCSV.st
index cced64b9..7ecea52e 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testCreateFromCSV.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testCreateFromCSV.st
@@ -2,14 +2,13 @@ testing
testCreateFromCSV
| userSet1 userSet2 stream |
-
userSet1 := LQUserSet new
addUser: self user1;
addUser: self user2;
yourself.
-
+
stream := ReadStream on: 'erika,musterfrau,erika.mustermann@hotmail.com,group1
Ash,Ketchum,ash@mail.com,Rocket'.
userSet2 := LQUserSet createFromFile: stream.
- self assert: (self compareUser1: (userSet1 userEntries first) user2: (userSet2 userEntries first)).
- self assert: (self compareUser1: (userSet1 userEntries second) user2: (userSet2 userEntries second))
+ self assert: (self compareUser1: userSet1 userEntries first user2: userSet2 userEntries first).
+ self assert: (self compareUser1: userSet1 userEntries second user2: userSet2 userEntries second)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testInitiallyEmpty.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testInitiallyEmpty.st
index 3bb94a94..bf39b3c0 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testInitiallyEmpty.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testInitiallyEmpty.st
@@ -2,6 +2,5 @@ testing
testInitiallyEmpty
| userSet |
-
userSet := LQUserSet new.
self assert: userSet userEntries size equals: 0
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testUserNewFromCollection.st b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testUserNewFromCollection.st
index 2377f5bf..e742313b 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testUserNewFromCollection.st
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/instance/testUserNewFromCollection.st
@@ -1,5 +1,5 @@
testing
testUserNewFromCollection
- self user1: (LQUser newFromCollection: {'Ash' . 'Ketchum' . 'ash@mail.com' . 'Rocket'}).
+ self user1: (LQUser newFromCollection: {'Ash'. 'Ketchum'. 'ash@mail.com'. 'Rocket'}).
self assert: (self compareUser1: self user2 user2: self user1)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQUserSetTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQUserSetTests.class/methodProperties.json
index 9b66be6e..2c2b34d8 100644
--- a/packages/Liquid-Tests.package/LQUserSetTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQUserSetTests.class/methodProperties.json
@@ -2,18 +2,18 @@
"class" : {
},
"instance" : {
- "compareUser1:user2:" : "JT 8/2/2022 17:38",
+ "compareUser1:user2:" : "FLST 7/12/2024 15:55",
"createUser1" : "JT 8/2/2022 17:39",
"createUser2" : "JT 8/2/2022 17:39",
- "setUp" : "JT 8/2/2022 17:39",
- "testAddOneUser" : "ape 6/6/2022 08:31",
- "testAddToRepo" : "JT 8/5/2022 19:24",
- "testAddTwoUsers" : "JT 8/2/2022 17:40",
- "testAsString" : "bn 5/26/2022 21:16",
- "testContainsUserWithId" : "JT 8/2/2022 17:40",
- "testCreateFromCSV" : "bn 8/5/2022 20:55",
- "testInitiallyEmpty" : "JT 8/2/2022 17:41",
- "testUserNewFromCollection" : "kge 8/1/2022 19:06",
+ "setUp" : "FLST 7/12/2024 15:55",
+ "testAddOneUser" : "FLST 7/12/2024 15:55",
+ "testAddToRepo" : "FLST 7/12/2024 15:55",
+ "testAddTwoUsers" : "FLST 7/12/2024 15:55",
+ "testAsString" : "FLST 7/12/2024 15:55",
+ "testContainsUserWithId" : "FLST 7/12/2024 15:55",
+ "testCreateFromCSV" : "FLST 7/12/2024 15:55",
+ "testInitiallyEmpty" : "FLST 7/12/2024 15:55",
+ "testUserNewFromCollection" : "FLST 7/12/2024 15:55",
"user1" : "JT 8/2/2022 17:41",
"user1:" : "bn 8/4/2022 19:29",
"user2" : "JT 8/2/2022 17:41",
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/setUp.st b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/setUp.st
index a73c11e6..6cc85d8e 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/setUp.st
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/setUp.st
@@ -9,5 +9,5 @@ setUp
self visualizationControls: (LQVisualizationControls newWithPoll: self poll).
- ToolBuilder open: (self visualizationControls).
- ToolBuilder open: (self visualizationControls)
+ ToolBuilder open: self visualizationControls.
+ ToolBuilder open: self visualizationControls
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testBarChartMorphChangedOnQuestionSelectionChanged.st b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testBarChartMorphChangedOnQuestionSelectionChanged.st
index 9707e359..6001f136 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testBarChartMorphChangedOnQuestionSelectionChanged.st
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testBarChartMorphChangedOnQuestionSelectionChanged.st
@@ -1,14 +1,11 @@
testing
testBarChartMorphChangedOnQuestionSelectionChanged
-
+
| visualizationOfFirstQuestion visualizationOfSecondQuestion |
-
- self visualizationControls questionIndex: 0.
+ self visualizationControls questionIndex: 1.
visualizationOfFirstQuestion := self visualizationControls wrapperMorph submorphs first.
- self visualizationControls questionIndex: 1.
+ self visualizationControls questionIndex: 2.
visualizationOfSecondQuestion := self visualizationControls wrapperMorph submorphs first.
- self assert: (visualizationOfFirstQuestion == visualizationOfSecondQuestion) not
-
-
\ No newline at end of file
+ self assert: (visualizationOfFirstQuestion = visualizationOfSecondQuestion) not
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testConvenienceMethodsReturnPropertiesOfFirstQuestion.st b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testConvenienceMethodsReturnPropertiesOfFirstQuestion.st
index cc6588f6..30ee9ae4 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testConvenienceMethodsReturnPropertiesOfFirstQuestion.st
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testConvenienceMethodsReturnPropertiesOfFirstQuestion.st
@@ -2,12 +2,11 @@ testing
testConvenienceMethodsReturnPropertiesOfFirstQuestion
| visualizationView |
-
visualizationView := LQVisualizationView newWithPoll: self poll.
-
- self assert: (visualizationView sortData)
- equals: (visualizationView sortDataFor: (self poll pollDraft questionList first)).
- self assert: (visualizationView data)
- equals: (visualizationView dataFor: (self poll pollDraft questionList first)).
- self assert: (visualizationView visualizeResults) size
- equals: self poll pollDraft questionList size
\ No newline at end of file
+
+ self
+ assert: visualizationView sortData
+ equals: (visualizationView sortDataFor: self poll pollDraft questionList first).
+ self
+ assert: visualizationView data
+ equals: (visualizationView dataFor: self poll pollDraft questionList first)
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testMultipleQuestionsInListView.st b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testMultipleQuestionsInListView.st
index 663dc77a..fc14d680 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testMultipleQuestionsInListView.st
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testMultipleQuestionsInListView.st
@@ -1,4 +1,4 @@
testing
testMultipleQuestionsInListView
- self assert: (self visualizationControls questionList size) equals: 2
\ No newline at end of file
+ self assert: self visualizationControls questionList size equals: 2
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testVisualizationDisplayedAfterInitialization.st b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testVisualizationDisplayedAfterInitialization.st
index 5b101a58..ada3e9cc 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testVisualizationDisplayedAfterInitialization.st
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/instance/testVisualizationDisplayedAfterInitialization.st
@@ -1,4 +1,4 @@
testing
testVisualizationDisplayedAfterInitialization
- self assert: (self visualizationControls wrapperMorph submorphs size) equals: 1
\ No newline at end of file
+ self assert: self visualizationControls wrapperMorph submorphs size equals: 1
\ No newline at end of file
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/methodProperties.json b/packages/Liquid-Tests.package/LQVisualizationTests.class/methodProperties.json
index c3310f21..8dbf93b8 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/methodProperties.json
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/methodProperties.json
@@ -2,11 +2,11 @@
"class" : {
},
"instance" : {
- "setUp" : "ms 8/5/2022 20:40",
+ "setUp" : "FLST 7/12/2024 15:55",
"tearDown" : "kge 6/26/2022 22:13",
- "testBarChartMorphChangedOnQuestionSelectionChanged" : "bwe 8/5/2022 19:43",
- "testConvenienceMethodsReturnPropertiesOfFirstQuestion" : "ms 8/5/2022 20:40",
- "testMultipleQuestionsInListView" : "bwe 6/26/2022 17:21",
- "testVisualizationDisplayedAfterInitialization" : "bwe 6/26/2022 17:22",
+ "testBarChartMorphChangedOnQuestionSelectionChanged" : "FLST 7/12/2024 15:55",
+ "testConvenienceMethodsReturnPropertiesOfFirstQuestion" : "FLST 7/12/2024 15:55",
+ "testMultipleQuestionsInListView" : "FLST 7/12/2024 15:55",
+ "testVisualizationDisplayedAfterInitialization" : "FLST 7/12/2024 15:55",
"visualizationControls" : "JT 8/2/2022 17:38",
"visualizationControls:" : "JT 8/2/2022 17:38" } }
diff --git a/packages/Liquid-Tests.package/LQVisualizationTests.class/properties.json b/packages/Liquid-Tests.package/LQVisualizationTests.class/properties.json
index af57acef..2c62948c 100644
--- a/packages/Liquid-Tests.package/LQVisualizationTests.class/properties.json
+++ b/packages/Liquid-Tests.package/LQVisualizationTests.class/properties.json
@@ -6,7 +6,6 @@
],
"commentStamp" : "ms 8/5/2022 21:14",
"instvars" : [
- "pollDraft",
"visualizationControls" ],
"name" : "LQVisualizationTests",
"pools" : [
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/README.md b/packages/Liquid-UI.package/LQAnswerPanel.class/README.md
index aeac30d3..140ec93b 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/README.md
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/README.md
@@ -1,8 +1,7 @@
The LQAnswerPanel contains all logic needed to display and interact with LQQuestion in the LQParticipantMenu. As this is a lot, also depending on (future) different kinds of questions, this logic has been moved out of the LQParticipantMenu into this class, even though the UI is displayed concurrently with the LQParticipantMenu.
-The Sideboard shows Xs when the question is a MultiChoice Question (via getMarkers), and the ranking for when the question is a priority question.
+Both the FreeTextPanel and the SelectionPanel exist throughout the whole poll, and are resetted for every question. When the Question Type changes, the answer panels might be switched - only one can be in the foreground.
+
Notable Instance Variables:
-answer: The LQAnswer currently being edited by the participant. One LQAnswer exists for each LQQuestion and Participant.
-choiceSelected: The choice that was last selected in the MultiSelectionList.
-selectedChoices: An Set (OrderedCollection for the Priority Case) of all choices that have already been selected by the participant.
\ No newline at end of file
+answer: The LQAnswer currently being edited by the participant. One LQAnswer exists for each LQQuestion and Participant.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/answer..st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/answer..st
index 9ceec8a7..bbe16660 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/answer..st
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/answer..st
@@ -1,5 +1,4 @@
accessing
-answer: aLiquidAnswer
+answer: anAnswer
- answer := aLiquidAnswer.
- answer questionId: self question id
\ No newline at end of file
+ SubclassResponsibility
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/fillSideboard.st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/fillSideboard.st
deleted file mode 100644
index fdf2853c..00000000
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/fillSideboard.st
+++ /dev/null
@@ -1,7 +0,0 @@
-accessing
-fillSideboard
- (self question type = 'priority')
- ifTrue: [^self getRankingIndices].
- (self question type = 'multiChoice')
- ifTrue: [^self getMarkers].
-
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getChildren.st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getChildren.st
index 5ece3e5c..f24f5368 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getChildren.st
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getChildren.st
@@ -1,9 +1,4 @@
-accessing
+initialize-release
getChildren
- ^ {
- self builder build: (self buildMultiSelectionListWith: self builder).
- self builder build: (self buildQuestionTitleTextWith: self builder).
- self builder build: (self buildQuestionTooltipWith: self builder).
- self builder build: (self buildRemainingVotedChoicesCounterTextWith: self builder).
- self builder build: (self buildRankingIndicesWith: self builder).}
\ No newline at end of file
+ SubclassResponsibility
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getMarkers.st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getMarkers.st
deleted file mode 100644
index f5e8b089..00000000
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getMarkers.st
+++ /dev/null
@@ -1,10 +0,0 @@
-accessing
-getMarkers
- |ranking|
- ranking := OrderedCollection new.
- self question choiceList do: [:choice |
- (self selectedChoices includes: (choice description))
- ifTrue: [ranking add: 'X']
- ifFalse: [ranking add: ' '] "value to show that this is not yet ranked"
- ].
- ^ ranking
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getRankingIndices.st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getRankingIndices.st
deleted file mode 100644
index 317e607a..00000000
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getRankingIndices.st
+++ /dev/null
@@ -1,10 +0,0 @@
-accessing
-getRankingIndices
- |ranking|
- ranking := OrderedCollection new.
- self question choiceList do: [:choice |
- ((self selectedChoices includes: (choice description)) or: [self choiceSelected = choice])
- ifTrue: [ranking add: (self selectedChoices indexOf: (choice description))]
- ifFalse: [ranking add: ' '] "value to show that this is not yet ranked"
- ].
- ^ ranking
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/isValidSizedSelection..st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/isValidSizedSelection..st
deleted file mode 100644
index a32e6e94..00000000
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/isValidSizedSelection..st
+++ /dev/null
@@ -1,4 +0,0 @@
-validation
-isValidSizedSelection: aSelection
-
- ^aSelection size <= self question maxNumberOfChoices
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/layoutFrame.st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/layoutFrame.st
index ff7a6f16..07731c47 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/layoutFrame.st
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/layoutFrame.st
@@ -2,8 +2,8 @@ accessing
layoutFrame
^ LayoutFrame new
- topFraction: 0.81;
- leftFraction: 0.10;
- rightFraction: 0.31;
- bottomFraction: 0.91;
- yourself
\ No newline at end of file
+ topFraction: 0.81;
+ leftFraction: 0.1;
+ rightFraction: 0.31;
+ bottomFraction: 0.91;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/question..st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/question..st
index d42c4a25..18c8aa88 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/question..st
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/question..st
@@ -2,7 +2,5 @@ accessing
question: aQuestion
question := aQuestion.
- self selectedChoices: OrderedCollection new.
self answer: aQuestion buildEmptyAnswer.
- self resetUI
-
\ No newline at end of file
+ self resetUI
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/resetUI.st b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/resetUI.st
index ec9e7787..a18423d3 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/resetUI.st
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/instance/resetUI.st
@@ -1,7 +1,4 @@
-modifying
+accessing
resetUI
- self changed: #choiceDescriptions.
- self changed: #getTitle.
- self changed: #getRemainingVotedChoices.
- self changed: #fillSideboard.
\ No newline at end of file
+ SubclassResponsibility
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/methodProperties.json b/packages/Liquid-UI.package/LQAnswerPanel.class/methodProperties.json
index 0247abe9..5063b6d4 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/methodProperties.json
@@ -2,39 +2,17 @@
"class" : {
"newWith:" : "CG 7/30/2021 19:06" },
"instance" : {
- "answer" : "NM 6/5/2021 14:41",
- "answer:" : "Anton Eichstädt 5/24/2024 15:49",
- "buildMultiSelectionListWith:" : "Anton Eichstädt 5/28/2024 15:55",
+ "answer" : "FLST 7/11/2024 20:44",
+ "answer:" : "FLST 7/11/2024 20:44",
"buildQuestionTitleTextWith:" : "Anton Eichstädt 5/28/2024 15:59",
"buildQuestionTooltipWith:" : "Anton Eichstädt 5/28/2024 15:59",
- "buildRankingIndicesWith:" : "Anton Eichstädt 6/4/2024 11:38",
- "buildRemainingVotedChoicesCounterTextWith:" : "JT 8/5/2022 18:25",
"builder" : "bn 8/2/2022 21:07",
"builder:" : "bn 8/2/2022 21:08",
- "choiceAt:" : "bn 8/2/2022 17:10",
- "choiceAt:put:" : "Anton Eichstädt 6/5/2024 11:30",
- "choiceDescriptions" : "bn 8/2/2022 17:11",
- "choiceIsNotExcluded:" : "kge 8/3/2022 21:59",
- "choiceSelected" : "CG 7/30/2021 19:06",
- "choiceSelected:" : "CG 7/30/2021 19:06",
- "exclusionMarker" : "bn 8/2/2022 17:11",
- "exclusionMarker:" : "kge 7/21/2022 16:16",
- "fillSideboard" : "Anton Eichstädt 6/5/2024 17:37",
- "getChildren" : "Anton Eichstädt 5/25/2024 15:24",
- "getMarkers" : "Anton Eichstädt 6/4/2024 12:24",
- "getNumberOfChoices" : "Anton Eichstädt 5/25/2024 16:16",
- "getRankingIndices" : "Anton Eichstädt 6/2/2024 21:25",
- "getRemainingVotedChoices" : "Anton Eichstädt 6/4/2024 11:59",
+ "getChildren" : "FLST 7/11/2024 20:44",
"getTitle" : "CG 7/30/2021 19:06",
"initialize" : "bn 7/14/2022 20:17",
- "isEveryChoiceRanked" : "Anton Eichstädt 6/5/2024 11:43",
- "isValidSelection:ForChoiceAt:" : "Anton Eichstädt 5/25/2024 14:21",
- "isValidSizedSelection:" : "Anton Eichstädt 6/5/2024 11:38",
- "layoutFrame" : "JT 8/5/2022 18:24",
+ "layoutFrame" : "FLST 7/11/2024 20:44",
"question" : "NM 6/5/2021 14:40",
- "question:" : "Anton Eichstädt 5/24/2024 15:55",
- "resetUI" : "Anton Eichstädt 6/5/2024 11:18",
- "selectedChoices" : "NM 6/7/2021 18:07",
- "selectedChoices:" : "Anton Eichstädt 5/24/2024 15:56",
- "tooltipSymbol" : "bn 5/12/2022 20:27",
- "updateAnswer" : "CG 7/30/2021 19:06" } }
+ "question:" : "FLST 7/11/2024 20:44",
+ "resetUI" : "FLST 7/11/2024 20:44",
+ "tooltipSymbol" : "bn 5/12/2022 20:27" } }
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/properties.json b/packages/Liquid-UI.package/LQAnswerPanel.class/properties.json
index 5e0e7e92..9dc2cf6e 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/properties.json
+++ b/packages/Liquid-UI.package/LQAnswerPanel.class/properties.json
@@ -4,14 +4,11 @@
],
"classvars" : [
],
- "commentStamp" : "Anton Eichstädt 6/5/2024 17:39",
+ "commentStamp" : "Anton Eichstädt 7/11/2024 18:47",
"instvars" : [
"builder",
"question",
- "answer",
- "selectedChoices",
- "choiceSelected",
- "exclusionMarker" ],
+ "answer" ],
"name" : "LQAnswerPanel",
"pools" : [
],
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/README.md b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/README.md
new file mode 100644
index 00000000..fbdfe125
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/README.md
@@ -0,0 +1,4 @@
+The participant can enter a text in the answer field. Characters ; and : are prohibited because these are the CSV separators for the export. Maximum amount of Characters is also complied with.
+
+Notable Instance Variables:
+answerText - the text that will then be submitted to the LQFreeTextAnswer.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/class/newWith..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/class/newWith..st
new file mode 100644
index 00000000..867d6047
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/class/newWith..st
@@ -0,0 +1,4 @@
+instance creation
+newWith: aBuilder
+
+ ^ self new builder: aBuilder
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answer..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answer..st
new file mode 100644
index 00000000..992e1fa2
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answer..st
@@ -0,0 +1,4 @@
+accessing
+answer: aLQFreeTextAnswer
+
+ answer := aLQFreeTextAnswer
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answerText..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answerText..st
new file mode 100644
index 00000000..ae583fe4
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answerText..st
@@ -0,0 +1,4 @@
+accessing
+answerText: anObject
+
+ answerText := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answerText.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answerText.st
new file mode 100644
index 00000000..8a9a4c9e
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/answerText.st
@@ -0,0 +1,4 @@
+accessing
+answerText
+
+ ^ answerText
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/buildRemainingCharactersCounterTextWith..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/buildRemainingCharactersCounterTextWith..st
new file mode 100644
index 00000000..fe809241
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/buildRemainingCharactersCounterTextWith..st
@@ -0,0 +1,10 @@
+toolbuilder
+buildRemainingCharactersCounterTextWith: aBuilder
+
+ ^ aBuilder pluggableTextSpec new
+ model: self;
+ getText: #getRemainingCharactersLabel;
+ indicateUnacceptedChanges: false;
+ readOnly: true;
+ frame: self layoutFrame;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/buildTextInputWith..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/buildTextInputWith..st
new file mode 100644
index 00000000..5148c339
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/buildTextInputWith..st
@@ -0,0 +1,9 @@
+toolbuilder
+buildTextInputWith: aBuilder
+
+ ^ aBuilder pluggableTextSpec new
+ model: self;
+ getText: #retrieveAnswerText;
+ editText: #updateText:;
+ indicateUnacceptedChanges: false;
+ frame: (0.15 @ 0.2 corner: 0.9 @ 0.8) yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/defaultRemaining.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/defaultRemaining.st
new file mode 100644
index 00000000..57fc95d7
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/defaultRemaining.st
@@ -0,0 +1,4 @@
+accessing
+defaultRemaining
+
+ ^ 'Remaining Choices: 0'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getCharactersRemaining.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getCharactersRemaining.st
new file mode 100644
index 00000000..18fcbd1e
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getCharactersRemaining.st
@@ -0,0 +1,4 @@
+accessing
+getCharactersRemaining
+
+ ^ self question maxNumberOfCharacters - self answerText string size
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getChildren.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getChildren.st
new file mode 100644
index 00000000..964ea703
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getChildren.st
@@ -0,0 +1,8 @@
+accessing
+getChildren
+
+ ^ {
+ self builder build: (self buildQuestionTitleTextWith: self builder).
+ self builder build: (self buildQuestionTooltipWith: self builder).
+ self builder build: (self buildRemainingCharactersCounterTextWith: self builder).
+ self builder build: (self buildTextInputWith: self builder)}
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getRemainingCharactersLabel.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getRemainingCharactersLabel.st
new file mode 100644
index 00000000..b55d06fb
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/getRemainingCharactersLabel.st
@@ -0,0 +1,4 @@
+accessing
+getRemainingCharactersLabel
+
+ ^ 'Remaining Characters: ', self getCharactersRemaining asString
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/initialize.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/initialize.st
new file mode 100644
index 00000000..57924c6b
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/initialize.st
@@ -0,0 +1,9 @@
+initialize-release
+initialize
+
+ super initialize.
+ self answerText: ''.
+ self
+ model: self;
+ frame: (0 @ 0 corner: 1 @ 1);
+ children: #getChildren
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/isValidSizedInput..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/isValidSizedInput..st
new file mode 100644
index 00000000..c58e5bab
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/isValidSizedInput..st
@@ -0,0 +1,4 @@
+validation
+isValidSizedInput: aText
+
+ ^ self getCharactersRemaining > 0
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/question..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/question..st
new file mode 100644
index 00000000..0b461214
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/question..st
@@ -0,0 +1,8 @@
+accessing
+question: aQuestion
+
+ question := aQuestion.
+ self answer: aQuestion buildEmptyAnswer.
+ self answer questionId: self question id.
+ self answerText: self answer answer.
+ self resetUI
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/resetUI.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/resetUI.st
new file mode 100644
index 00000000..f838692b
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/resetUI.st
@@ -0,0 +1,8 @@
+accessing
+resetUI
+
+ self changed: #answer.
+ self changed: #answerText.
+ self changed: #getTitle.
+ self changed: #getRemainingCharactersLabel.
+ self changed: #isWritingEnabled
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/retrieveAnswerText.st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/retrieveAnswerText.st
new file mode 100644
index 00000000..168fb473
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/retrieveAnswerText.st
@@ -0,0 +1,4 @@
+accessing
+retrieveAnswerText
+
+ ^ self truncate: self answerText
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/truncate..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/truncate..st
new file mode 100644
index 00000000..5e18ea99
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/truncate..st
@@ -0,0 +1,8 @@
+accessing
+truncate: aText
+
+ | text |
+ text := aText.
+ text := text copyReplaceAll: ';' with: ''.
+ text := text copyReplaceAll: ':' with: ''.
+ ^ text first: (text size min: self question maxNumberOfCharacters)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/updateText..st b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/updateText..st
new file mode 100644
index 00000000..fd6a95ff
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/instance/updateText..st
@@ -0,0 +1,7 @@
+accessing
+updateText: aText
+
+ self answerText: (self truncate: aText).
+ self answer answer: self answerText.
+ self changed: #getRemainingCharactersLabel.
+ self changed: #retrieveAnswerText
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/methodProperties.json b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/methodProperties.json
new file mode 100644
index 00000000..b617a954
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/methodProperties.json
@@ -0,0 +1,20 @@
+{
+ "class" : {
+ "newWith:" : "CG 7/30/2021 19:06" },
+ "instance" : {
+ "answer:" : "FLST 7/11/2024 20:44",
+ "answerText" : "FLST 7/11/2024 20:44",
+ "answerText:" : "FLST 7/11/2024 20:44",
+ "buildRemainingCharactersCounterTextWith:" : "FLST 7/11/2024 20:44",
+ "buildTextInputWith:" : "FLST 7/11/2024 20:44",
+ "defaultRemaining" : "leli 6/11/2024 12:15",
+ "getCharactersRemaining" : "FLST 7/11/2024 20:44",
+ "getChildren" : "FLST 7/11/2024 20:44",
+ "getRemainingCharactersLabel" : "FLST 7/11/2024 20:44",
+ "initialize" : "FLST 7/11/2024 20:44",
+ "isValidSizedInput:" : "FLST 7/11/2024 20:44",
+ "question:" : "FLST 7/11/2024 20:44",
+ "resetUI" : "FLST 7/11/2024 20:44",
+ "retrieveAnswerText" : "FLST 7/11/2024 20:44",
+ "truncate:" : "FLST 7/11/2024 20:44",
+ "updateText:" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/properties.json b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/properties.json
new file mode 100644
index 00000000..3c81b2e6
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextAnswerPanel.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-UI",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "Anton Eichstädt 7/11/2024 18:48",
+ "instvars" : [
+ "answerText" ],
+ "name" : "LQFreeTextAnswerPanel",
+ "pools" : [
+ ],
+ "super" : "LQAnswerPanel",
+ "type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/README.md b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/README.md
new file mode 100644
index 00000000..d2f5bae6
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/README.md
@@ -0,0 +1,2 @@
+UI-Component responsible for biulding single questions.
+Is part of a LQPollDraftBuilder.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildMaxNumberOfCharactersInputWith..st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildMaxNumberOfCharactersInputWith..st
new file mode 100644
index 00000000..6e9f16fb
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildMaxNumberOfCharactersInputWith..st
@@ -0,0 +1,10 @@
+toolbuilder
+buildMaxNumberOfCharactersInputWith: aBuilder
+
+ ^ aBuilder pluggableTextSpec new
+ model: self;
+ getText: #maxNumberOfCharacters;
+ editText: #maxNumberOfCharacters:;
+ indicateUnacceptedChanges: false;
+ frame: (LayoutFrame fractions: (0.8 @ 0.9 extent: 0.2 @ 0.1) offsets: (0 @ 0 extent: 0 @ 0));
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildMaxNumberOfCharactersLabelWith..st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildMaxNumberOfCharactersLabelWith..st
new file mode 100644
index 00000000..c592145d
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildMaxNumberOfCharactersLabelWith..st
@@ -0,0 +1,10 @@
+toolbuilder
+buildMaxNumberOfCharactersLabelWith: aBuilder
+
+ ^ aBuilder pluggableTextSpec new
+ model: self;
+ getText: #createMaxNumberOfCharactersLabel;
+ readOnly: true;
+ indicateUnacceptedChanges: false;
+ frame: (LayoutFrame fractions: (0 @ 0.9 extent: 0.8 @ 0.1) offsets: (0 @ 0 extent: 0 @ 0));
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildWith..st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildWith..st
new file mode 100644
index 00000000..de272d95
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/buildWith..st
@@ -0,0 +1,10 @@
+toolbuilder
+buildWith: aBuilder
+
+ ^ aBuilder build: (aBuilder pluggablePanelSpec new
+ model: self;
+ children: {
+ self buildTitleInputWith: aBuilder.
+ self buildMaxNumberOfCharactersInputWith: aBuilder.
+ self buildMaxNumberOfCharactersLabelWith: aBuilder};
+ yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/createMaxNumberOfCharactersLabel.st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/createMaxNumberOfCharactersLabel.st
new file mode 100644
index 00000000..44b32a78
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/createMaxNumberOfCharactersLabel.st
@@ -0,0 +1,4 @@
+accessing
+createMaxNumberOfCharactersLabel
+
+ ^ 'Maximum number of characters participants can write'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/determineMaxNumberOfCharactersFrom..st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/determineMaxNumberOfCharactersFrom..st
new file mode 100644
index 00000000..5d709970
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/determineMaxNumberOfCharactersFrom..st
@@ -0,0 +1,4 @@
+text-processing
+determineMaxNumberOfCharactersFrom: aText
+
+ ^ 1 max: (aText asNumber min: 10000)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/maxNumberOfCharacters..st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/maxNumberOfCharacters..st
new file mode 100644
index 00000000..43b166c3
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/maxNumberOfCharacters..st
@@ -0,0 +1,7 @@
+accessing
+maxNumberOfCharacters: aText
+
+ ((self isTextNumber: aText) and: [aText notEmpty])
+ ifTrue: [self question maxNumberOfCharacters: (self determineMaxNumberOfCharactersFrom: aText)]
+ ifFalse: [aText ifEmpty: [self question maxNumberOfCharacters: nil]].
+ self changed: #maxNumberOfCharacters
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/maxNumberOfCharacters.st b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/maxNumberOfCharacters.st
new file mode 100644
index 00000000..186c1e45
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/instance/maxNumberOfCharacters.st
@@ -0,0 +1,5 @@
+accessing
+maxNumberOfCharacters
+
+ self question maxNumberOfCharacters ifNil: [^ '100'].
+ ^ self question maxNumberOfCharacters asString
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/methodProperties.json b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/methodProperties.json
new file mode 100644
index 00000000..42b9ef79
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/methodProperties.json
@@ -0,0 +1,11 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "buildMaxNumberOfCharactersInputWith:" : "FLST 7/11/2024 20:44",
+ "buildMaxNumberOfCharactersLabelWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
+ "createMaxNumberOfCharactersLabel" : "FLST 7/11/2024 20:44",
+ "determineMaxNumberOfCharactersFrom:" : "FLST 7/11/2024 20:44",
+ "maxNumberOfCharacters" : "leli 7/11/2024 14:12",
+ "maxNumberOfCharacters:" : "leli 7/11/2024 13:53" } }
diff --git a/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/properties.json b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/properties.json
new file mode 100644
index 00000000..56f3fc8e
--- /dev/null
+++ b/packages/Liquid-UI.package/LQFreeTextQuestionBuilder.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-UI",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "",
+ "instvars" : [
+ ],
+ "name" : "LQFreeTextQuestionBuilder",
+ "pools" : [
+ ],
+ "super" : "LQQuestionBuilder",
+ "type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/README.md b/packages/Liquid-UI.package/LQHostMenu.class/README.md
index ec96a6bb..4515481e 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/README.md
+++ b/packages/Liquid-UI.package/LQHostMenu.class/README.md
@@ -1,2 +1,2 @@
-UI-Component to create new polls.
-Encapsulates instances of LQQueastionBuilder which are responsible for creating the questions in the poll.
\ No newline at end of file
+The central control panel for hosts.
+Manage and visualize all your polls here.
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildClosePollButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildClosePollButtonWith..st
index 0da84a36..2a85ee5e 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildClosePollButtonWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildClosePollButtonWith..st
@@ -1,8 +1,10 @@
toolbuilder
-buildClosePollButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Close Poll';
- help: 'Close poll to prevent participants from handing in answers';
- action: #closePoll;
- yourself
-
\ No newline at end of file
+buildClosePollButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ enabled: #closePollButtonEnabled;
+ label: 'Close Poll';
+ help: 'Close poll to prevent participants from handing in answers';
+ action: #closePoll;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreateAnotherPollButton..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreateAnotherPollButton..st
index 85998a0d..5f62aab0 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreateAnotherPollButton..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreateAnotherPollButton..st
@@ -1,8 +1,9 @@
toolbuilder
-buildCreateAnotherPollButton: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Create Another Poll';
- help: 'Creates another poll and opens the draft builder for it in a new window.';
- action: #createPoll;
- yourself
-
\ No newline at end of file
+buildCreateAnotherPollButton: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Create Another Poll';
+ help: 'Creates another poll and opens the draft builder for it in a new window.';
+ action: #createPoll;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollButtonWith..st
deleted file mode 100644
index 4c85d316..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollButtonWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildCreatePollButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Create Poll';
- help: 'Create a new Poll from scratch and run it';
- action: #createPoll;
- frame: (LayoutFrame new
- topFraction: 0;
- bottomFraction: 1;
- leftFraction: 0;
- rightFraction: 0.3;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollFromSavedDraftsButton..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollFromSavedDraftsButton..st
index 9f511480..8a6a3cb7 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollFromSavedDraftsButton..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildCreatePollFromSavedDraftsButton..st
@@ -1,8 +1,9 @@
toolbuilder
-buildCreatePollFromSavedDraftsButton: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Create Poll From Saved Drafts';
- help: 'Opens a window with saved drafts you can then edit and run.';
- action: #openPollMenu;
- yourself
-
\ No newline at end of file
+buildCreatePollFromSavedDraftsButton: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Create Poll From Saved Drafts';
+ help: 'Opens a window with saved drafts you can then edit and run.';
+ action: #openPollDraftMenu;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildDeletePollButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildDeletePollButtonWith..st
index fca29ff1..8730b68e 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildDeletePollButtonWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildDeletePollButtonWith..st
@@ -1,8 +1,10 @@
toolbuilder
-buildDeletePollButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Delete Poll';
- help: 'Delete Poll to clear space for new polls.';
- action: #deletePoll;
- yourself
-
\ No newline at end of file
+buildDeletePollButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ enabled: #pollSelected;
+ label: 'Delete Poll';
+ help: 'Delete Poll to clear space for new polls.';
+ action: #deletePoll;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildExportResultsButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildExportResultsButtonWith..st
index f2ad4e61..7d214c60 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildExportResultsButtonWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildExportResultsButtonWith..st
@@ -1,8 +1,10 @@
toolbuilder
-buildExportResultsButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Export Results';
- help: 'Export the results of the currently selected poll to ressources/DataExports as a .csv file named after the poll id.';
- action: #exportResults;
- yourself
-
\ No newline at end of file
+buildExportResultsButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Export Results';
+ enabled: #pollSelected;
+ help: 'Export the results of the currently selected poll to ressources/DataExports as a .csv file named after the poll id.';
+ action: #exportResults;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIDTextBoxWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIDTextBoxWith..st
index fc9acead..f48cb710 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIDTextBoxWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIDTextBoxWith..st
@@ -1,8 +1,9 @@
toolbuilder
-buildIDTextBoxWith: aBuilder
- ^ aBuilder pluggableTextSpec new model: self;
- readOnly: true;
- indicateUnacceptedChanges: false;
- getText: #pollIDString;
- yourself
-
\ No newline at end of file
+buildIDTextBoxWith: aBuilder
+
+ ^ aBuilder pluggableTextSpec new
+ model: self;
+ readOnly: true;
+ indicateUnacceptedChanges: false;
+ getText: #pollIDString;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIdCopyButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIdCopyButtonWith..st
index e3c9562a..2e161007 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIdCopyButtonWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildIdCopyButtonWith..st
@@ -1,7 +1,9 @@
toolbuilder
-buildIdCopyButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Copy Poll-ID to Clipboard';
- action: #copyPollId;
- yourself
-
\ No newline at end of file
+buildIdCopyButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ enabled: #pollSelected;
+ label: 'Copy Poll-Link to Clipboard';
+ action: #copyPollLink;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildOpenMailDialogButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildOpenMailDialogButtonWith..st
similarity index 60%
rename from packages/Liquid-UI.package/LQRunningPollView.class/instance/buildOpenMailDialogButtonWith..st
rename to packages/Liquid-UI.package/LQHostMenu.class/instance/buildOpenMailDialogButtonWith..st
index 40b77b92..ad930a40 100644
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildOpenMailDialogButtonWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildOpenMailDialogButtonWith..st
@@ -4,12 +4,7 @@ buildOpenMailDialogButtonWith: aBuilder
^ aBuilder pluggableButtonSpec new
model: self;
label: 'Send Mails';
+ help: 'You can only send mails if a User Set is selected in the poll draft builder.';
action: #openMailDialog;
enabled: #mailDialogButtonEnabled;
- frame: (LayoutFrame new
- topFraction: 0.5;
- bottomFraction: 0.75;
- leftFraction: 0;
- rightFraction: 1;
- yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollInteractionButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollInteractionButtonWith..st
deleted file mode 100644
index 475f9fcb..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollInteractionButtonWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildPollInteractionButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Close Poll';
- help: 'Close a poll and prevent participants from submitting additional answers';
- action: #closePoll;
- frame: (LayoutFrame new
- topFraction: 0;
- bottomFraction: 1;
- leftFraction: 0.7;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollListWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollListWith..st
index 5bbc410e..ce1adea5 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollListWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildPollListWith..st
@@ -1,10 +1,11 @@
toolbuilder
-buildPollListWith: aBuilder
+buildPollListWith: aBuilder
+
| listSpec |
listSpec := aBuilder pluggableListSpec new.
- listSpec model: self;
- list: #pollList;
- getIndex: #getIndex;
- setIndex: #setIndex:.
- ^ listSpec
-
\ No newline at end of file
+ listSpec
+ model: self;
+ list: #pollList;
+ getIndex: #getIndex;
+ setIndex: #setIndex:.
+ ^ listSpec
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildShowResultsButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildShowResultsButtonWith..st
deleted file mode 100644
index ae4eecb2..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildShowResultsButtonWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildShowResultsButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Export Results';
- help: 'Export poll results in a CSV format';
- action: #exportResults;
- frame: (LayoutFrame new
- topFraction: 0;
- bottomFraction: 0.3;
- leftFraction: 0.35;
- rightFraction: 0.65;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildStopServerButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildStopServerButtonWith..st
index 73fd21d2..5dd52357 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildStopServerButtonWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildStopServerButtonWith..st
@@ -1,8 +1,9 @@
toolbuilder
-buildStopServerButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Stop Server';
- help: 'Stops the liquid server which allows access to your local polls.';
- action: #stopServer;
- yourself
-
\ No newline at end of file
+buildStopServerButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Stop Server';
+ help: 'Stops the liquid server which allows access to your local polls.';
+ action: #stopServer;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildUserSetButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildUserSetButtonWith..st
deleted file mode 100644
index 94d274e5..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildUserSetButtonWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildUserSetButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Manage User Sets';
- help: 'Upload a Userfile to restrict access to your polls';
- action: #openUserSetMenu;
- frame: (LayoutFrame new
- topFraction: 0.35;
- bottomFraction: 0.65;
- leftFraction: 0.35;
- rightFraction: 0.65;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualization.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualization.st
index 7b0f5be5..aa9ebfb9 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualization.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualization.st
@@ -1,5 +1,6 @@
toolbuilder
buildVisualization
- ((self pollList size = 0) or: [self currentPoll = 0])
- ifTrue: [^{PluggablePanelSpec new buildWith: ToolBuilder default}].
- ^{LQVisualizationControls new poll: (LQRemotePollRepoServer pollRepo at: self currentPollID); buildWith: ToolBuilder default}
\ No newline at end of file
+
+ (self pollList isEmpty or: [self currentPoll isZero]) ifTrue: [^ {PluggablePanelSpec new buildWith: ToolBuilder default}].
+ self currentVisualizationControls: (LQVisualizationControls newWithPoll: (LQRemotePollRepoServer pollRepo at: self currentPollID)).
+ ^ {self currentVisualizationControls buildWith: ToolBuilder default}
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualizeResultsButtonWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualizeResultsButtonWith..st
deleted file mode 100644
index 47f242ba..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildVisualizeResultsButtonWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildVisualizeResultsButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Visualize Results';
- help: 'Visualize results to a poll as a bar graph';
- action: #visualizeResults;
- frame: (LayoutFrame new
- topFraction: 0.7;
- bottomFraction: 1;
- leftFraction: 0.35;
- rightFraction: 0.65;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildWith..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildWith..st
index 9a2ecca5..272e2e54 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/buildWith..st
@@ -1,19 +1,24 @@
toolbuilder
-buildWith: builder
+buildWith: builder
+
| windowSpec |
- windowSpec := self buildWindowWith: builder specs: {self pollListFrame
- -> [self buildPollListWith: builder]. self idTextBoxFrameFrame
- -> [self buildIDTextBoxWith: builder]. self visualizationFrame
- -> [builder pluggablePanelSpec new model: self;
- layout: #vertical;
- children: #buildVisualization;
- yourself]. self deletePollButtonFrame
- -> [self buildDeletePollButtonWith: builder]. self createPollFromSavedPollsButtonFrame
- -> [self buildCreatePollFromSavedDraftsButton: builder]. self idCopyButtonFrame
- -> [self buildIdCopyButtonWith: builder]. self stopServerButtonFrame
- -> [self buildStopServerButtonWith: builder]. self closePollButtonFrame
- -> [self buildClosePollButtonWith: builder]. self createAnotherPollButtonFrame
- -> [self buildCreateAnotherPollButton: builder]. self exportResultsButtonFrame
- -> [self buildExportResultsButtonWith: builder]}.
+ windowSpec := self buildWindowWith: builder specs: {
+ self pollListFrame -> [self buildPollListWith: builder].
+ self idTextBoxFrameFrame -> [self buildIDTextBoxWith: builder].
+ self visualizationFrame -> [
+ builder pluggablePanelSpec new
+ model: self;
+ layout: #vertical;
+ children: #buildVisualization;
+ yourself].
+ self openMailDialogButtonFrame -> [self buildOpenMailDialogButtonWith: builder].
+ self deletePollButtonFrame -> [self buildDeletePollButtonWith: builder].
+ self createPollFromSavedPollsButtonFrame -> [self buildCreatePollFromSavedDraftsButton: builder].
+ self idCopyButtonFrame -> [self buildIdCopyButtonWith: builder].
+ self stopServerButtonFrame -> [self buildStopServerButtonWith: builder].
+ self closePollButtonFrame -> [self buildClosePollButtonWith: builder].
+ self createAnotherPollButtonFrame -> [self buildCreateAnotherPollButton: builder].
+ self exportResultsButtonFrame -> [self buildExportResultsButtonWith: builder]}.
windowSpec label: 'Liquid - Host'.
+ windowSpec closeAction: #stopRefreshingVisualization.
^ builder build: windowSpec
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/clipboardDelay.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/clipboardDelay.st
index 3a3b292e..33c7bc14 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/clipboardDelay.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/clipboardDelay.st
@@ -1,4 +1,4 @@
accessing
clipboardDelay
- ^ 0.1
-
\ No newline at end of file
+
+ ^ 0.1
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/closePoll.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/closePoll.st
index 6fc2ca03..3a37cedd 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/closePoll.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/closePoll.st
@@ -1,10 +1,9 @@
modifying
closePoll
- self currentPoll == 0
- ifFalse: [(LQRemotePollRepoServer pollRepo
- at: self currentPollID
- ifAbsent: [^ 'This poll does not exist.'])
- closeWithPassword: (LQPasswordManager default
- findPasswordFor: self currentPollID
- ifAbsent: [^ UIManager default inform: 'You don''t have access to this poll.']).
- self changed: #pollIDString]
\ No newline at end of file
+
+ (LQRemotePollRepoServer pollRepo
+ at: self currentPollID
+ ifAbsent: [^ 'This poll does not exist.']) closeWithPassword: (LQPasswordManager default
+ findPasswordFor: self currentPollID
+ ifAbsent: [^ UIManager default inform: 'You don''t have access to this poll.']).
+ self changed: #closePollButtonEnabled
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonEnabled.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonEnabled.st
new file mode 100644
index 00000000..a1ee67d1
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonEnabled.st
@@ -0,0 +1,4 @@
+toolbuilder
+closePollButtonEnabled
+
+ ^ self pollSelected and: [(LQRemotePollRepoServer pollRepo at: self currentPollID) isOpen]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonFrame.st
index 87846e30..532d6d11 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/closePollButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
closePollButtonFrame
- ^ self
- frame: 0.9
- fromTop: 0.825
- fromLeft: 0.25
- width: 0.5
-
\ No newline at end of file
+
+ ^ self frame: 0.9 fromTop: 0.825 fromLeft: 0.25 width: 0.5
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/copyPollId.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/copyPollId.st
deleted file mode 100644
index 98246433..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/copyPollId.st
+++ /dev/null
@@ -1,9 +0,0 @@
-modifying
-copyPollId
- currentPoll == 0
- ifFalse: [Clipboard clipboardText: self currentPollID asText.
- "Interacting with clipboard takes a bit of time
- otherwise we get faulty results when quickly
- accessing the Clipboard afterwards"
- (Delay forSeconds: self clipboardDelay) wait]
-
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/copyPollLink.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/copyPollLink.st
new file mode 100644
index 00000000..afa3dbdd
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/copyPollLink.st
@@ -0,0 +1,8 @@
+modifying
+copyPollLink
+
+ Clipboard clipboardText: self currentLink asText.
+ "Interacting with clipboard takes a bit of time
+ otherwise we get faulty results when quickly
+ accessing the Clipboard afterwards"
+ (Delay forSeconds: self clipboardDelay) wait
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/createAnotherPollButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/createAnotherPollButtonFrame.st
index 07db176f..9f85b2c9 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/createAnotherPollButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/createAnotherPollButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
createAnotherPollButtonFrame
- ^ self
- frame: 0.9
- fromTop: 0.75
- fromLeft: 0
- width: 0.25
-
\ No newline at end of file
+
+ ^ self frame: 0.9 fromTop: 0.75 fromLeft: 0 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/createPoll.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/createPoll.st
index 458de717..0d2a1213 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/createPoll.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/createPoll.st
@@ -1,9 +1,7 @@
modifying
createPoll
+
| givenPollTitle |
givenPollTitle := UIManager default request: 'Enter a title for your poll'.
- givenPollTitle = ''
- ifTrue: [^ self].
- ToolBuilder
- open: (LQPollDraftBuilder newWithTitle: givenPollTitle)
-
\ No newline at end of file
+ givenPollTitle = '' ifTrue: [^ self].
+ ToolBuilder open: (LQPollDraftBuilder newWithTitle: givenPollTitle)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/createPollFromSavedPollsButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/createPollFromSavedPollsButtonFrame.st
index dcb502d5..0aa0ff24 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/createPollFromSavedPollsButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/createPollFromSavedPollsButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
createPollFromSavedPollsButtonFrame
- ^ self
- frame: 1
- fromTop: 0.9
- fromLeft: 0
- width: 0.25
-
\ No newline at end of file
+
+ ^ self frame: 1 fromTop: 0.9 fromLeft: 0 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentLink.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentLink.st
new file mode 100644
index 00000000..f443c624
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentLink.st
@@ -0,0 +1,4 @@
+accessing
+currentLink
+
+ self currentPoll isZero ifFalse: [^ 'http://', NetNameResolver localAddressString, ':8000/', self currentPollID asText]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll..st
index 5161a2c9..0b09150e 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll..st
@@ -1,4 +1,4 @@
accessing
-currentPoll: aNumber
- currentPoll := aNumber
-
\ No newline at end of file
+currentPoll: aNumber
+
+ currentPoll := aNumber
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll.st
index 989c7b19..cd1bb945 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPoll.st
@@ -1,4 +1,4 @@
accessing
currentPoll
- ^ currentPoll
-
\ No newline at end of file
+
+ ^ currentPoll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPollID.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPollID.st
index d906a63d..f8478aec 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPollID.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentPollID.st
@@ -1,5 +1,4 @@
accessing
currentPollID
- self currentPoll = 0
- ifFalse: [^ (self pollList at: self getIndex) id]
-
\ No newline at end of file
+
+ self currentPoll isZero ifFalse: [^ (self pollList at: self getIndex) id]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentVisualizationControls..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentVisualizationControls..st
new file mode 100644
index 00000000..b7a6e83c
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentVisualizationControls..st
@@ -0,0 +1,4 @@
+accessing
+currentVisualizationControls: anObject
+
+ currentVisualizationControls := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/currentVisualizationControls.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentVisualizationControls.st
new file mode 100644
index 00000000..efdb4bf6
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/currentVisualizationControls.st
@@ -0,0 +1,4 @@
+accessing
+currentVisualizationControls
+
+ ^ currentVisualizationControls
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePoll.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePoll.st
index d56cc622..7c9f15fd 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePoll.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePoll.st
@@ -1,9 +1,8 @@
modifying
deletePoll
- self currentPoll == 0
- ifFalse: [LQRemotePollRepoServer pollRepo
- at: self currentPollID
- ifAbsent: [^ 'This poll does not exist.'].
- LQRemotePollRepoServer pollRepo removeKey: self currentPollID.
- self setIndex: self pollList size]
-
\ No newline at end of file
+
+ LQRemotePollRepoServer pollRepo
+ at: self currentPollID
+ ifAbsent: [^ 'This poll does not exist.'].
+ LQRemotePollRepoServer pollRepo removeKey: self currentPollID.
+ self setIndex: self pollList size
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePollButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePollButtonFrame.st
index 28ad0f3b..19fa8d9b 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePollButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/deletePollButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
deletePollButtonFrame
- ^ self
- frame: 0.825
- fromTop: 0.75
- fromLeft: 0.25
- width: 0.5
-
\ No newline at end of file
+
+ ^ self frame: 0.825 fromTop: 0.75 fromLeft: 0.25 width: 0.5
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResults.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResults.st
index 540153a4..26e973d0 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResults.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResults.st
@@ -1,8 +1,7 @@
modifying
exportResults
- self currentPoll == 0
- ifFalse: [LQRemotePollRepoServer pollRepo
- at: self currentPollID
- ifAbsent: [^ 'This poll does not exist.'].
- (LQRemotePollRepoServer pollRepo at: self currentPollID) exportCSV]
-
\ No newline at end of file
+
+ LQRemotePollRepoServer pollRepo
+ at: self currentPollID
+ ifAbsent: [^ 'This poll does not exist.'].
+ (LQRemotePollRepoServer pollRepo at: self currentPollID) exportCSV
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResultsButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResultsButtonFrame.st
index b0a0c916..3bbb238c 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResultsButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/exportResultsButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
exportResultsButtonFrame
- ^ self
- frame: 0.9
- fromTop: 0.825
- fromLeft: 0.75
- width: 0.25
-
\ No newline at end of file
+
+ ^ self frame: 0.9 fromTop: 0.825 fromLeft: 0.75 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/frame.fromTop.fromLeft.width..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/frame.fromTop.fromLeft.width..st
index 33e67d26..16190caa 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/frame.fromTop.fromLeft.width..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/frame.fromTop.fromLeft.width..st
@@ -1,8 +1,9 @@
toolbuilder
-frame: bottomFraction fromTop: topFraction fromLeft: leftFraction width: rightFraction
- ^ LayoutFrame new leftFraction: leftFraction offset: 0;
- topFraction: topFraction offset: 0;
- rightFraction: leftFraction + rightFraction offset: 0;
- bottomFraction: bottomFraction offset: 0.5 negated;
- yourself
-
\ No newline at end of file
+frame: bottomFraction fromTop: topFraction fromLeft: leftFraction width: rightFraction
+
+ ^ LayoutFrame new
+ leftFraction: leftFraction offset: 0;
+ topFraction: topFraction offset: 0;
+ rightFraction: leftFraction + rightFraction offset: 0;
+ bottomFraction: bottomFraction offset: 0.5 negated;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/getIndex.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/getIndex.st
index 839c750a..06a5cc4b 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/getIndex.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/getIndex.st
@@ -1,4 +1,4 @@
accessing
getIndex
- ^ self currentPoll
-
\ No newline at end of file
+
+ ^ self currentPoll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/idCopyButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/idCopyButtonFrame.st
index ada103aa..e2c298e4 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/idCopyButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/idCopyButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
idCopyButtonFrame
- ^ self
- frame: 0.075
- fromTop: 0
- fromLeft: 0.75
- width: 0.25
-
\ No newline at end of file
+
+ ^ self frame: 0.075 fromTop: 0 fromLeft: 0.75 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/idTextBoxFrameFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/idTextBoxFrameFrame.st
index 7365a68c..6c67afef 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/idTextBoxFrameFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/idTextBoxFrameFrame.st
@@ -1,8 +1,4 @@
toolbuilder
idTextBoxFrameFrame
- ^ self
- frame: 0.075
- fromTop: 0
- fromLeft: 0.25
- width: 0.5
-
\ No newline at end of file
+
+ ^ self frame: 0.075 fromTop: 0 fromLeft: 0.25 width: 0.5
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/initialize.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/initialize.st
index 306fa905..c74468db 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/initialize.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/initialize.st
@@ -1,5 +1,6 @@
initialize-release
initialize
+
super initialize.
self currentPoll: self pollList size.
LQRemotePollRepoServer pollRepo addDependent: self
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/mailDialogButtonEnabled.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/mailDialogButtonEnabled.st
new file mode 100644
index 00000000..4d129563
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/mailDialogButtonEnabled.st
@@ -0,0 +1,4 @@
+toolbuilder
+mailDialogButtonEnabled
+
+ ^ self pollSelected and: [(LQRemotePollRepoServer pollRepo at: self currentPollID) requiresAuthentication]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/openMailDialog.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/openMailDialog.st
new file mode 100644
index 00000000..2afcb3ea
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/openMailDialog.st
@@ -0,0 +1,4 @@
+modifying
+openMailDialog
+
+ LQMailDialog openWithPoll: (LQRemotePollRepoServer pollRepo at: self currentPollID)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/openMailDialogButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/openMailDialogButtonFrame.st
new file mode 100644
index 00000000..4df95c29
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/openMailDialogButtonFrame.st
@@ -0,0 +1,4 @@
+toolbuilder
+openMailDialogButtonFrame
+
+ ^ self frame: 0.825 fromTop: 0.75 fromLeft: 0.75 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/openPollDraftMenu.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/openPollDraftMenu.st
new file mode 100644
index 00000000..e315d054
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/openPollDraftMenu.st
@@ -0,0 +1,4 @@
+modifying
+openPollDraftMenu
+
+ ToolBuilder open: LQPollDraftMenu new
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/openPollMenu.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/openPollMenu.st
deleted file mode 100644
index 5c484443..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/openPollMenu.st
+++ /dev/null
@@ -1,4 +0,0 @@
-modifying
-openPollMenu
- ToolBuilder open: LQPollDraftMenu new
-
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/openUserSetMenu.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/openUserSetMenu.st
deleted file mode 100644
index c7f7ebda..00000000
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/openUserSetMenu.st
+++ /dev/null
@@ -1,4 +0,0 @@
-modifying
-openUserSetMenu
-
- LQUserSetMenu open
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollIDString.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollIDString.st
index b6ae2633..7151d4b1 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollIDString.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollIDString.st
@@ -1,10 +1,6 @@
accessing
pollIDString
- (self currentPoll = 0
- or: [self pollList size = 0])
- ifFalse: [(LQRemotePollRepoServer pollRepo at: self currentPollID) isOpen
- ifFalse: [^ 'Poll closed!'].
- ^ self currentPollID asString].
- self pollList size = 0
- ifTrue: [^ 'No Polls on your Server!'].
+
+ self currentPoll isZero ifFalse: [^ self currentPollID asString].
+ self pollList ifEmpty: [^ 'No Polls on your Server!'].
^ 'No poll selected!'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollList.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollList.st
index d50acb52..6f3d021c 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollList.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollList.st
@@ -1,4 +1,4 @@
accessing
pollList
- ^ LQRemotePollRepoServer pollRepo items values asOrderedCollection
-
\ No newline at end of file
+
+ ^ LQRemotePollRepoServer pollRepo items values asOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollListFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollListFrame.st
index 55adab87..31b01744 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollListFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollListFrame.st
@@ -1,8 +1,4 @@
toolbuilder
pollListFrame
- ^ self
- frame: 0.75
- fromTop: 0
- fromLeft: 0
- width: 0.25
-
\ No newline at end of file
+
+ ^ self frame: 0.75 fromTop: 0 fromLeft: 0 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/pollSelected.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollSelected.st
new file mode 100644
index 00000000..915e2dc4
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/pollSelected.st
@@ -0,0 +1,4 @@
+toolbuilder
+pollSelected
+
+ ^ self currentPoll isZero not
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/setIndex..st b/packages/Liquid-UI.package/LQHostMenu.class/instance/setIndex..st
index e611cccc..792034b9 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/setIndex..st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/setIndex..st
@@ -1,6 +1,11 @@
accessing
-setIndex: index
+setIndex: index
+
self currentPoll: index.
- self changed: #buildVisualization.
- self changed: #pollIDString.
- self changed: #getIndex
\ No newline at end of file
+ self stopRefreshingVisualization.
+ self changed: #buildVisualization.
+ self changed: #pollIDString.
+ self changed: #getIndex.
+ self changed: #mailDialogButtonEnabled.
+ self changed: #closePollButtonEnabled.
+ self changed: #pollSelected
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/stopRefreshingVisualization.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/stopRefreshingVisualization.st
new file mode 100644
index 00000000..f0bdaaec
--- /dev/null
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/stopRefreshingVisualization.st
@@ -0,0 +1,4 @@
+modifying
+stopRefreshingVisualization
+
+ self currentVisualizationControls ifNotNil: [self currentVisualizationControls stopRefreshing]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServer.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServer.st
index 7542d68e..3f2593d2 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServer.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServer.st
@@ -1,5 +1,5 @@
modifying
stopServer
+
LQRemotePollRepoServer startServer.
- UIManager default inform: 'Stopped Liquid-Server'
-
\ No newline at end of file
+ UIManager default inform: 'Stopped Liquid-Server'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServerButtonFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServerButtonFrame.st
index 37ee6402..eebc37e9 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServerButtonFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/stopServerButtonFrame.st
@@ -1,8 +1,4 @@
toolbuilder
stopServerButtonFrame
- ^ self
- frame: 1
- fromTop: 0.9
- fromLeft: 0.25
- width: 0.75
-
\ No newline at end of file
+
+ ^ self frame: 1 fromTop: 0.9 fromLeft: 0.25 width: 0.75
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizationFrame.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizationFrame.st
index 2217932f..b9ae322b 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizationFrame.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizationFrame.st
@@ -1,7 +1,4 @@
toolbuilder
visualizationFrame
- ^ self
- frame: 0.75
- fromTop: 0.075
- fromLeft: 0.25
- width: 0.75
\ No newline at end of file
+
+ ^ self frame: 0.75 fromTop: 0.075 fromLeft: 0.25 width: 0.75
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizeResults.st b/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizeResults.st
index 5a0c03f5..d31a991b 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizeResults.st
+++ b/packages/Liquid-UI.package/LQHostMenu.class/instance/visualizeResults.st
@@ -2,9 +2,9 @@ modifying
visualizeResults
| pollNameInput foundPoll |
-
pollNameInput := UIManager default request: 'Enter Poll ID'.
pollNameInput ifEmpty: [^ self].
- foundPoll := LQRemotePollRepoServer pollRepo at: pollNameInput
+ foundPoll := LQRemotePollRepoServer pollRepo
+ at: pollNameInput
ifAbsent: [^ UIManager default inform: 'This poll does not exist.'].
LQVisualizationControls openOn: foundPoll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/methodProperties.json b/packages/Liquid-UI.package/LQHostMenu.class/methodProperties.json
index d4faf923..2d941627 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQHostMenu.class/methodProperties.json
@@ -3,50 +3,54 @@
"newWithTitle:" : "ape 7/23/2022 09:58",
"open" : "6/23/2024 17:58:45" },
"instance" : {
- "buildClosePollButtonWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildCreateAnotherPollButton:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildCreatePollButtonWith:" : "6/23/2024 17:58:45",
- "buildCreatePollFromSavedDraftsButton:" : "Ingmar Vogel 6/23/2024 19:06",
- "buildDeletePollButtonWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildExportResultsButtonWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildIDTextBoxWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildIdCopyButtonWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildPollInteractionButtonWith:" : "6/23/2024 17:58:45",
- "buildPollListWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildShowResultsButtonWith:" : "6/23/2024 17:58:45",
- "buildStopServerButtonWith:" : "Ingmar Vogel 6/18/2024 16:19",
- "buildUserSetButtonWith:" : "6/23/2024 17:58:45",
- "buildVisualization" : "Ingmar Vogel 6/23/2024 17:43",
- "buildVisualizeResultsButtonWith:" : "6/23/2024 17:58:45",
- "buildWith:" : "Ingmar Vogel 6/23/2024 17:01",
- "clipboardDelay" : "Ingmar Vogel 6/18/2024 16:17",
- "closePoll" : "Ingmar Vogel 6/18/2024 16:16",
- "closePollButtonFrame" : "Ingmar Vogel 6/18/2024 16:19",
- "copyPollId" : "Ingmar Vogel 6/8/2024 15:21",
- "createAnotherPollButtonFrame" : "Ingmar Vogel 6/18/2024 16:19",
- "createPoll" : "Ingmar Vogel 6/18/2024 16:17",
- "createPollFromSavedPollsButtonFrame" : "Ingmar Vogel 6/18/2024 16:19",
- "currentPoll" : "Ingmar Vogel 6/18/2024 16:17",
- "currentPoll:" : "Ingmar Vogel 6/18/2024 16:17",
- "currentPollID" : "Ingmar Vogel 6/20/2024 16:58",
- "deletePoll" : "Ingmar Vogel 6/18/2024 17:02",
- "deletePollButtonFrame" : "Ingmar Vogel 6/18/2024 16:19",
- "exportResults" : "Ingmar Vogel 6/18/2024 16:17",
- "exportResultsButtonFrame" : "Ingmar Vogel 6/18/2024 16:19",
+ "buildClosePollButtonWith:" : "Ingmar Vogel 7/12/2024 11:01",
+ "buildCreateAnotherPollButton:" : "FLST 7/11/2024 20:44",
+ "buildCreatePollFromSavedDraftsButton:" : "FLST 7/12/2024 10:31",
+ "buildDeletePollButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildExportResultsButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildIDTextBoxWith:" : "FLST 7/11/2024 20:44",
+ "buildIdCopyButtonWith:" : "Ingmar Vogel 7/12/2024 11:12",
+ "buildOpenMailDialogButtonWith:" : "Ingmar Vogel 7/12/2024 10:46",
+ "buildPollListWith:" : "FLST 7/11/2024 20:44",
+ "buildStopServerButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildVisualization" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
+ "clipboardDelay" : "FLST 7/11/2024 20:44",
+ "closePoll" : "FLST 7/12/2024 15:55",
+ "closePollButtonEnabled" : "FLST 7/12/2024 15:55",
+ "closePollButtonFrame" : "FLST 7/11/2024 20:44",
+ "copyPollLink" : "FLST 7/12/2024 15:55",
+ "createAnotherPollButtonFrame" : "FLST 7/11/2024 20:44",
+ "createPoll" : "FLST 7/11/2024 20:44",
+ "createPollFromSavedPollsButtonFrame" : "FLST 7/11/2024 20:44",
+ "currentLink" : "FLST 7/11/2024 20:44",
+ "currentPoll" : "FLST 7/11/2024 20:44",
+ "currentPoll:" : "FLST 7/11/2024 20:44",
+ "currentPollID" : "FLST 7/11/2024 20:44",
+ "currentVisualizationControls" : "FLST 7/11/2024 20:44",
+ "currentVisualizationControls:" : "FLST 7/11/2024 20:44",
+ "deletePoll" : "FLST 7/12/2024 15:55",
+ "deletePollButtonFrame" : "FLST 7/11/2024 20:44",
+ "exportResults" : "FLST 7/12/2024 15:55",
+ "exportResultsButtonFrame" : "FLST 7/11/2024 20:44",
"extent" : "6/23/2024 17:58:45",
- "frame:fromTop:fromLeft:width:" : "Ingmar Vogel 6/18/2024 16:19",
- "getIndex" : "Ingmar Vogel 6/18/2024 16:18",
- "idCopyButtonFrame" : "Ingmar Vogel 6/18/2024 16:20",
- "idTextBoxFrameFrame" : "Ingmar Vogel 6/18/2024 16:20",
- "initialize" : "Ingmar Vogel 6/20/2024 18:39",
- "openPollMenu" : "Ingmar Vogel 6/23/2024 19:05",
- "openUserSetMenu" : "6/23/2024 17:58:45",
- "pollIDString" : "Ingmar Vogel 6/19/2024 13:44",
- "pollList" : "Ingmar Vogel 6/18/2024 16:18",
- "pollListFrame" : "Ingmar Vogel 6/18/2024 16:20",
- "setIndex:" : "Ingmar Vogel 6/23/2024 17:21",
- "stopServer" : "Ingmar Vogel 6/18/2024 16:17",
- "stopServerButtonFrame" : "Ingmar Vogel 6/18/2024 16:20",
+ "frame:fromTop:fromLeft:width:" : "FLST 7/11/2024 20:44",
+ "getIndex" : "FLST 7/11/2024 20:44",
+ "idCopyButtonFrame" : "FLST 7/11/2024 20:44",
+ "idTextBoxFrameFrame" : "FLST 7/11/2024 20:44",
+ "initialize" : "FLST 7/11/2024 20:44",
+ "mailDialogButtonEnabled" : "FLST 7/12/2024 15:55",
+ "openMailDialog" : "FLST 7/12/2024 16:20",
+ "openMailDialogButtonFrame" : "Ingmar Vogel 7/12/2024 10:26",
+ "openPollDraftMenu" : "FLST 7/12/2024 10:31",
+ "pollIDString" : "FLST 7/12/2024 15:55",
+ "pollList" : "FLST 7/11/2024 20:44",
+ "pollListFrame" : "FLST 7/11/2024 20:44",
+ "pollSelected" : "Ingmar Vogel 7/12/2024 10:56",
+ "setIndex:" : "Ingmar Vogel 7/12/2024 11:04",
+ "stopRefreshingVisualization" : "FLST 7/11/2024 20:44",
+ "stopServer" : "FLST 7/11/2024 20:44",
+ "stopServerButtonFrame" : "FLST 7/11/2024 20:44",
"update:" : "Ingmar Vogel 6/18/2024 16:55",
- "visualizationFrame" : "Ingmar Vogel 6/18/2024 16:21",
- "visualizeResults" : "6/23/2024 17:58:45" } }
+ "visualizationFrame" : "FLST 7/11/2024 20:44",
+ "visualizeResults" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQHostMenu.class/properties.json b/packages/Liquid-UI.package/LQHostMenu.class/properties.json
index 68a53f5a..8d51855e 100644
--- a/packages/Liquid-UI.package/LQHostMenu.class/properties.json
+++ b/packages/Liquid-UI.package/LQHostMenu.class/properties.json
@@ -6,7 +6,8 @@
],
"commentStamp" : "",
"instvars" : [
- "currentPoll" ],
+ "currentPoll",
+ "currentVisualizationControls" ],
"name" : "LQHostMenu",
"pools" : [
],
diff --git a/packages/Liquid-UI.package/LQLogo.class/README.md b/packages/Liquid-UI.package/LQLogo.class/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/addDefaultLogo.st b/packages/Liquid-UI.package/LQLogo.class/instance/addDefaultLogo.st
new file mode 100644
index 00000000..299bd8e0
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/addDefaultLogo.st
@@ -0,0 +1,6 @@
+initialize-release
+addDefaultLogo
+
+ self
+ setDefaultLogoMorph;
+ addMorph: self logoMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/baseMorph.st b/packages/Liquid-UI.package/LQLogo.class/instance/baseMorph.st
new file mode 100644
index 00000000..5a18eb1c
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/baseMorph.st
@@ -0,0 +1,10 @@
+accessing
+baseMorph
+
+ | baseMorph |
+ baseMorph := Morph new.
+ baseMorph
+ extent: self minimumLogoSize;
+ color: Color transparent;
+ borderWidth: 0.
+ ^ baseMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/createLogoMorph..st b/packages/Liquid-UI.package/LQLogo.class/instance/createLogoMorph..st
new file mode 100644
index 00000000..78e585d6
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/createLogoMorph..st
@@ -0,0 +1,10 @@
+accessing
+createLogoMorph: anImageOrNil
+
+ | baseMorph imageMorph |
+ baseMorph := self baseMorph.
+ anImageOrNil isNil ifTrue: [^ baseMorph].
+ imageMorph := ImageMorph new image: anImageOrNil.
+ baseMorph extent: (imageMorph extent x max: self minimumLogoSize x) @ (imageMorph extent y max: self minimumLogoSize y).
+ baseMorph addMorph: imageMorph.
+ ^ baseMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/loadDefaultLogo.st b/packages/Liquid-UI.package/LQLogo.class/instance/loadDefaultLogo.st
new file mode 100644
index 00000000..3d28cdae
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/loadDefaultLogo.st
@@ -0,0 +1,4 @@
+accessing
+loadDefaultLogo
+
+ ^ self loadLogo: 'liquid_logo.png'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/loadLogo..st b/packages/Liquid-UI.package/LQLogo.class/instance/loadLogo..st
new file mode 100644
index 00000000..4e8b1f7c
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/loadLogo..st
@@ -0,0 +1,9 @@
+accessing
+loadLogo: aStringAsName
+
+ | assetLoader imageLogo |
+ assetLoader := GitAssetLoader for: 'Liquid'.
+ [imageLogo := assetLoader loadForm: aStringAsName]
+ on: AssertionFailure
+ do: [imageLogo := nil].
+ ^ imageLogo
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/logoMorph..st b/packages/Liquid-UI.package/LQLogo.class/instance/logoMorph..st
new file mode 100644
index 00000000..968ebf9c
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/logoMorph..st
@@ -0,0 +1,4 @@
+accessing
+logoMorph: anImageMorph
+
+ logoMorph := anImageMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/logoMorph.st b/packages/Liquid-UI.package/LQLogo.class/instance/logoMorph.st
new file mode 100644
index 00000000..eebd6d7c
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/logoMorph.st
@@ -0,0 +1,4 @@
+accessing
+logoMorph
+
+ ^ logoMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/minimumLogoSize.st b/packages/Liquid-UI.package/LQLogo.class/instance/minimumLogoSize.st
new file mode 100644
index 00000000..41f0c9d8
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/minimumLogoSize.st
@@ -0,0 +1,4 @@
+accessing
+minimumLogoSize
+
+ ^ 500 @ 200
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/instance/setDefaultLogoMorph.st b/packages/Liquid-UI.package/LQLogo.class/instance/setDefaultLogoMorph.st
new file mode 100644
index 00000000..5253f52f
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/instance/setDefaultLogoMorph.st
@@ -0,0 +1,6 @@
+accessing
+setDefaultLogoMorph
+
+ | imageLogo |
+ imageLogo := self loadDefaultLogo.
+ self logoMorph: (self createLogoMorph: imageLogo)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQLogo.class/methodProperties.json b/packages/Liquid-UI.package/LQLogo.class/methodProperties.json
new file mode 100644
index 00000000..70205df3
--- /dev/null
+++ b/packages/Liquid-UI.package/LQLogo.class/methodProperties.json
@@ -0,0 +1,13 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "addDefaultLogo" : "FLST 7/11/2024 20:44",
+ "baseMorph" : "FLST 7/11/2024 20:44",
+ "createLogoMorph:" : "FLST 7/11/2024 20:44",
+ "loadDefaultLogo" : "FLST 7/11/2024 20:44",
+ "loadLogo:" : "FLST 7/11/2024 20:44",
+ "logoMorph" : "FLST 7/11/2024 20:44",
+ "logoMorph:" : "FLST 7/11/2024 20:44",
+ "minimumLogoSize" : "FLST 7/11/2024 20:44",
+ "setDefaultLogoMorph" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/properties.json b/packages/Liquid-UI.package/LQLogo.class/properties.json
similarity index 70%
rename from packages/Liquid-UI.package/LQRunningPollView.class/properties.json
rename to packages/Liquid-UI.package/LQLogo.class/properties.json
index dec7cb32..1c7b9ac0 100644
--- a/packages/Liquid-UI.package/LQRunningPollView.class/properties.json
+++ b/packages/Liquid-UI.package/LQLogo.class/properties.json
@@ -6,9 +6,9 @@
],
"commentStamp" : "",
"instvars" : [
- "poll" ],
- "name" : "LQRunningPollView",
+ "logoMorph" ],
+ "name" : "LQLogo",
"pools" : [
],
- "super" : "LQModel",
+ "super" : "LQWidgetToMorph",
"type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildMailTextInputWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildMailTextInputWith..st
index 797eb510..3fe490c3 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildMailTextInputWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildMailTextInputWith..st
@@ -8,10 +8,10 @@ buildMailTextInputWith: aBuilder
editText: #rawMailText:;
name: self class mailTextInputName;
indicateUnacceptedChanges: false;
- frame: (LayoutFrame new
- topFraction: 0.15;
- bottomFraction: 0.99;
- leftFraction: 0.25;
+ frame: (LayoutFrame new
+ topFraction: 0.15;
+ bottomFraction: 0.99;
+ leftFraction: 0.25;
rightFraction: 0.99;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildReplacementListViewWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildReplacementListViewWith..st
index dc9141e8..95cf3e49 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildReplacementListViewWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildReplacementListViewWith..st
@@ -5,10 +5,10 @@ buildReplacementListViewWith: aBuilder
model: self;
list: #replacementList;
setIndex: #replacementSelectedIndex:;
- frame: (LayoutFrame new
- topFraction: 0.76;
+ frame: (LayoutFrame new
+ topFraction: 0.76;
bottomFraction: 0.99;
- leftFraction: 0.01;
+ leftFraction: 0.01;
rightFraction: 0.24;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSendButtonWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSendButtonWith..st
index ea9cf391..47f1a706 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSendButtonWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSendButtonWith..st
@@ -6,10 +6,10 @@ buildSendButtonWith: aBuilder
model: self;
action: #sendMails;
enabled: true;
- frame: (LayoutFrame new
- topFraction: 0.01;
- bottomFraction: 0.10;
- leftFraction: 0.01;
+ frame: (LayoutFrame new
+ topFraction: 0.01;
+ bottomFraction: 0.1;
+ leftFraction: 0.01;
rightFraction: 0.24;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSenderInputWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSenderInputWith..st
index 0a720511..b8f3b416 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSenderInputWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSenderInputWith..st
@@ -7,10 +7,10 @@ buildSenderInputWith: aBuilder
getText: #mailSender;
editText: #mailSender:;
indicateUnacceptedChanges: false;
- frame: (LayoutFrame new
- topFraction: 0.01;
- bottomFraction: 0.08;
- leftFraction: 0.25;
+ frame: (LayoutFrame new
+ topFraction: 0.01;
+ bottomFraction: 0.08;
+ leftFraction: 0.25;
rightFraction: 0.99;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSubjectInputWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSubjectInputWith..st
index 06251cd6..54ffaf77 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSubjectInputWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildSubjectInputWith..st
@@ -7,10 +7,10 @@ buildSubjectInputWith: aBuilder
getText: #mailSubject;
editText: #mailSubject:;
indicateUnacceptedChanges: false;
- frame: (LayoutFrame new
- topFraction: 0.08;
- bottomFraction: 0.15;
- leftFraction: 0.25;
+ frame: (LayoutFrame new
+ topFraction: 0.08;
+ bottomFraction: 0.15;
+ leftFraction: 0.25;
rightFraction: 0.99;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetLabelWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetLabelWith..st
index edfc1813..6c644bde 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetLabelWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetLabelWith..st
@@ -5,10 +5,10 @@ buildUserSetLabelWith: aBuilder
label: #userSetLabelText;
model: self;
enabled: false;
- frame: (LayoutFrame new
- topFraction: 0.10;
- bottomFraction: 0.15;
- leftFraction: 0.01;
+ frame: (LayoutFrame new
+ topFraction: 0.1;
+ bottomFraction: 0.15;
+ leftFraction: 0.01;
rightFraction: 0.24;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetListViewWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetListViewWith..st
index 3c266196..8bdcc18b 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetListViewWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildUserSetListViewWith..st
@@ -4,10 +4,10 @@ buildUserSetListViewWith: aBuilder
^ aBuilder pluggableListSpec new
model: self;
list: #userSetData;
- frame: (LayoutFrame new
- topFraction: 0.15;
- bottomFraction: 0.75;
- leftFraction: 0.01;
+ frame: (LayoutFrame new
+ topFraction: 0.15;
+ bottomFraction: 0.75;
+ leftFraction: 0.01;
rightFraction: 0.24;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildWith..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildWith..st
index a5221abd..88fe5341 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/buildWith..st
@@ -12,6 +12,5 @@ buildWith: aBuilder
self buildSubjectInputWith: aBuilder.
self buildUserSetListViewWith: aBuilder.
self buildUserSetLabelWith: aBuilder.
- self buildSendButtonWith: aBuilder.
- };
+ self buildSendButtonWith: aBuilder};
yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/injectPollDataInto..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/injectPollDataInto..st
index 53b7e4be..70e8604a 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/injectPollDataInto..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/injectPollDataInto..st
@@ -1,4 +1,4 @@
modifying
injectPollDataInto: aString
- ^ LQStringProcessor replaceAll: (self poll mailMapping) in: aString
\ No newline at end of file
+ ^ LQStringProcessor replaceAll: self poll mailMapping in: aString
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/mailMorph.st b/packages/Liquid-UI.package/LQMailDialog.class/instance/mailMorph.st
index f8785514..df43b431 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/mailMorph.st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/mailMorph.st
@@ -1,6 +1,6 @@
toolbuilder
mailMorph
- ^ self dependents
- detect: [:dependent | (dependent knownName = self class mailTextInputName)]
+ ^ self dependents
+ detect: [:dependent | dependent knownName = self class mailTextInputName]
ifNone: [nil]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSender.st b/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSender.st
index 633aee5d..eecdd263 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSender.st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSender.st
@@ -1,4 +1,4 @@
accessing
mailSender
- ^ mailSender ifNil: [^mailSender := self class defaultSender]
\ No newline at end of file
+ ^ mailSender ifNil: [^ mailSender := self class defaultSender]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSubject.st b/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSubject.st
index 49ce8b95..d85470be 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSubject.st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/mailSubject.st
@@ -1,4 +1,4 @@
accessing
mailSubject
- ^ mailSubject ifNil: [^mailSubject := self class defaultSubject]
\ No newline at end of file
+ ^ mailSubject ifNil: [^ mailSubject := self class defaultSubject]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/pasteIntoMailMorph..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/pasteIntoMailMorph..st
index da14b3fb..29a047bf 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/pasteIntoMailMorph..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/pasteIntoMailMorph..st
@@ -1,11 +1,10 @@
toolbuilder
pasteIntoMailMorph: aString
-
+
| mailText delay |
-
Clipboard clipboardText: aString.
"Interacting with clipboard takes a bit of time otherwise we get faulty results when quickly accessing the Clipboard afterwards"
- delay := 0.10.
+ delay := 0.1.
(Delay forSeconds: delay) wait.
self mailMorph setText: self rawMailText asText.
self mailMorph paste.
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/progressBar.st b/packages/Liquid-UI.package/LQMailDialog.class/instance/progressBar.st
index a13c0f29..6f80f294 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/progressBar.st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/progressBar.st
@@ -1,4 +1,4 @@
accessing
progressBar
- ^ progressBar ifNil: [^progressBar := ProgressMorph label: 'Sending Mails']
\ No newline at end of file
+ ^ progressBar ifNil: [^ progressBar := ProgressMorph label: 'Sending Mails']
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/replacementList.st b/packages/Liquid-UI.package/LQMailDialog.class/instance/replacementList.st
index dff1f0be..003cb705 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/replacementList.st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/replacementList.st
@@ -1,7 +1,7 @@
modifying
replacementList
- ^ OrderedCollection new
- addAll: LQUser new mailMapping keys;
- addAll: {'{{poll-id}}' . '{{poll-title}}'};
- yourself
\ No newline at end of file
+ ^ OrderedCollection new
+ addAll: LQUser new mailMapping keys;
+ addAll: {'{{poll-id}}'. '{{poll-title}}'};
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMailFor..st b/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMailFor..st
index cf820ace..aa2ce8dd 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMailFor..st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMailFor..st
@@ -6,4 +6,4 @@ sendMailFor: aUser
messageSubject: (self injectUserDataFrom: aUser into: (self injectPollDataInto: self mailSubject));
messageSender: self mailSender;
messageRecipient: aUser mail;
- doSendMail
\ No newline at end of file
+ doSendMail
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMails.st b/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMails.st
index 4a4253b3..f33722b1 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMails.st
+++ b/packages/Liquid-UI.package/LQMailDialog.class/instance/sendMails.st
@@ -1,14 +1,15 @@
modifying
sendMails
-
+
| countCompleted |
-
- self mailSender ifEmpty: [UIManager default inform: 'No Sender Mail Given'.
- ^self].
+ self mailSender ifEmpty: [
+ UIManager default inform: 'No Sender Mail Given'.
+ ^ self].
countCompleted := 0.
self openProgressBar.
- [self poll userEntries do: [:user |
- countCompleted := countCompleted + 1.
- self updateProgressBarWithCompleted: countCompleted.
- self sendMailFor: user].
+ [
+ self poll userEntries do: [:user |
+ countCompleted := countCompleted + 1.
+ self updateProgressBarWithCompleted: countCompleted.
+ self sendMailFor: user].
self closeProgressBar] fork
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMailDialog.class/methodProperties.json b/packages/Liquid-UI.package/LQMailDialog.class/methodProperties.json
index 5bd1fd4b..7b71a702 100644
--- a/packages/Liquid-UI.package/LQMailDialog.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQMailDialog.class/methodProperties.json
@@ -6,34 +6,34 @@
"mailTextInputName" : "bn 8/2/2022 16:53",
"openWithPoll:" : "ms 7/3/2022 21:16" },
"instance" : {
- "buildMailTextInputWith:" : "kge 8/1/2022 20:50",
- "buildReplacementListViewWith:" : "kge 8/1/2022 20:50",
- "buildSendButtonWith:" : "kge 8/1/2022 20:53",
- "buildSenderInputWith:" : "kge 8/1/2022 20:53",
- "buildSubjectInputWith:" : "kge 8/1/2022 20:53",
- "buildUserSetLabelWith:" : "kge 8/1/2022 20:53",
- "buildUserSetListViewWith:" : "kge 8/1/2022 20:53",
- "buildWith:" : "ms 8/4/2022 10:55",
+ "buildMailTextInputWith:" : "FLST 7/11/2024 20:44",
+ "buildReplacementListViewWith:" : "FLST 7/11/2024 20:44",
+ "buildSendButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildSenderInputWith:" : "FLST 7/11/2024 20:44",
+ "buildSubjectInputWith:" : "FLST 7/11/2024 20:44",
+ "buildUserSetLabelWith:" : "FLST 7/11/2024 20:44",
+ "buildUserSetListViewWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
"closeProgressBar" : "ms 7/7/2022 10:46",
- "injectPollDataInto:" : "bn 8/2/2022 16:54",
+ "injectPollDataInto:" : "FLST 7/11/2024 20:44",
"injectUserDataFrom:into:" : "bn 8/2/2022 16:54",
- "mailMorph" : "bn 8/2/2022 16:54",
- "mailSender" : "kge 7/21/2022 22:50",
+ "mailMorph" : "FLST 7/11/2024 20:44",
+ "mailSender" : "FLST 7/11/2024 20:44",
"mailSender:" : "kge 7/21/2022 22:50",
- "mailSubject" : "kge 7/21/2022 22:51",
+ "mailSubject" : "FLST 7/11/2024 20:44",
"mailSubject:" : "kge 7/21/2022 22:51",
"openProgressBar" : "kge 7/21/2022 22:53",
- "pasteIntoMailMorph:" : "JT 8/5/2022 18:36",
+ "pasteIntoMailMorph:" : "FLST 7/11/2024 20:44",
"poll" : "kge 7/21/2022 22:51",
"poll:" : "kge 7/21/2022 22:51",
- "progressBar" : "kge 7/21/2022 22:51",
+ "progressBar" : "FLST 7/11/2024 20:44",
"progressBar:" : "kge 7/21/2022 22:51",
"rawMailText" : "bn 8/2/2022 16:55",
"rawMailText:" : "kge 7/21/2022 22:52",
- "replacementList" : "ms 7/4/2022 19:21",
+ "replacementList" : "FLST 7/11/2024 20:44",
"replacementSelectedIndex:" : "ms 7/5/2022 19:26",
- "sendMailFor:" : "kge 7/21/2022 22:53",
- "sendMails" : "JT 8/5/2022 18:37",
+ "sendMailFor:" : "FLST 7/11/2024 20:44",
+ "sendMails" : "FLST 7/11/2024 20:44",
"updateProgressBarWithCompleted:" : "kge 8/3/2022 20:49",
"userSetData" : "kge 8/3/2022 20:48",
"userSetLabelText" : "bn 8/2/2022 16:55" } }
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/README.md b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/README.md
index d2f5bae6..30ce5e13 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/README.md
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/README.md
@@ -1,2 +1,2 @@
-UI-Component responsible for biulding single questions.
-Is part of a LQPollDraftBuilder.
\ No newline at end of file
+UI-Component responsible for biulding single multiple choice questions.
+Is part of a LQPollDraftBuilder.
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesInputWith..st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesInputWith..st
index e5bd3b83..54270ec3 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesInputWith..st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesInputWith..st
@@ -7,4 +7,4 @@ buildMaxNumberOfChoicesInputWith: aBuilder
editText: #maxNumberOfChoices:;
indicateUnacceptedChanges: false;
frame: (LayoutFrame fractions: (0.8 @ 0.9 extent: 0.2 @ 0.1) offsets: (0 @ 0 extent: 0 @ 0));
- yourself
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesLabelWith..st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesLabelWith..st
index 69950f5c..4bbfbcd2 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesLabelWith..st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildMaxNumberOfChoicesLabelWith..st
@@ -7,4 +7,4 @@ buildMaxNumberOfChoicesLabelWith: aBuilder
readOnly: true;
indicateUnacceptedChanges: false;
frame: (LayoutFrame fractions: (0 @ 0.9 extent: 0.8 @ 0.1) offsets: (0 @ 0 extent: 0 @ 0));
- yourself
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildWith..st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildWith..st
index 23b01ca2..3687c3ba 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildWith..st
@@ -2,10 +2,10 @@ toolbuilder
buildWith: aBuilder
^ aBuilder build: (aBuilder pluggablePanelSpec new
- model: self;
- children: {
- self buildTitleInputWith: aBuilder.
- self buildChoicesInputWith: aBuilder.
- self buildMaxNumberOfChoicesInputWith: aBuilder.
- self buildMaxNumberOfChoicesLabelWith: aBuilder};
- yourself)
\ No newline at end of file
+ model: self;
+ children: {
+ self buildTitleInputWith: aBuilder.
+ self buildChoicesInputWith: aBuilder.
+ self buildMaxNumberOfChoicesInputWith: aBuilder.
+ self buildMaxNumberOfChoicesLabelWith: aBuilder};
+ yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/choiceList..st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/choiceList..st
index 726b5626..7e8af568 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/choiceList..st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/choiceList..st
@@ -1,7 +1,5 @@
accessing
choiceList: aText
- self question choiceList: (((self orderedLinesFor: aText)
- select: [:value | (value withBlanksTrimmed = '') not])
- collect: [:value | LQChoice newFrom: value]).
+ self question choiceList: (((self orderedLinesFor: aText) select: [:value | (value withBlanksTrimmed = '') not]) collect: [:value | LQChoice newFrom: value]).
self changed: #choiceDescriptions
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st
index ccfb5bb0..c3c3e6a3 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st
@@ -1,4 +1,4 @@
accessing
createMaxNumberOfChoicesLabel
-
+
^ 'Maximum number of choices participants can vote:'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createQuestionTypeOptionsText.st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createQuestionTypeOptionsText.st
index d7e1fcf2..f815091a 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createQuestionTypeOptionsText.st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/createQuestionTypeOptionsText.st
@@ -1,4 +1,4 @@
accessing
createQuestionTypeOptionsText
-
+
^ 'which kind of question should this be?'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st
index 265a52f3..1e2013df 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st
@@ -1,4 +1,4 @@
text-processing
determineMaxNumberOfChoicesFrom: aText
- ^ (1 max: (aText asNumber min: self question choiceDescriptions size))
\ No newline at end of file
+ ^ 1 max: (aText asNumber min: self question choiceDescriptions size)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/maxNumberOfChoices..st b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/maxNumberOfChoices..st
index bd35ba5d..7a10f458 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/maxNumberOfChoices..st
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/maxNumberOfChoices..st
@@ -3,5 +3,5 @@ maxNumberOfChoices: aText
((self isTextNumber: aText) and: [aText notEmpty])
ifTrue: [self question maxNumberOfChoices: (self determineMaxNumberOfChoicesFrom: aText)]
- ifFalse: [aText isEmpty ifTrue: [self question maxNumberOfChoices: nil]].
+ ifFalse: [aText ifEmpty: [self question maxNumberOfChoices: nil]].
self changed: #maxNumberOfChoices
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/methodProperties.json b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/methodProperties.json
index 9ba00cd1..966dcb0a 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/methodProperties.json
@@ -2,21 +2,15 @@
"class" : {
},
"instance" : {
- "buildChoicesInputWith:" : "kge 8/1/2022 20:44",
- "buildMaxNumberOfChoicesInputWith:" : "kge 8/1/2022 20:45",
- "buildMaxNumberOfChoicesLabelWith:" : "kge 8/1/2022 20:45",
- "buildTitleInputWith:" : "kge 8/1/2022 20:45",
- "buildWith:" : "kge 8/1/2022 20:46",
+ "buildChoicesInputWith:" : "leli 6/7/2024 11:21",
+ "buildMaxNumberOfChoicesInputWith:" : "FLST 7/11/2024 20:44",
+ "buildMaxNumberOfChoicesLabelWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
"choiceDescriptions" : "bn 8/2/2022 16:59",
- "choiceList:" : "Anton Eichstädt 5/29/2024 12:21",
- "createMaxNumberOfChoicesLabel" : "bn 6/25/2022 21:05",
- "createQuestionTypeOptionsText" : "Anton Eichstädt 5/29/2024 12:14",
- "determineMaxNumberOfChoicesFrom:" : "kge 8/4/2022 10:28",
- "isTextNumber:" : "kge 8/4/2022 10:30",
- "maxNumberOfChoices" : "bn 6/2/2022 22:04",
- "maxNumberOfChoices:" : "kge 8/4/2022 10:31",
- "orderedLinesFor:" : "kge 8/3/2022 22:31",
- "question" : "bn 8/2/2022 17:00",
- "question:" : "bn 6/23/2022 21:45",
- "title" : "ape 5/14/2022 09:06",
- "title:" : "bn 6/23/2022 21:47" } }
+ "choiceList:" : "FLST 7/11/2024 20:44",
+ "createMaxNumberOfChoicesLabel" : "FLST 7/11/2024 20:44",
+ "createQuestionTypeOptionsText" : "FLST 7/11/2024 20:44",
+ "determineMaxNumberOfChoicesFrom:" : "FLST 7/11/2024 20:44",
+ "maxNumberOfChoices" : "FLST 7/11/2024 20:24",
+ "maxNumberOfChoices:" : "leli 6/7/2024 11:48",
+ "orderedLinesFor:" : "kge 8/3/2022 22:31" } }
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/properties.json b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/properties.json
index a9b52dcb..387d3274 100644
--- a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/properties.json
+++ b/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/properties.json
@@ -6,10 +6,9 @@
],
"commentStamp" : "JT 6/23/2022 22:47",
"instvars" : [
- "question",
- "questionType" ],
+ ],
"name" : "LQMultiChoiceQuestionBuilder",
"pools" : [
],
- "super" : "LQModel",
+ "super" : "LQQuestionBuilder",
"type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/class/answeredPollIds.st b/packages/Liquid-UI.package/LQParticipantMenu.class/class/answeredPollIds.st
index 5482d410..969073f6 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/class/answeredPollIds.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/class/answeredPollIds.st
@@ -1,4 +1,5 @@
accessing
answeredPollIds
+
AnsweredPollIds ifNil: [AnsweredPollIds := Set new].
^ AnsweredPollIds
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/class/ifAbsentAddToAnsweredPollIds..st b/packages/Liquid-UI.package/LQParticipantMenu.class/class/ifAbsentAddToAnsweredPollIds..st
index 8bdcc507..609b2610 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/class/ifAbsentAddToAnsweredPollIds..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/class/ifAbsentAddToAnsweredPollIds..st
@@ -1,4 +1,4 @@
accessing
ifAbsentAddToAnsweredPollIds: aPollId
-
+
^ self answeredPollIds ifAbsentAdd: aPollId
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerPanel..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerPanel..st
deleted file mode 100644
index 6d4f5014..00000000
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerPanel..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-answerPanel: anObject
-
- answerPanel := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerPanel.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerPanel.st
deleted file mode 100644
index c2474c48..00000000
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerPanel.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-answerPanel
-
- ^ answerPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerSet..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerSet..st
index 6bcaf114..f6563f43 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerSet..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/answerSet..st
@@ -1,4 +1,4 @@
accessing
answerSet: anAnswerSet
- answerSet := anAnswerSet.
\ No newline at end of file
+ answerSet := anAnswerSet
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildAnswerPanelWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildAnswerPanelWith..st
deleted file mode 100644
index f468ed65..00000000
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildAnswerPanelWith..st
+++ /dev/null
@@ -1,13 +0,0 @@
-toolbuilder
-buildAnswerPanelWith: aBuilder
- | temporaryAnswerPanel |
-
- temporaryAnswerPanel := LQAnswerPanel newWith: aBuilder.
- self answerPanel: temporaryAnswerPanel.
- self currentQuestionIndex: 1.
- temporaryAnswerPanel question: self currentQuestion.
- temporaryAnswerPanel exclusionMarker:
- (LQGroupExclusionMarker newFrom: self currentQuestion choiceList
- and: (LQPollRepo default groupAt: self poll id)).
- self answerSet addAnswer: temporaryAnswerPanel answer.
- ^ temporaryAnswerPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildFreeTextPanelWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildFreeTextPanelWith..st
new file mode 100644
index 00000000..b44ddb38
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildFreeTextPanelWith..st
@@ -0,0 +1,9 @@
+toolbuilder
+buildFreeTextPanelWith: aBuilder
+
+ | temporaryPanel |
+ temporaryPanel := LQFreeTextAnswerPanel newWith: aBuilder.
+ temporaryPanel name: #freeText.
+ temporaryPanel question: self mockQuestion.
+ self freeTextPanel: temporaryPanel.
+ ^ temporaryPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildNextQuestionButtonWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildNextQuestionButtonWith..st
index b33280f7..633e9828 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildNextQuestionButtonWith..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildNextQuestionButtonWith..st
@@ -7,9 +7,9 @@ buildNextQuestionButtonWith: aBuilder
help: 'Answer the next question of the poll';
action: #nextQuestionOrSend;
frame: (LayoutFrame new
- topFraction: 0.81;
- leftFraction: 0.70;
- rightFraction: 0.90;
- bottomFraction: 0.91;
- yourself);
+ topFraction: 0.81;
+ leftFraction: 0.7;
+ rightFraction: 0.9;
+ bottomFraction: 0.91;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildPreviousQuestionButtonWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildPreviousQuestionButtonWith..st
index 49008786..13d888b1 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildPreviousQuestionButtonWith..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildPreviousQuestionButtonWith..st
@@ -8,9 +8,9 @@ buildPreviousQuestionButtonWith: aBuilder
enabled: #previousButtonEnabled;
action: #previousQuestion;
frame: (LayoutFrame new
- topFraction: 0.81;
- leftFraction: 0.54;
- rightFraction: 0.69;
- bottomFraction: 0.91;
- yourself);
+ topFraction: 0.81;
+ leftFraction: 0.54;
+ rightFraction: 0.69;
+ bottomFraction: 0.91;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildQuestionCounterWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildQuestionCounterWith..st
index ca457a66..83f5fe61 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildQuestionCounterWith..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildQuestionCounterWith..st
@@ -7,9 +7,9 @@ buildQuestionCounterWith: aBuilder
readOnly: true;
indicateUnacceptedChanges: false;
frame: (LayoutFrame new
- topFraction: 0.81;
- leftFraction: 0.38;
- rightFraction: 0.53;
- bottomFraction: 0.91;
- yourself);
+ topFraction: 0.81;
+ leftFraction: 0.38;
+ rightFraction: 0.53;
+ bottomFraction: 0.91;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildSelectionPanelWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildSelectionPanelWith..st
new file mode 100644
index 00000000..a4723141
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildSelectionPanelWith..st
@@ -0,0 +1,11 @@
+toolbuilder
+buildSelectionPanelWith: aBuilder
+
+ | temporaryPanel |
+ temporaryPanel := LQSelectionAnswerPanel newWith: aBuilder.
+ temporaryPanel name: #selection.
+ temporaryPanel exclusionMarker: LQGroupExclusionMarker new.
+ temporaryPanel question: self mockQuestion.
+ self selectionPanel: temporaryPanel.
+ "self answerSet addAnswer: temporaryPanel answer."
+ ^ temporaryPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildWith..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildWith..st
index 98532d6d..ff5e6e2a 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/buildWith..st
@@ -1,12 +1,19 @@
toolbuilder
buildWith: aBuilder
- ^ aBuilder build: (aBuilder pluggableWindowSpec new
+ | window |
+ window := aBuilder build: (aBuilder pluggableWindowSpec new
model: self;
label: 'Liquid - Participant';
extent: self extent;
- children: {self buildAnswerPanelWith: aBuilder.
- self buildNextQuestionButtonWith: aBuilder.
- self buildPreviousQuestionButtonWith: aBuilder.
- self buildQuestionCounterWith: aBuilder};
- yourself)
\ No newline at end of file
+ children: {
+ self buildSelectionPanelWith: aBuilder.
+ self buildFreeTextPanelWith: aBuilder.
+ self buildNextQuestionButtonWith: aBuilder.
+ self buildPreviousQuestionButtonWith: aBuilder.
+ self buildQuestionCounterWith: aBuilder};
+ yourself).
+ self freeTextPanel: (aBuilder widgetAt: #freeText).
+ self selectionPanel: (aBuilder widgetAt: #selection).
+ self currentQuestionIndex: 1.
+ ^ window
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentAnswerPanel..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentAnswerPanel..st
new file mode 100644
index 00000000..fdb95434
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentAnswerPanel..st
@@ -0,0 +1,4 @@
+accessing
+currentAnswerPanel: anObject
+
+ currentAnswerPanel := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentAnswerPanel.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentAnswerPanel.st
new file mode 100644
index 00000000..dda0fb40
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentAnswerPanel.st
@@ -0,0 +1,4 @@
+toolbuilder
+currentAnswerPanel
+
+ ^ currentAnswerPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex..st
index de674490..bb04133f 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex..st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex..st
@@ -1,14 +1,13 @@
accessing
currentQuestionIndex: anObject
-
+
currentQuestionIndex := anObject.
-
- self answerPanel question: self currentQuestion.
- self answerPanel exclusionMarker:
- (LQGroupExclusionMarker newFrom: self currentQuestion choiceList
+ self newAnswerPanel.
+ self currentAnswerPanel model question: self currentQuestion.
+ self selectionPanel model exclusionMarker: (LQGroupExclusionMarker
+ newFrom: self currentQuestion choiceList
and: (LQPollRepo default groupAt: self poll id)).
- self answerSet addAnswer: self answerPanel answer.
-
+ self answerSet addAnswer: self currentAnswerPanel model answer.
self changed: #previousButtonEnabled.
self changed: #nextButtonLabel.
self changed: #questionCounterText
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex.st
index 6541f093..f9df3374 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/currentQuestionIndex.st
@@ -1,4 +1,4 @@
accessing
currentQuestionIndex
- ^ currentQuestionIndex ifNil: [^currentQuestionIndex := 1]
\ No newline at end of file
+ ^ currentQuestionIndex ifNil: [^ currentQuestionIndex := 1]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/freeTextPanel..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/freeTextPanel..st
new file mode 100644
index 00000000..4fbea8a1
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/freeTextPanel..st
@@ -0,0 +1,4 @@
+accessing
+freeTextPanel: anObject
+
+ freeTextPanel := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/freeTextPanel.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/freeTextPanel.st
new file mode 100644
index 00000000..8a32786c
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/freeTextPanel.st
@@ -0,0 +1,4 @@
+accessing
+freeTextPanel
+
+ ^ freeTextPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/mockQuestion.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/mockQuestion.st
new file mode 100644
index 00000000..4d993675
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/mockQuestion.st
@@ -0,0 +1,7 @@
+toolbuilder
+mockQuestion
+
+ | mockQuestion |
+ mockQuestion := LQQuestion new.
+ mockQuestion title: ''.
+ ^ mockQuestion
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/newAnswerPanel.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/newAnswerPanel.st
new file mode 100644
index 00000000..27f9f171
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/newAnswerPanel.st
@@ -0,0 +1,12 @@
+toolbuilder
+newAnswerPanel
+
+ self currentQuestion isFreeTextQuestion
+ ifTrue: [
+ self currentAnswerPanel: self freeTextPanel.
+ self freeTextPanel show.
+ self selectionPanel hide]
+ ifFalse: [
+ self currentAnswerPanel: self selectionPanel.
+ self selectionPanel show.
+ self freeTextPanel hide]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextButtonLabel.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextButtonLabel.st
index cc0ac142..ba85c284 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextButtonLabel.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextButtonLabel.st
@@ -1,6 +1,5 @@
toolbuilder
nextButtonLabel
- (self currentQuestionIndex >= self poll questionList size)
- ifTrue: [^ 'Send Answers'].
+ self currentQuestionIndex >= self poll questionList size ifTrue: [^ 'Send Answers'].
^ 'Next'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestion.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestion.st
index c2a4f99a..f4ef3eeb 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestion.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestion.st
@@ -1,6 +1,5 @@
modifying
nextQuestion
- (self currentQuestionIndex >= self poll questionList size)
- ifTrue: [^ self].
+ self currentQuestionIndex >= self poll questionList size ifTrue: [^ self].
self currentQuestionIndex: self currentQuestionIndex + 1
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestionOrSend.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestionOrSend.st
index d8d5301d..617ef244 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestionOrSend.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/nextQuestionOrSend.st
@@ -1,7 +1,6 @@
communication
nextQuestionOrSend
-
- (self answerPanel isEveryChoiceRanked) ifFalse:[^self].
- (self currentQuestionIndex >= self poll questionList size)
- ifTrue: [^ self sendAnswer].
+
+ self selectionPanel model isEveryChoiceRanked ifFalse: [^ self].
+ self currentQuestionIndex >= self poll questionList size ifTrue: [^ self sendAnswer].
self nextQuestion
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousButtonEnabled.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousButtonEnabled.st
index 05b40c81..5905ab25 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousButtonEnabled.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousButtonEnabled.st
@@ -1,4 +1,4 @@
toolbuilder
previousButtonEnabled
- ^ (self currentQuestionIndex = 1) not
+ ^ (self currentQuestionIndex = 1) not
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousQuestion.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousQuestion.st
index e6f67a1a..cebfc129 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousQuestion.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/previousQuestion.st
@@ -1,6 +1,5 @@
communication
previousQuestion
- (self currentQuestionIndex = 1)
- ifTrue: [^ self].
+ self currentQuestionIndex = 1 ifTrue: [^ self].
self currentQuestionIndex: self currentQuestionIndex - 1
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/selectionPanel..st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/selectionPanel..st
new file mode 100644
index 00000000..705bde86
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/selectionPanel..st
@@ -0,0 +1,4 @@
+accessing
+selectionPanel: anObject
+
+ selectionPanel := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/selectionPanel.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/selectionPanel.st
new file mode 100644
index 00000000..47831bbe
--- /dev/null
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/selectionPanel.st
@@ -0,0 +1,4 @@
+accessing
+selectionPanel
+
+ ^ selectionPanel
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/sendAnswer.st b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/sendAnswer.st
index de323540..2d51184f 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/instance/sendAnswer.st
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/instance/sendAnswer.st
@@ -1,8 +1,8 @@
modifying
sendAnswer
-
+
(self class ifAbsentAddToAnsweredPollIds: self poll id)
- ifTrue: [LQPollRepo default addAnswerSet: self answerSet ToPoll: self poll id ]
+ ifTrue: [LQPollRepo default addAnswerSet: self answerSet ToPoll: self poll id]
ifFalse: [UIManager default inform: self messageAlreadyAnswered].
self poll isOpen ifFalse: [UIManager default inform: self messageAlreadyClosed].
self destroy.
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/methodProperties.json b/packages/Liquid-UI.package/LQParticipantMenu.class/methodProperties.json
index 6cdacd79..9b9a3339 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/methodProperties.json
@@ -1,31 +1,38 @@
{
"class" : {
- "answeredPollIds" : "kge 7/14/2022 20:37",
+ "answeredPollIds" : "FLST 7/11/2024 20:44",
"answeredPollIds:" : "NM 7/30/2021 19:33",
- "ifAbsentAddToAnsweredPollIds:" : "bn 8/5/2022 21:32",
+ "ifAbsentAddToAnsweredPollIds:" : "FLST 7/11/2024 20:44",
"open" : "CG 7/30/2021 19:06" },
"instance" : {
- "answerPanel" : "bn 8/2/2022 18:06",
- "answerPanel:" : "bn 8/2/2022 18:06",
"answerSet" : "ape 5/14/2022 10:28",
- "answerSet:" : "ape 5/14/2022 10:28",
- "buildAnswerPanelWith:" : "Anton Eichstädt 6/5/2024 16:51",
- "buildNextQuestionButtonWith:" : "kge 8/1/2022 20:57",
- "buildPreviousQuestionButtonWith:" : "kge 8/1/2022 20:58",
- "buildQuestionCounterWith:" : "kge 8/1/2022 20:58",
- "buildWith:" : "ms 8/4/2022 10:58",
+ "answerSet:" : "FLST 7/11/2024 20:44",
+ "buildFreeTextPanelWith:" : "FLST 7/11/2024 20:44",
+ "buildNextQuestionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildPreviousQuestionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildQuestionCounterWith:" : "FLST 7/11/2024 20:44",
+ "buildSelectionPanelWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/12/2024 12:56",
+ "currentAnswerPanel" : "FLST 7/11/2024 20:44",
+ "currentAnswerPanel:" : "leli 6/10/2024 14:45",
"currentQuestion" : "kge 8/3/2022 20:47",
- "currentQuestionIndex" : "kge 7/21/2022 22:56",
- "currentQuestionIndex:" : "JT 8/5/2022 18:41",
+ "currentQuestionIndex" : "FLST 7/11/2024 20:44",
+ "currentQuestionIndex:" : "FLST 7/11/2024 20:44",
+ "freeTextPanel" : "FLST 7/11/2024 20:44",
+ "freeTextPanel:" : "FLST 7/11/2024 20:44",
"importPollWithId:" : "NM 7/30/2021 19:38",
"messageAlreadyAnswered" : "JT 8/4/2022 21:37",
"messageAlreadyClosed" : "JT 8/4/2022 21:37",
- "nextButtonLabel" : "kge 8/3/2022 20:47",
- "nextQuestion" : "Anton Eichstädt 6/4/2024 11:33",
- "nextQuestionOrSend" : "Anton Eichstädt 6/5/2024 11:45",
+ "mockQuestion" : "FLST 7/11/2024 20:44",
+ "newAnswerPanel" : "FLST 7/11/2024 20:44",
+ "nextButtonLabel" : "FLST 7/11/2024 20:44",
+ "nextQuestion" : "FLST 7/11/2024 20:44",
+ "nextQuestionOrSend" : "FLST 7/11/2024 20:44",
"poll" : "JS 5/25/2021 16:05",
"poll:" : "CG 7/30/2021 19:06",
- "previousButtonEnabled" : "bn 8/2/2022 18:25",
- "previousQuestion" : "ms 6/8/2022 15:49",
+ "previousButtonEnabled" : "FLST 7/11/2024 20:44",
+ "previousQuestion" : "FLST 7/11/2024 20:44",
"questionCounterText" : "kge 8/3/2022 20:47",
- "sendAnswer" : "ms 8/5/2022 21:03" } }
+ "selectionPanel" : "FLST 7/11/2024 20:44",
+ "selectionPanel:" : "FLST 7/11/2024 20:44",
+ "sendAnswer" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQParticipantMenu.class/properties.json b/packages/Liquid-UI.package/LQParticipantMenu.class/properties.json
index 8bb23973..70f6c810 100644
--- a/packages/Liquid-UI.package/LQParticipantMenu.class/properties.json
+++ b/packages/Liquid-UI.package/LQParticipantMenu.class/properties.json
@@ -8,8 +8,10 @@
"instvars" : [
"poll",
"answerSet",
- "answerPanel",
- "currentQuestionIndex" ],
+ "currentQuestionIndex",
+ "currentAnswerPanel",
+ "freeTextPanel",
+ "selectionPanel" ],
"name" : "LQParticipantMenu",
"pools" : [
],
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/README.md b/packages/Liquid-UI.package/LQPollDraftBuilder.class/README.md
index ec96a6bb..894107e8 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/README.md
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/README.md
@@ -1,2 +1,2 @@
UI-Component to create new polls.
-Encapsulates instances of LQQueastionBuilder which are responsible for creating the questions in the poll.
\ No newline at end of file
+Encapsulates instances of LQQuestionBuilder which are responsible for creating the questions in the poll.
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/class/newWithPollDraft..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/class/newWithPollDraft..st
new file mode 100644
index 00000000..3e6a6b95
--- /dev/null
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/class/newWithPollDraft..st
@@ -0,0 +1,15 @@
+instance creation
+newWithPollDraft: aLQPollDraft
+
+ | aPollDraftBuilder questionBuilders |
+ aPollDraftBuilder := self new.
+ aPollDraftBuilder pollDraft: aLQPollDraft.
+ aPollDraftBuilder questionBuilders removeAll.
+ questionBuilders := aLQPollDraft questionList collect: [:currentQuestion | | questionBuilder |
+ currentQuestion isMultiChoiceQuestion ifTrue: [questionBuilder := LQMultiChoiceQuestionBuilder new].
+ currentQuestion isPriorityQuestion ifTrue: [questionBuilder := LQPriorityQuestionBuilder new].
+ currentQuestion isFreeTextQuestion ifTrue: [questionBuilder := LQFreeTextQuestionBuilder new].
+ questionBuilder question: currentQuestion.
+ questionBuilder].
+ aPollDraftBuilder questionBuilders addAll: questionBuilders.
+ ^ aPollDraftBuilder
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/class/openWithPollDraft..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/class/openWithPollDraft..st
deleted file mode 100644
index 3b3ec468..00000000
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/class/openWithPollDraft..st
+++ /dev/null
@@ -1,15 +0,0 @@
-instance creation
-openWithPollDraft: aLQPollDraft
- | aPollDraftBuilder |
- aPollDraftBuilder := self new.
- aPollDraftBuilder pollDraft: aLQPollDraft.
- aPollDraftBuilder questionBuilders removeAll.
- 1
- to: aLQPollDraft questionList size
- do: [:i |
- | question |
- question := LQMultiChoiceQuestionBuilder new.
- question
- question: (aLQPollDraft questionList at: i).
- aPollDraftBuilder questionBuilders add: question].
- ToolBuilder open: aPollDraftBuilder
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addFreeTextQuestion.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addFreeTextQuestion.st
new file mode 100644
index 00000000..c21edd8a
--- /dev/null
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addFreeTextQuestion.st
@@ -0,0 +1,11 @@
+modifying
+addFreeTextQuestion
+
+ | question builder |
+ question := LQFreeTextQuestion new.
+ builder := LQFreeTextQuestionBuilder new.
+ builder question: question.
+ self pollDraft addQuestion: question.
+ self addQuestionBuilder: builder.
+ self setIndex: self questionBuilders size.
+ self changed: #list
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addFreeTextQuestionButtonFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addFreeTextQuestionButtonFrame.st
new file mode 100644
index 00000000..489ac487
--- /dev/null
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addFreeTextQuestionButtonFrame.st
@@ -0,0 +1,4 @@
+toolbuilder
+addFreeTextQuestionButtonFrame
+
+ ^ self frame: 0.925 fromTop: 0.85 fromLeft: 0.4375 width: 0.1875
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addManageUserSetsFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addManageUserSetsFrame.st
index a2f8b88e..bedd7449 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addManageUserSetsFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addManageUserSetsFrame.st
@@ -1,8 +1,4 @@
toolbuilder
addManageUserSetsFrame
- ^ self
- frame: 1
- fromTop: 0.85
- fromLeft: 0
- width: 0.25
\ No newline at end of file
+ ^ self frame: 1 fromTop: 0.85 fromLeft: 0 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestion.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestion.st
index 2516ce74..e9d22ee7 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestion.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestion.st
@@ -2,7 +2,6 @@ modifying
addMultiChoiceQuestion
| question builder |
-
question := LQMultiChoiceQuestion new.
builder := LQMultiChoiceQuestionBuilder new.
builder question: question.
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestionButtonFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestionButtonFrame.st
index daf65772..ca58f17e 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestionButtonFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addMultiChoiceQuestionButtonFrame.st
@@ -1,7 +1,4 @@
toolbuilder
addMultiChoiceQuestionButtonFrame
- ^ self
- frame: 0.925
- fromTop: 0.85
- fromLeft: 0.25
- width: 0.25
\ No newline at end of file
+
+ ^ self frame: 0.925 fromTop: 0.85 fromLeft: 0.25 width: 0.1875
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestion.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestion.st
index 46c0a294..4efb47ee 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestion.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestion.st
@@ -2,7 +2,6 @@ modifying
addPriorityQuestion
| question builder |
-
question := LQPriorityQuestion new.
builder := LQPriorityQuestionBuilder new.
builder question: question.
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestionButtonFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestionButtonFrame.st
index dfb4371f..9ca4eaad 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestionButtonFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addPriorityQuestionButtonFrame.st
@@ -1,7 +1,4 @@
toolbuilder
addPriorityQuestionButtonFrame
- ^ self
- frame: 0.925
- fromTop: 0.85
- fromLeft: 0.5
- width: 0.25
\ No newline at end of file
+
+ ^ self frame: 0.925 fromTop: 0.85 fromLeft: 0.625 width: 0.1875
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addQuestionBuilder..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addQuestionBuilder..st
index b4e88257..2690867e 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addQuestionBuilder..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/addQuestionBuilder..st
@@ -1,4 +1,4 @@
accessing
addQuestionBuilder: aQuestionBuilder
-
+
self questionBuilders add: aQuestionBuilder
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddFreeTextQuestionButtonWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddFreeTextQuestionButtonWith..st
new file mode 100644
index 00000000..8fa95384
--- /dev/null
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddFreeTextQuestionButtonWith..st
@@ -0,0 +1,15 @@
+toolbuilder
+buildAddFreeTextQuestionButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Add Free Text Question';
+ help: 'Participants can write their own answer.';
+ action: #addFreeTextQuestion;
+ frame: (LayoutFrame new
+ topFraction: 0.92;
+ leftFraction: 0.33;
+ rightFraction: 0.66;
+ bottomFraction: 1;
+ yourself);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddMultiChoiceQuestionButtonWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddMultiChoiceQuestionButtonWith..st
index 36672c4c..7f1664eb 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddMultiChoiceQuestionButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddMultiChoiceQuestionButtonWith..st
@@ -7,9 +7,9 @@ buildAddMultiChoiceQuestionButtonWith: aBuilder
help: 'Participants can vote for up to how many choices you allow them.';
action: #addMultiChoiceQuestion;
frame: (LayoutFrame new
- topFraction: 0.92;
- leftFraction: 0.33;
- rightFraction: 0.66;
- bottomFraction: 1;
- yourself);
+ topFraction: 0.92;
+ leftFraction: 0.33;
+ rightFraction: 0.66;
+ bottomFraction: 1;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddPriorityQuestionButtonWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddPriorityQuestionButtonWith..st
index 51bd6838..06c12d6c 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddPriorityQuestionButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildAddPriorityQuestionButtonWith..st
@@ -7,9 +7,9 @@ buildAddPriorityQuestionButtonWith: aBuilder
help: 'The new question will let the participants rank the voting options.';
action: #addPriorityQuestion;
frame: (LayoutFrame new
- topFraction: 0.92;
- leftFraction: 0.33;
- rightFraction: 0.66;
- bottomFraction: 1;
- yourself);
+ topFraction: 0.92;
+ leftFraction: 0.33;
+ rightFraction: 0.66;
+ bottomFraction: 1;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildManageUserSetsButton..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildManageUserSetsButton..st
index 1518a0fa..7af13776 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildManageUserSetsButton..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildManageUserSetsButton..st
@@ -6,9 +6,9 @@ buildManageUserSetsButton: aBuilder
label: 'Manage User Sets';
action: #openManageUserSetsMenu;
frame: (LayoutFrame new
- topFraction: 0.92;
- leftFraction: 0;
- rightFraction: 0.32;
- bottomFraction: 1;
- yourself);
+ topFraction: 0.92;
+ leftFraction: 0;
+ rightFraction: 0.32;
+ bottomFraction: 1;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionBuilder.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionBuilder.st
index 3a820db4..11fcbd7b 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionBuilder.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionBuilder.st
@@ -1,7 +1,5 @@
toolbuilder
buildQuestionBuilder
-
- ^ {(self questionBuilderAt: self currentQuestion) buildWith: ToolBuilder default}
-
-
\ No newline at end of file
+ (self questionBuilders isEmpty or: [self currentQuestion isZero]) ifTrue: [^ {PluggablePanelSpec new buildWith: ToolBuilder default}].
+ ^ {(self questionBuilderAt: self currentQuestion) buildWith: ToolBuilder default}
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionListWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionListWith..st
index d64e8f25..815672ee 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionListWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildQuestionListWith..st
@@ -2,11 +2,10 @@ toolbuilder
buildQuestionListWith: aBuilder
| listSpec |
-
listSpec := aBuilder pluggableListSpec new.
- listSpec
+ listSpec
model: self;
list: #list;
- getIndex: #getIndex;
+ getIndex: #getIndex;
setIndex: #setIndex:.
^ listSpec
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRemoveQuestionButtonWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRemoveQuestionButtonWith..st
index c5074b47..202d1a72 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRemoveQuestionButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRemoveQuestionButtonWith..st
@@ -1,12 +1,15 @@
toolbuilder
-buildRemoveQuestionButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Remove Question';
- help: 'Remove the currently selected question from your poll.';
- action: #removeQuestion;
- frame: (LayoutFrame new topFraction: 0.92;
- leftFraction: 0.33;
- rightFraction: 0.66;
- bottomFraction: 1;
- yourself);
- yourself
\ No newline at end of file
+buildRemoveQuestionButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Remove Question';
+ help: 'Remove the currently selected question from your poll.';
+ action: #removeQuestion;
+ frame: (LayoutFrame new
+ topFraction: 0.92;
+ leftFraction: 0.33;
+ rightFraction: 0.66;
+ bottomFraction: 1;
+ yourself);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRunPollButtonWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRunPollButtonWith..st
index d8e2cc8c..aa8b588e 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRunPollButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildRunPollButtonWith..st
@@ -7,9 +7,9 @@ buildRunPollButtonWith: aBuilder
help: 'Run your poll and make it available to participants under a chosen ID';
action: #runPoll;
frame: (LayoutFrame new
- topFraction: 0.92;
- leftFraction: 0.67;
- rightFraction: 1;
- bottomFraction: 1;
- yourself);
+ topFraction: 0.92;
+ leftFraction: 0.67;
+ rightFraction: 1;
+ bottomFraction: 1;
+ yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildSaveDraftButtonWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildSaveDraftButtonWith..st
index 574e945c..229326a5 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildSaveDraftButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildSaveDraftButtonWith..st
@@ -1,12 +1,15 @@
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
\ No newline at end of file
+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
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildWith..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildWith..st
index c84451f7..e46f9005 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/buildWith..st
@@ -1,18 +1,21 @@
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 addMultiChoiceQuestionButtonFrame
- -> [self buildAddMultiChoiceQuestionButtonWith: builder].
- self addPriorityQuestionButtonFrame -> [self buildAddPriorityQuestionButtonWith: builder].
- self addManageUserSetsFrame
- -> [self buildManageUserSetsButton: builder]. self removeQuestionButtonFrame
- -> [self buildRemoveQuestionButtonWith: builder].
- self saveDraftButtonFrame -> [self buildSaveDraftButtonWith: 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 addMultiChoiceQuestionButtonFrame -> [self buildAddMultiChoiceQuestionButtonWith: builder].
+ self addFreeTextQuestionButtonFrame -> [self buildAddFreeTextQuestionButtonWith: builder].
+ self addPriorityQuestionButtonFrame -> [self buildAddPriorityQuestionButtonWith: 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
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/frame.fromTop.fromLeft.width..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/frame.fromTop.fromLeft.width..st
index 9a4a15d9..16190caa 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/frame.fromTop.fromLeft.width..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/frame.fromTop.fromLeft.width..st
@@ -1,9 +1,9 @@
toolbuilder
frame: bottomFraction fromTop: topFraction fromLeft: leftFraction width: rightFraction
-
+
^ LayoutFrame new
leftFraction: leftFraction offset: 0;
topFraction: topFraction offset: 0;
- rightFraction: (leftFraction + rightFraction) offset: 0;
+ rightFraction: leftFraction + rightFraction offset: 0;
bottomFraction: bottomFraction offset: 0.5 negated;
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/generateRandomID.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/generateRandomID.st
index efb9e880..2d21534b 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/generateRandomID.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/generateRandomID.st
@@ -1,4 +1,4 @@
supporting
generateRandomID
- ^(Random new nextInt: 90000) +10000 asString
\ No newline at end of file
+ ^ (Random new nextInt: 90000) + 10000 asString
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host..st
deleted file mode 100644
index b5285eda..00000000
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host..st
+++ /dev/null
@@ -1,3 +0,0 @@
-accessing
-host: anObject
- host := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host.st
deleted file mode 100644
index 5fb3a743..00000000
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host.st
+++ /dev/null
@@ -1,3 +0,0 @@
-accessing
-host
- ^ host
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/initialize.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/initialize.st
index 9a80e6bb..8dd07a8f 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/initialize.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/initialize.st
@@ -1,9 +1,8 @@
initialize-release
initialize
-
+
super initialize.
self questionBuilders: OrderedCollection new.
self pollDraft: LQPollDraft new.
self pollDraft questionList: OrderedCollection new.
- self currentQuestion: 1.
- self addMultiChoiceQuestion
+ self currentQuestion: (self questionBuilders size min: 1)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilderFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilderFrame.st
index 71ddd336..b0dbbb1b 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilderFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilderFrame.st
@@ -1,8 +1,4 @@
toolbuilder
questionBuilderFrame
-
- ^ self
- frame: 0.85
- fromTop: 0
- fromLeft: 0.25
- width: 0.75
\ No newline at end of file
+
+ ^ self frame: 0.85 fromTop: 0 fromLeft: 0.25 width: 0.75
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders..st
index c6b12e29..0ddb75bb 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders..st
@@ -1,4 +1,4 @@
accessing
questionBuilders: anOrderedCollection
-
+
questionBuilders := anOrderedCollection
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders.st
index c4fc337b..d79045dc 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionBuilders.st
@@ -1,4 +1,4 @@
accessing
questionBuilders
-
+
^ questionBuilders
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionListFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionListFrame.st
index e0fc7b56..665503ea 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionListFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/questionListFrame.st
@@ -1,8 +1,4 @@
toolbuilder
questionListFrame
-
- ^ self
- frame: 0.85
- fromTop: 0
- fromLeft: 0
- width: 0.25
\ No newline at end of file
+
+ ^ self frame: 0.85 fromTop: 0 fromLeft: 0 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestion.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestion.st
index 761d1503..0544d4cb 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestion.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestion.st
@@ -1,7 +1,8 @@
modifying
removeQuestion
- self questionBuilders size > 1
- ifTrue: [self pollDraft removeQuestionAt: self getIndex.
- self removeQuestionBuilderAt: self getIndex.
- self setIndex: self questionBuilders size.
- self changed: #list]
\ No newline at end of file
+
+ self questionBuilders ifNotEmpty: [
+ self pollDraft removeQuestionAt: self getIndex.
+ self removeQuestionBuilderAt: self getIndex.
+ self setIndex: self questionBuilders size.
+ self changed: #list]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionBuilderAt..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionBuilderAt..st
index acde4236..36ff3b3c 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionBuilderAt..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionBuilderAt..st
@@ -1,3 +1,4 @@
accessing
-removeQuestionBuilderAt: index
- self questionBuilders removeAt: index
\ No newline at end of file
+removeQuestionBuilderAt: index
+
+ self questionBuilders removeAt: index
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionButtonFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionButtonFrame.st
index 8ee30f2a..ca589c64 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionButtonFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestionButtonFrame.st
@@ -1,7 +1,4 @@
toolbuilder
removeQuestionButtonFrame
- ^ self
- frame: 0.925
- fromTop: 0.85
- fromLeft: 0.75
- width: 0.25
\ No newline at end of file
+
+ ^ self frame: 0.925 fromTop: 0.85 fromLeft: 0.8125 width: 0.1875
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPoll.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPoll.st
index 54eebed7..f5696095 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPoll.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPoll.st
@@ -2,11 +2,13 @@ modifying
runPoll
| poll givenPollID |
-
- givenPollID := UIManager default request: 'Enter a poll id' initialAnswer: self generateRandomID.
- (givenPollID = '') ifTrue: [^ self].
- poll := LQPoll newWithPollDraft: self pollDraft.
- poll startWithId: givenPollID
- ifTaken: [^ UIManager default inform: 'This ID is already taken'].
- self destroy
- "ToolBuilder open: (LQRunningPollView newWithPoll: poll)"
\ No newline at end of file
+ self pollDraft isValid
+ ifTrue: [
+ givenPollID := UIManager default
+ request: 'Enter a poll id'
+ initialAnswer: self generateRandomID.
+ givenPollID = '' ifTrue: [^ self].
+ poll := LQPoll newWithPollDraft: self pollDraft.
+ poll startWithId: givenPollID ifTaken: [^ UIManager default inform: 'This ID is already taken'].
+ self destroy]
+ ifFalse: [^ UIManager default inform: 'Invalid poll-draft: Give every question a title and at least on choice!']
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPollButtonFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPollButtonFrame.st
index ad8169d0..2523b7fe 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPollButtonFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/runPollButtonFrame.st
@@ -1,7 +1,4 @@
toolbuilder
runPollButtonFrame
- ^ self
- frame: 1
- fromTop: 0.925
- fromLeft: 0.5
- width: 0.5
\ No newline at end of file
+
+ ^ self frame: 1 fromTop: 0.925 fromLeft: 0.5 width: 0.5
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraft.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraft.st
index 5c79efb7..44ca9217 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraft.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraft.st
@@ -1,4 +1,10 @@
modifying
saveDraft
- LQRemotePollRepoServer pollDraftRepo items at: self pollDraft pollDraftId put: self pollDraft.
- UIManager default inform: 'Draft has been saved'.
\ No newline at end of file
+
+ self pollDraft isValid
+ ifTrue: [
+ LQRemotePollRepoServer pollDraftRepo items
+ at: self pollDraft pollDraftId
+ put: self pollDraft.
+ UIManager default inform: 'Draft has been saved']
+ ifFalse: [^ UIManager default inform: 'Invalid poll-draft: Give every question a title and at least one choice!']
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraftButtonFrame.st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraftButtonFrame.st
index 8b49ab1b..5a004834 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraftButtonFrame.st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/saveDraftButtonFrame.st
@@ -1,7 +1,4 @@
toolbuilder
saveDraftButtonFrame
- ^ self
- frame: 1
- fromTop: 0.925
- fromLeft: 0.25
- width: 0.25
\ No newline at end of file
+
+ ^ self frame: 1 fromTop: 0.925 fromLeft: 0.25 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/setIndex..st b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/setIndex..st
index 63fb7d7d..87d8026b 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/setIndex..st
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/setIndex..st
@@ -2,6 +2,5 @@ modifying
setIndex: index
self currentQuestion: index.
- index=0 ifFalse: [self changed: #buildQuestionBuilder].
- self changed: #getIndex
-
\ No newline at end of file
+ self changed: #buildQuestionBuilder.
+ self changed: #getIndex
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftBuilder.class/methodProperties.json b/packages/Liquid-UI.package/LQPollDraftBuilder.class/methodProperties.json
index 7f59daf4..1be6d176 100644
--- a/packages/Liquid-UI.package/LQPollDraftBuilder.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQPollDraftBuilder.class/methodProperties.json
@@ -1,48 +1,49 @@
{
"class" : {
+ "newWithPollDraft:" : "FLST 7/12/2024 09:23",
"newWithTitle:" : "ape 7/23/2022 09:58",
- "newWithTitle:and:" : "Ingmar Vogel 6/7/2024 11:53",
- "openWithPollDraft:" : "FLST 6/24/2024 09:01" },
+ "newWithTitle:and:" : "Ingmar Vogel 6/7/2024 11:53" },
"instance" : {
- "addManageUserSetsFrame" : "bn 8/2/2022 16:57",
- "addMultiChoiceQuestion" : "Anton Eichstädt 6/5/2024 17:31",
- "addMultiChoiceQuestionButtonFrame" : "Anton Eichstädt 6/23/2024 15:46",
- "addPriorityQuestion" : "Anton Eichstädt 6/5/2024 17:32",
- "addPriorityQuestionButtonFrame" : "Anton Eichstädt 6/23/2024 15:46",
- "addQuestionBuilder:" : "kge 8/1/2022 19:03",
- "buildAddMultiChoiceQuestionButtonWith:" : "Anton Eichstädt 6/5/2024 17:33",
- "buildAddPriorityQuestionButtonWith:" : "Anton Eichstädt 6/5/2024 16:54",
- "buildManageUserSetsButton:" : "kge 8/1/2022 20:56",
+ "addFreeTextQuestion" : "FLST 7/11/2024 20:44",
+ "addFreeTextQuestionButtonFrame" : "FLST 7/11/2024 20:44",
+ "addManageUserSetsFrame" : "FLST 7/11/2024 20:44",
+ "addMultiChoiceQuestion" : "FLST 7/11/2024 20:44",
+ "addMultiChoiceQuestionButtonFrame" : "FLST 7/11/2024 20:44",
+ "addPriorityQuestion" : "FLST 7/11/2024 20:44",
+ "addPriorityQuestionButtonFrame" : "FLST 7/11/2024 20:44",
+ "addQuestionBuilder:" : "FLST 7/11/2024 20:44",
+ "buildAddFreeTextQuestionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildAddMultiChoiceQuestionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildAddPriorityQuestionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildManageUserSetsButton:" : "FLST 7/11/2024 20:44",
"buildMaxNumberOfChoicesInputWith:" : "kge 8/1/2022 20:46",
"buildMaxNumberOfChoicesLabelWith:" : "kge 8/1/2022 20:46",
- "buildQuestionBuilder" : "bn 8/2/2022 16:57",
- "buildQuestionListWith:" : "JT 8/5/2022 18:51",
- "buildRemoveQuestionButtonWith:" : "vl 5/27/2024 12:40",
- "buildRunPollButtonWith:" : "kge 8/1/2022 20:56",
- "buildSaveDraftButtonWith:" : "6/22/2024 13:56:11",
- "buildWith:" : "FLST 6/22/2024 14:01",
+ "buildQuestionBuilder" : "FLST 7/11/2024 20:44",
+ "buildQuestionListWith:" : "FLST 7/11/2024 20:44",
+ "buildRemoveQuestionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildRunPollButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildSaveDraftButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
"currentQuestion" : "bn 8/2/2022 16:58",
"currentQuestion:" : "bn 6/23/2022 22:15",
- "frame:fromTop:fromLeft:width:" : "bn 8/2/2022 16:58",
- "generateRandomID" : "leli 6/12/2024 14:20",
+ "frame:fromTop:fromLeft:width:" : "FLST 7/11/2024 20:44",
+ "generateRandomID" : "FLST 7/11/2024 20:44",
"getIndex" : "bn 8/2/2022 16:58",
- "host" : "6/23/2024 17:58:45",
- "host:" : "6/23/2024 17:58:45",
- "initialize" : "Ingmar Vogel 6/18/2024 17:44",
+ "initialize" : "FLST 7/11/2024 20:44",
"list" : "bn 8/2/2022 16:58",
"openManageUserSetsMenu" : "bn 8/2/2022 18:08",
"pollDraft" : "bn 6/20/2022 19:55",
"pollDraft:" : "bwe 6/26/2022 15:29",
"questionBuilderAt:" : "kge 8/1/2022 19:04",
- "questionBuilderFrame" : "bn 8/2/2022 16:59",
- "questionBuilders" : "bn 8/2/2022 16:59",
- "questionBuilders:" : "bn 6/23/2022 21:55",
- "questionListFrame" : "bn 8/2/2022 16:59",
- "removeQuestion" : "vl 5/27/2024 12:39",
- "removeQuestionBuilderAt:" : "vl 5/27/2024 12:39",
- "removeQuestionButtonFrame" : "vl 5/27/2024 12:39",
- "runPoll" : "JT 8/5/2022 18:52",
- "runPollButtonFrame" : "Ingmar Vogel 6/23/2024 19:03",
- "saveDraft" : "vl 6/5/2024 20:44",
- "saveDraftButtonFrame" : "Ingmar Vogel 6/23/2024 19:02",
- "setIndex:" : "bn 6/23/2022 22:17" } }
+ "questionBuilderFrame" : "FLST 7/11/2024 20:44",
+ "questionBuilders" : "FLST 7/11/2024 20:44",
+ "questionBuilders:" : "FLST 7/11/2024 20:44",
+ "questionListFrame" : "FLST 7/11/2024 20:44",
+ "removeQuestion" : "FLST 7/12/2024 08:46",
+ "removeQuestionBuilderAt:" : "FLST 7/11/2024 20:44",
+ "removeQuestionButtonFrame" : "FLST 7/11/2024 20:44",
+ "runPoll" : "FLST 7/11/2024 20:44",
+ "runPollButtonFrame" : "FLST 7/11/2024 20:44",
+ "saveDraft" : "FLST 7/11/2024 20:44",
+ "saveDraftButtonFrame" : "FLST 7/11/2024 20:44",
+ "setIndex:" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/README.md b/packages/Liquid-UI.package/LQPollDraftMenu.class/README.md
index e69de29b..1e914327 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/README.md
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/README.md
@@ -0,0 +1 @@
+Shows all the saved drafts and lets you open and delete them.
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildPollDraftListViewWith..st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildPollDraftListViewWith..st
index afa7c189..e9a19be0 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildPollDraftListViewWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildPollDraftListViewWith..st
@@ -1,12 +1,15 @@
toolbuilder
-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
\ No newline at end of file
+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
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildRemovePollDraftButtonWith..st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildRemovePollDraftButtonWith..st
index ca827994..05aaa183 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildRemovePollDraftButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildRemovePollDraftButtonWith..st
@@ -1,11 +1,14 @@
toolbuilder
-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
\ No newline at end of file
+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
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildShowPollDraftButtonWith..st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildShowPollDraftButtonWith..st
index 28004b2e..a5c2262b 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildShowPollDraftButtonWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildShowPollDraftButtonWith..st
@@ -1,11 +1,14 @@
toolbuilder
-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
\ No newline at end of file
+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
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildWith..st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildWith..st
index 3c54d7b8..303861bc 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/buildWith..st
@@ -1,7 +1,12 @@
toolbuilder
-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)
\ No newline at end of file
+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)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected..st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected..st
index d87a508b..bf676b77 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected..st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected..st
@@ -1,3 +1,5 @@
accessing
-choiceSelected: anIndex
- choiceSelected := anIndex. self changed: #choiceSelected
\ No newline at end of file
+choiceSelected: anIndex
+
+ choiceSelected := anIndex.
+ self changed: #choiceSelected
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected.st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected.st
index b6739242..b8c057cb 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected.st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/choiceSelected.st
@@ -1,3 +1,4 @@
accessing
choiceSelected
+
^ choiceSelected
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/initialize.st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/initialize.st
index 1ec219b6..aeefdd65 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/initialize.st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/initialize.st
@@ -1,5 +1,7 @@
initialize-release
initialize
+
super initialize.
- self choiceSelected: 0;
- populatePollDrafts
\ No newline at end of file
+ self
+ choiceSelected: 0;
+ populatePollDrafts
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts..st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts..st
index 0b4271f7..d290e2cd 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts..st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts..st
@@ -1,3 +1,5 @@
accessing
-pollDrafts: anOrderedCollection
- pollDrafts := anOrderedCollection. self changed: #pollDrafts
\ No newline at end of file
+pollDrafts: anOrderedCollection
+
+ pollDrafts := anOrderedCollection.
+ self changed: #pollDrafts
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts.st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts.st
index 70d6f178..3932541d 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts.st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/pollDrafts.st
@@ -1,3 +1,4 @@
accessing
pollDrafts
+
^ pollDrafts
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/populatePollDrafts.st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/populatePollDrafts.st
index 2932f600..5059cbb3 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/populatePollDrafts.st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/populatePollDrafts.st
@@ -1,7 +1,7 @@
modifying
populatePollDrafts
+
| draftCollection |
draftCollection := OrderedCollection new.
- LQRemotePollRepoServer pollDraftRepo items
- do: [:item | draftCollection add: item].
+ LQRemotePollRepoServer pollDraftRepo items do: [:item | draftCollection add: item].
self pollDrafts: draftCollection
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/removeDraft.st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/removeDraft.st
index 134470ab..48b3a9a8 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/removeDraft.st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/removeDraft.st
@@ -1,8 +1,8 @@
modifying
removeDraft
+
| selectedDraft |
- self choiceSelected isZero
- ifTrue: [^ self].
+ self choiceSelected isZero ifTrue: [^ self].
selectedDraft := self pollDrafts at: self choiceSelected.
LQRemotePollRepoServer pollDraftRepo removeKey: selectedDraft pollDraftId.
self populatePollDrafts
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/showDraft.st b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/showDraft.st
index a7211336..74c0e190 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/showDraft.st
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/instance/showDraft.st
@@ -1,8 +1,8 @@
modifying
showDraft
+
| selectedDraft |
- self choiceSelected isZero
- ifTrue: [^ self].
+ self choiceSelected isZero ifTrue: [^ self].
selectedDraft := self pollDrafts at: self choiceSelected.
- LQPollDraftBuilder openWithPollDraft: selectedDraft.
- self destroy.
\ No newline at end of file
+ ToolBuilder open: (LQPollDraftBuilder newWithPollDraft: selectedDraft).
+ self destroy
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPollDraftMenu.class/methodProperties.json b/packages/Liquid-UI.package/LQPollDraftMenu.class/methodProperties.json
index 354b6e41..318058cf 100644
--- a/packages/Liquid-UI.package/LQPollDraftMenu.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQPollDraftMenu.class/methodProperties.json
@@ -2,15 +2,15 @@
"class" : {
},
"instance" : {
- "buildPollDraftListViewWith:" : "vl 6/6/2024 19:28",
- "buildRemovePollDraftButtonWith:" : "vl 6/6/2024 19:28",
- "buildShowPollDraftButtonWith:" : "vl 6/6/2024 19:28",
- "buildWith:" : "vl 6/6/2024 19:28",
- "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" : "vl 6/5/2024 23:14",
- "removeDraft" : "FLST 6/4/2024 15:35",
- "showDraft" : "vl 6/5/2024 21:05" } }
+ "buildPollDraftListViewWith:" : "FLST 7/11/2024 20:44",
+ "buildRemovePollDraftButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildShowPollDraftButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
+ "choiceSelected" : "FLST 7/11/2024 20:44",
+ "choiceSelected:" : "FLST 7/11/2024 20:44",
+ "initialize" : "FLST 7/11/2024 20:44",
+ "pollDrafts" : "FLST 7/11/2024 20:44",
+ "pollDrafts:" : "FLST 7/11/2024 20:44",
+ "populatePollDrafts" : "FLST 7/12/2024 10:05",
+ "removeDraft" : "FLST 7/11/2024 20:44",
+ "showDraft" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/README.md b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/README.md
index d2f5bae6..ca6f78cc 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/README.md
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/README.md
@@ -1,2 +1,2 @@
-UI-Component responsible for biulding single questions.
-Is part of a LQPollDraftBuilder.
\ No newline at end of file
+UI-Component responsible for biulding single priority questions.
+Is part of a LQPollDraftBuilder.
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildTitleInputWith..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildTitleInputWith..st
deleted file mode 100644
index 779124cc..00000000
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildTitleInputWith..st
+++ /dev/null
@@ -1,11 +0,0 @@
-toolbuilder
-buildTitleInputWith: aBuilder
-
- ^ aBuilder pluggableTextSpec new
- model: self;
- getText: #title;
- editText: #title:;
- help: 'Enter your Question title here';
- indicateUnacceptedChanges: false;
- frame: (LayoutFrame fractions: (0 @ 0 extent: 1 @ 0.1) offsets: (0 @ 0 extent: 0 @ 0));
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildWith..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildWith..st
index c441d3e9..13547370 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/buildWith..st
@@ -2,9 +2,9 @@ toolbuilder
buildWith: aBuilder
^ aBuilder build: (aBuilder pluggablePanelSpec new
- model: self;
- children: {
- self buildTitleInputWith: aBuilder.
- self buildChoicesInputWith: aBuilder.
- self buildPriorityExplanationLabelWith: aBuilder.};
- yourself)
\ No newline at end of file
+ model: self;
+ children: {
+ self buildTitleInputWith: aBuilder.
+ self buildChoicesInputWith: aBuilder.
+ self buildPriorityExplanationLabelWith: aBuilder};
+ yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/choiceList..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/choiceList..st
index 726b5626..7e8af568 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/choiceList..st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/choiceList..st
@@ -1,7 +1,5 @@
accessing
choiceList: aText
- self question choiceList: (((self orderedLinesFor: aText)
- select: [:value | (value withBlanksTrimmed = '') not])
- collect: [:value | LQChoice newFrom: value]).
+ self question choiceList: (((self orderedLinesFor: aText) select: [:value | (value withBlanksTrimmed = '') not]) collect: [:value | LQChoice newFrom: value]).
self changed: #choiceDescriptions
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createMaxNumberOfCharactersLabel.st
similarity index 64%
rename from packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st
rename to packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createMaxNumberOfCharactersLabel.st
index ccfb5bb0..2d9ab0b1 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createMaxNumberOfChoicesLabel.st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createMaxNumberOfCharactersLabel.st
@@ -1,4 +1,4 @@
accessing
-createMaxNumberOfChoicesLabel
-
+createMaxNumberOfCharactersLabel
+
^ 'Maximum number of choices participants can vote:'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createPriorityExplanationLabel.st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createPriorityExplanationLabel.st
index c7e329e7..397b73eb 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createPriorityExplanationLabel.st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createPriorityExplanationLabel.st
@@ -1,3 +1,4 @@
toolbuilder
createPriorityExplanationLabel
- ^'participants have to rank every choice'
\ No newline at end of file
+
+ ^ 'participants have to rank every choice'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createQuestionTypeOptionsText.st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createQuestionTypeOptionsText.st
index d7e1fcf2..f815091a 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createQuestionTypeOptionsText.st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/createQuestionTypeOptionsText.st
@@ -1,4 +1,4 @@
accessing
createQuestionTypeOptionsText
-
+
^ 'which kind of question should this be?'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st
index 265a52f3..1e2013df 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/determineMaxNumberOfChoicesFrom..st
@@ -1,4 +1,4 @@
text-processing
determineMaxNumberOfChoicesFrom: aText
- ^ (1 max: (aText asNumber min: self question choiceDescriptions size))
\ No newline at end of file
+ ^ 1 max: (aText asNumber min: self question choiceDescriptions size)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/isTextNumber..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/isTextNumber..st
deleted file mode 100644
index c685de74..00000000
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/isTextNumber..st
+++ /dev/null
@@ -1,4 +0,0 @@
-text-processing
-isTextNumber: aText
-
- ^ aText asString isAllDigits
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/maxNumberOfChoices..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/maxNumberOfChoices..st
index bd35ba5d..7a10f458 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/maxNumberOfChoices..st
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/maxNumberOfChoices..st
@@ -3,5 +3,5 @@ maxNumberOfChoices: aText
((self isTextNumber: aText) and: [aText notEmpty])
ifTrue: [self question maxNumberOfChoices: (self determineMaxNumberOfChoicesFrom: aText)]
- ifFalse: [aText isEmpty ifTrue: [self question maxNumberOfChoices: nil]].
+ ifFalse: [aText ifEmpty: [self question maxNumberOfChoices: nil]].
self changed: #maxNumberOfChoices
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/title..st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/title..st
deleted file mode 100644
index c4c99a09..00000000
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/title..st
+++ /dev/null
@@ -1,5 +0,0 @@
-accessing
-title: aText
-
- self question title: aText asString.
- self changed: #title
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/title.st b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/title.st
deleted file mode 100644
index 41e52e74..00000000
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/title.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-title
-
- ^ self question title
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/methodProperties.json b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/methodProperties.json
index dd91c268..e29f9bd8 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/methodProperties.json
@@ -4,19 +4,13 @@
"instance" : {
"buildChoicesInputWith:" : "kge 8/1/2022 20:44",
"buildPriorityExplanationLabelWith:" : "Anton Eichstädt 6/5/2024 17:08",
- "buildTitleInputWith:" : "kge 8/1/2022 20:45",
- "buildWith:" : "Anton Eichstädt 6/5/2024 17:11",
+ "buildWith:" : "FLST 7/11/2024 20:44",
"choiceDescriptions" : "bn 8/2/2022 16:59",
- "choiceList:" : "Anton Eichstädt 5/29/2024 12:21",
- "createMaxNumberOfChoicesLabel" : "bn 6/25/2022 21:05",
- "createPriorityExplanationLabel" : "Anton Eichstädt 6/5/2024 17:08",
- "createQuestionTypeOptionsText" : "Anton Eichstädt 5/29/2024 12:14",
- "determineMaxNumberOfChoicesFrom:" : "kge 8/4/2022 10:28",
- "isTextNumber:" : "kge 8/4/2022 10:30",
+ "choiceList:" : "FLST 7/11/2024 20:44",
+ "createMaxNumberOfCharactersLabel" : "FLST 7/11/2024 20:44",
+ "createPriorityExplanationLabel" : "FLST 7/11/2024 20:44",
+ "createQuestionTypeOptionsText" : "FLST 7/11/2024 20:44",
+ "determineMaxNumberOfChoicesFrom:" : "FLST 7/11/2024 20:44",
"maxNumberOfChoices" : "bn 6/2/2022 22:04",
- "maxNumberOfChoices:" : "kge 8/4/2022 10:31",
- "orderedLinesFor:" : "kge 8/3/2022 22:31",
- "question" : "bn 8/2/2022 17:00",
- "question:" : "bn 6/23/2022 21:45",
- "title" : "ape 5/14/2022 09:06",
- "title:" : "bn 6/23/2022 21:47" } }
+ "maxNumberOfChoices:" : "Anton Eichstädt 6/19/2024 14:00",
+ "orderedLinesFor:" : "kge 8/3/2022 22:31" } }
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/properties.json b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/properties.json
index c416aeeb..e9d7fe27 100644
--- a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/properties.json
+++ b/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/properties.json
@@ -6,10 +6,9 @@
],
"commentStamp" : "",
"instvars" : [
- "question",
- "questionType" ],
+ ],
"name" : "LQPriorityQuestionBuilder",
"pools" : [
],
- "super" : "LQModel",
+ "super" : "LQQuestionBuilder",
"type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQQuestionBuilder.class/README.md b/packages/Liquid-UI.package/LQQuestionBuilder.class/README.md
new file mode 100644
index 00000000..d2f5bae6
--- /dev/null
+++ b/packages/Liquid-UI.package/LQQuestionBuilder.class/README.md
@@ -0,0 +1,2 @@
+UI-Component responsible for biulding single questions.
+Is part of a LQPollDraftBuilder.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildTitleInputWith..st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/buildTitleInputWith..st
similarity index 100%
rename from packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/buildTitleInputWith..st
rename to packages/Liquid-UI.package/LQQuestionBuilder.class/instance/buildTitleInputWith..st
diff --git a/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/buildWith..st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/buildWith..st
new file mode 100644
index 00000000..77f30be2
--- /dev/null
+++ b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/buildWith..st
@@ -0,0 +1,4 @@
+toolbuilder
+buildWith: aBuilder
+
+ SubclassResponsibility
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/isTextNumber..st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/isTextNumber..st
similarity index 100%
rename from packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/isTextNumber..st
rename to packages/Liquid-UI.package/LQQuestionBuilder.class/instance/isTextNumber..st
diff --git a/packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/question..st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/question..st
similarity index 100%
rename from packages/Liquid-UI.package/LQPriorityQuestionBuilder.class/instance/question..st
rename to packages/Liquid-UI.package/LQQuestionBuilder.class/instance/question..st
diff --git a/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/question.st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/question.st
new file mode 100644
index 00000000..851846f6
--- /dev/null
+++ b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/question.st
@@ -0,0 +1,4 @@
+accessing
+question
+
+ ^ question
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/title..st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/title..st
similarity index 100%
rename from packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/title..st
rename to packages/Liquid-UI.package/LQQuestionBuilder.class/instance/title..st
diff --git a/packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/title.st b/packages/Liquid-UI.package/LQQuestionBuilder.class/instance/title.st
similarity index 100%
rename from packages/Liquid-UI.package/LQMultiChoiceQuestionBuilder.class/instance/title.st
rename to packages/Liquid-UI.package/LQQuestionBuilder.class/instance/title.st
diff --git a/packages/Liquid-UI.package/LQQuestionBuilder.class/methodProperties.json b/packages/Liquid-UI.package/LQQuestionBuilder.class/methodProperties.json
new file mode 100644
index 00000000..52c74ca9
--- /dev/null
+++ b/packages/Liquid-UI.package/LQQuestionBuilder.class/methodProperties.json
@@ -0,0 +1,11 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "buildTitleInputWith:" : "kge 8/1/2022 20:45",
+ "buildWith:" : "leli 6/20/2024 14:35",
+ "isTextNumber:" : "kge 8/4/2022 10:30",
+ "question" : "bn 8/2/2022 17:00",
+ "question:" : "bn 6/23/2022 21:45",
+ "title" : "ape 5/14/2022 09:06",
+ "title:" : "bn 6/23/2022 21:47" } }
diff --git a/packages/Liquid-UI.package/LQResultsView.class/properties.json b/packages/Liquid-UI.package/LQQuestionBuilder.class/properties.json
similarity index 65%
rename from packages/Liquid-UI.package/LQResultsView.class/properties.json
rename to packages/Liquid-UI.package/LQQuestionBuilder.class/properties.json
index 28b435d4..5b81be5e 100644
--- a/packages/Liquid-UI.package/LQResultsView.class/properties.json
+++ b/packages/Liquid-UI.package/LQQuestionBuilder.class/properties.json
@@ -4,10 +4,10 @@
],
"classvars" : [
],
- "commentStamp" : "NM 7/9/2021 14:10",
+ "commentStamp" : "",
"instvars" : [
- "poll" ],
- "name" : "LQResultsView",
+ "question" ],
+ "name" : "LQQuestionBuilder",
"pools" : [
],
"super" : "LQModel",
diff --git a/packages/Liquid-UI.package/LQResultsView.class/README.md b/packages/Liquid-UI.package/LQResultsView.class/README.md
deleted file mode 100644
index 8cb7f441..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Detailed results of a Poll can be viewed in textform here, ordered by AnswerSets.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/class/newWithPoll..st b/packages/Liquid-UI.package/LQResultsView.class/class/newWithPoll..st
deleted file mode 100644
index d79fa48f..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/class/newWithPoll..st
+++ /dev/null
@@ -1,4 +0,0 @@
-instance creation
-newWithPoll: aPoll
-
- ^ self new poll: aPoll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/class/open.st b/packages/Liquid-UI.package/LQResultsView.class/class/open.st
deleted file mode 100644
index ceec65b2..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/class/open.st
+++ /dev/null
@@ -1,4 +0,0 @@
-instance creation
-open
-
- ToolBuilder open: self new
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/instance/buildWith..st b/packages/Liquid-UI.package/LQResultsView.class/instance/buildWith..st
deleted file mode 100644
index eec02b88..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/instance/buildWith..st
+++ /dev/null
@@ -1,9 +0,0 @@
-toolbuilder
-buildWith: aBuilder
-
- ^ aBuilder build: (aBuilder pluggableWindowSpec new
- model: self;
- label: 'Poll results for ', self poll pollDraft title;
- extent: self extent;
- children: {self buildResultsTextBoxWith: aBuilder};
- yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/instance/getResults.st b/packages/Liquid-UI.package/LQResultsView.class/instance/getResults.st
deleted file mode 100644
index ac98f574..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/instance/getResults.st
+++ /dev/null
@@ -1,4 +0,0 @@
-modifying
-getResults
-
- ^ self poll exportCSV
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/instance/poll..st b/packages/Liquid-UI.package/LQResultsView.class/instance/poll..st
deleted file mode 100644
index a8bdc867..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/instance/poll..st
+++ /dev/null
@@ -1,5 +0,0 @@
-accessing
-poll: aPoll
-
- poll := aPoll.
- self changed: #getResults
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/instance/poll.st b/packages/Liquid-UI.package/LQResultsView.class/instance/poll.st
deleted file mode 100644
index c0fab0b1..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/instance/poll.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-poll
-
- ^ poll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/methodProperties.json b/packages/Liquid-UI.package/LQResultsView.class/methodProperties.json
deleted file mode 100644
index 81f77405..00000000
--- a/packages/Liquid-UI.package/LQResultsView.class/methodProperties.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "class" : {
- "newWithPoll:" : "5/22/2024 19:59:29",
- "open" : "5/22/2024 19:59:29" },
- "instance" : {
- "buildResultsTextBoxWith:" : "CG 7/30/2021 19:06",
- "buildWith:" : "ms 8/4/2022 11:26",
- "getResults" : "vl 5/22/2024 19:59",
- "poll" : "CG 7/30/2021 19:06",
- "poll:" : "CG 7/30/2021 19:06" } }
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/README.md b/packages/Liquid-UI.package/LQRunningPollView.class/README.md
deleted file mode 100644
index 16941ba1..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Window with information & actions relevant to a running poll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/class/newWithPoll..st b/packages/Liquid-UI.package/LQRunningPollView.class/class/newWithPoll..st
deleted file mode 100644
index d79fa48f..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/class/newWithPoll..st
+++ /dev/null
@@ -1,4 +0,0 @@
-instance creation
-newWithPoll: aPoll
-
- ^ self new poll: aPoll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/class/open.st b/packages/Liquid-UI.package/LQRunningPollView.class/class/open.st
deleted file mode 100644
index ceec65b2..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/class/open.st
+++ /dev/null
@@ -1,4 +0,0 @@
-instance creation
-open
-
- ToolBuilder open: self new
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildIDTextBoxWith..st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildIDTextBoxWith..st
deleted file mode 100644
index 32035116..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildIDTextBoxWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildIDTextBoxWith: aBuilder
-
- ^ aBuilder pluggableTextSpec new
- model: self;
- readOnly: true;
- indicateUnacceptedChanges: false;
- getText: #pollId;
- frame: (LayoutFrame new
- topFraction: 0;
- bottomFraction: 0.25;
- leftFraction: 0;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildIdCopyButtonWith..st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildIdCopyButtonWith..st
deleted file mode 100644
index a88fa308..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildIdCopyButtonWith..st
+++ /dev/null
@@ -1,14 +0,0 @@
-toolbuilder
-buildIdCopyButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Copy Poll-ID to Clipboard';
- action: #copyPollId;
- frame: (LayoutFrame new
- topFraction: 0.25;
- bottomFraction: 0.5;
- leftFraction: 0;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildPollInteractionButtonWith..st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildPollInteractionButtonWith..st
deleted file mode 100644
index e450b2fe..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildPollInteractionButtonWith..st
+++ /dev/null
@@ -1,14 +0,0 @@
-toolbuilder
-buildPollInteractionButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Close Poll';
- action: #closePoll;
- frame: (LayoutFrame new
- topFraction: 0.75;
- bottomFraction: 1;
- leftFraction: 0;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildWith..st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildWith..st
deleted file mode 100644
index e05dd7f6..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/buildWith..st
+++ /dev/null
@@ -1,12 +0,0 @@
-toolbuilder
-buildWith: aBuilder
-
- ^ aBuilder build: (aBuilder pluggableWindowSpec new
- model: self;
- label: 'Poll running with ID ';
- extent: self extent;
- children: {self buildIDTextBoxWith: aBuilder.
- self buildIdCopyButtonWith: aBuilder.
- self buildPollInteractionButtonWith: aBuilder.
- self buildOpenMailDialogButtonWith: aBuilder};
- yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/changeClosePollButtonToVisualizeResultsButton.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/changeClosePollButtonToVisualizeResultsButton.st
deleted file mode 100644
index c2d56579..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/changeClosePollButtonToVisualizeResultsButton.st
+++ /dev/null
@@ -1,6 +0,0 @@
-modifying
-changeClosePollButtonToVisualizeResultsButton
-
- (self dependents at: 3)
- label: 'Visualize Results';
- action: #visualizeResults
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/clipboardDelay.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/clipboardDelay.st
deleted file mode 100644
index 33c7bc14..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/clipboardDelay.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-clipboardDelay
-
- ^ 0.1
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/closePoll.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/closePoll.st
deleted file mode 100644
index 9e9ca2a3..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/closePoll.st
+++ /dev/null
@@ -1,11 +0,0 @@
-accessing
-closePoll
-
- (LQRemotePollRepoServer pollRepo at: self
- pollId ifAbsent:
- [^ 'This poll does not exist.'])
- closeWithPassword: (LQPasswordManager default
- findPasswordFor: self poll id
- ifAbsent: [^ UIManager default inform: 'You don''t have access to this poll.']).
- self dependents first label: 'closed Poll with ID:'.
- self changeClosePollButtonToVisualizeResultsButton
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/copyPollId.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/copyPollId.st
deleted file mode 100644
index 545220ef..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/copyPollId.st
+++ /dev/null
@@ -1,6 +0,0 @@
-modifying
-copyPollId
-
- Clipboard clipboardText: (self pollId asText).
- "Interacting with clipboard takes a bit of time otherwise we get faulty results when quickly accessing the Clipboard afterwards"
- (Delay forSeconds: self clipboardDelay) wait
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/extent.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/extent.st
deleted file mode 100644
index f3b9fabf..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/extent.st
+++ /dev/null
@@ -1,4 +0,0 @@
-toolbuilder
-extent
-
- ^ 350 @ 130
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/mailDialogButtonEnabled.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/mailDialogButtonEnabled.st
deleted file mode 100644
index 94110329..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/mailDialogButtonEnabled.st
+++ /dev/null
@@ -1,4 +0,0 @@
-toolbuilder
-mailDialogButtonEnabled
-
- ^ self poll requiresAuthentication
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/openMailDialog.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/openMailDialog.st
deleted file mode 100644
index 1d2545e7..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/openMailDialog.st
+++ /dev/null
@@ -1,4 +0,0 @@
-toolbuilder
-openMailDialog
-
- LQMailDialog openWithPoll: self poll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/poll..st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/poll..st
deleted file mode 100644
index c57e7931..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/poll..st
+++ /dev/null
@@ -1,5 +0,0 @@
-accessing
-poll: aPoll
-
- poll := aPoll.
- self changed: #pollId
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/poll.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/poll.st
deleted file mode 100644
index c0fab0b1..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/poll.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-poll
-
- ^ poll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/pollId.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/pollId.st
deleted file mode 100644
index ef51900f..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/pollId.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-pollId
-
- ^ self poll id asString
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/instance/visualizeResults.st b/packages/Liquid-UI.package/LQRunningPollView.class/instance/visualizeResults.st
deleted file mode 100644
index 3a47667e..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/instance/visualizeResults.st
+++ /dev/null
@@ -1,6 +0,0 @@
-modifying
-visualizeResults
-
- LQVisualizationControlsOld openOn: (LQRemotePollRepoServer pollRepo
- at: self pollId
- ifAbsent: [^ UIManager default inform: 'This poll has already been deleted.'])
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQRunningPollView.class/methodProperties.json b/packages/Liquid-UI.package/LQRunningPollView.class/methodProperties.json
deleted file mode 100644
index ab2407b0..00000000
--- a/packages/Liquid-UI.package/LQRunningPollView.class/methodProperties.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "class" : {
- "newWithPoll:" : "CG 7/30/2021 19:06",
- "open" : "CG 7/30/2021 19:06" },
- "instance" : {
- "buildIDTextBoxWith:" : "Ingmar Vogel 6/18/2024 16:08",
- "buildIdCopyButtonWith:" : "kge 8/1/2022 20:50",
- "buildOpenMailDialogButtonWith:" : "kge 8/1/2022 20:50",
- "buildPollInteractionButtonWith:" : "kge 8/1/2022 20:50",
- "buildWith:" : "ms 8/4/2022 11:27",
- "changeClosePollButtonToVisualizeResultsButton" : "bn 8/5/2022 21:31",
- "clipboardDelay" : "ms 8/4/2022 21:16",
- "closePoll" : "JT 8/4/2022 21:50",
- "copyPollId" : "ms 8/4/2022 21:16",
- "extent" : "ms 8/4/2022 11:27",
- "mailDialogButtonEnabled" : "bn 8/2/2022 17:02",
- "openMailDialog" : "kge 7/21/2022 22:58",
- "poll" : "CG 7/30/2021 19:06",
- "poll:" : "CG 7/30/2021 19:06",
- "pollId" : "CG 7/30/2021 19:06",
- "visualizeResults" : "Ingmar Vogel 6/23/2024 17:14" } }
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/README.md b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/README.md
new file mode 100644
index 00000000..b72b40c2
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/README.md
@@ -0,0 +1,7 @@
+The Sideboard shows Xs when the question is a MultiChoice Question (via getMarkers), and the ranking for when the question is a priority question.
+
+For Priority Questions, every Choice has to be ranked in order to submit the answer.
+
+Notable Instance Variables:
+choiceSelected: The choice that was last selected in the MultiSelectionList.
+selectedChoices: An Set (OrderedCollection for the Priority Case) of all choices that have already been selected by the participant.
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/class/newWith..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/class/newWith..st
new file mode 100644
index 00000000..867d6047
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/class/newWith..st
@@ -0,0 +1,4 @@
+instance creation
+newWith: aBuilder
+
+ ^ self new builder: aBuilder
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/answer..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/answer..st
new file mode 100644
index 00000000..63f36387
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/answer..st
@@ -0,0 +1,5 @@
+accessing
+answer: aLQChoicesAnswer
+
+ answer := aLQChoicesAnswer.
+ answer questionId: self question id
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildMultiSelectionListWith..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildMultiSelectionListWith..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildMultiSelectionListWith..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildMultiSelectionListWith..st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRankingIndicesWith..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildRankingIndicesWith..st
similarity index 57%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRankingIndicesWith..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildRankingIndicesWith..st
index 5f64eb9b..115431b7 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRankingIndicesWith..st
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildRankingIndicesWith..st
@@ -4,9 +4,5 @@ buildRankingIndicesWith: aBuilder
^ aBuilder pluggableListSpec new
model: self;
list: #fillSideboard;
- "getIndex: #choiceSelected;
- setIndex: #choiceSelected:;
- getSelectionList: #choiceAt:;
- setSelectionList: #choiceAt:put:;"
frame: (0.025 @ 0.2 corner: 0.05 @ 0.8);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st
similarity index 83%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st
index 50ab48c7..4c096efb 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/buildRemainingVotedChoicesCounterTextWith..st
@@ -6,5 +6,5 @@ buildRemainingVotedChoicesCounterTextWith: aBuilder
getText: #getRemainingVotedChoices;
indicateUnacceptedChanges: false;
readOnly: true;
- frame: (self layoutFrame);
- yourself
+ frame: self layoutFrame;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceAt..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceAt..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceAt..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceAt..st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceAt.put..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceAt.put..st
similarity index 89%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceAt.put..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceAt.put..st
index 9b95f1ef..7b0619c0 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceAt.put..st
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceAt.put..st
@@ -2,12 +2,11 @@ accessing
choiceAt: anIndex put: aBoolean
| choice newSelectedChoices |
-
choice := self choiceDescriptions at: anIndex ifAbsent: [^ self].
newSelectedChoices := self selectedChoices copy.
aBoolean
ifTrue: [(newSelectedChoices includes: choice) ifFalse: [newSelectedChoices add: choice]]
- ifFalse: [newSelectedChoices remove: choice ifAbsent:[]].
+ ifFalse: [newSelectedChoices remove: choice ifAbsent: []].
(self isValidSelection: newSelectedChoices ForChoiceAt: anIndex) ifTrue: [
self selectedChoices: newSelectedChoices.
self updateAnswer].
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceDescriptions.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceDescriptions.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceDescriptions.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceDescriptions.st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceIsNotExcluded..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceIsNotExcluded..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceIsNotExcluded..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceIsNotExcluded..st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceSelected..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceSelected..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceSelected..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceSelected..st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceSelected.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceSelected.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/choiceSelected.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/choiceSelected.st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/exclusionMarker..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/exclusionMarker..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/exclusionMarker..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/exclusionMarker..st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/exclusionMarker.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/exclusionMarker.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/exclusionMarker.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/exclusionMarker.st
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/fillSideboard.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/fillSideboard.st
new file mode 100644
index 00000000..e5595dad
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/fillSideboard.st
@@ -0,0 +1,5 @@
+accessing
+fillSideboard
+
+ self question isPriorityQuestion ifTrue: [^ self getRankingIndices].
+ self question isMultiChoiceQuestion ifTrue: [^ self getMarkers]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getChildren.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getChildren.st
new file mode 100644
index 00000000..b3304c8a
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getChildren.st
@@ -0,0 +1,9 @@
+accessing
+getChildren
+
+ ^ {
+ self builder build: (self buildMultiSelectionListWith: self builder).
+ self builder build: (self buildQuestionTitleTextWith: self builder).
+ self builder build: (self buildQuestionTooltipWith: self builder).
+ self builder build: (self buildRemainingVotedChoicesCounterTextWith: self builder).
+ self builder build: (self buildRankingIndicesWith: self builder)}
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getMarkers.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getMarkers.st
new file mode 100644
index 00000000..a502473f
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getMarkers.st
@@ -0,0 +1,12 @@
+accessing
+getMarkers
+
+ | ranking |
+ ranking := OrderedCollection new.
+ self question choiceList do: [:choice |
+ (self selectedChoices includes: choice description)
+ ifTrue: [ranking add: 'X']
+ ifFalse: [
+ ranking add: ' '
+ "value to show that this is not yet ranked"]].
+ ^ ranking
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getNumberOfChoices.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getNumberOfChoices.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/getNumberOfChoices.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getNumberOfChoices.st
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getRankingIndices.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getRankingIndices.st
new file mode 100644
index 00000000..fb3705f5
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getRankingIndices.st
@@ -0,0 +1,12 @@
+accessing
+getRankingIndices
+
+ | ranking |
+ ranking := OrderedCollection new.
+ self question choiceList do: [:choice |
+ ((self selectedChoices includes: choice description) or: [self choiceSelected = choice])
+ ifTrue: [ranking add: (self selectedChoices indexOf: choice description)]
+ ifFalse: [
+ ranking add: ' '
+ "value to show that this is not yet ranked"]].
+ ^ ranking
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/getRemainingVotedChoices.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getRemainingVotedChoices.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/getRemainingVotedChoices.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/getRemainingVotedChoices.st
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/initialize.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/initialize.st
new file mode 100644
index 00000000..483750c3
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/initialize.st
@@ -0,0 +1,9 @@
+initialize-release
+initialize
+
+ super initialize.
+ self selectedChoices: OrderedCollection new.
+ self
+ model: self;
+ frame: (0 @ 0 corner: 1 @ 1);
+ children: #getChildren
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/isEveryChoiceRanked.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isEveryChoiceRanked.st
similarity index 52%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/isEveryChoiceRanked.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isEveryChoiceRanked.st
index 9c300c56..0515dd39 100644
--- a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/isEveryChoiceRanked.st
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isEveryChoiceRanked.st
@@ -1,4 +1,4 @@
validation
isEveryChoiceRanked
- ^(self question type = 'priority') ==> (self selectedChoices size = self question maxNumberOfChoices)
\ No newline at end of file
+ ^ self question isPriorityQuestion ==> (self selectedChoices size = self question maxNumberOfChoices)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/isValidSelection.ForChoiceAt..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isValidSelection.ForChoiceAt..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/isValidSelection.ForChoiceAt..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isValidSelection.ForChoiceAt..st
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isValidSizedSelection..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isValidSizedSelection..st
new file mode 100644
index 00000000..57f9f661
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isValidSizedSelection..st
@@ -0,0 +1,4 @@
+validation
+isValidSizedSelection: aSelection
+
+ ^ aSelection size <= self question maxNumberOfChoices
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/question..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/question..st
new file mode 100644
index 00000000..061e0671
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/question..st
@@ -0,0 +1,7 @@
+accessing
+question: aQuestion
+
+ question := aQuestion.
+ self selectedChoices: OrderedCollection new.
+ self answer: aQuestion buildEmptyAnswer.
+ self resetUI
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/resetUI.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/resetUI.st
new file mode 100644
index 00000000..0f3d997a
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/resetUI.st
@@ -0,0 +1,7 @@
+modifying
+resetUI
+
+ self changed: #choiceDescriptions.
+ self changed: #getTitle.
+ self changed: #getRemainingVotedChoices.
+ self changed: #fillSideboard
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/selectedChoices..st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/selectedChoices..st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/selectedChoices..st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/selectedChoices..st
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/selectedChoices.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/selectedChoices.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/selectedChoices.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/selectedChoices.st
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/size.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/size.st
new file mode 100644
index 00000000..e35d7447
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/size.st
@@ -0,0 +1,5 @@
+accessing
+size
+
+ ^ 0
+ "If the first question is a FreeTextQuestion, the Pluggable-System will attempt to create a pluggableList from this class, which fails as this is not a Collection. Returning a size of zero will inhibit the creation of set pluggableList and suppresses the associated error."
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQAnswerPanel.class/instance/updateAnswer.st b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/updateAnswer.st
similarity index 100%
rename from packages/Liquid-UI.package/LQAnswerPanel.class/instance/updateAnswer.st
rename to packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/updateAnswer.st
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/methodProperties.json b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/methodProperties.json
new file mode 100644
index 00000000..d338734f
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/methodProperties.json
@@ -0,0 +1,32 @@
+{
+ "class" : {
+ "newWith:" : "CG 7/30/2021 19:06" },
+ "instance" : {
+ "answer:" : "FLST 7/11/2024 20:44",
+ "buildMultiSelectionListWith:" : "Anton Eichstädt 5/28/2024 15:55",
+ "buildRankingIndicesWith:" : "leli 6/10/2024 14:01",
+ "buildRemainingVotedChoicesCounterTextWith:" : "FLST 7/11/2024 20:44",
+ "choiceAt:" : "bn 8/2/2022 17:10",
+ "choiceAt:put:" : "FLST 7/11/2024 20:44",
+ "choiceDescriptions" : "bn 8/2/2022 17:11",
+ "choiceIsNotExcluded:" : "kge 8/3/2022 21:59",
+ "choiceSelected" : "CG 7/30/2021 19:06",
+ "choiceSelected:" : "CG 7/30/2021 19:06",
+ "exclusionMarker" : "bn 8/2/2022 17:11",
+ "exclusionMarker:" : "kge 7/21/2022 16:16",
+ "fillSideboard" : "FLST 7/11/2024 20:44",
+ "getChildren" : "FLST 7/11/2024 20:44",
+ "getMarkers" : "FLST 7/11/2024 20:44",
+ "getNumberOfChoices" : "Anton Eichstädt 5/25/2024 16:16",
+ "getRankingIndices" : "FLST 7/11/2024 20:44",
+ "getRemainingVotedChoices" : "Anton Eichstädt 6/4/2024 11:59",
+ "initialize" : "FLST 7/11/2024 20:44",
+ "isEveryChoiceRanked" : "FLST 7/12/2024 09:23",
+ "isValidSelection:ForChoiceAt:" : "Anton Eichstädt 5/25/2024 14:21",
+ "isValidSizedSelection:" : "FLST 7/11/2024 20:44",
+ "question:" : "FLST 7/11/2024 20:44",
+ "resetUI" : "FLST 7/11/2024 20:44",
+ "selectedChoices" : "NM 6/7/2021 18:07",
+ "selectedChoices:" : "Anton Eichstädt 5/24/2024 15:56",
+ "size" : "FLST 7/12/2024 15:55",
+ "updateAnswer" : "Anton Eichstädt 5/24/2024 15:24" } }
diff --git a/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/properties.json b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/properties.json
new file mode 100644
index 00000000..35185cf8
--- /dev/null
+++ b/packages/Liquid-UI.package/LQSelectionAnswerPanel.class/properties.json
@@ -0,0 +1,16 @@
+{
+ "category" : "Liquid-UI",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "Anton Eichstädt 7/11/2024 18:47",
+ "instvars" : [
+ "selectedChoices",
+ "choiceSelected",
+ "exclusionMarker" ],
+ "name" : "LQSelectionAnswerPanel",
+ "pools" : [
+ ],
+ "super" : "LQAnswerPanel",
+ "type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/class/reset.st b/packages/Liquid-UI.package/LQStartMenu.class/class/reset.st
index 536b8bf8..92159a0a 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/class/reset.st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/class/reset.st
@@ -6,5 +6,4 @@ reset
LQRemotePollRepoServer resetPollRepo.
LQRemotePollRepoServer startServer.
LQParticipantMenu answeredPollIds: nil.
- LQPasswordManager default: nil
-
\ No newline at end of file
+ LQPasswordManager default: nil
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterHostButtonWith..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterHostButtonWith..st
index 69b8594e..691cd0c0 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterHostButtonWith..st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterHostButtonWith..st
@@ -1,12 +1,15 @@
toolbuilder
-buildEnterHostButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Enter Host Mode';
- help: 'Enter the host menu, where you can create and close polls and get results to your polls';
- action: #enterHostMode;
- frame: (LayoutFrame new topFraction: 0.5;
- bottomFraction: 1;
- leftFraction: 0.5;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
+buildEnterHostButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Enter Host Mode';
+ help: 'Enter the host menu, where you can create and close polls and get results to your polls';
+ action: #enterHostMode;
+ frame: (LayoutFrame new
+ topFraction: 0.5;
+ bottomFraction: 1;
+ leftFraction: 0.5;
+ rightFraction: 1;
+ yourself);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterParticipantButtonWith..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterParticipantButtonWith..st
index 880148cb..abd73a65 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterParticipantButtonWith..st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildEnterParticipantButtonWith..st
@@ -1,12 +1,15 @@
toolbuilder
-buildEnterParticipantButtonWith: aBuilder
- ^ aBuilder pluggableButtonSpec new model: self;
- label: 'Enter Participant Mode';
- help: 'Enter the participant menu, where you can submit an answer to a poll';
- action: #enterParticipantMode;
- frame: (LayoutFrame new topFraction: 0.5;
- bottomFraction: 1;
- leftFraction: 0;
- rightFraction: 0.5;
- yourself);
- yourself
\ No newline at end of file
+buildEnterParticipantButtonWith: aBuilder
+
+ ^ aBuilder pluggableButtonSpec new
+ model: self;
+ label: 'Enter Participant Mode';
+ help: 'Enter the participant menu, where you can submit an answer to a poll';
+ action: #enterParticipantMode;
+ frame: (LayoutFrame new
+ topFraction: 0.5;
+ bottomFraction: 1;
+ leftFraction: 0;
+ rightFraction: 0.5;
+ yourself);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildLogoWith..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildLogoWith..st
new file mode 100644
index 00000000..70aba84d
--- /dev/null
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildLogoWith..st
@@ -0,0 +1,13 @@
+toolbuilder
+buildLogoWith: aBuilder
+
+ ^ aBuilder pluggablePanelSpec new
+ model: self;
+ children: #logoInCollection;
+ color: Color red;
+ minimumExtent: 100 @ 100;
+ frame: (LayoutFrame new
+ topFraction: 0;
+ bottomFraction: 0.5;
+ leftFraction: 0;
+ rightFraction: 1)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildStopServerButtonWith..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildStopServerButtonWith..st
deleted file mode 100644
index f21aae3f..00000000
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildStopServerButtonWith..st
+++ /dev/null
@@ -1,15 +0,0 @@
-toolbuilder
-buildStopServerButtonWith: aBuilder
-
- ^ aBuilder pluggableButtonSpec new
- model: self;
- label: 'Stop Liquid Server';
- help: 'Stops the liquid server which allows access to your local polls';
- action: #stopServer;
- frame: (LayoutFrame new
- topFraction: 0.66;
- bottomFraction: 1;
- leftFraction: 0;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildWith..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildWith..st
index 86159e4a..f7682b92 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/buildWith..st
@@ -1,14 +1,24 @@
toolbuilder
-buildWith: aBuilder
- "| logo assetLoader logoMorph |
- assetLoader := GitAssetLoader for: 'Liquid'.
- logo := assetLoader loadForm: 'liquid_logo.png'.
- logoMorph := ImageMorph new image: logo;
- extent: 200 @ 200."
+buildWith: aBuilder
+
+ | window logoBasedExtent |
+ self logoCanvas: LQLogo new.
+ self logoCanvas addDefaultLogo.
+ logoBasedExtent := 1 @ 2.2 * self logoCanvas logoMorph extent.
+ "2.2 x allows some padding
+ around the logo"
"loads /image.png"
- ^ aBuilder build: (aBuilder pluggableWindowSpec new model: self;
- label: 'Welcome to Liquid';
- extent: self extent;
- "add: logoMorph;"
- children: {self buildEnterHostButtonWith: aBuilder. self buildEnterParticipantButtonWith: aBuilder};
- yourself)
\ No newline at end of file
+ window := aBuilder build: (aBuilder pluggableWindowSpec new
+ model: self;
+ label: 'Welcome to Liquid';
+ minimumExtent: logoBasedExtent;
+ extent: 0.5 * logoBasedExtent;
+ children: {
+ self buildEnterHostButtonWith: aBuilder.
+ self buildEnterParticipantButtonWith: aBuilder.
+ self buildLogoWith: aBuilder};
+ yourself).
+ "The extent is set to double the
+ selected value, therefore it's
+ multiplied with 0.5"
+ ^ window
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/enterParticipantMode.st b/packages/Liquid-UI.package/LQStartMenu.class/instance/enterParticipantMode.st
index 4ff5ad78..5a96134c 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/enterParticipantMode.st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/enterParticipantMode.st
@@ -1,18 +1,21 @@
modifying
enterParticipantMode
+
| pollId menu url connection input |
LQPollRepo reset.
- input := UIManager default request: 'Add your poll id.' , Symbol cr , 'Format: http://your.server.tld:8000/pollId' initialAnswer: 'http://localhost:8000/'.
+ input := UIManager default
+ request: 'Add your poll id.', Symbol cr, 'Format: http://your.server.tld:8000/pollId'
+ initialAnswer: 'http://localhost:8000/'.
connection := self extractAndValidatePollIdAndURL: input.
- connection
- ifNil: [^ self].
+ connection ifNil: [^ self].
url := connection first.
pollId := connection second.
- LQPollRepo
- default: (LQPollRepo new url: url).
+ LQPollRepo default: (LQPollRepo new url: url).
menu := LQParticipantMenu new.
(menu importPollWithId: pollId)
- ifNil: [UIManager default inform: 'Please enter a valid Poll ID'.
- self enterParticipantMode]
- ifNotNil: [ToolBuilder open: menu.
+ ifNil: [
+ UIManager default inform: 'Please enter a valid Poll ID'
+ "self enterParticipantMode"]
+ ifNotNil: [
+ ToolBuilder open: menu.
self destroy]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/extractAndValidatePollIdAndURL..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/extractAndValidatePollIdAndURL..st
index 16f43811..bc175d2e 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/extractAndValidatePollIdAndURL..st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/extractAndValidatePollIdAndURL..st
@@ -1,16 +1,17 @@
modifying
-extractAndValidatePollIdAndURL: aURLString
+extractAndValidatePollIdAndURL: aURLString
+
| url pollId lastSlashIndex |
lastSlashIndex := aURLString lastIndexOf: $/.
- lastSlashIndex = aURLString size
- ifTrue: [UIManager default inform: 'Please check the entered url format.'.
- ^ nil].
+ lastSlashIndex = aURLString size ifTrue: [
+ UIManager default inform: 'Please check the entered url format.'.
+ ^ nil].
url := self getUrlFrom: aURLString with: lastSlashIndex.
pollId := self getPollIdFrom: aURLString with: lastSlashIndex.
- pollId
- ifEmpty: [UIManager default inform: 'Please enter a Poll ID.'.
- ^ nil].
- (LQParticipantMenu answeredPollIds includes: pollId)
- ifTrue: [UIManager default inform: 'You have already answered this Poll.'.
- ^ nil].
+ pollId ifEmpty: [
+ UIManager default inform: 'Please enter a Poll ID.'.
+ ^ nil].
+ (LQParticipantMenu answeredPollIds includes: pollId) ifTrue: [
+ UIManager default inform: 'You have already answered this Poll.'.
+ ^ nil].
^ {url. pollId}
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/getPollIdFrom.with..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/getPollIdFrom.with..st
index ca75a005..5b6e15cd 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/getPollIdFrom.with..st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/getPollIdFrom.with..st
@@ -1,3 +1,4 @@
modifying
getPollIdFrom: input with: lastSlashIndex
- ^input copyFrom: lastSlashIndex + 1 to: input size.
\ No newline at end of file
+
+ ^ input copyFrom: lastSlashIndex + 1 to: input size
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/getUrlFrom.with..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/getUrlFrom.with..st
index 5427737c..09746b92 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/getUrlFrom.with..st
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/getUrlFrom.with..st
@@ -1,3 +1,4 @@
modifying
-getUrlFrom: input with: lastSlashIndex
+getUrlFrom: input with: lastSlashIndex
+
^ input copyFrom: 1 to: lastSlashIndex
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/logoCanvas..st b/packages/Liquid-UI.package/LQStartMenu.class/instance/logoCanvas..st
new file mode 100644
index 00000000..2aa96f94
--- /dev/null
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/logoCanvas..st
@@ -0,0 +1,4 @@
+accessing
+logoCanvas: aLQWidgetToMorph
+
+ logoCanvas := aLQWidgetToMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/logoCanvas.st b/packages/Liquid-UI.package/LQStartMenu.class/instance/logoCanvas.st
new file mode 100644
index 00000000..136e0817
--- /dev/null
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/logoCanvas.st
@@ -0,0 +1,4 @@
+accessing
+logoCanvas
+
+ ^ logoCanvas
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/logoInCollection.st b/packages/Liquid-UI.package/LQStartMenu.class/instance/logoInCollection.st
new file mode 100644
index 00000000..8102ed09
--- /dev/null
+++ b/packages/Liquid-UI.package/LQStartMenu.class/instance/logoInCollection.st
@@ -0,0 +1,4 @@
+accessing
+logoInCollection
+
+ ^ {self logoCanvas}
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/instance/stopServer.st b/packages/Liquid-UI.package/LQStartMenu.class/instance/stopServer.st
deleted file mode 100644
index 3f2593d2..00000000
--- a/packages/Liquid-UI.package/LQStartMenu.class/instance/stopServer.st
+++ /dev/null
@@ -1,5 +0,0 @@
-modifying
-stopServer
-
- LQRemotePollRepoServer startServer.
- UIManager default inform: 'Stopped Liquid-Server'
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/methodProperties.json b/packages/Liquid-UI.package/LQStartMenu.class/methodProperties.json
index 69ee6e39..e9656e0a 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQStartMenu.class/methodProperties.json
@@ -1,15 +1,17 @@
{
"class" : {
"open" : "CG 7/30/2021 19:06",
- "reset" : "bn 8/2/2022 18:28" },
+ "reset" : "FLST 7/11/2024 20:44" },
"instance" : {
- "buildEnterHostButtonWith:" : "kge 6/19/2022 18:59",
- "buildEnterParticipantButtonWith:" : "kge 6/19/2022 19:00",
- "buildStopServerButtonWith:" : "kge 6/19/2022 19:00",
- "buildWith:" : "JT 8/4/2022 21:51",
+ "buildEnterHostButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildEnterParticipantButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildLogoWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/12/2024 09:35",
"enterHostMode" : "JT 8/5/2022 21:56",
- "enterParticipantMode" : "FLST 6/22/2024 12:00",
- "extractAndValidatePollIdAndURL:" : "FLST 6/22/2024 11:58",
- "getPollIdFrom:with:" : "leli 6/12/2024 14:04",
- "getUrlFrom:with:" : "leli 6/12/2024 14:05",
- "stopServer" : "bn 8/2/2022 17:02" } }
+ "enterParticipantMode" : "FLST 7/11/2024 20:44",
+ "extractAndValidatePollIdAndURL:" : "FLST 7/11/2024 20:44",
+ "getPollIdFrom:with:" : "FLST 7/11/2024 20:44",
+ "getUrlFrom:with:" : "FLST 7/11/2024 20:44",
+ "logoCanvas" : "FLST 7/11/2024 20:44",
+ "logoCanvas:" : "FLST 7/11/2024 20:44",
+ "logoInCollection" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQStartMenu.class/properties.json b/packages/Liquid-UI.package/LQStartMenu.class/properties.json
index 0b79abb5..df50f698 100644
--- a/packages/Liquid-UI.package/LQStartMenu.class/properties.json
+++ b/packages/Liquid-UI.package/LQStartMenu.class/properties.json
@@ -6,7 +6,7 @@
],
"commentStamp" : "NM 7/9/2021 14:11",
"instvars" : [
- ],
+ "logoCanvas" ],
"name" : "LQStartMenu",
"pools" : [
],
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildAddUserSetFileButtonWith..st b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildAddUserSetFileButtonWith..st
index e7ecad98..126f9641 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildAddUserSetFileButtonWith..st
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildAddUserSetFileButtonWith..st
@@ -5,10 +5,10 @@ buildAddUserSetFileButtonWith: aBuilder
model: self;
label: 'Add User Set';
action: #openUserSetFileDialog;
- frame: (LayoutFrame new
- topFraction: 0.83;
- bottomFraction: 0.98;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.83;
+ bottomFraction: 0.98;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildRemoveUserSetButtonWith..st b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildRemoveUserSetButtonWith..st
index f635654b..6c8e84fd 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildRemoveUserSetButtonWith..st
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildRemoveUserSetButtonWith..st
@@ -5,10 +5,10 @@ buildRemoveUserSetButtonWith: aBuilder
model: self;
label: 'Remove User Set';
action: #removeSelectedUserSet;
- frame: (LayoutFrame new
- topFraction: 0.67;
- bottomFraction: 0.82;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.67;
+ bottomFraction: 0.82;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildUserSetListViewWith..st b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildUserSetListViewWith..st
index d5dfa7d0..dc7441ec 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildUserSetListViewWith..st
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/buildUserSetListViewWith..st
@@ -6,11 +6,10 @@ buildUserSetListViewWith: aBuilder
list: #userSets;
getIndex: #choiceSelected;
setIndex: #choiceSelected:;
- frame: (LayoutFrame new
- topFraction: 0.1;
- bottomFraction: 0.65;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.1;
+ bottomFraction: 0.65;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
- yourself
-
\ No newline at end of file
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/choiceSelected.st b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/choiceSelected.st
index 8c56510d..b8c057cb 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/choiceSelected.st
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/choiceSelected.st
@@ -1,4 +1,4 @@
accessing
choiceSelected
-
+
^ choiceSelected
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/openUserSetFileDialog.st b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/openUserSetFileDialog.st
index 739a4bdb..88243da1 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/openUserSetFileDialog.st
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/openUserSetFileDialog.st
@@ -2,10 +2,11 @@ modifying
openUserSetFileDialog
| fc stream |
-
fc := FileChooser new.
fc initializeAsSystemWindowWithCaptionPane.
fc setCaption: 'Select a .csv file' translated.
fc setSuffixes: {'csv'}.
stream := fc open.
- stream ifNotNil: [self addUserSetWith: stream. stream close]
\ No newline at end of file
+ stream ifNotNil: [
+ self addUserSetWith: stream.
+ stream close]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/removeSelectedUserSet.st b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/removeSelectedUserSet.st
index 9612eeb5..68199bc5 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/instance/removeSelectedUserSet.st
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/instance/removeSelectedUserSet.st
@@ -1,7 +1,7 @@
modifying
removeSelectedUserSet
- self choiceSelected = 0 ifTrue: [^ self].
+ self choiceSelected isZero ifTrue: [^ self].
LQUserSetRepo default removeKey: (self userSetsAt: self choiceSelected) id.
self changed: #userSets.
self choiceSelected: 0
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetMenu.class/methodProperties.json b/packages/Liquid-UI.package/LQUserSetMenu.class/methodProperties.json
index 8d14cff8..d20bf8f2 100644
--- a/packages/Liquid-UI.package/LQUserSetMenu.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQUserSetMenu.class/methodProperties.json
@@ -4,15 +4,15 @@
"openOn:" : "CG 7/30/2021 19:06" },
"instance" : {
"addUserSetWith:" : "kge 8/1/2022 21:01",
- "buildAddUserSetFileButtonWith:" : "bn 8/2/2022 17:03",
- "buildRemoveUserSetButtonWith:" : "bn 8/2/2022 17:03",
- "buildUserSetListViewWith:" : "kge 8/1/2022 20:54",
+ "buildAddUserSetFileButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildRemoveUserSetButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildUserSetListViewWith:" : "FLST 7/11/2024 20:44",
"buildWith:" : "ms 8/4/2022 11:30",
- "choiceSelected" : "ape 6/6/2022 08:17",
+ "choiceSelected" : "FLST 7/11/2024 20:44",
"choiceSelected:" : "bn 8/2/2022 17:03",
"extent" : "ms 8/4/2022 11:30",
"initialize" : "bn 8/2/2022 17:03",
- "openUserSetFileDialog" : "bn 8/2/2022 18:09",
+ "openUserSetFileDialog" : "FLST 7/11/2024 20:44",
"removeSelectedUserSet" : "ape 6/15/2022 17:44",
"userSets" : "bn 8/2/2022 17:04",
"userSetsAt:" : "ape 5/23/2022 18:01" } }
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/class/newWithPoll..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/class/newWithPoll..st
index 81aa46c6..f27e7a5d 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/class/newWithPoll..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/class/newWithPoll..st
@@ -1,5 +1,4 @@
instance creation
newWithPoll: aLQPollDraft
- ToolBuilder open:
- (self new pollDraft: aLQPollDraft)
\ No newline at end of file
+ ToolBuilder open: (self new pollDraft: aLQPollDraft)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildAddUserSetFileButtonWith..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildAddUserSetFileButtonWith..st
index e1b2b703..ab81bfcc 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildAddUserSetFileButtonWith..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildAddUserSetFileButtonWith..st
@@ -5,10 +5,10 @@ buildAddUserSetFileButtonWith: aBuilder
model: self;
label: 'Add User Set';
action: #openUserSetFileDialog;
- frame: (LayoutFrame new
- topFraction: 0.75;
- bottomFraction: 0.82;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.75;
+ bottomFraction: 0.82;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildClearUserSetSelectionButtonWith..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildClearUserSetSelectionButtonWith..st
index 5c92781a..ab38e4af 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildClearUserSetSelectionButtonWith..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildClearUserSetSelectionButtonWith..st
@@ -5,10 +5,10 @@ buildClearUserSetSelectionButtonWith: aBuilder
model: self;
label: 'Clear Selection';
action: #clearSelection;
- frame: (LayoutFrame new
- topFraction: 0.91;
- bottomFraction: 0.98;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.91;
+ bottomFraction: 0.98;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildRemoveUserSetButtonWith..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildRemoveUserSetButtonWith..st
index 3251e507..28dacffc 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildRemoveUserSetButtonWith..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildRemoveUserSetButtonWith..st
@@ -5,10 +5,10 @@ buildRemoveUserSetButtonWith: aBuilder
model: self;
label: 'Remove User Set';
action: #removeSelectedUserSet;
- frame: (LayoutFrame new
- topFraction: 0.67;
- bottomFraction: 0.74;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.67;
+ bottomFraction: 0.74;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildSelectUserSetButtonWith..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildSelectUserSetButtonWith..st
index 43847e11..c3868fa1 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildSelectUserSetButtonWith..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildSelectUserSetButtonWith..st
@@ -5,10 +5,10 @@ buildSelectUserSetButtonWith: aBuilder
model: self;
label: 'Select User Set';
action: #selectUserSet;
- frame: (LayoutFrame new
- topFraction: 0.83;
- bottomFraction: 0.9;
- leftFraction: 0.1;
+ frame: (LayoutFrame new
+ topFraction: 0.83;
+ bottomFraction: 0.9;
+ leftFraction: 0.1;
rightFraction: 0.9;
yourself);
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildWith..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildWith..st
index f41c555c..b939271d 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/buildWith..st
@@ -8,7 +8,7 @@ buildWith: aBuilder
children: {
self buildUserSetListViewWith: aBuilder.
self buildRemoveUserSetButtonWith: aBuilder.
- self buildAddUserSetFileButtonWith: aBuilder.
+ self buildAddUserSetFileButtonWith: aBuilder.
self buildSelectUserSetButtonWith: aBuilder.
self buildClearUserSetSelectionButtonWith: aBuilder};
yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/pollDraft..st b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/pollDraft..st
index 6f5d63c4..61bdc466 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/pollDraft..st
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/instance/pollDraft..st
@@ -2,5 +2,4 @@ accessing
pollDraft: anObject
pollDraft := anObject.
- (LQUserSetRepo default includesKey: self pollDraft userSetID)
- ifTrue: [self choiceSelected: (self userSets indexOf: (LQUserSetRepo default at: self pollDraft userSetID))]
\ No newline at end of file
+ (LQUserSetRepo default includesKey: self pollDraft userSetID) ifTrue: [self choiceSelected: (self userSets indexOf: (LQUserSetRepo default at: self pollDraft userSetID))]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/methodProperties.json b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/methodProperties.json
index 77409f3e..cfc0ba95 100644
--- a/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQUserSetSelectionMenu.class/methodProperties.json
@@ -1,14 +1,14 @@
{
"class" : {
- "newWithPoll:" : "ms 6/20/2022 12:48" },
+ "newWithPoll:" : "FLST 7/11/2024 20:44" },
"instance" : {
- "buildAddUserSetFileButtonWith:" : "bn 8/2/2022 17:05",
- "buildClearUserSetSelectionButtonWith:" : "bn 8/2/2022 17:05",
- "buildRemoveUserSetButtonWith:" : "bn 8/2/2022 17:05",
- "buildSelectUserSetButtonWith:" : "bn 8/2/2022 17:05",
- "buildWith:" : "ms 8/4/2022 11:52",
+ "buildAddUserSetFileButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildClearUserSetSelectionButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildRemoveUserSetButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildSelectUserSetButtonWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
"clearSelection" : "bn 8/2/2022 17:05",
"extent" : "ms 8/4/2022 11:52",
"pollDraft" : "bn 8/2/2022 17:06",
- "pollDraft:" : "bn 8/2/2022 17:06",
+ "pollDraft:" : "FLST 7/11/2024 20:44",
"selectUserSet" : "kge 8/1/2022 19:04" } }
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/README.md b/packages/Liquid-UI.package/LQVisualizationControls.class/README.md
index d2f5bae6..e91ac856 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/README.md
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/README.md
@@ -1,2 +1 @@
-UI-Component responsible for biulding single questions.
-Is part of a LQPollDraftBuilder.
\ No newline at end of file
+UI-Component responsible for viewing the answers for running or closed Polls.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/class/newWithPoll..st b/packages/Liquid-UI.package/LQVisualizationControls.class/class/newWithPoll..st
index 6485be38..75a18e84 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/class/newWithPoll..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/class/newWithPoll..st
@@ -1,7 +1,7 @@
setup
newWithPoll: aPoll
-
+
^ self new
- poll: aPoll;
- questionIndex: 1;
- yourself
\ No newline at end of file
+ poll: aPoll;
+ questionIndex: 1;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/barChartFrame..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/barChartFrame..st
index a233cdbd..0f53111d 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/barChartFrame..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/barChartFrame..st
@@ -1,8 +1,4 @@
toolbuilder
barChartFrame: bottomFraction
-
- ^ self
- frame: bottomFraction
- fromTop: 0
- fromLeft: 0.25
- width: 0.75
\ No newline at end of file
+
+ ^ self frame: bottomFraction fromTop: 0 fromLeft: 0.25 width: 0.75
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildBarChartWith..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildBarChartWith..st
index f77c61c5..c7992489 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildBarChartWith..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildBarChartWith..st
@@ -1,11 +1,13 @@
toolbuilder
-buildBarChartWith: aBuilder
- ^ aBuilder pluggableScrollPaneSpec new
- model: self;
- morph: self wrapperMorph;
- frame: (LayoutFrame new topFraction: 0;
- bottomFraction: 1;
- leftFraction: 0.25;
- rightFraction: 1;
- yourself);
- yourself
\ No newline at end of file
+buildBarChartWith: aBuilder
+
+ ^ aBuilder pluggableScrollPaneSpec new
+ model: self;
+ morph: self wrapperMorph;
+ frame: (LayoutFrame new
+ topFraction: 0;
+ bottomFraction: 1;
+ leftFraction: 0.25;
+ rightFraction: 1;
+ yourself);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildQuestionListWith..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildQuestionListWith..st
index 08dd0c68..c3434b75 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildQuestionListWith..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildQuestionListWith..st
@@ -1,12 +1,15 @@
toolbuilder
-buildQuestionListWith: aBuilder
- ^ aBuilder pluggableListSpec new model: self;
- list: #questionList;
- getIndex: #getIndex;
- setIndex: #setIndex:;
- frame: (LayoutFrame new topFraction: 0;
- bottomFraction: 1;
- leftFraction: 0;
- rightFraction: 0.25;
- yourself);
- yourself
\ No newline at end of file
+buildQuestionListWith: aBuilder
+
+ ^ aBuilder pluggableListSpec new
+ model: self;
+ list: #questionList;
+ getIndex: #getIndex;
+ setIndex: #setIndex:;
+ frame: (LayoutFrame new
+ topFraction: 0;
+ bottomFraction: 1;
+ leftFraction: 0;
+ rightFraction: 0.25;
+ yourself);
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQResultsView.class/instance/buildResultsTextBoxWith..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildTextAnswersWith..st
similarity index 56%
rename from packages/Liquid-UI.package/LQResultsView.class/instance/buildResultsTextBoxWith..st
rename to packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildTextAnswersWith..st
index 6fb737e9..c10f7f38 100644
--- a/packages/Liquid-UI.package/LQResultsView.class/instance/buildResultsTextBoxWith..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildTextAnswersWith..st
@@ -1,15 +1,13 @@
toolbuilder
-buildResultsTextBoxWith: aBuilder
+buildTextAnswersWith: aBuilder
^ aBuilder pluggableTextSpec new
model: self;
- readOnly: true;
- indicateUnacceptedChanges: false;
- getText: #getResults;
frame: (LayoutFrame new
topFraction: 0;
bottomFraction: 1;
- leftFraction: 0;
+ leftFraction: 0.25;
rightFraction: 1;
yourself);
+ getText: #getTextAnswers;
yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildWith..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildWith..st
index 00575e70..39116806 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildWith..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/buildWith..st
@@ -1,7 +1,7 @@
toolbuilder
-buildWith: aBuilder
+buildWith: aBuilder
+
^ aBuilder build: (aBuilder pluggablePanelSpec new
- model: self;
- children: {self buildBarChartWith: aBuilder. self
- buildQuestionListWith: aBuilder};
- yourself)
\ No newline at end of file
+ model: self;
+ children: {self buildBarChartWith: aBuilder. self buildQuestionListWith: aBuilder};
+ yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/currentVisualization..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/currentVisualization..st
deleted file mode 100644
index 590244df..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/currentVisualization..st
+++ /dev/null
@@ -1,6 +0,0 @@
-accessing
-currentVisualization: aMorph
- self wrapperMorph
- submorphsDo: [:m | m delete].
- aMorph position: 0 @ 0.
- self wrapperMorph addMorph: aMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/frame.fromTop.fromLeft.width..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/frame.fromTop.fromLeft.width..st
index 684cdd94..39598d59 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/frame.fromTop.fromLeft.width..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/frame.fromTop.fromLeft.width..st
@@ -1,9 +1,9 @@
toolbuilder
frame: bottomFraction fromTop: topFraction fromLeft: leftFraction width: rightFraction
-
+
^ LayoutFrame new
- leftFraction: leftFraction;
- topFraction: topFraction;
- rightFraction: (leftFraction + rightFraction);
- bottomFraction: bottomFraction offset: self bottomOffset;
- yourself
\ No newline at end of file
+ leftFraction: leftFraction;
+ topFraction: topFraction;
+ rightFraction: leftFraction + rightFraction;
+ bottomFraction: bottomFraction offset: self bottomOffset;
+ yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getIndex.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getIndex.st
index 56977f54..57f01dc2 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getIndex.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getIndex.st
@@ -1,3 +1,4 @@
accessing
getIndex
+
^ self index
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getTextAnswers.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getTextAnswers.st
new file mode 100644
index 00000000..b4417191
--- /dev/null
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/getTextAnswers.st
@@ -0,0 +1,10 @@
+accessing
+getTextAnswers
+
+ | answersWithSeparations separation |
+ separation := '
+-----------------------
+ '.
+ answersWithSeparations := ''.
+ self poll answerSets do: [:answerSet | answersWithSeparations := answersWithSeparations, (answerSet answers at: (self poll pollDraft questionList at: self index) id) answer, separation].
+ ^ answersWithSeparations
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index..st
index 4588aeb7..5559e596 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index..st
@@ -1,3 +1,4 @@
accessing
index: anObject
+
index := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index.st
index ad7d30a3..8a4e002b 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/index.st
@@ -1,3 +1,4 @@
accessing
index
+
^ index
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/initialize.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/initialize.st
index 8fd2df9c..b038406c 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/initialize.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/initialize.st
@@ -1,5 +1,6 @@
initialize-release
initialize
+
super initialize.
self index: 1.
self startRefreshing.
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/currentVisualization..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/makeNewChoicesVisWith..st
similarity index 63%
rename from packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/currentVisualization..st
rename to packages/Liquid-UI.package/LQVisualizationControls.class/instance/makeNewChoicesVisWith..st
index 5fe45112..73ea83b3 100644
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/currentVisualization..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/makeNewChoicesVisWith..st
@@ -1,6 +1,6 @@
accessing
-currentVisualization: aMorph
+makeNewChoicesVisWith: aMorph
self wrapperMorph submorphsDo: [:m | m delete].
- aMorph position: 0@0.
+ aMorph position: 0 @ 0.
self wrapperMorph addMorph: aMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/newChoicesViewFor..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/newChoicesViewFor..st
new file mode 100644
index 00000000..6c18b95e
--- /dev/null
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/newChoicesViewFor..st
@@ -0,0 +1,7 @@
+live-update
+newChoicesViewFor: aQuestionIndex
+
+ | visualizationView |
+ self questionList at: aQuestionIndex ifAbsent: [^ self].
+ visualizationView := LQVisualizationView newWithPoll: self poll.
+ self makeNewChoicesVisWith: (visualizationView visualizeChoicesResultsFor: (self poll questionList at: aQuestionIndex))
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/newFreeTextViewFor..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/newFreeTextViewFor..st
new file mode 100644
index 00000000..01382e6f
--- /dev/null
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/newFreeTextViewFor..st
@@ -0,0 +1,13 @@
+live-update
+newFreeTextViewFor: aQuestionIndex
+
+ | builder textAnswers |
+ self wrapperMorph submorphsDo: [:m | m delete].
+ builder := ToolBuilder default.
+ textAnswers := builder build: (self buildTextAnswersWith: builder).
+ textAnswers position: self wrapperMorph position.
+ self wrapperMorph owner
+ ifNil: [textAnswers extent: 1 @ 1]
+ ifNotNil: [textAnswers extent: self wrapperMorph owner extent].
+ self wrapperMorph addMorph: textAnswers.
+ ^ textAnswers
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll..st
index 819c8cf9..a062492a 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll..st
@@ -1,3 +1,4 @@
accessing
poll: anObject
+
poll := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll.st
index b75b96c9..c0fab0b1 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/poll.st
@@ -1,3 +1,4 @@
accessing
poll
+
^ poll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling..st
index 1d1c957e..446f3eda 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling..st
@@ -1,3 +1,4 @@
accessing
polling: anObject
+
polling := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling.st
index 4f338126..350ee1a7 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/polling.st
@@ -1,3 +1,4 @@
accessing
polling
+
^ polling
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex..st
index b86d7d9d..ce5b883a 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex..st
@@ -1,10 +1,7 @@
accessing
-questionIndex: aNumber
-
- | visualizationView |
-
- self questionList at: aNumber ifAbsent: [^ self].
- visualizationView := LQVisualizationView newWithPoll: self poll.
- self currentVisualization: (visualizationView visualizeResultsFor: (self poll questionList at: aNumber)).
- self index: aNumber.
+questionIndex: anIndex
+
+ (self questionList at: anIndex) isFreeTextQuestion
+ ifTrue: [self newFreeTextViewFor: anIndex]
+ ifFalse: [self newChoicesViewFor: anIndex].
self changed: #questionIndex
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex.st
index fbe610d3..815ba1dd 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionIndex.st
@@ -1,4 +1,4 @@
accessing
questionIndex
-
+
^ self index
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionList.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionList.st
index de1c1c8c..ddd5149d 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionList.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionList.st
@@ -1,4 +1,5 @@
accessing
questionList
+
^ self poll questionList
- "collect: [:question | question title]"
\ No newline at end of file
+ "collect: [:question | question title]"
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionListFrame..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionListFrame..st
index 5b32a916..606a40cc 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionListFrame..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/questionListFrame..st
@@ -1,8 +1,4 @@
toolbuilder
questionListFrame: bottomFraction
-
- ^ self
- frame: bottomFraction
- fromTop: 0
- fromLeft: 0
- width: 0.25
\ No newline at end of file
+
+ ^ self frame: bottomFraction fromTop: 0 fromLeft: 0 width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/setIndex..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/setIndex..st
index 56db617a..a744eec3 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/setIndex..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/setIndex..st
@@ -1,12 +1,10 @@
accessing
-setIndex: aNumber
- | visualizationView |
- self questionList
- at: aNumber
- ifAbsent: [^ self].
- visualizationView := LQVisualizationView newWithPoll: self poll.
- self
- currentVisualization: (visualizationView
- visualizeResultsFor: (self poll questionList at: aNumber)).
- self index: aNumber.
+setIndex: anIndex
+
+ anIndex isZero ifTrue: [^ self].
+ "As we always want to have exactly one item selected, we have to ignore the deselection command."
+ (self questionList at: anIndex) isFreeTextQuestion
+ ifTrue: [self newFreeTextViewFor: anIndex]
+ ifFalse: [self newChoicesViewFor: anIndex].
+ self index: anIndex.
self changed: #getIndex
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/startRefreshing.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/startRefreshing.st
index 2a1e3bf6..d0ddcc54 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/startRefreshing.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/startRefreshing.st
@@ -1,10 +1,9 @@
live-update
startRefreshing
- self polling: [[true]
- whileTrue: [| visualizationView |
- visualizationView := LQVisualizationView newWithPoll: self poll.
- self
- currentVisualization: (visualizationView
- visualizeResultsFor: (self poll questionList at: self index)).
- "Transcript show: 'refreshed'; cr."
- (Delay forSeconds: 2) wait]] fork
\ No newline at end of file
+
+ self polling: [
+ [true] whileTrue: [
+ (self questionList at: self index) isFreeTextQuestion
+ ifTrue: [self newFreeTextViewFor: self index]
+ ifFalse: [self newChoicesViewFor: self index].
+ (Delay forSeconds: 2) wait]] fork
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/stopRefreshing.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/stopRefreshing.st
index 261fd9d3..44ea4075 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/stopRefreshing.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/stopRefreshing.st
@@ -1,4 +1,4 @@
live-update
stopRefreshing
- self polling
- ifNotNil: [self polling terminate]
\ No newline at end of file
+
+ self polling ifNotNil: [self polling terminate]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph..st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph..st
index d47e19b7..888feb06 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph..st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph..st
@@ -1,3 +1,4 @@
accessing
wrapperMorph: anObject
+
wrapperMorph := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph.st b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph.st
index 7f2fb119..a69d2423 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph.st
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/instance/wrapperMorph.st
@@ -1,3 +1,4 @@
accessing
wrapperMorph
+
^ wrapperMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/methodProperties.json b/packages/Liquid-UI.package/LQVisualizationControls.class/methodProperties.json
index 547781ac..aae05b5c 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/methodProperties.json
@@ -1,29 +1,33 @@
{
"class" : {
- "newWithPoll:" : "6/23/2024 17:58:45",
+ "newWithPoll:" : "FLST 7/11/2024 20:44",
"openOn:" : "6/23/2024 17:58:45" },
"instance" : {
- "barChartFrame:" : "6/23/2024 17:58:45",
+ "barChartFrame:" : "FLST 7/11/2024 20:44",
"bottomOffset" : "6/23/2024 17:58:45",
- "buildBarChartWith:" : "Ingmar Vogel 6/20/2024 18:54",
- "buildQuestionListWith:" : "Ingmar Vogel 6/23/2024 17:07",
- "buildWith:" : "Ingmar Vogel 6/23/2024 16:20",
- "currentVisualization:" : "Ingmar Vogel 6/20/2024 18:58",
- "frame:fromTop:fromLeft:width:" : "6/23/2024 17:58:45",
- "getIndex" : "Ingmar Vogel 6/20/2024 19:03",
- "index" : "Ingmar Vogel 6/20/2024 18:57",
- "index:" : "Ingmar Vogel 6/20/2024 18:57",
- "initialize" : "Ingmar Vogel 6/20/2024 19:12",
- "poll" : "Ingmar Vogel 6/20/2024 18:57",
- "poll:" : "Ingmar Vogel 6/20/2024 18:57",
- "polling" : "Ingmar Vogel 6/20/2024 18:58",
- "polling:" : "Ingmar Vogel 6/20/2024 18:58",
- "questionIndex" : "6/23/2024 17:58:45",
- "questionIndex:" : "6/23/2024 17:58:45",
- "questionList" : "Ingmar Vogel 6/20/2024 18:59",
- "questionListFrame:" : "6/23/2024 17:58:45",
- "setIndex:" : "Ingmar Vogel 6/20/2024 19:07",
- "startRefreshing" : "Ingmar Vogel 6/20/2024 19:04",
- "stopRefreshing" : "Ingmar Vogel 6/20/2024 19:04",
- "wrapperMorph" : "Ingmar Vogel 6/20/2024 18:58",
- "wrapperMorph:" : "Ingmar Vogel 6/20/2024 18:58" } }
+ "buildBarChartWith:" : "FLST 7/11/2024 20:44",
+ "buildQuestionListWith:" : "FLST 7/11/2024 20:44",
+ "buildTextAnswersWith:" : "FLST 7/11/2024 20:44",
+ "buildWith:" : "FLST 7/11/2024 20:44",
+ "frame:fromTop:fromLeft:width:" : "FLST 7/11/2024 20:44",
+ "getIndex" : "FLST 7/12/2024 13:11",
+ "getTextAnswers" : "FLST 7/11/2024 20:44",
+ "index" : "FLST 7/11/2024 20:44",
+ "index:" : "FLST 7/11/2024 20:44",
+ "initialize" : "FLST 7/11/2024 20:44",
+ "makeNewChoicesVisWith:" : "FLST 7/11/2024 20:44",
+ "newChoicesViewFor:" : "FLST 7/11/2024 20:44",
+ "newFreeTextViewFor:" : "FLST 7/11/2024 20:44",
+ "poll" : "FLST 7/11/2024 20:44",
+ "poll:" : "FLST 7/11/2024 20:44",
+ "polling" : "FLST 7/11/2024 20:44",
+ "polling:" : "FLST 7/11/2024 20:44",
+ "questionIndex" : "FLST 7/11/2024 20:44",
+ "questionIndex:" : "FLST 7/11/2024 20:44",
+ "questionList" : "FLST 7/11/2024 20:44",
+ "questionListFrame:" : "FLST 7/11/2024 20:44",
+ "setIndex:" : "FLST 7/12/2024 15:55",
+ "startRefreshing" : "FLST 7/11/2024 20:44",
+ "stopRefreshing" : "FLST 7/11/2024 20:44",
+ "wrapperMorph" : "FLST 7/11/2024 20:44",
+ "wrapperMorph:" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQVisualizationControls.class/properties.json b/packages/Liquid-UI.package/LQVisualizationControls.class/properties.json
index 9f25bb9b..a19c03b4 100644
--- a/packages/Liquid-UI.package/LQVisualizationControls.class/properties.json
+++ b/packages/Liquid-UI.package/LQVisualizationControls.class/properties.json
@@ -4,7 +4,7 @@
],
"classvars" : [
],
- "commentStamp" : "",
+ "commentStamp" : "Anton Eichstädt 7/10/2024 18:16",
"instvars" : [
"poll",
"index",
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/README.md b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/README.md
deleted file mode 100644
index a41e0a42..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-A LQVisualizationControls is a UI list that can be used to select a question to be visualized.
-
-Instance Variables
- currentVisualization:
- index:
- poll:
- wrapperMorph:
-
-currentVisualization
- - a Morph displaying the visualization of the currently selected question
-
-index
- - position of the currently selected question in the poll's questionList, initially 1.
-
-poll
- - the poll-object to be visualized
-
-wrapperMorph
- - a transparent morph which contains currentVisualization as a submorph
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/class/newWithPoll..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/class/newWithPoll..st
deleted file mode 100644
index 6485be38..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/class/newWithPoll..st
+++ /dev/null
@@ -1,7 +0,0 @@
-setup
-newWithPoll: aPoll
-
- ^ self new
- poll: aPoll;
- questionIndex: 1;
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/class/openOn..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/class/openOn..st
deleted file mode 100644
index bc16537c..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/class/openOn..st
+++ /dev/null
@@ -1,4 +0,0 @@
-setup
-openOn: aPoll
-
- ToolBuilder open: (self newWithPoll: aPoll)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/barChartFrame..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/barChartFrame..st
deleted file mode 100644
index a233cdbd..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/barChartFrame..st
+++ /dev/null
@@ -1,8 +0,0 @@
-toolbuilder
-barChartFrame: bottomFraction
-
- ^ self
- frame: bottomFraction
- fromTop: 0
- fromLeft: 0.25
- width: 0.75
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/bottomOffset.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/bottomOffset.st
deleted file mode 100644
index f93bea47..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/bottomOffset.st
+++ /dev/null
@@ -1,4 +0,0 @@
-toolbuilder
-bottomOffset
-
- ^ 0.5 negated
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildBarChartWith..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildBarChartWith..st
deleted file mode 100644
index 45788db4..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildBarChartWith..st
+++ /dev/null
@@ -1,10 +0,0 @@
-toolbuilder
-buildBarChartWith: aBuilder
-
- | pluggableScrollPaneSpec |
-
- pluggableScrollPaneSpec := aBuilder pluggableScrollPaneSpec new.
- pluggableScrollPaneSpec
- model: self;
- morph: self wrapperMorph.
- ^ pluggableScrollPaneSpec
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildQuestionListWith..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildQuestionListWith..st
deleted file mode 100644
index 14b79614..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildQuestionListWith..st
+++ /dev/null
@@ -1,12 +0,0 @@
-toolbuilder
-buildQuestionListWith: aBuilder
-
- | listSpec |
-
- listSpec := aBuilder pluggableListSpec new.
- listSpec
- model: self;
- list: #questionList;
- getIndex: #questionIndex;
- setIndex: #questionIndex:.
- ^ listSpec
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildWith..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildWith..st
deleted file mode 100644
index 6ba7cd91..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/buildWith..st
+++ /dev/null
@@ -1,10 +0,0 @@
-toolbuilder
-buildWith: builder
-
-^ builder build: (builder pluggablePanelSpec new
- model: self;
- children: {
- (self questionListFrame: 1) -> [self buildQuestionListWith: builder].
- (self barChartFrame: 1) -> [self buildBarChartWith: builder]};
- "closeAction: #stopRefreshing;"
- yourself)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/frame.fromTop.fromLeft.width..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/frame.fromTop.fromLeft.width..st
deleted file mode 100644
index 684cdd94..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/frame.fromTop.fromLeft.width..st
+++ /dev/null
@@ -1,9 +0,0 @@
-toolbuilder
-frame: bottomFraction fromTop: topFraction fromLeft: leftFraction width: rightFraction
-
- ^ LayoutFrame new
- leftFraction: leftFraction;
- topFraction: topFraction;
- rightFraction: (leftFraction + rightFraction);
- bottomFraction: bottomFraction offset: self bottomOffset;
- yourself
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/index..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/index..st
deleted file mode 100644
index a53ac95e..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/index..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-index: aNumber
-
- index := aNumber
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/index.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/index.st
deleted file mode 100644
index 8a4e002b..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/index.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-index
-
- ^ index
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/initialize.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/initialize.st
deleted file mode 100644
index e2fb5d0e..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/initialize.st
+++ /dev/null
@@ -1,8 +0,0 @@
-initialize-release
-initialize
-
- super initialize.
- self index: 1.
- self startRefreshing.
- self wrapperMorph: Morph new.
- self wrapperMorph color: (Color transparent)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/poll..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/poll..st
deleted file mode 100644
index 31df2787..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/poll..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-poll: aPoll
-
- poll := aPoll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/poll.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/poll.st
deleted file mode 100644
index c0fab0b1..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/poll.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-poll
-
- ^ poll
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/polling..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/polling..st
deleted file mode 100644
index 1d1c957e..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/polling..st
+++ /dev/null
@@ -1,3 +0,0 @@
-accessing
-polling: anObject
- polling := anObject
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/polling.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/polling.st
deleted file mode 100644
index 4f338126..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/polling.st
+++ /dev/null
@@ -1,3 +0,0 @@
-accessing
-polling
- ^ polling
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionIndex..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionIndex..st
deleted file mode 100644
index b86d7d9d..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionIndex..st
+++ /dev/null
@@ -1,10 +0,0 @@
-accessing
-questionIndex: aNumber
-
- | visualizationView |
-
- self questionList at: aNumber ifAbsent: [^ self].
- visualizationView := LQVisualizationView newWithPoll: self poll.
- self currentVisualization: (visualizationView visualizeResultsFor: (self poll questionList at: aNumber)).
- self index: aNumber.
- self changed: #questionIndex
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionIndex.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionIndex.st
deleted file mode 100644
index fbe610d3..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionIndex.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-questionIndex
-
- ^ self index
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionList.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionList.st
deleted file mode 100644
index f5c9dc72..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionList.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-questionList
-
- ^ self poll questionList collect: [:question | question title]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionListFrame..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionListFrame..st
deleted file mode 100644
index 5b32a916..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/questionListFrame..st
+++ /dev/null
@@ -1,8 +0,0 @@
-toolbuilder
-questionListFrame: bottomFraction
-
- ^ self
- frame: bottomFraction
- fromTop: 0
- fromLeft: 0
- width: 0.25
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/startRefreshing.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/startRefreshing.st
deleted file mode 100644
index 7369cc85..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/startRefreshing.st
+++ /dev/null
@@ -1,12 +0,0 @@
-live
-startRefreshing
- self polling: [
- [true] whileTrue: [
- | visualizationView |
- visualizationView := LQVisualizationView newWithPoll: self poll.
- self currentVisualization: (visualizationView visualizeResultsFor:
- (self poll questionList at: self index)).
- "Transcript show: 'refreshed'; cr."
- (Delay forSeconds: 2) wait.
- ]
- ] fork.
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/stopRefreshing.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/stopRefreshing.st
deleted file mode 100644
index 4235460a..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/stopRefreshing.st
+++ /dev/null
@@ -1,3 +0,0 @@
-live
-stopRefreshing
- self polling ifNotNil: [self polling terminate]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/wrapperMorph..st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/wrapperMorph..st
deleted file mode 100644
index 6e01556f..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/wrapperMorph..st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-wrapperMorph: aMorph
-
- wrapperMorph := aMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/wrapperMorph.st b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/wrapperMorph.st
deleted file mode 100644
index a69d2423..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/instance/wrapperMorph.st
+++ /dev/null
@@ -1,4 +0,0 @@
-accessing
-wrapperMorph
-
- ^ wrapperMorph
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/methodProperties.json b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/methodProperties.json
deleted file mode 100644
index e36705e7..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/methodProperties.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "class" : {
- "newWithPoll:" : "kge 5/15/2022 15:02",
- "openOn:" : "kge 5/15/2022 14:27" },
- "instance" : {
- "barChartFrame:" : "ms 8/4/2022 21:20",
- "bottomOffset" : "ms 8/5/2022 21:19",
- "buildBarChartWith:" : "JT 8/5/2022 19:26",
- "buildQuestionListWith:" : "JT 8/5/2022 19:26",
- "buildWith:" : "Ingmar Vogel 6/20/2024 18:39",
- "currentVisualization:" : "bn 8/2/2022 18:56",
- "frame:fromTop:fromLeft:width:" : "ms 8/5/2022 21:19",
- "index" : "kge 5/15/2022 14:20",
- "index:" : "kge 5/15/2022 14:20",
- "initialize" : "Ingmar Vogel 6/20/2024 15:40",
- "poll" : "kge 5/15/2022 14:20",
- "poll:" : "kge 5/15/2022 14:20",
- "polling" : "Ingmar Vogel 6/20/2024 15:41",
- "polling:" : "Ingmar Vogel 6/20/2024 15:41",
- "questionIndex" : "kge 8/1/2022 19:05",
- "questionIndex:" : "kge 8/3/2022 20:44",
- "questionList" : "kge 8/3/2022 20:44",
- "questionListFrame:" : "ms 8/4/2022 21:19",
- "startRefreshing" : "Ingmar Vogel 6/20/2024 15:40",
- "stopRefreshing" : "Ingmar Vogel 6/20/2024 15:46",
- "wrapperMorph" : "bn 8/2/2022 18:10",
- "wrapperMorph:" : "bn 8/2/2022 18:10" } }
diff --git a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/properties.json b/packages/Liquid-UI.package/LQVisualizationControlsOld.class/properties.json
deleted file mode 100644
index e2304db7..00000000
--- a/packages/Liquid-UI.package/LQVisualizationControlsOld.class/properties.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "category" : "Liquid-UI",
- "classinstvars" : [
- ],
- "classvars" : [
- ],
- "commentStamp" : "kge 6/12/2022 11:25",
- "instvars" : [
- "poll",
- "index",
- "wrapperMorph",
- "polling" ],
- "name" : "LQVisualizationControlsOld",
- "pools" : [
- ],
- "super" : "LQModel",
- "type" : "normal" }
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/class/newWithPoll..st b/packages/Liquid-UI.package/LQVisualizationView.class/class/newWithPoll..st
index 2a0e5016..adc2faaf 100644
--- a/packages/Liquid-UI.package/LQVisualizationView.class/class/newWithPoll..st
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/class/newWithPoll..st
@@ -2,8 +2,7 @@ instance creation
newWithPoll: aPoll
| pollVisualization |
-
pollVisualization := self new.
- pollVisualization poll: aPoll.
-
- ^ pollVisualization
+ pollVisualization poll: aPoll.
+
+ ^ pollVisualization
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/data.st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/data.st
index c7b01ddf..5619796e 100644
--- a/packages/Liquid-UI.package/LQVisualizationView.class/instance/data.st
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/instance/data.st
@@ -1,4 +1,4 @@
data
data
- ^ self dataFor: (self poll questionList first)
\ No newline at end of file
+ ^ self dataFor: self poll questionList first
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/dataFor..st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/dataFor..st
index efb9e5a5..cc2a4b84 100644
--- a/packages/Liquid-UI.package/LQVisualizationView.class/instance/dataFor..st
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/instance/dataFor..st
@@ -2,7 +2,6 @@ data
dataFor: aQuestion
| result sortedData |
-
sortedData := self sortDataFor: aQuestion.
result := SWDataLabeled
fromXValues: (self poll getChoiceIdentifiersFor: aQuestion)
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortData.st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortData.st
index fbe973d9..97be9152 100644
--- a/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortData.st
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortData.st
@@ -1,4 +1,4 @@
data
sortData
- ^ self sortDataFor: (self poll questionList first)
\ No newline at end of file
+ ^ self sortDataFor: self poll questionList first
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortDataFor..st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortDataFor..st
index 729280eb..7e766969 100644
--- a/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortDataFor..st
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/instance/sortDataFor..st
@@ -2,7 +2,6 @@ data
sortDataFor: aQuestion
| result amountVotes labels |
-
amountVotes := OrderedCollection newFrom: (self poll getVotedChoicesPerChoiceFor: aQuestion).
labels := self poll getChoiceNamesFor: aQuestion.
result := labels with: amountVotes collect: [:label :votes | {votes. label}].
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeChoicesResultsFor..st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeChoicesResultsFor..st
new file mode 100644
index 00000000..b9a953c5
--- /dev/null
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeChoicesResultsFor..st
@@ -0,0 +1,9 @@
+data
+visualizeChoicesResultsFor: aQuestion
+
+ | data diagram |
+ data := self dataFor: aQuestion.
+ self poll answerSets ifEmpty: [^ Morph new beTransparent].
+ diagram := SWDiagram new.
+ diagram visualize: data with: SWBarChart create.
+ ^ diagram
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeResults.st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeResults.st
deleted file mode 100644
index 1a4a88ee..00000000
--- a/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeResults.st
+++ /dev/null
@@ -1,4 +0,0 @@
-data
-visualizeResults
-
- ^ self poll questionList collect: [:each | self visualizeResultsFor: each]
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeResultsFor..st b/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeResultsFor..st
deleted file mode 100644
index d31a7817..00000000
--- a/packages/Liquid-UI.package/LQVisualizationView.class/instance/visualizeResultsFor..st
+++ /dev/null
@@ -1,11 +0,0 @@
-data
-visualizeResultsFor: aQuestion
-
- | data diagram |
-
- data := (self dataFor: aQuestion).
- "self poll answerSets ifEmpty: [^ UIManager default inform: 'No answers have been submitted yet.']."
- self poll answerSets ifEmpty: [^ Morph new beTransparent].
- diagram := SWDiagram new .
- diagram visualize: data with: SWBarChart create.
- ^ diagram
diff --git a/packages/Liquid-UI.package/LQVisualizationView.class/methodProperties.json b/packages/Liquid-UI.package/LQVisualizationView.class/methodProperties.json
index e870b638..b725d845 100644
--- a/packages/Liquid-UI.package/LQVisualizationView.class/methodProperties.json
+++ b/packages/Liquid-UI.package/LQVisualizationView.class/methodProperties.json
@@ -1,12 +1,11 @@
{
"class" : {
- "newWithPoll:" : "bwe 6/26/2022 14:41" },
+ "newWithPoll:" : "FLST 7/11/2024 20:44" },
"instance" : {
- "data" : "kge 8/3/2022 20:44",
- "dataFor:" : "bn 8/2/2022 18:12",
+ "data" : "FLST 7/11/2024 20:44",
+ "dataFor:" : "FLST 7/11/2024 20:44",
"poll" : "bn 8/2/2022 17:13",
"poll:" : "bwe 6/26/2022 14:38",
- "sortData" : "kge 8/3/2022 20:43",
- "sortDataFor:" : "bn 8/2/2022 18:12",
- "visualizeResults" : "kge 8/3/2022 20:43",
- "visualizeResultsFor:" : "Ingmar Vogel 6/20/2024 15:43" } }
+ "sortData" : "FLST 7/11/2024 20:44",
+ "sortDataFor:" : "FLST 7/11/2024 20:44",
+ "visualizeChoicesResultsFor:" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/README.md b/packages/Liquid-UI.package/LQWidgetToMorph.class/README.md
new file mode 100644
index 00000000..074ad38b
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/README.md
@@ -0,0 +1 @@
+Based on the excelent work by Corvin Koegler (PixelEditor)
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/clear.st b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/clear.st
new file mode 100644
index 00000000..a6e81d4f
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/clear.st
@@ -0,0 +1,4 @@
+modifying
+clear
+
+ self removeAllMorphs
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/initialize.st b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/initialize.st
new file mode 100644
index 00000000..c1f87144
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/initialize.st
@@ -0,0 +1,10 @@
+initialize-release
+initialize
+
+ super initialize.
+ self
+ layoutFrame: (LayoutFrame fractions: (0 @ 0 rect: 1 @ 1));
+ beSticky;
+ setWidgetStyle;
+ lock;
+ clipSubmorphs: true
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/setWidgetStyle.st b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/setWidgetStyle.st
new file mode 100644
index 00000000..d64a98e8
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/setWidgetStyle.st
@@ -0,0 +1,6 @@
+modifying
+setWidgetStyle
+
+ self
+ color: Color transparent;
+ borderColor: Color transparent
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/wantsDroppedMorph.event..st b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/wantsDroppedMorph.event..st
new file mode 100644
index 00000000..04d20297
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/instance/wantsDroppedMorph.event..st
@@ -0,0 +1,4 @@
+modifying
+wantsDroppedMorph: aMorph event: evt
+
+ ^ false
\ No newline at end of file
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/methodProperties.json b/packages/Liquid-UI.package/LQWidgetToMorph.class/methodProperties.json
new file mode 100644
index 00000000..6266aad5
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/methodProperties.json
@@ -0,0 +1,8 @@
+{
+ "class" : {
+ },
+ "instance" : {
+ "clear" : "FLST 7/11/2024 20:44",
+ "initialize" : "FLST 7/11/2024 20:44",
+ "setWidgetStyle" : "FLST 7/11/2024 20:44",
+ "wantsDroppedMorph:event:" : "FLST 7/11/2024 20:44" } }
diff --git a/packages/Liquid-UI.package/LQWidgetToMorph.class/properties.json b/packages/Liquid-UI.package/LQWidgetToMorph.class/properties.json
new file mode 100644
index 00000000..015b5799
--- /dev/null
+++ b/packages/Liquid-UI.package/LQWidgetToMorph.class/properties.json
@@ -0,0 +1,14 @@
+{
+ "category" : "Liquid-UI",
+ "classinstvars" : [
+ ],
+ "classvars" : [
+ ],
+ "commentStamp" : "FLST 7/2/2024 11:42",
+ "instvars" : [
+ ],
+ "name" : "LQWidgetToMorph",
+ "pools" : [
+ ],
+ "super" : "PasteUpMorph",
+ "type" : "normal" }