John Preston
d2048f3c25
New connecting status design.
2018-05-08 20:31:33 +03:00
John Preston
8e99135f37
Support tg://proxy links.
2018-05-05 21:55:37 +03:00
John Preston
993cb987a6
Improve autoupdate code, move it from Application.
2018-05-05 21:55:37 +03:00
John Preston
93f6d4b6e7
Support many config endpoints for one dc+params.
2018-05-05 21:55:37 +03:00
John Preston
87d6081408
Version 1.2.16: Fix build in Xcode 9.3.
2018-04-07 12:47:08 +04:00
Sven-Hendrik Haase
c5e6bfce95
Fix wrong uname flag used
...
This is required because uname -p actually returns "unknown" for some hardware. The uname help documents this by stating that -p is non-portable. The -m flag is the one to use.
2018-03-14 15:01:26 +03:00
Marco Trevisan
9dc03c4f0f
Linux ARM compile fixes ( #4399 )
...
This fixes errors when compiling in ARM
2018-03-09 23:48:47 +03:00
John Preston
027db285bc
Add Info::Channels section + feed channels search.
2018-02-22 20:38:00 +03:00
John Preston
99c686e3e1
Display feed channels list in feed info.
2018-02-08 12:20:55 +03:00
John Preston
11671e85da
Add scroll-to-down button to Feed.
2018-02-08 12:20:54 +03:00
John Preston
722264f634
Add /Qspectre Visual C++ compiler option.
2018-02-08 12:20:52 +03:00
John Preston
63c1212ef1
Allow multiple items selection in HistoryView.
2018-02-08 12:20:52 +03:00
John Preston
fe1a90bd39
Move message context menu to a separate module.
2018-02-08 12:20:52 +03:00
John Preston
a47981054f
Feed info profile placeholder.
2018-02-08 12:20:51 +03:00
John Preston
861ab85ca1
Fix voice/video messages in chats/feed.
2018-02-08 12:20:50 +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
8060cb7426
Start HistoryView::Message class for item view.
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
782e70b171
Support basic feed display in chats list.
2018-02-08 12:20:46 +03:00
John Preston
9d2239291d
Add support for pinned feeds management.
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
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
6796ac688a
Apply web page media updates.
2017-12-31 12:55:08 +03:00
John Preston
af552fb4c0
Replace base/task_queue with crl.
2017-12-31 00:28:38 +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
2df4d19474
Move changelogs from ApiWrap to a separate module.
2017-12-29 21:17:07 +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
0380e66c30
Alpha version 1.2.4: Fix build for old OS X versions.
2017-12-26 19:53:51 +03:00
John Preston
44014e62ba
Move EditCaptionBox to a separate module.
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
92333e982c
Move message components to history_item_components.
...
Also fix channel signatures rendering.
2017-12-18 19:52:36 +04:00
John Preston
b8204a317d
Testing crl (concurrency runtime library).
2017-12-17 23:05:00 +04:00
John Preston
656e4869e6
Move UnreadBadge to ui/unread_badge.
2017-12-17 15:04:47 +04:00
John Preston
4c9931ab02
Support grouped media rendering.
2017-12-16 20:50:42 +04:00
John Preston
251176df47
Move relaunch / update logic to Core::Launcher.
...
Also pass "-workdir" argument through relaunch / update.
Fixes #4149 .
2017-12-12 18:56:36 +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
9bbcbd4bb3
Remove all legacy media overview code.
2017-12-08 22:34:26 +04:00
John Preston
5bc47e5203
Move shareContact and readServerHistory to ApiWrap.
...
Also allow non-confirming contact info sharing to Saved Messages.
2017-12-07 17:43:05 +04:00
John Preston
5eeb8143b6
Move EmptyUserpic from data_peer to empty_userpic.
2017-12-05 12:44:27 +04:00
John Preston
62568daffe
Refactor NotifySettings in PeerData.
2017-12-04 21:48:45 +04:00
John Preston
301aa9572f
Apply channel admin edition changes.
2017-12-02 15:07:27 +04:00
John Preston
2432845df2
Optimize and rename base::weak_unique_ptr.
...
Rename base::enable_weak_from_this -> base::has_weak_ptr.
Rename base::weak_unique_ptr -> base::weak_ptr.
Rename base::make_weak_unique -> base::make_weak.
Rename base/weak_unique_ptr.h -> base/weak_ptr.h
2017-11-30 21:33:27 +04:00
John Preston
6994201d50
Fix travis and appveyor builds.
2017-11-29 22:33:16 +04:00
John Preston
d014b47958
Move Info::TopBarOverride to Info::TopBar.
...
This allows to improve animations in shared media items selection.
2017-11-27 15:43:57 +04:00
John Preston
837dac50fa
Fix build for the original range-v3.
2017-11-26 18:20:22 +04:00
John Preston
0ced28f991
Nice animations when selecting shared media items.
2017-11-24 19:47:09 +04:00
John Preston
da71938d18
Link libstdc++ statically in Updater.
...
This will allow running it on Ubuntu 12.04 when it was built on 14.04.
2017-11-23 09:29:58 +04:00
John Preston
b337d54623
Use custom base::overload() helper.
2017-11-21 18:27:48 +04:00
John Preston
d93c1ccbaa
Improve compile time.
2017-11-21 14:20:52 +04:00
John Preston
6ca105a290
Minimal layer 72 support.
2017-11-20 23:54:05 +04:00
John Preston
ac99318f34
Use ranges:: algorithms instead of base::
2017-11-20 16:24:00 +04:00
John Preston
68bc8d0231
Add range-v3 library.
2017-11-19 18:37:07 +04:00
John Preston
bef87c6dff
Allow showing chat members in a special section.
2017-11-17 17:23:36 +04:00
John Preston
7fdeab829f
Paint native title instead of using custom.
2017-11-16 07:59:12 +04:00
John Preston
8dfccf55d1
Add shared media empty placeholders.
2017-11-16 07:59:12 +04:00
John Preston
3deea14559
Remove old shared media overview section.
...
Also move window/top_bar_widget to history/history_top_bar_widget.
2017-11-16 07:59:11 +04:00
John Preston
bca9b3ca3f
Extract a reusable Ui::ResizeArea class.
2017-11-16 07:59:11 +04:00
John Preston
5c12b0e5fa
Use /permissive- flag for Visual Studio builds.
2017-11-16 07:59:10 +04:00
John Preston
8ff0120642
Add EditPeerInfoBox without saving.
2017-11-16 07:59:10 +04:00
John Preston
3998fad7ef
Add manage supergroup / channel box.
2017-11-16 07:59:10 +04:00
John Preston
fcf2b9d1a7
Add some more actions to info profile.
2017-11-16 07:59:10 +04:00
John Preston
8191ebfc49
Improve peer context menu for info.
2017-11-16 07:59:09 +04:00
John Preston
47a52b0587
Moved several modules from history/ to data/.
2017-11-16 07:59:09 +04:00
John Preston
a6361d6221
Move common_groups info module.
2017-11-16 07:59:08 +04:00
John Preston
86ad15612a
Use Info::Controller for the whole info section.
2017-11-16 07:59:08 +04:00
John Preston
c9152b0b3a
Cache media search results until empty query.
2017-11-16 07:59:08 +04:00
John Preston
eb2719fad1
Added search to files and links shared media.
2017-11-16 07:59:08 +04:00
John Preston
a27edcad1c
Extract SparseIdsList module from SharedMedia.
...
This way it can be reused in search results management.
2017-11-16 07:59:08 +04:00
John Preston
101d4f6444
Use std::function for base::lambda implementation.
...
base::lambda becomes just std::function and base::lambda_once becomes
base::unique_function - a move-only wrapper around std::function.
This is required because Visual C++ 2017 15.4.1 has a compiler bug
with static member variables of class templates, they may collide.
The std::function uses inheritance and virtual functions instead of
custom vtables done by static members of class templates used in
custom base::lambda implementation, so they work fine.
2017-11-16 07:59:08 +04:00
John Preston
b51f865c54
Save info members list state to memento.
2017-11-16 07:59:08 +04:00
John Preston
856ca22aad
Display online count in the info profile section.
2017-11-16 07:59:07 +04:00
John Preston
be5f4c9a71
Allow delete / forward selected in shared media.
...
Also use PeerListBox with a chats list with global search controller
instead of HistoryHider for forward / share contact.
2017-11-16 07:59:07 +04:00
John Preston
7b69282c7e
Add rpl::merge().
2017-11-16 07:59:07 +04:00
John Preston
66146c382d
Improve paths for Xcode build.
2017-11-16 07:59:07 +04:00
John Preston
7905694b31
Add tabs and other types links to Info::Media.
2017-11-16 07:59:06 +04:00
John Preston
c4d33f9986
Add rpl::take(count).
2017-11-16 07:59:06 +04:00
John Preston
0c4bda71fd
Remove some unused / rare phrases.
2017-11-16 07:59:05 +04:00
John Preston
d1687ab963
Improve info wrapping in section / layer.
...
Also move layerwidget to window/layer_widget.
Also replace ui/effects/widget_fade_wrap with ui/wrap/fade_wrap.
2017-11-16 07:59:05 +04:00
John Preston
21b1ba1f88
Move build to Ubuntu 14.04 and GCC 7.2.
...
To be able to run on the same distributions as before we need to have
the same GLIBC version dependency as in Ubuntu 12.04, which is 2.15.
For that we need to remove all usages of GLIBC features from 2.16 and above.
Currently there are three methods used, so they're wrapped in a separate
static library, linux_glibc_wraps.
It is a separate library because it must be compiled without '-flto' flag,
otherwise the inline __asm__ is not working and we get unresolved symbols.
2017-11-16 07:59:05 +04:00
John Preston
cdda7f8f9a
Allow not type-erased producers.
2017-11-16 07:59:05 +04:00
John Preston
ed061252a5
Move to Xcode 9.0 and fix errors in Clang build.
2017-11-16 07:59:05 +04:00
John Preston
292e57ffc7
Use PeerListBox content in info profile.
2017-11-16 07:59:04 +04:00
John Preston
1a0e524b49
Optimize third column (create it only once).
...
Before historyPeer and historyPeerCanWrite were independent, so we
created a new Info section for both of them changing.
Now we use Data::CanWriteValue(peer) and rpl::flatten_latest().
2017-11-16 07:59:04 +04:00
John Preston
ffc20e4492
Divide structs into several data/ modules.
2017-11-16 07:59:04 +04:00
John Preston
f2a5862714
Add members list to info profile.
2017-11-16 07:59:04 +04:00
John Preston
faeb1483f2
Divide info_profile_lines in different modules.
2017-11-16 07:59:04 +04:00
John Preston
a4c2138e74
Finalize move of info-profile modules.
2017-11-16 07:59:04 +04:00
John Preston
b9fb9af74f
Info shared media and common groups counters.
2017-11-16 07:59:04 +04:00
John Preston
3db696d52f
Add rpl::combine_previous() operator.
2017-11-16 07:59:04 +04:00
John Preston
5c4daeee4c
Add rpl::variable, improve filter / combine.
2017-11-16 07:59:03 +04:00
John Preston
ee9763c98f
Improve rpl::combine() and rpl::start().
2017-11-16 07:59:03 +04:00
John Preston
088d23d557
Start new Info section (profile + shared media).
2017-11-16 07:59:02 +04:00
John Preston
fbcd5e2f1e
Try to use const-ref better in rpl.
2017-11-16 07:59:02 +04:00
John Preston
c302219f9e
Use rpl in some widgets and effects.
2017-11-16 07:59:02 +04:00
John Preston
487ddb5694
Add some rpl operators.
2017-11-16 07:59:02 +04:00
John Preston
2690618da2
Add Storage::UserPhotos and UserPhotosSlice.
2017-11-16 07:59:02 +04:00
John Preston
449986456e
Add SharedMediaSliceMerged for migrated histories.
2017-11-16 07:59:02 +04:00
John Preston
2363a6bd44
Add SharedMediaSlice to observe shared media.
...
Start testing / using it in MediaView.
2017-11-16 07:59:02 +04:00
John Preston
41ed2d1b84
New storage for shared media messages index.
2017-11-16 07:59:02 +04:00
John Preston
b873fee1cf
Use rvalue references in rpl next / error.
2017-11-16 07:59:01 +04:00
John Preston
101fdb1fba
Add event_stream for events with many consumers.
2017-11-16 07:59:01 +04:00
John Preston
ebe4bbbf0f
Add core rpl::producer/consumer implementation.
2017-11-16 07:59:01 +04:00
John Preston
d46a5f693f
Remove unused lang phrases and some code.
2017-09-28 19:18:27 +03:00
eegorov
8bfe407610
New build option: without GTK and appindicator
...
Signed-off-by: Egor Y. Egorov <egor.y.egorov@gmail.com> (github: eegorov)
2017-09-28 18:32:51 +03:00
Jan Niklas Hasse
e42cc02d0e
Prefer AppIndicator if DBus interface is available
...
Starting with Ubuntu 17.10 the interface will be provided by an
extension (shipped by default):
https://github.com/ubuntu/gnome-shell-extension-appindicator
Legacy tray icons have been completely removed in GNOME 3.26. By
checking the interface, this will allow users of other distributions
with GNOME to also use Telegram's indicator with the extension.
Signed-off-by: Jan Niklas Hasse <jhasse@bixense.com> (github: jhasse)
2017-09-28 12:59:46 +03:00
John Preston
7ae1ef0a1a
Migrate to VS2017.
2017-09-06 17:11:06 +03:00
John Preston
13aa42c883
Use GYP rule for Qt MOC only on Telegram project.
2017-09-06 12:12:04 +03:00
John Preston
c76389e126
Allow to use base::lambda independently.
2017-09-03 15:45:49 +03:00
John Preston
df64c972d8
Replace QFlags with base::flags.
2017-09-03 15:45:47 +03:00
John Preston
a1344e862a
Add base/flags for bit flags on scoped enums.
2017-09-03 15:45:46 +03:00
John Preston
5faca8d4f6
Add Catch unittest framework and some tests.
2017-09-03 15:45:45 +03:00
John Preston
25ffaaaa2d
Replace t_assert() with Assert().
...
Also use this assertions for Expects(), Ensures() and Unexpected().
2017-08-30 19:15:42 +03:00
John Preston
a72453fb1b
Remove ContactsBox and contacts_box module.
2017-08-30 19:15:30 +03:00
John Preston
f7359093b4
Replace ContactsBox with PeerListBox in two cases.
...
- View contacts list in PeerListBox.
- Add participants when creating group / channel in PeerListBox.
2017-08-30 19:15:27 +03:00
John Preston
bca444b92e
Add base::optional as a wrapper of base::variant.
2017-08-30 19:15:21 +03:00
John Preston
ae1dacb7d7
Add base/algorithm for range-based algorithms.
2017-08-30 19:15:21 +03:00
John Preston
e209737b1a
Display and follow unread mentions in history.
2017-08-30 19:15:13 +03:00
John Preston
c8810f87b9
Move a lot of code from scheme.h to scheme.cpp.
2017-08-25 14:39:32 +03:00
Nicholas Guriev
24fc162e71
Mute settings box
...
Closes : #3153
Signed-off-by: Nicholas Guriev <guriev-ns@ya.ru> (github: mymedia2)
2017-08-04 18:16:54 +02:00
John Preston
6f746c238a
Search for messages from a specific user in group.
2017-08-01 21:38:01 +03:00
John Preston
8c60ac78aa
Rename and split dialogswidget module.
...
Also remove some debug information for crash fix.
2017-08-01 21:15:03 +03:00
John Preston
9bf40c927e
Improve emoji suggestions and replace on send.
...
Bring recent emoji up in suggestions.
Apply saved skin color to emoji suggestions.
Write to recents when choosing emoji suggestion.
2017-07-26 15:55:04 +03:00
John Preston
df2aeb0c58
Provide emoji suggestions as a service.
2017-07-26 15:55:03 +03:00
John Preston
8f8100af3a
Add emoji autocomplete data and algorithm.
2017-07-26 15:55:01 +03:00
John Preston
9e73e22e13
Add channel members in ParticipantsBoxController.
...
Also remove MembersBox, it was replaced completely.
2017-07-14 09:46:57 +03:00
Viktor Oreshkin
94e43f8f8a
Fix openssl ldflags on macOS
...
If ld finds ssl/crypto dylibs it prefers them to static archived objects
And because of that produced .app links dynamically to openssl, so it
won't launch unless users install openssl.
There are two solutions: either uninstall openssl completely from build
machine on each build, or use paths to .a files.
Obviously latter is preferred.
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2017-07-12 14:06:40 +03:00
John Preston
0ae661edf0
Add channel / supergroup admin event log filter.
2017-07-04 16:31:18 +03:00
John Preston
4993ff1921
Finalize rename / move.
2017-06-30 09:21:45 +03:00
John Preston
cedf8a65e7
Better channel log entry layout inside messages.
...
Also move HistoryService class to a separate module.
2017-06-30 09:21:42 +03:00
John Preston
fee8690ca6
Channel action log items display and layout.
2017-06-30 09:21:41 +03:00
John Preston
25a718c54b
Start recent channel actions log section.
2017-06-30 09:21:41 +03:00
John Preston
9e8e49b8d9
Add other search to admin/ban/restrict in channel.
...
Search in chats / contacts / global in AddParticipantBoxController.
Also move all channel participants box controllers to another module.
2017-06-29 11:40:21 +03:00
John Preston
513a9f8d45
Add rich supergroup/channel admin support.
2017-06-29 11:40:10 +03:00
John Preston
8ae159dd66
Add special dc options config request.
2017-06-29 11:40:07 +03:00
John Preston
85e6f55536
Support new plural keys format.
...
All the old plural phrases were changed to work with the new format.
2017-06-29 11:39:56 +03:00
John Preston
f5353080e7
Use Qt UI language if system was not determined.
...
Also rename platform/mac/specific_mac.cpp to .mm
2017-06-29 11:39:47 +03:00
John Preston
f5dfeb0c50
Support cloud languages list and switching.
...
Add Lang::Current().updated() observable for retranslating the UI.
2017-06-29 11:39:43 +03:00
John Preston
139d4e72b5
Start cloud langpack support.
...
Change the way langpacks are stored.
Support custom langpacks in the new storage.
2017-06-29 11:39:42 +03:00
John Preston
2334ba1fe1
Use QString + Lang::Tag() instead of Lang::String.
2017-06-29 11:39:40 +03:00
John Preston
110e7c8074
Finalize rename / move.
2017-06-29 11:39:38 +03:00
Zankio
60c84bbf51
Add hime inputcontext plugin for linux version
...
(#3129 )
Signed-off-by: Zankio <xxoojoeooxx1@gmail.com>
(github: zankio)
2017-06-29 10:49:31 +03:00
Eduardo Sánchez Muñoz
2eff766e88
Always use UTF-8 to open files in list_sources.py.
...
This avoids problems with some locale settings.
Signed-off-by: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com> (github: eduardosm)
2017-06-28 19:19:44 +03:00
John Preston
b7550f63c9
Add a floating player for round video messages.
2017-05-24 16:25:15 +03:00
John Preston
b86da76613
Move project files tdesktop to tdesktop/Telegram.
...
After adding the libtgvoip submodule its project was created by GYP
outside the project folder, because the relative path to libtgvoip.gyp
is "../ThirdParty/libtgvoip/" and projects are created in the same
relative folders.
Now we place MSVC and Xcode projects in tdesktop/Telegram, so the
libtgvoip project is created at tdesktop/ThirdParty/libtgvoip.
2017-05-18 12:04:39 +03:00
John Preston
c438692d49
Fix Travis build.
2017-05-10 15:05:19 +03:00
John Preston
771bba4e01
Closed beta 1000035002: Sounds in separate qrc.
2017-05-09 23:46:36 +03:00
John Preston
6f89d01452
Add new Media::Audio::Instance for audio tracks.
...
Move some audio-related code from Media::Player to Media::Audio.
2017-05-09 23:46:29 +03:00
John Preston
11525a1e50
Add RateCallBox for calls feedback collection.
2017-05-09 23:46:28 +03:00
John Preston
06b081f509
Add calls log box.
...
PeerListBox can have many rows with the same PeerData.
PeerListBox::Row can have arbitrary action on the right side.
2017-05-09 23:46:18 +03:00
John Preston
f6eb2c5205
Add call top bar above the media player.
2017-05-09 23:46:18 +03:00
John Preston
60ac7572af
Display name, status and emoji in Call Panel.
2017-05-09 23:46:17 +03:00
John Preston
4925af69e2
Add Calls::Panel and handle incoming calls.
2017-05-09 23:46:15 +03:00
John Preston
0a716036c2
Extract Calls::Call. Add a call button to TopBar.
2017-05-09 23:46:14 +03:00
John Preston
d18164bc51
Add Calls::Instance. Add libtgvoip as a dependency.
...
Also move all submodules to Telegram/ThirdParty.
2017-05-09 23:46:08 +03:00
John Preston
aedf85c965
Update opus library to v1.2-alpha2 version.
2017-05-08 16:26:06 +03:00
John Preston
475f0e9544
Fix build for the new GYP version, fix Appveyor.
2017-05-05 12:25:06 +03:00
John Preston
5ed698ac69
Link correct OS X 10.6-10.7 libraries.
2017-04-30 19:56:13 +03:00
John Preston
7dd24a30b5
Replace MetaLang with codegen_lang.
2017-04-12 22:18:42 +03:00
John Preston
647ea44881
Extract TabbedSelector from TabbedPanel.
...
Now we can use TabbedSelector separately, not only inside the panel.
2017-04-10 12:08:55 +03:00
John Preston
26b05cf844
Finalize rename / move.
...
Also removed non-existent emoji_section module from GYP.
2017-04-08 17:05:19 +03:00
John Preston
330fc35800
Move some classes to separate modules.
...
MessageField, BotKeyboard, HistoryInner from historywidget.
2017-04-08 16:31:58 +03:00
John Preston
570cd9bdfa
Move GIF pausing methods to Window::Controller.
2017-04-08 16:31:57 +03:00
John Preston
34ab04cbe6
Add lambda-based checked timers.
...
Also ApiWrap is now not a QObject.
2017-04-07 18:13:21 +03:00
John Preston
5444b8166c
Finalize rename / move of files.
2017-04-07 18:13:18 +03:00
John Preston
6746d4ba2d
Build crashpad from git. Crashpad path has changed.
2017-04-06 11:06:29 +03:00
John Preston
6003ac2132
Add base::weak_unique_ptr<T> template class.
...
Sometimes you don't need shared ownership (shared_ptr), but you
still need to be able to have weak pointers to an object.
Now you can derive the object from base::enable_weak_from_this
and use base::weak_unique_ptr<T> after that.
2017-04-03 14:08:36 +03:00
John Preston
f1718f1d10
Generate emoji config by a build action.
...
Also hopefully optimize the build speed for emoji config.
2017-04-01 17:08:42 +03:00
John Preston
a1b53f07d5
Fix build for Xcode and GCC.
2017-04-01 16:14:56 +03:00
John Preston
6d27172b20
Move [Emoji|Sticker]PanInner to separate modules.
...
Now we have three separate [Emoji|Stickers|Gifs]ListWidget.
2017-03-31 15:48:03 +03:00
John Preston
bed3aa1a7f
Finalize rename / move of files.
...
Also rename EmojiPan to EmojiPanel.
2017-03-31 15:48:02 +03:00
John Preston
1540f6f528
Use emoji/stickers/gifs slider in EmojiPan.
...
Also rename EmojiTabs to EmojiSections.
2017-03-31 15:48:01 +03:00
John Preston
3d846fcd49
Show inline bot results in a separate widget.
...
Add a InlineBots::Layout::Widget for inline bot results.
GIF search from EmojiPan is disabled for now.
2017-03-31 15:48:00 +03:00
John Preston
8d4be19952
Use separate TopBar for History and Overview.
...
Move TopBar widget to History and Overview from MainWidget.
2017-03-31 15:47:58 +03:00
John Preston
f0ab72ffbc
Fix AutoConnection::debugState() for TCP connections. Fix #3171
...
Also silent new Xcode version warning.
2017-03-30 18:20:51 +03:00
John Preston
e9ec09b91a
Add MTP::Sender to replace RPCSender some day.
...
Also use c++1z language standard in Xcode build.
Also treat warnings as errors.
2017-03-23 14:37:38 +03:00
John Preston
bd121752f1
Change your account phone number in Settings.
2017-03-21 20:13:34 +03:00
John Preston
facc729234
Edit account self destruct time in Settings.
...
Also accept lambda_once in rpcDone() and rpcFail() lambda wrappers.
2017-03-20 23:05:38 +03:00
John Preston
85fd117675
Add EditPrivacyBox. Edit last seen privacy.
...
Selecting exception users is not supported yet.
2017-03-18 12:49:45 +03:00
John Preston
16fa56de48
Finalize rename / move of files.
2017-03-16 12:53:13 +03:00
John Preston
6ad2cd38ed
Generate scheme module by GYP action.
...
Add a new codegen action to generate MTP scheme from scheme.tl file.
2017-03-16 12:37:56 +03:00
John Preston
b1ee91b06b
Add blocked users box to Settings.
...
Start a general PeerListBox, it should replace both ContactsBox
and MembersBox in the future. Show blocked users list in it.
2017-03-14 13:58:36 +03:00
John Preston
929c55a2a1
Include only required moc_*.cpp in the build.
...
Use a python script to generate the list of sources to build.
Now we don't include moc_*.cpp files in build by default, instead
we list only non-empty ones.
If you change a header so that the corresponding moc_*.cpp changes
its emptyness you may need to gyp/refresh to apply this change.
This should speed up the build significantly on GCC.
2017-03-13 13:17:26 +03:00
John Preston
eaae662b7d
Use mapbox::util::variant in a submodule.
...
While we don't have C++17 std::variant<> use a BSD licensed
alternative from mapbox team in a base:: wrapper.
2017-03-10 17:12:04 +03:00
John Preston
7da52bd3ec
Move GSL dependency to a submodule.
2017-03-10 14:34:43 +03:00
John Preston
ae977044f6
First version of CalendarBox is done.
...
Also moved BackgroundBox::Inner declaration inside backgroundbox.cpp
2017-03-07 22:29:49 +03:00
John Preston
6456a83a22
Finalizing files rename.
...
Also moved peer_avatar_button to ui/special_buttons.
2017-03-07 21:58:35 +03:00
John Preston
b0dbe9d353
Renamed / moved a bunch of files.
...
Next commit fixes the build.
2017-03-04 12:56:07 +03:00
John Preston
08167a6a91
Removed #include "stdafx.h" from all files.
...
Currently the build without implicitly included precompiled header
is not supported anyway (because Qt MOC source files do not include
stdafx.h, they include plain headers).
So when we decide to support building without implicitly included
precompiled headers we'll have to fix all the headers anyway.
2017-03-04 12:27:52 +03:00
John Preston
12bbd971b3
Added Guideline Support Library as a dependency.
...
See https://github.com/Microsoft/GSL for information.
2017-03-04 12:01:07 +03:00
John Preston
f8318177b9
Platform-dependent file methods called async.
...
Some major platform-dependent file operations refactoring.
All methods like "open file", "open file with", "show in folder"
were moved to core/file_utilities module with platform-dependent
backends. All methods interacting with DesktopServices made async.
2017-02-28 18:03:38 +03:00
John Preston
6f0cf30b12
Some platform-dependent modules refactoring.
...
Now each platform-dependent module declares its interface in
platform/platform_module.h file and after that includes platform-
specific headers like platform/win/module_win.h with implementation.
Also removed the legacy WinRT platform-dependent implementations.
2017-02-28 13:51:00 +03:00
John Preston
dcd6028e91
Loading libunity only in Unity and Pantheon. #3053
...
Commit 296c800b39
introduced a regression which caused crashes
in some ArchLinux distros when attempting to load or use libunity.
2017-02-26 21:02:46 +03:00
John Preston
dd933cf61c
MTP global state moved to MTP::Instance class.
...
Now there will be ability to start multiple mtproto instances.
2017-02-25 19:48:21 +03:00
John Preston
c3b3819d9f
Moved AppClass to messenger.cpp:Messenger.
2017-02-25 19:48:20 +03:00
John Preston
63c61637f8
Moved MTP::authedId() to AuthSession::Current().
2017-02-25 19:48:19 +03:00