-
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
41 changed files
with
329 additions
and
122 deletions.
There are no files selected for viewing
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
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 @@ | ||
drawing | ||
addChoices: aRectangle | ||
|
||
aRectangle addMorph: (TCUChoice newFor: 'Anonymous Poll?'); | ||
addMorph: (TCUChoiceExclusive newFor: 'Standard Poll' inPoll: self); | ||
addMorph: (TCUChoiceExclusive newFor: 'Multiple Options' inPoll: self); | ||
addMorph: (TCUChoiceExclusive newFor: 'Quiz' inPoll: self). |
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addConfirmButton..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 @@ | ||
drawing | ||
addConfirmButton: aRectangle | ||
|
||
|confirmButton| | ||
|
||
confirmButton := TCUButton new. | ||
confirmButton text: 'Confirm'; | ||
on: #mouseUp send: #confirmPressed to: self. | ||
|
||
aRectangle addMorph: confirmButton. |
14 changes: 14 additions & 0 deletions
14
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addInputFieldFor..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,14 @@ | ||
drawing | ||
addInputFieldFor: aRectangle | ||
|
||
|inputField| | ||
inputField := (TextMorph new | ||
borderWidth: 2; | ||
borderColor: TCUDefaultValues colorLightBlue; | ||
color: Color white; | ||
contentsWrapped: '' asText; | ||
extent: 200 @ 20; | ||
"crAction: [self buttonSendPressed]; | ||
" yourself). | ||
aRectangle addMorph: inputField. | ||
|
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addNextButton..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 @@ | ||
drawing | ||
addNextButton: aRectangle | ||
|
||
|nextButton| | ||
|
||
nextButton := TCUButton new. | ||
nextButton text: 'Next'; | ||
on: #mouseUp send: #nextPressed to: self. | ||
|
||
aRectangle addMorph: nextButton. |
12 changes: 12 additions & 0 deletions
12
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addTextFieldFor.with..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 @@ | ||
drawing | ||
addTextFieldFor: aRectangle with: aString | ||
|
||
|text| | ||
text := (TextMorph new | ||
contents: aString; | ||
extent: 20 @ 20; | ||
readOnly: true; | ||
color: Color white; | ||
lock; | ||
yourself). | ||
aRectangle addMorph: text. |
19 changes: 19 additions & 0 deletions
19
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addTextInputFor..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,19 @@ | ||
drawing | ||
addTextInputFor: aString | ||
|
||
| morph| | ||
morph := (RectangleMorph new | ||
borderWidth: 0; | ||
color: TCUDefaultValues colorNileBlue; | ||
layoutPolicy: TableLayout new; | ||
listDirection: #leftToRight; | ||
wrapDirection: #leftToRight; | ||
wrapCentering: #topLeft; | ||
layoutInset: 2; | ||
hResizing: #shrinkWrap; | ||
vResizing: #shrinkWrap; | ||
yourself). | ||
|
||
self addInputFieldFor: morph. | ||
self addTextFieldFor: morph with: aString. | ||
^ morph. |
25 changes: 6 additions & 19 deletions
25
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/addTypeOption.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
as yet unclassified | ||
drawing | ||
addTypeOption | ||
|
||
self typeOption: (RectangleMorph new | ||
color: TCUDefaultValues colorLightBlue; | ||
useRoundedCorners; | ||
layoutPolicy: TableLayout new; | ||
listDirection: #leftToRight; | ||
wrapDirection: #topToBottom; | ||
wrapCentering: #topLeft; | ||
layoutInset: 2; | ||
hResizing: #shrinkWrap; | ||
vResizing: #shrinkWrap; | ||
cellInset: 8; | ||
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); | ||
yourself). | ||
|
||
self addMorphFront: self typeOption. | ||
self createTypeOption; | ||
addTextFieldFor: self typeOption with: 'Customize your poll!'; | ||
addChoices: self typeOption; | ||
addNextButton: self typeOption; | ||
addMorphFront: self typeOption. | ||
self typeOption center: self center. | ||
|
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/chat..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
accessing | ||
chat: aChat | ||
|
||
chat := aChat |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/chat.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
accessing | ||
chat | ||
|
||
^ chat |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/clear.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 @@ | ||
drawing | ||
clear | ||
|
||
self abandon. |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatPollEditor.class/instance/confirmPressed.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 @@ | ||
event handling | ||
confirmPressed | ||
|
||
self abandon. |
Oops, something went wrong.