Commit Graph

206 Commits

Author SHA1 Message Date
John Preston 7ca5737bc0 Removed SongMsgId, unified working with voice/music files in audio. 2016-06-30 15:03:32 +03:00
John Preston 1e5b2d7c66 Fix attempt of photo forward by drag-n-drop: for being able to use
press data in drop call ClickHandler::unpressed() after drag->exec().
Members dropdown area made smaller (only the members/online text rect).
2016-06-21 20:02:45 +03:00
John Preston 84f704448a Fixed scrolling by a child widget in ScrollArea by touch screen.
ScrollArea now always generates MouseMove when scrolled.
Fixed crash in BotKeyboard resizing with style change.
Fixed stickers box animations.
2016-06-15 20:48:16 +03:00
John Preston 38c2915533 Fixes in floating dates with migrated histories.
All service messages are now not multiline (including pinned).
Confirmation for profile photo deleting will be added (not enabled).
Copy-by-selection should be supported in Linux version now.
Drafts that contain only reply-to-id (without text) support added.
2016-06-14 19:26:41 +03:00
John Preston dbe4a5b7c7 Photos and videos in media overview ordered like in mobile apps. 2016-06-09 20:30:47 +03:00
John Preston 520260f207 Merge branch 'profile' into drafts
Conflicts:
	Telegram/SourceFiles/app.cpp
	Telegram/SourceFiles/codegen/style/processor.cpp
	Telegram/SourceFiles/history.cpp
	Telegram/SourceFiles/historywidget.cpp
	Telegram/SourceFiles/mainwidget.cpp
	Telegram/SourceFiles/mainwidget.h
	Telegram/SourceFiles/profilewidget.cpp
	Telegram/SourceFiles/profilewidget.h
	Telegram/Telegram.vcxproj
	Telegram/Telegram.vcxproj.filters
2016-06-06 18:16:52 +03:00
John Preston 2c4ec3d9f3 Shared media block done in the new profile implementation.
Preparing to call Notify::peerUpdatedSendDelayed() only from event loop.
2016-06-02 16:02:55 +03:00
John Preston 15d6a1aacf Invite link block in the new profile implementation done.
Fixed ClickHandler state when host is destroyed and after drag-n-drop.
2016-06-01 19:40:51 +03:00
John Preston 7f353d9b1a Removed all code related to channel comments. 2016-05-27 19:47:46 +03:00
John Preston 92c720ddc3 Returned animation type to the old one.
Fixed new profile display in single column layout.
2016-05-19 15:38:09 +03:00
John Preston 1d42144c95 Profile done as a new generic Window::SectionWidget.
Slide animation reimplemented.
2016-05-19 15:03:51 +03:00
John Preston 6e2dea7030 Merge branch 'master' into profile
Conflicts:
	Telegram/Telegram.vcxproj.filters
2016-05-16 18:47:44 +03:00
John Preston bf8a98a13b Side shadow moved to MainWidget. Testing slide animation with 3s duration.
New profile widget has fixed top bar outside of scroll area.
2016-05-14 19:57:06 +03:00
John Preston af248a6714 EntityInText made class instead of struct. Scheme updated.
No left trim of monospace text block when sending / displaying text.
New entity type (mention name) introduced, but not supported yet.
2016-04-29 15:00:48 +03:00
John Preston 705358993d New style::icon class added, colorized icons by codegen_style.
Moved style_core to /ui/style/, Xcode and QtCreator builds are broken.
2016-04-21 20:57:29 +03:00
John Preston c4a7d48d96 Selection of text in attachments: captions, web page previews.
Text/HistoryItem/HistoryMedia::getState() unified.
Text::getStateElided added. Tested with web page previews only.
2016-04-13 21:29:32 +03:00
John Preston 5a3fea05ac ClickHandler, TopBarWidget and Overview layouts moved to separate files.
Xcode and QtCreator builds are currently broken.
2016-04-13 00:31:28 +03:00
John Preston dd1d04e9b0 Inline bot results preview: photo, audio, file, voice. Beta 9040126. 2016-04-10 22:18:26 +04:00
John Preston 8e89486fbc Error handling changed, 'auto' keyword used for MTP types.
All errors that lead to MTP request resending by default
error handler now can be handled differently. For example
inline bot requests are not being resent on 5XX error codes.
+ extensive use of auto keyword in MTP types handling.
2016-04-08 14:44:35 +04:00
John Preston 04f8d4dd37 Build fixed for renamed sources folder SourceFiles/{gui->ui}/ 2016-04-07 22:05:28 +04:00
John Preston 3e2485678d Moved inline bot result structs from structs.cpp/h module.
Moved inline bot result layouts from layout.cpp/h module.
Over status prepared for inline bot file result icon.
Dependencies reduced, inline bots code moved to InlineBots namespace.
Build in Xcode and QtCreator broken.
2016-04-05 01:09:46 +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 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 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 0b2bcbc3e9 some warnings fixed, TDESKTOP_DISABLE_NETWORK_PROXY macro added 2016-03-20 11:16:35 +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 c2f1e95f3f fixed opening of uncompressed image sent from clipboard, intro refactoring finished 2016-03-16 14:54:37 +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 978c7c858b merged with master 2016-02-21 20:01:37 +03:00
John Preston 9fec887044 langs updated, link click async in overviewwidget 2016-02-21 15:47:30 +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 80455492b0 a couple of crashes fixed, version 0.9.24 stable 2016-02-16 16:14:19 +03:00
John Preston 0154be5138 fixed errors for 0.9.22 dev version 2016-02-14 22:46:01 +03:00
John Preston f83644cec0 Merge branch 'dev' 2016-02-14 21:29:36 +03:00
John Preston e492b1e93d some crashes fixed 2016-02-14 18:58:39 +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 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 47ead03925 moved Interfaces to types.h, tooltip hiding fixed 2016-02-07 21:58:42 +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 a677f784f5 up to 64 realtime combinated interfaces 2016-01-25 18:18:07 +03:00
John Preston c146843ab4 removed unnecessary borders in files / links overview, crash fixed in history repaint optimization 2016-01-04 07:38:47 +08:00
John Preston 9a1798f043 saved gifs done 2015-12-28 00:37:48 +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 b94533fcb2 gif autoplay improved 2015-12-23 22:23:14 +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 41f5a87c80 improved video, audio overview, fixed files overview 2015-12-23 15:19:32 +03:00
John Preston af9908f076 exif fixed, media overview redesign done 2015-12-23 14:13:08 +03:00
John Preston 5108685123 overview rewrite on layouts almost done (except links) 2015-12-22 18:32:45 +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 1545e7f796 moved to 44 layer 2015-12-16 18:31:56 +03:00
John Preston 29a7c66e45 stopping gifs on history close, only one gif playing 2015-12-16 16:35:15 +03:00
John Preston f6fec9a619 showPeerHistory moved to Ui namespace 2015-12-13 14:36:08 +03:00
John Preston 6ec61d4ad6 redrawHistoryItem moved to Ui, shared contact updates when is_contact changes 2015-12-13 14:17:15 +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 0b96dd5362 animations refactored 2015-12-08 15:33:37 +03:00
John Preston 6222876ac4 refactored layer methods 2015-12-07 21:09:05 +03:00
John Preston a6cf42d3ad closed beta version with autoupdate added 2015-12-03 21:16:34 +03:00
John Preston d145175d28 some fixes for the 0.9.11.dev version 2015-11-20 22:03:31 +03:00
John Preston b05e1a8899 supergroups done 2015-11-20 21:24:44 +03:00
John Preston 37de0904af merged overview, merged search and searchGlobal done (supergroups) 2015-11-18 16:11:56 +03:00
John Preston 497602f47e merged supergroup with migrated group history, loading messages by 3 (temp! testing) 2015-11-13 18:14:33 +03:00
John Preston ede2065c26 megagroups started 2015-11-02 17:33:57 -05:00
John Preston 4ed11ebfff merged with new PopupMenu 2015-11-01 13:44:55 -05:00
John Preston 7c71d977e2 ContextMenu removed, PopupMenu replaced default context menu in input fields and all ContextMenu 2015-11-01 13:14:30 -05:00
John Preston 4b8a33de1c moved to 40 layer 2015-10-28 20:16:52 -04:00
John Preston c606d6b459 updating openal build, new code of getting original text and entities from Text, not tested yet 2015-10-25 18:08:45 +01:00
John Preston 4d230eda63 added audio files >> link to profile and media types dropdown 2015-10-23 21:24:05 +02:00
John Preston 17114350c4 conflicts fixed 2015-10-23 18:18:43 +02:00
John Preston aeafcacb0c new (fast) PopupMenu started 2015-10-23 18:15:24 +02:00
John Preston 3df66a7ed3 tilde fix in 100%, dialogs repaint fix, markdown (bold, italic, code, pre support) added 2015-10-23 18:06:56 +02:00
John Preston 775607c24f fixed new animations for retina display 2015-10-19 01:01:18 +02:00
John Preston e211268158 new slide animations 2015-10-17 16:52:26 +02:00
John Preston 5c3d030b9a moved shadows to widgets where they are displayed 2015-10-17 10:31:48 +02:00
John Preston 48756111a9 boxes animations pause mtp 2015-10-15 13:51:10 +02:00
John Preston f12f21b16b pausing of mtp while animating, fixed message field while animating 2015-10-15 12:18:24 +02:00
John Preston fe9a1bc947 boxes redesign finished 2015-10-12 23:02:10 +02:00
John Preston 542d9435d8 almost all boxes done 2015-10-11 10:37:24 +02:00
John Preston 13f6eedcb2 half of all boxes redesigned 2015-10-06 22:49:23 +03:00
John Preston 015e9356ab license header updated 2015-10-03 16:16:42 +03:00
John Preston e3e774176e new flat boxes started 2015-10-03 13:09:09 +03:00
John Preston fe8567e909 fast dialogs, emoji pan etc done 2015-10-01 17:05:05 +03:00
John Preston 51fbec0c50 0.9.1 stable version with fixes 2015-09-24 19:05:06 +03:00
John Preston 72d0271e4d channel edit, report spam, etc done 2015-09-21 23:57:42 +03:00
John Preston ac971dafe7 messages and comments almost done in channels, sending broadcast toggle done, short poll + updates handle 2015-09-20 11:55:41 +03:00
John Preston 56a63a5b10 comments show-hide in channels 2015-09-19 12:13:21 +03:00
John Preston 77a92c62f7 channel icon added, views count display done 2015-09-15 11:50:54 +03:00
John Preston c3270d6b66 channel messages in center, audio documents not indexed in documents, some bugs fixed 2015-09-13 20:27:29 +03:00
John Preston fefff78ae0 merged with master fix of report spam button 2015-09-13 14:12:38 +03:00
John Preston ae6bc3852a pts handled for channels now 2015-09-13 11:41:27 +03:00
John Preston f431591bef fixed speed in os x qt, added langs for report spam confirm, fixed os x drag n drop forward 2015-09-12 22:00:56 +03:00
John Preston e41e68b8b3 enabled forwarding from/to channel, replies and webpages loading in channels, scheme updated 2015-09-12 14:59:50 +03:00
John Preston 54d5b6dd71 forward/delete for channels, prepared load unread by offset_id, not done yet! 2015-09-07 10:52:37 +03:00
John Preston b53e35e046 broadcast channels support started 2015-09-06 13:17:09 +03:00