John Preston
d1a9d3992b
API scheme updated to layer 76.
2018-02-08 12:20:49 +03:00
John Preston
04c8c95634
Use notify* instead of mark* in Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
8a56ede187
Move all (item/view/media) maps to Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
7425e80f05
Use HistoryMedia as view, add Data::Media.
2018-02-08 12:20:48 +03:00
John Preston
97a9089ebf
Move draw / getState code to HistoryView::Message.
...
Item dimensions broken for now.
Also remove history.h from pch.
2018-02-08 12:20:48 +03:00
John Preston
bee474f6e9
Remove history_item and layout from pch.
...
Also move some code to separate modules.
Also create history item views by Window::Controller.
2018-02-08 12:20:47 +03:00
John Preston
794e31505b
First version of feed section view.
2018-02-08 12:20:46 +03:00
John Preston
a2891807f8
Prepare dialogs to hold a history or a feed.
2018-02-08 12:20:46 +03:00
John Preston
6a9556d42c
Move non-settings session data to Data::Session.
...
Rename AuthSessionData to AuthSessionSettings, move data away.
2018-02-08 12:20:46 +03:00
John Preston
724fe65d72
Start feeds support.
2018-02-08 12:20:45 +03:00
John Preston
46612ef128
Remove Notify::userIsContactChanged().
...
Replace with Notify::peerUpdatedDelayed().
2018-02-08 12:20:45 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
6236590ca4
Fix SendFilesWay radiobuttons when adding media.
...
Also add /LTCG flag for static libraries Release builds on Windows.
2017-12-30 00:06:43 +03:00
John Preston
2a409e3734
Add files from clipboard to composed album.
...
Fixes #4243 .
2017-12-29 20:02:23 +03:00
John Preston
5b4694a4eb
Move text options constant to a separate module.
...
Also start MediaView group thumbs code.
2017-12-28 16:06:06 +03:00
John Preston
e07a7a4b4c
Improve phrases. No Restricted Users in channels info.
2017-12-27 22:44:04 +03:00
John Preston
634d21e486
Fix animation in album reordering.
2017-12-27 14:00:32 +03:00
John Preston
95d8742e3c
Fix round corners on Retina displays.
2017-12-27 13:08:18 +03:00
John Preston
b34099f49e
Alpha version 1.2.4: Fix phrases and box cursor.
2017-12-26 20:49:04 +03:00
John Preston
21f4bbbe7b
Update kicked count in Channel Info box.
2017-12-26 19:20:08 +03:00
John Preston
86c0dfb295
Read "participants_count" field from c_channel().
2017-12-26 19:20:08 +03:00
John Preston
2569df9e5a
Rename some Ui methods.
...
myEnsureResized -> Ui::SendPendingMoveResizeEvents.
myGrab -> Ui::GrabWidget.
myGrabImage -> Ui::GrabWidgetToImage.
2017-12-26 19:20:08 +03:00
John Preston
5f8143e6a4
Fix build in Xcode.
2017-12-26 19:20:08 +03:00
John Preston
1fc7dabd3e
Allow media reordering when sending an album.
2017-12-26 19:20:08 +03:00
John Preston
4e8f5541af
Fix caption editing in grouped media.
2017-12-26 19:20:07 +03:00
John Preston
a8ac18e4fd
Save send way (album, photos, files) to settings.
2017-12-26 19:20:07 +03:00
John Preston
58d21ff916
Add album support to SendFilesBox.
2017-12-26 19:20:07 +03:00
John Preston
8e45b09083
Use different indentation for rpl operators.
...
It works better with Visual Studio IDE.
2017-12-26 19:20:07 +03:00
John Preston
44014e62ba
Move EditCaptionBox to a separate module.
2017-12-26 19:20:06 +03:00
John Preston
ff65daa9fe
Remove special case in SendFilesBox for an image.
2017-12-26 19:20:06 +03:00
John Preston
b20c2b4774
Always allow group admins to edit invite link.
...
Show Group Info even if supergroup admin can't edit information.
2017-12-26 19:20:06 +03:00
John Preston
3b3a705a67
First working code for sending albums.
2017-12-26 19:20:06 +03:00
John Preston
e023092744
Use RectPart(s) instead of ImageRoundCorner(s).
2017-12-18 21:54:11 +04:00
John Preston
ddf4a36bdc
Remove mtproto/session.h from precompiled header.
2017-12-18 16:40:15 +04:00
John Preston
14034c255e
Replace QSharedPointer with std::shared_ptr.
2017-12-18 13:07:18 +04:00
John Preston
cbbccd0364
Hide history visibility edit for public groups.
2017-12-18 10:18:51 +04:00
John Preston
712b3f481c
Move online phrase code from app module.
...
Also fix possible assertion violation in online change timeout.
2017-12-17 12:13:26 +04:00
John Preston
d9da2edd7c
Improve grouped media display.
2017-12-16 20:50:43 +04:00
John Preston
efa72578cd
Fix grouped media display in MediaView.
2017-12-16 20:50:43 +04:00
John Preston
97c15865a5
Move some code around.
...
Move logs:SignalHandlers to core/crash_reports:CrashReports.
Move all pre-launch windows to core/crash_report_window module.
Move some global code to core/launcher:Launcher.
It should replace settings / platform_specific module in some way.
2017-12-12 16:47:32 +04:00
John Preston
9d4558de2b
Fix build in Visual Studio 15.5.1.
...
Looks like compiler had some regressions when updating from 15.4.5.
Range-V3-VS2015 also needs to cherry-pick this commit:
https://github.com/ericniebler/range-v3/commit/9f990c48d0
See https://github.com/Microsoft/Range-V3-VS2015/issues/26
2017-12-12 12:25:54 +04:00
John Preston
38f7f48c17
Open links in AboutBox without confirmation.
...
Fixes #4148 .
2017-12-12 12:25:54 +04:00
John Preston
8b69e6ab99
Rename some methods in DocumentData.
...
Also fix voice message mark as read when autoplaying after previous.
Also show play icon and don't show playlist for audio files that do
not have shared music files attributes but have audio file mime type.
2017-12-10 14:28:04 +04:00
John Preston
6295d85ef2
Fix possible assertion violation in PeerListBox.
...
Very long stack in crash reports leads to something like that:
- PeerListBox::prepare
- PeerListBox::createMultiSelect
- PeerListBox::updateScrollSkips
- BoxContent::setInnerTopSkip
- _scroll->scrollToY
- sendSynteticMouseEvent
- ChatHelpers::TabbedPanel::showAnimated
- QWidget::render
- QWidgetPrivate::sendPendingMoveAndResizeEvents
- PeerListBox::resizeEvent
- _select->resizeToWidth(0)
- MultiSelect::Inner::computeItemsGeometry(0)
Workaround:
- Don't scrollToY if PeerListBox width was not yet set.
- Initial _scrollBottomFixed is false (at first createMultiSelect).
2017-12-08 17:36:17 +04:00
John Preston
de8de84a33
Fix possible crash in CalendarBox.
...
If month change notification was posted async there was a possibility
to get a mousePressEvent() with already new Context field values, but
with old _selected value. Those two could be inconsistent leading to
an assert violation in (_selected + _context->daysShift() >= 0).
2017-12-08 16:44:52 +04:00
John Preston
c79d16a0d6
Auto-choose first search row in PeerListBox.
2017-12-08 13:30:30 +04:00
John Preston
6764a3cc86
Replace SelectedItemSet with MessageIdsList.
...
Use vector<FullMsgId> everywhere instead QMap<..,HistoryItem*>.
The old way the app crashed in case some messages were deleted.
If the items are needed use HistoryItemsList=vector<HistoryItem*>.
2017-12-06 14:13:38 +04:00
John Preston
46bafc2dcc
Support Saved messages in chats list and forwards.
2017-12-05 18:07:01 +04:00
John Preston
5eeb8143b6
Move EmptyUserpic from data_peer to empty_userpic.
2017-12-05 12:44:27 +04:00
John Preston
68009b6fba
Refactor userpic storage and access in PeerData.
2017-12-05 11:58:18 +04:00