-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
148 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addChoices.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
addChoices | ||
|
||
self addMorph: (TCUChoice newFor: 'Anonymous Poll?' isExclusive: false); | ||
addMorph: (TCUChoice newFor: 'Standard Poll' isExclusive: true); | ||
addMorph: (TCUChoice newFor: 'Multiple Options' isExclusive: true); | ||
addMorph: (TCUChoice newFor: 'Quiz' isExclusive: true). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
9 changes: 9 additions & 0 deletions
9
packages/TelegramClient-UI.package/TCUChoice.class/class/newFor.isExclusive..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
as yet unclassified | ||
newFor: aString isExclusive: aBoolean | ||
|
||
^ (super new) | ||
content: aString; | ||
isExclusive: aBoolean; | ||
addSelectionMorph; | ||
addTextMorph; | ||
yourself |
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-UI.package/TCUChoice.class/instance/addSelectionMorph.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
addSelectionMorph | ||
|
||
self isExclusive | ||
ifTrue: [selectionMorph := CircleMorph new] | ||
ifFalse: [selectionMorph := RectangleMorph new]. | ||
selectionMorph | ||
color: TCUDefaultValues colorLightBlue; | ||
extent: 22@22. | ||
self addMorph: selectionMorph. |
15 changes: 15 additions & 0 deletions
15
packages/TelegramClient-UI.package/TCUChoice.class/instance/addTextMorph.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
as yet unclassified | ||
addTextMorph | ||
|
||
|textMorph| | ||
|
||
textMorph := TextMorph new | ||
contents: self content; | ||
hResizing: #spaceFill; | ||
color: Color white; | ||
position: 26@0; | ||
readOnly: true; | ||
lock; | ||
yourself. | ||
self addMorph: textMorph | ||
|
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/content..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
content: aString | ||
|
||
content := aString |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/content.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
content | ||
|
||
^ content |
12 changes: 12 additions & 0 deletions
12
packages/TelegramClient-UI.package/TCUChoice.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
as yet unclassified | ||
initialize | ||
|
||
super initialize. | ||
|
||
self color: TCUDefaultValues colorLightBlue; | ||
borderWidth: 0; | ||
hResizing: #shrinkWrap; | ||
vResizing: #shrinkWrap; | ||
on: #mouseDown send: #updateChoice to: self; | ||
isSelected: false. | ||
|
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/isExclusive..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
isExclusive: aBoolean | ||
|
||
isExclusive := aBoolean |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/isExclusive.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
isExclusive | ||
|
||
^ isExclusive |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/isSelected..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
isSelected: aBoolean | ||
|
||
isSelected := aBoolean |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/isSelected.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
isSelected | ||
|
||
^ isSelected |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/selectionMorph..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
selectionMorph: aMorph | ||
|
||
selectionMorph := aMorph |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChoice.class/instance/selectionMorph.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
selectionMorph | ||
|
||
^ selectionMorph |
8 changes: 8 additions & 0 deletions
8
packages/TelegramClient-UI.package/TCUChoice.class/instance/updateChoice.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
as yet unclassified | ||
updateChoice | ||
|
||
self isSelected | ||
ifTrue: [selectionMorph color: TCUDefaultValues colorLightBlue. | ||
self isSelected: false.] | ||
ifFalse: [selectionMorph color: Color black. | ||
self isSelected: true.] |
16 changes: 16 additions & 0 deletions
16
packages/TelegramClient-UI.package/TCUChoice.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"class" : { | ||
"newFor:isExclusive:" : "jkon 6/17/2024 15:40" }, | ||
"instance" : { | ||
"addSelectionMorph" : "jkon 6/17/2024 15:21", | ||
"addTextMorph" : "jkon 6/17/2024 15:32", | ||
"content" : "jkon 6/17/2024 15:32", | ||
"content:" : "jkon 6/17/2024 15:32", | ||
"initialize" : "jkon 6/17/2024 15:40", | ||
"isExclusive" : "jkon 6/17/2024 15:16", | ||
"isExclusive:" : "jkon 6/17/2024 15:17", | ||
"isSelected" : "jkon 6/17/2024 14:52", | ||
"isSelected:" : "jkon 6/17/2024 14:52", | ||
"selectionMorph" : "jkon 6/17/2024 15:20", | ||
"selectionMorph:" : "jkon 6/17/2024 15:20", | ||
"updateChoice" : "jkon 6/17/2024 14:56" } } |
17 changes: 17 additions & 0 deletions
17
packages/TelegramClient-UI.package/TCUChoice.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"category" : "TelegramClient-UI", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"selectionMorph", | ||
"isSelected", | ||
"content", | ||
"isExclusive" ], | ||
"name" : "TCUChoice", | ||
"pools" : [ | ||
], | ||
"super" : "RectangleMorph", | ||
"type" : "normal" } |