-
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
76 changed files
with
264 additions
and
195 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
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
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-UI.package/TCUChatMessageList.class/class/defaultMessageMargin.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 @@ | ||
default values | ||
defaultMessageMargin | ||
|
||
^ 10 | ||
^ 5 |
8 changes: 8 additions & 0 deletions
8
packages/TelegramClient-UI.package/TCUChatMessageList.class/class/defaultMessageWrapper.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 @@ | ||
default values | ||
defaultMessageWrapper | ||
|
||
^ Morph new | ||
cellInset: self defaultMessageMargin; | ||
color: Color transparent; | ||
layoutPolicy: TableLayout new; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
...egramClient-UI.package/TCUChatMessageList.class/class/defaultScrollOffsetBeforeLoading.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 @@ | ||
default values | ||
defaultScrollOffsetBeforeLoading | ||
|
||
^ 50 |
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/addAtBottom..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 @@ | ||
messages | ||
addAtBottom: aMessage | ||
|
||
| wrapper | | ||
wrapper := self wrapperFor: (TCUMessage newFrom: aMessage). | ||
self scroller addMorphBack: wrapper. | ||
self items addLast: wrapper. |
11 changes: 11 additions & 0 deletions
11
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/addAtTop..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
messages | ||
addAtTop: aMessage | ||
|
||
| wrapper | | ||
wrapper := self wrapperFor: (TCUMessage newFrom: aMessage). | ||
self scroller addMorphFront: wrapper. | ||
self items addFirst: wrapper. | ||
|
||
self vScrollBar maximumValue = self vScrollBar value | ||
ifTrue: [self scrollToNewestMessage]. | ||
self scrollBy: 0 @ (wrapper height negated). |
13 changes: 0 additions & 13 deletions
13
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/addMessageAtBottom..st
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/addMessages.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,7 @@ | ||
messages | ||
addMessages | ||
|
||
self showChatMessagesFrom: self lowestVisibleMessage. | ||
self chat messages reversed | ||
collect: [:message | self addAtBottom: message] | ||
from: 1 | ||
to: self chat numberOfMessages. |
5 changes: 0 additions & 5 deletions
5
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/clearMessages.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/core.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 @@ | ||
event handling | ||
accessing | ||
core | ||
|
||
^ self owner core |
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
5 changes: 0 additions & 5 deletions
5
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/handleMouseWheel..st
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/isLoadingHistory..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 @@ | ||
accessing | ||
isLoadingHistory: aBoolean | ||
|
||
isLoadingHistory := aBoolean |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/isLoadingHistory.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 @@ | ||
accessing | ||
isLoadingHistory | ||
|
||
^ isLoadingHistory |
4 changes: 0 additions & 4 deletions
4
...ages/TelegramClient-UI.package/TCUChatMessageList.class/instance/lowestVisibleMessage..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/lowestVisibleMessage.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/messages..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/messages.st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/scrollDown.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ages/TelegramClient-UI.package/TCUChatMessageList.class/instance/scrollToNewestMessage.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 | ||
scrollToNewestMessage | ||
|
||
self items notEmpty ifTrue: [self scrollToShow: self items last]. |
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/scrollUp.st
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...ages/TelegramClient-UI.package/TCUChatMessageList.class/instance/showChatMessagesFrom..st
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/showMessages.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 | ||
showMessages | ||
|
||
self | ||
clearItems; | ||
addMessages; | ||
scrollToNewestMessage. |
6 changes: 6 additions & 0 deletions
6
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/step.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
stepping and presenter | ||
step | ||
|
||
self isLoadingHistory ifTrue: | ||
[self scroller offset y < self class defaultScrollOffsetBeforeLoading | ||
ifTrue: [self core getChatHistoryFrom: self chat id]]. |
15 changes: 15 additions & 0 deletions
15
packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/wrapperFor..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 @@ | ||
messages | ||
wrapperFor: aTCUMessage | ||
|
||
| wrapper | | ||
wrapper := self class defaultMessageWrapper | ||
width: self scroller width; | ||
height: aTCUMessage height; | ||
yourself. | ||
|
||
aTCUMessage isOutgoing | ||
ifTrue: [ wrapper listDirection: #rightToLeft ] | ||
ifFalse: [ wrapper listDirection: #leftToRight ]. | ||
|
||
wrapper addMorph: aTCUMessage. | ||
^ wrapper |
30 changes: 15 additions & 15 deletions
30
packages/TelegramClient-UI.package/TCUChatMessageList.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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"class" : { | ||
"defaultMessageMargin" : "js 7/31/2020 15:50" }, | ||
"defaultMessageMargin" : "per 6/20/2021 11:51", | ||
"defaultMessageWrapper" : "JB 6/28/2021 09:58", | ||
"defaultScrollOffsetBeforeLoading" : "JB 6/26/2021 10:15" }, | ||
"instance" : { | ||
"addMessageAtBottom:" : "RK 6/26/2021 10:15", | ||
"addMessages" : "js 8/2/2020 22:16", | ||
"addAtBottom:" : "per 6/28/2021 15:55", | ||
"addAtTop:" : "per 6/28/2021 16:15", | ||
"addMessages" : "JB 6/28/2021 09:32", | ||
"chat" : "js 7/31/2020 16:39", | ||
"chat:" : "js 7/31/2020 16:39", | ||
"clearMessages" : "js 7/31/2020 16:46", | ||
"core" : "js 8/2/2020 22:11", | ||
"displayChat:" : "f.w. 8/1/2020 04:53", | ||
"handleMouseWheel:" : "f.w. 7/31/2020 23:53", | ||
"initialize" : "js 7/31/2020 17:19", | ||
"lowestVisibleMessage" : "f.w. 7/31/2020 23:55", | ||
"lowestVisibleMessage:" : "f.w. 7/31/2020 23:55", | ||
"messages" : "rs 6/17/2020 19:10", | ||
"messages:" : "rs 6/17/2020 19:10", | ||
"scrollDown" : "js 8/2/2020 22:17", | ||
"scrollUp" : "js 8/2/2020 22:17", | ||
"showChatMessagesFrom:" : "js 8/2/2020 22:18" } } | ||
"core" : "JB 6/26/2021 10:22", | ||
"displayChat:" : "JB 6/28/2021 09:32", | ||
"initialize" : "JB 6/26/2021 10:17", | ||
"isLoadingHistory" : "JB 6/26/2021 10:16", | ||
"isLoadingHistory:" : "JB 6/26/2021 10:16", | ||
"scrollToNewestMessage" : "per 6/24/2021 23:14", | ||
"showMessages" : "per 6/24/2021 23:12", | ||
"step" : "JB 6/26/2021 10:22", | ||
"wrapperFor:" : "JB 6/28/2021 09:40" } } |
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
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatWindow.class/class/defaultTitleBarHeight.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 @@ | ||
default values | ||
defaultTitleBarHeight | ||
|
||
^ 50 |
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUChatWindow.class/class/defaultTitleBarHeigth.st
This file was deleted.
Oops, something went wrong.
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
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUChatsList.class/class/defaultScrollStep.st
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/TelegramClient-UI.package/TCUChatsList.class/instance/handleMouseWheel..st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatsList.class/instance/indicateKeyboardFocus.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 @@ | ||
initialization | ||
indicateKeyboardFocus | ||
|
||
^ false |
Oops, something went wrong.