Commit Graph

255 Commits

Author SHA1 Message Date
John Preston
1ef944ed7b Not inline bot keyboard now supports editing as well.
Styles improved for not inline bot keyboard.
Full crash string adding to crash report.
Preparing to leave source code without #include "stdafx.h"
2016-04-01 19:32:26 +04:00
John Preston
0e0956451a MTP_bytes() replaces MTP_string() for QByteArray payload.
Scheme updated for bot callbacks sending data bytearrays.
ReplyKeyboard edition is supported when editing the messages.
2016-04-01 14:23:40 +04:00
John Preston
fa4137418a Merged with master. 2016-04-01 12:54:32 +04:00
John Preston
f1dfcef868 Styles improved for unread bar margins and sticker timestamp.
Possible crash fixes: emoji color picker show, pending repaint
items cleared when history items are cleared.

Deleting MainWidget syncroniously when clearWidgets() is called.
2016-03-31 18:06:40 +04:00
John Preston
40fddc9697 UniquePointer backported. Fixed unifying of adding new history items. 2016-03-31 15:18:21 +04:00
John Preston
fed715c1f4 Creating HistoryBlock only before adding an item to it.
Now invariants always should be kept true, including
indexInBlock, indexInHistory and !block->items.isEmpty()

Need to backport UniquePointer from other branch.
2016-03-31 14:37:58 +04:00
John Preston
b981472877 Bot keyboard button with type url / callback / phone / location
now can be displayed with an icon in the upper-right corner.

Inline bot keyboards almost done.
2016-03-30 20:42:01 +04:00
John Preston
3210aecbd2 Fixed some ClickHandler bugs, bot keyboard active/pressed
states done, handling enterEvent() for ClickHandler activate.
2016-03-30 12:03:29 +04:00
John Preston
7f6cf32cdd ITextLink moved to ClickHandler, TextLinkPtr > ClickHandlerPtr.
Global methods textlnkOver/Down/DrawOver were replaced by
static members of ClickHandler, now global state consists
of the handler pointer + host pointer, who declares callbacks
for the active and pressed handler changed events.

This will allow to use ClickHandler from different hosts
simultaneously (like HistoryItem / BotDescription / BotKeyboard).

Not yet tested.
2016-03-29 20:17:00 +03:00
John Preston
2c6f74f923 Reply markup keyboard class almost ready, single class
for inline and external bot keyboard handling.

But it needs to reinvent a good improvement/replacement
for ITextLink concept that will support automatic calls
of linkOver()/linkOut() methods in all link holders.
2016-03-28 20:15:17 +03:00
John Preston
daa5016c23 Components are now almost plain structs
Moved reply markups to history items which hold them
2016-03-28 15:51:22 +03:00
John Preston
b32c6566ff Fixed crash when deleting items.
Fixed unread counter clear when logging out.
2016-03-26 09:41:23 +03:00
John Preston
844e375fac fixed new not important message adding 2016-03-25 19:03:57 +03:00
John Preston
599ede9a0b Beta 9034004 version:
Some lang grammar fixes, all "audio" changed to "voice message"
PeerData can have three loaded states (not loaded, minimal, full)
Interface/Interfaces renamed to Component/Composer
HistoryReply moved to a Component named HistoryMessageReply
2016-03-25 14:29:45 +03:00
John Preston
ef69973e6d fixed build for Xcode 2016-03-24 16:27:34 +03:00
John Preston
1f423a6da2 Merge branch 'dev' of https://bitbucket.org/johnprestonmail/telegram-desktop into dev 2016-03-24 15:57:29 +03:00
John Preston
02ca81ac64 optimized enumeration of userpics 2016-03-23 14:47:32 +03:00
John Preston
82e4660ae9 fixed build for clang and g++ 2016-03-22 22:50:14 +03:00
John Preston
e45de88bd6 moving left userpics at the top of the conversation window, beta 9034002 2016-03-22 22:43:47 +03:00
John Preston
5c9836418f version 9034001 beta 2016-03-22 18:23:34 +03:00
John Preston
f662067a68 fixed history block index bug 2016-03-22 12:51:20 +03:00
John Preston
fd7a30f143 override specifiers added, retina bug in image circle fixed 2016-03-21 21:57:03 +03:00
John Preston
84e67b8ec0 scrollTop counted relative to the last scrollTop item, attachedToPrevious messages support added, service messages now display date and unreadbar 2016-03-21 21:40:00 +03:00
John Preston
2cbda4e1e5 removed history resize when adding items, simplified adding items, maintaining item and block indices, history scroll management broken when history changes 2016-03-19 21:32:17 +03:00
John Preston
2ef8c44445 all MTP flags made strictly typed by scoped enums, in-message date display added for non-service messages 2016-03-19 19:55:15 +03:00
John Preston
9d00ec273b removed Date service messages, removed UnreadBar service message, started adding them to HistoryItems, saving item index in block to keep an eye on the previous message 2016-03-18 22:05:08 +03:00
John Preston
281f762869 Merge branch 'master' into dev 2016-03-15 15:25:49 +03:00
John Preston
54af494224 added some asserts in adding history messages, added for_const range-based loop macro, remotecontent() in Qt patch is limited to 64 Mb 2016-03-15 13:37:56 +03:00
John Preston
3a8824a9a6 intro rewrite started, new code sending methods 2016-03-14 19:59:18 +03:00
John Preston
2a9f24d774 fixed destroy of pinned service msg (unreg dependency), displaying HistoryVideo in webpage-with-document 2016-03-14 08:31:33 +03:00
John Preston
86a4a388c3 ban / report / deleteAll done in MainWidget instead of RichDeleteMessageBox 2016-03-13 18:45:00 +03:00
John Preston
6792f9c77b fixed pinned message display if input field is hidden, fixed pinned message remove, removed copy post link context menu item from public supergroup messages 2016-03-13 16:21:26 +03:00
John Preston
9ad9d5a12f marked methods as override in history.h 2016-03-11 18:28:32 +03:00
John Preston
5cab9569c3 updating edited messages dependencies (replies, edit / reply / pinned bar), postponing notification about pinned message while the message itself is not yet available 2016-03-11 15:20:58 +03:00
John Preston
efa5fc443a pin/unpin messages in supergroups, local hide for pinned messages 2016-03-10 13:15:21 +03:00
John Preston
1c722a425d forwarded getState fixed, pinned message service msg dependency request and text update done 2016-03-05 23:12:55 +02:00
John Preston
0e49c13968 rpcClear for mediaview, ImageLink changed to Location 2016-02-28 16:54:04 +03:00
John Preston
798f800913 History::dialogs and Histories::unread are private now, counting only chats from dialogs list to the badge 2016-02-28 14:58:30 +03:00
John Preston
37309a91ac fixed media_only dcs, added copy post link to clipboard, fixed signature display in gifs, 0.9.27 dev version 2016-02-25 20:23:42 +03:00
John Preston
4ec579112c beta 9026001 message/post edit done 2016-02-25 13:32:31 +03:00
John Preston
29fefbc4bb post edit started, sign messages checkbox added in channel edit by creator 2016-02-21 15:30:16 +03:00
John Preston
6d42350691 forwarded display improved 2016-02-19 14:53:49 +03:00
John Preston
c3845ead85 moved forwarded to an interface, testing required 2016-02-18 22:12:50 +03:00
John Preston
803d1a429d scheme updated, config vars moved to Global namespace 2016-02-18 19:36:33 +03:00
John Preston
7433cea0fd fixed copy selected text, post author display added, post links handling added, windows bingmaps opening added, sticker previews from mentionsdropdown and stickersetbox added 2016-02-17 19:37:21 +03:00
John Preston
3579276b49 videos rendered like files, fixed history loading 2016-02-12 21:18:32 +03:00
John Preston
189d0e8de3 voice messages moved to documents with waveforms 2016-02-12 19:35:06 +03:00
John Preston
7b855a661a new wide layout, build script and some bugs fixed 2016-02-09 19:05:08 +03:00
John Preston
d6f549fef6 no lag in changing normal to wide adaptive mode, files overview ext display improved, no inline bot progress while resolving username, version 0.9.20.dev 2016-02-08 19:04:44 +03:00
John Preston
80ba0259dd some namespaces reorganized, author photo display added to wide mode (where messages are centered), version 0.9.20.dev 2016-02-08 17:54:55 +03:00
John Preston
0b8523d58e added year 2016 to copyright 2016-02-08 13:56:18 +03:00
John Preston
0b4ddb045e max history width limited, custom tooltips replace QToolTip, keys with modifiers are not passed to MentionsDropdown 2016-02-07 18:38:49 +03:00
John Preston
fc02f96ef1 via @bot fixed in forwarded, stickers requested in stickersbox, sticker not autoselected in dropdown, forwarded messages to chats fixed from_id and via_bot_id 2016-01-11 12:45:07 +08:00
John Preston
f66c54ee6b not loaded thumbs are now white, always initDimensions() when media is updated 2016-01-09 15:11:23 +08:00
John Preston
f2824f79f6 improved forwarded media display, 0.9.18 2016-01-05 14:11:18 +08:00
John Preston
2c7fb82708 fixed broken typing statuses, 0.9.18 2016-01-05 12:52:40 +08:00
John Preston
a1646a8f9e better @via display 2016-01-03 17:46:30 +08:00
John Preston
5a87bf4114 fixed inline results display lag, cancelling inline query by Escape, add/erase in overview refactored, animated gifv are not in shared files anymore 2016-01-03 09:43:42 +08:00
John Preston
30452289e5 fixed animations in webpage 2016-01-01 09:56:21 +08:00
John Preston
9d22ec4900 Merge branch 'bots' of https://bitbucket.org/johnprestonmail/telegram-desktop into bots 2015-12-31 23:29:06 +08:00
John Preston
58da5c5c3b build fixed for os x, langs updated 2015-12-31 23:28:54 +08:00
John Preston
35d4754380 caching web files to local, sending of inline bots results done properly, panel ux better for inline bots 2015-12-31 23:27:21 +08:00
John Preston
5830e0f657 inline bots gif / photo preview / sending done 2015-12-31 13:34:43 +08:00
John Preston
e58c8a6fcb complex layouts for context gifs started 2015-12-30 19:56:05 +08:00
John Preston
77228d358d context bots started, all callbacks done by pointers 2015-12-29 00:20:04 +03:00
John Preston
4c13b5dbee Merge branch 'docs' into bots 2015-12-28 13:28:15 +03:00
John Preston
4f6c8f8008 document captions display and adding done 2015-12-28 13:28:00 +03:00
John Preston
4b99eb9c8d fixed crashes on quit, fixed scrolled sticker icons 2015-12-28 09:19:29 +03:00
John Preston
9a1798f043 saved gifs done 2015-12-28 00:37:48 +03:00
John Preston
9d28303459 Merge branch 'docs' of https://bitbucket.org/johnprestonmail/telegram-desktop into docs 2015-12-25 16:10:24 +03:00
John Preston
972e78ae7a improved bad gif handling in autoplay, replaced av_free_packet with av_packet_unref 2015-12-25 16:10:13 +03:00
John Preston
a5622cfe3b pausing gifs when mediaview is opened, improved photos handling - download on click if autoload disabled 2015-12-25 16:09:14 +03:00
John Preston
4ed2d75c74 upload radial progress and upload cancel done, photo / file / audio autodownload settings respected 2015-12-24 22:26:28 +03:00
John Preston
6170144fe9 inline gifs playback / stopping done 2015-12-23 19:48:44 +03:00
John Preston
9a72293e0a addOlderSlice and addNewerSlice should work well with items changing inside them 2015-12-23 17:18:42 +03:00
John Preston
73a4d3510d removed itemReplaced 2015-12-23 15:55:32 +03:00
John Preston
41f5a87c80 improved video, audio overview, fixed files overview 2015-12-23 15:19:32 +03:00
John Preston
d3896ff53b photo and video overview rewritten on layouts 2015-12-22 15:49:42 +03:00
John Preston
62723f7576 disabled libexif usage, mediaview showing gif/mp4 through ClipReader 2015-12-22 11:01:02 +03:00
John Preston
0fd6f04aa9 files overview redesign done 2015-12-21 16:14:29 +03:00
John Preston
cc004d435b new layout items structure started 2015-12-20 17:05:07 +03:00
John Preston
216b9ec52f overview redesign started (four out of six not working) 2015-12-19 21:09:24 +03:00
John Preston
f3065eb654 image links redesigned (removed all except locations) 2015-12-19 15:27:03 +03:00
John Preston
11da39b72d webpage attachs redesigned 2015-12-19 00:36:16 +03:00
John Preston
840ffa6482 ffmpeg rendering inline animations 2015-12-17 20:31:28 +03:00
John Preston
322eef660e Merge branch 'docs' of https://bitbucket.org/johnprestonmail/telegram-desktop into docs 2015-12-16 16:35:25 +03:00
John Preston
29a7c66e45 stopping gifs on history close, only one gif playing 2015-12-16 16:35:15 +03:00
John Preston
79d65c1828 Merge branch 'docs' of https://bitbucket.org/johnprestonmail/telegram-desktop into docs 2015-12-15 18:07:04 +03:00
John Preston
2aa44a2135 fixed warnings 2015-12-15 18:06:51 +03:00
John Preston
5e0e0d2391 new gif playing from separate threads 2015-12-15 17:50:51 +03:00
John Preston
a66c051eb5 gif redesign done, started ClipReader - gif animation reader in separate thread 2015-12-13 20:05:32 +03:00
John Preston
6100c1dcca video redesigned 2015-12-13 18:21:20 +03:00
John Preston
2225abec5c voice messages and shared contacts redesigned (contacts not realtime-updated yet) 2015-12-13 01:29:33 +03:00
John Preston
603fb63c91 document new design done with radial progress, ? char added to monospace blocks edges, redraw history item through Notify:: 2015-12-11 21:11:38 +03:00
John Preston
92c31324b0 links done in new documents design 2015-12-11 10:44:53 +03:00
John Preston
6d74140e39 documents design improved 2015-12-10 16:37:45 +03:00
John Preston
978554ce28 photos redesign improved 2015-12-09 22:09:29 +03:00
John Preston
dda1ad987d photos redesigned 2015-12-09 21:06:20 +03:00
John Preston
6bad3b4d7e started media redesign (does not compile!) 2015-12-08 22:07:50 +03:00
John Preston
0b96dd5362 animations refactored 2015-12-08 15:33:37 +03:00