Commit Graph

3127 Commits

Author SHA1 Message Date
John Preston e7bace9ab3 Rewrite base::lambda_guard, use only one pointer.
(cherry picked from commit f6ed3df)
2018-07-27 14:24:31 +00:00
John Preston f488d5f9c1 Use std::function for base::lambda implementation.
(cherry picked from commit 101d4f6)
2018-07-27 14:24:31 +00:00
Evgeniy Zheltonozhskiy 9f1896c680 Filter RTL in displayed file names(#156)
Adopted from upstream commit aec496d520 to avoid the phishing filenames.

Closes #103.
2018-06-20 22:20:39 +03:00
Alex 0d013603bd
Fix "no return in nonvoid function" error in libtgvoip (#167)
Return nullptr to avoid compile error.

Before this commit these functions:
1. void *AudioInputALSA::StartThread();
2. void *AudioOutputALSA::StartThread()
 - don't return any values. 

Also please note that this fix should be ported after syncing libtgvoip to upstream if these functions still don't return values!

Related to #153.
2018-06-20 21:33:58 +03:00
Evgenii Zheltonozhskii b6df430aa8 Get rid of OrderedSet 2018-06-20 15:40:52 +03:00
Evgenii Zheltonozhskii 8b189226e4 Minimize type_traits (https://github.com/procxx/kepka/issues/27) 2018-06-20 15:40:52 +03:00
Anton Kashcheev 21e7a1bbb0 Fix compile error when building with LibreSSL
Add preprocessor check of LibreSSL version.
2018-06-20 15:16:09 +03:00
Evgeniy Zheltonozhskiy 22b0cffccd Fix almost all warnings (#157)
There are possible deprecation warnings could be on new ffmpeg. It will be investigated later.

Related to #42.
2018-06-12 01:59:24 +03:00
fox.cpp 93d2fd3035 Add install target 2018-06-10 22:54:22 +03:00
Evgenii Zheltonozhskii e748c9eede Fix Release build (add missing includes) 2018-06-10 17:17:44 +03:00
Evgenii Zheltonozhskii b9cd813127 Apply clang-format 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii 49982a33a5 Pre-reformat fixes 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii 80071b61d5 Fix deprecated qt functions in CMake 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii 1015e088e3 Rebranding continued: rename target 2018-06-04 19:56:10 +03:00
Evgenii Zheltonozhskii 35c917a704 Remove junk files 2018-06-04 19:56:10 +03:00
Evgenii Zheltonozhskii eba069a406 Branding changes, minor readme fix 2018-06-04 19:56:10 +03:00
Alex 69661217d2
Remove PCH (#148)
This commit brings many changes:

1. Remove cotire;
2. Remove PCH files (stdafx.xxx) and mentions;
3. Rearrange and clean includes:
3.1. Remove core includes path, use full header path core/xxx;
3.2. Move object_ptr to separate file base/object_ptr.h;
3.3. Add missing includes;
5. Add forward decls;
6. Get rid of some Qt private parts;
7. Fix ALL compilation errors after removing cotire on Windows, Linux, MacOS.

Closes #133.
Related to #96.
2018-06-04 16:25:31 +03:00
Anton Kashcheev 09f8d60e11 Add libreSSL support
Also check LIBRESSL_VERSION_NUMBER and if it's defined, we use the LibreSSL-compatible API calls.
2018-04-22 19:45:47 +03:00
leha-bot c237414cc6 text_entity: Add enum for used Unicode codepoints
It's better to use the named constants instead of magic character codes.
2018-04-21 19:14:34 +03:00
leha-bot 49b3469963 Add option for typographic message formatting
This option allows to turn off the old behaviour with replacing char
sequences like <<, >>, -- to chars represented by HTML escape characters
"&laquo;", "&raquo;", "&mdash;".

Based on upstream pull
https://github.com/telegramdesktop/tdesktop/pull/4553 and commit
fe118833ae
from @PeterMX

Closes #132
2018-04-21 19:14:34 +03:00
leha-bot ed0e5b9958 Reorganize #include's in ui/text/text.cpp
Now it compiles faster

Related to #16
2018-04-17 22:06:33 +03:00
leha-bot 56cbcdcf94 Get rid of qharfbuzz_p private dependency
It's used for weird conversion from "QChar::Script" to internal
HB_Script and back.

Looks like it was in old Qt on this mirror link:
39b4955da3?view=parallel

Related to #96 #27 #16
2018-04-17 22:06:33 +03:00
Vitaly Zaitsev 5a8766e7a2 Completely remove Unity support. Unity is no longer supported by Canonical and will be excluded from Ubuntu 18.04 LTS.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-03-31 20:07:48 +03:00
Vitaly Zaitsev dbb0030893 Completely drop GTK dialogs. Use native instead.
Also this commit will remove libnotify support.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-03-24 15:20:03 +00:00
leha-bot 1ab8aa2463 Allow to reply by double click on timestamp
Based on telegramdesktop/tdesktop@def21367
Related to #10, #117, #118
2018-03-17 05:57:51 +03:00
leha-bot ea6d487aab Get rid of local changelogs
It was appended if your new version is greater than older.
Now it uses the lang string `lng_new_version`.
2018-03-14 00:49:48 +03:00
leha-bot 271e31c0cd libtgvoip: Disable MSVC CRT secure warnings 2018-03-12 18:30:19 +03:00
Stanislav Ershov ceb9828910 Fix some warnings against size_t to int conversion 2018-03-12 18:30:19 +03:00
Stanislav Ershov bf0dc8e64e Fix warning against overriding '/std:c++latest' with '/std:c++17'
This warning is fixed via updating to CMake 3.10
that learnt to set /std:c++17 for MSVS2017.
2018-03-12 18:30:19 +03:00
crackedmind c02a20a5c1 git subrepo pull Telegram/ThirdParty/Catch
subrepo:
  subdir:   "Telegram/ThirdParty/Catch"
  merged:   "11c89a5f7"
upstream:
  origin:   "https://github.com/catchorg/Catch2"
  branch:   "master"
  commit:   "11c89a5f7"
git-subrepo:
  version:  "0.3.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a7ee886"
2018-03-11 04:44:04 +03:00
crackedmind a3ba1d6192 Update Catch subrepo remote url 2018-03-11 04:44:04 +03:00
crackedmind 9e4a97edf4 git subrepo pull Telegram/ThirdParty/GSL
subrepo:
  subdir:   "Telegram/ThirdParty/GSL"
  merged:   "c9e423d7"
upstream:
  origin:   "https://github.com/Microsoft/GSL.git"
  branch:   "master"
  commit:   "c9e423d7"
git-subrepo:
  version:  "0.3.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a7ee886"
2018-03-11 04:44:04 +03:00
John Preston 7ed116aa9d Reply by double clicking a message.
Backported from telegramdesktop/tdesktop@128663d9

Closes #117
2018-03-11 04:02:00 +03:00
Alexey Min 747e8b3ab5 Use custom application name in tray popup menu (#106)
* Use parameter {appname} for tray icon lang strings and update mainwindow.cpp to use parametrized lang calls;

Note: this fix is only for Windows version. Mac version requires separate changes.

Relates to #20 .
2018-03-02 17:08:48 +03:00
Pavel Perekhozhikh 1cb6dcee54 [Refactoring] set current standart to c++17 and change any logic to std::clamp (if it's possible) 2018-02-28 22:12:25 +02:00
Pavel Perekhozhikh 40f8f0939a [Refactoring] change qt math function to cmath analog 2018-02-28 22:12:25 +02:00
Vitaly Zaitsev a4987d41a9 Allow to build Kepka on other than x86 architectures: armv7, aarch64, ppc64le, etc. 2018-02-21 02:31:22 +03:00
Vitaly Zaitsev 356f1cb083 Fixed build of libtgvoip on Big-Endian architectures. 2018-02-21 02:31:22 +03:00
Anatoly Shirokov e1a947e850 Adapt code to compile by MSVC 2015, remove conditional compilation (#105)
Fixes workaround introduced in #101.

Author: @anatoly-spb.
Related to: #17.
2018-02-13 21:19:05 +03:00
Anatoly Shirokov b1c7c6fc61 Made to compile by MSVC 2015/2017 32 bit compilers (#101)
Patches by @anatoly-spb :
1. Get rid of -DWIN64, -DZLIB_WINAPI in 32-bit build for fixing zlib linkage;
2. Work around MSVC2015 limitation based on lacking the C++14 features (like void as literal type) and document it.
2018-02-13 16:13:14 +03:00
Alex 7320149f22 Move out the hardcoded URLs (changelog, about) 2018-02-13 14:50:54 +03:00
Alex 2a2d4a260e Get rid of usused file freedesktop.org.xml
It is ambigious and don't need.
2018-02-12 03:03:24 +03:00
fox.cpp dc231f2e29 Allow to change app. name using CMake cache 2018-01-27 16:13:34 +03:00
leha-bot 726373bcab ligtgvoip: get rid of unused & erroneous MIN macro
This macro is not used and has an error with parenthesis. At some input
arguments it will be generate incorrect code:
MIN(a++, b--) -> expands to (a++<b-- ? a++ : b--)
2018-01-22 01:52:24 +03:00
leha-bot f9f9e450a0 libtgvoip: get rid of GYP 2018-01-22 01:52:24 +03:00
Vitaly Zaitsev 6cf354d516 Added additional build definitions for packaged build:
* disable all desktop file and schema generators (already included in package).

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-01-19 10:54:09 +02:00
Vitaly Zaitsev 45eb128a5e Fixed issue with running both clients (kepka and tdesktop) simultaneously.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-01-17 21:20:17 +03:00
Berkus Decker e609b4464d Fix non-utf8 text in commit 31ed5214f0 2018-01-14 01:36:38 +02:00
Berkus Decker c8409776f6 Fix detection variable usage 2018-01-12 23:23:38 +02:00
Berkus Decker a9ea8da861 Print found frameworks 2018-01-12 23:23:38 +02:00