Commit Graph

3516 Commits

Author SHA1 Message Date
leha-bot 4b31f5f8ef ui/effects/cross_animation: fix missing #include <QPainterPath> 2021-06-13 01:05:55 +03:00
leha-bot 655c22f002 codegen_emoji: fix missing #include <stdint.h> in codegen 2021-06-13 01:05:40 +03:00
Илья Федин 6e02999eb8 Run clang-format 2020-09-13 18:00:15 +03:00
Илья Федин 8bbc635728 Remove dead code remaining from gtk removal 2020-09-13 18:00:15 +03:00
Alex ee4888685c
readme: clarify Fedora build instructions
Add more formatting (spoilers!), some details about terms and external links.
2020-04-07 19:02:20 +03:00
Alex 16190832c8
readme: clarify supported OSes 2020-04-07 18:40:13 +03:00
Alexander Batischev b97fccb0af Travis build: invoke `git diff` once 2019-10-14 19:14:56 +03:00
leha-bot f1fb375e02 lang_instance: minor int/uint fix to avoid warnings 2019-08-07 18:20:23 +00:00
leha-bot 3b5af27889 Fix deprecation warning on Qt 5.12+
See https://doc.qt.io/QT-5/qregularexpression.html#PatternOption-enum
about deprecated QRegularExpression enum values.
2019-08-07 18:20:23 +00:00
leha-bot 7a88eeda6a Drop some cyclic #include's of structs.h
It should reduce compile times.
Related to .
2019-08-07 18:20:23 +00:00
leha-bot 94d2d07878 Extract DocumentData and some related types to data/data_document.h
Related to .
2019-08-07 18:20:23 +00:00
leha-bot 5e0724a10b Extract GameData
Related to .
2019-08-07 18:20:23 +00:00
leha-bot 0e1f7d1a46 layerwidget: drop #include "structs.h"
Also add missing headers to the lots of files (they were in structs.h,
but we reduce dependencies).
Related to .
2019-08-07 18:20:23 +00:00
leha-bot 620d46393a Extract some basic data definitions to data/data_types
Related to .
Partially inspired by ffc20e4492
2019-08-07 18:20:23 +00:00
leha-bot cd008f24c1 Extract PhotoData to new file
Inspired by upstream commit ffc20e4492
Related to 
2019-08-07 18:20:23 +00:00
Vitaly Zaitsev 4d0ee2cefe Switched to boolean conditionals in RPM SPEC file.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-07-09 16:03:30 +00:00
Vitaly Zaitsev a85f82d1b1 Fixed build by adding qt5-qtbase-private-devel to build requires.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-07-09 16:03:30 +00:00
Friedrich von Never bd54842997 Send stderr from cmake into stdout
This will no more break build when warnings are received from cmake.
2019-06-28 11:04:38 +00:00
Vitaly Zaitsev e49340e867 Allow to forward custom API tokens for Kepka.
You can obtain your tokens from https://core.telegram.org/api/obtaining_api_id.

Export API_ID and API_TOKEN environment options with your tokens before
running Cmake to use them.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-06-28 11:04:38 +00:00
Evgeniy Zheltonozhskiy d0de5d31e6 Fix emoji search in dictionary ()
The commit b2ee90263d introduced regression in whole places where smilies are used. Now it seems to be fixed.
Thanks for testing for @saphire , @Randl and @zgwerby for reporting issue  .
Closes .
2019-06-24 09:48:03 +00:00
John Preston e164760eb0 Use AL_DIRECT_CHANNELS_SOFT for audio playback.
See https://github.com/telegramdesktop/tdesktop/issues/2580.

(cherry picked from commit e3b6e1325e)
2019-05-24 11:58:08 +00:00
Evgenii Zheltonozhskii b2ee90263d Rewrite emoji switch-based search 2019-04-23 23:31:17 +03:00
leha-bot e1615def1b Enable Yandex.Maps as default image tile provider
As Google Maps don't work anymore.
2019-04-23 23:26:39 +03:00
leha-bot 96debfe3dc Version 2.0.0-rc2
- Brand new logo!
 - Yandex.Maps as CMake-configurable option for displaying locations;
 - Partial update to API 72 (from API 71 of v1.1.23);
 - Minor bugfixes and refactorings.
2019-04-23 23:26:39 +03:00
leha-bot d427822c2e Document maps feature and how to enable it
[ci skip]
2019-04-23 23:26:39 +03:00
leha-bot 6bb875727c history_location_manager: fix all warnings by Qt's Clang Code Model
The Code Model options were:
Clang: -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-unused-macros
-Wno-newline-eof -Wno-exit-time-destructors -Wno-global-constructors
-Wno-gnu-zero-variadic-macro-arguments -Wno-documentation -Wno-shadow
-Wno-switch-enum -Wno-missing-prototypes -Wno-used-but-marked-unused;

Clang-tidy: bugprone, clang-analyzer, clang-diagnostics, misc, modernize,
performance, readability;

Clazy: level 0.
2019-04-23 23:26:39 +03:00
leha-bot b2e70e63a2 history_location_manager: use new interface for tile info
Please note that there are some static objects in raw pointers with unclear
lifetime semantics. They are will be eliminated soon.
2019-04-23 23:26:39 +03:00
leha-bot d18ff9ec8d history_location_manager: Introduce new classes for getting location tiles info
This commit adds the helper interface ILocationMapTileHelper for getting
info about current location (e.g. location URL or map tile image URL).
This commit adds the following classes:
1. The interface ILocationMapTileHelper;
2. YandexMapsLocationTileHelper - uses Yandex.Maps Static API as backend for
   getting tile info;
3. GoogleMapsLocationTileHelper - uses Google Maps Statis API as backend;
Please note that these classes aren't used yet, it will be used in next commit.
Also please note that all virtual functions has been extracted from classes definitions
to avoid the -WWeak-tables warning. (See Clang manual about this warning).
2019-04-23 23:26:39 +03:00
leha-bot 0152b24f13 Add optional support for Yandex.Maps static API
You could enable it via CMake option KEPKA_OPTION_USE_YANDEX_MAPS:
cmake -DKEPKA_OPTION_USE_YANDEX_MAPS=ON ..

It is used instead of Google Maps API for locations and on location click.
Sometimes Google Maps return no maps data. It is related with recent free
API usages count decrease from 750k requests to 28k (according to
https://habr.com/post/417715/).

The code on this commit will be cleaned up and rewritten using Maps API
string builders in next commit.
2019-04-23 23:26:39 +03:00
leha-bot f09f8075fb Add logo copyright info to README 2019-04-23 23:26:39 +03:00
leha-bot 9c1b501123 Happy new Copyright Year! (in winrc) 2019-04-23 23:26:39 +03:00
leha-bot 03a3e5ceee Replace stock copyright-protected logo by ours
These logo variants are available under Creative Commons
Attribution Share-Alike License 4.0. See
https://creativecommons.org/licenses/by-sa/4.0/
(c) 2018 leha-bot.

The short guide about branding and logo usages
(from /Telegram/Resources/art) in Kepka:
1. logo_256.png/logo_256_no_margin.png -
 used in /Telegram/SourceFiles/window/main_window.cpp for loading logo
 (nowrap logo is used on Mac), in /Telegram/SourceFiles/messenger.[cpp|h],
 in /Telegram/SourceFiles/platform/linux/specific_linux.cpp and in qrc.
 Required for branding;
2. icon64.png - Doxyfile and MacOS image assets (they are duplicated in
 /Telegram/Telegram/Images.xcassets/[Icon.iconset|AppIcon.appiconset);
3. icon[<resolution>[@x2]].png - MacOS image assets. We will update
 these icons in next commit;
4. favicon.ico - seems unused;
5. icon256.ico - Windows Resource for EXE;

There is also a dangling reference inside
/Telegram/Resources/uwp/AppX/AppxManifest.xml. It shoud be fixed in some
of next commits.
2019-04-23 23:26:39 +03:00
crackedmind 12185c3062 Remove unused code 2019-04-23 23:26:39 +03:00
leha-bot 62abfe6f63 Use {appname} for splash screen string
Also update usage in intro widget. Please note that the language strings
with placeholders must be created using {lang_id}(lt_{placeholder},
lang({placeholder}), where you should replace {lang_id} with your actual
language string identifier and {placeholder} with your actual string
data.
2019-04-23 23:26:39 +03:00
Vitaly Zaitsev 7ba16730c1 Added PACKAGED_BUILD cmake build option to CMakeLists. 2019-04-05 16:42:50 +03:00
Vitaly Zaitsev 7d43f9dace Enabled IPO optimizations for official RPM package.
Fixed small mistake in README.md file.
2019-04-02 18:35:07 +02:00
Alex e511b23a83 Document new flag 2019-04-02 18:35:07 +02:00
Vitaly Zaitsev f792920622 Allow user to enable or disable interpocedural optimizations.
IPO optimizations will be disabled by default. To enable you need to
forward cmake build flag -DENABLE_IPO:BOOL=ON.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-04-02 18:35:07 +02:00
Vitaly Zaitsev 9fc007889b Removed AL_LIBTYPE_STATIC build definition.
Kepka is built against packaged version of OpenAL, so we don't need this.

Closes .

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-03-16 19:29:59 +05:00
Vitaly Zaitsev 6ebbe5a2a9 Enabled LTO optimizations.
Closes .

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-03-16 16:52:33 +05:00
Vitaly Zaitsev 450409095a Added Clang build support.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-03-15 23:02:33 +03:00
Alexander Akulich 792a88d064 Refactor DC configuration 2019-03-02 23:30:24 +00:00
leha-bot bbd77096d5 Add issue template for feature requests
[skip ci]
2019-02-08 18:02:10 +03:00
leha-bot b0d2191f80 Convert issue template to new named template "Bug report"
[skip ci]
2019-02-08 18:02:10 +03:00
leha-bot 04ad56bb0d Replace TDesktop logs path to Kepka's path
[skip ci]
2019-02-08 18:02:10 +03:00
Friedrich von Never 9d4a8596dc Copy OpenSSL libraries to the output ()
[skip travis]
2018-11-11 23:10:35 +03:00
Berkus Decker 4fd2f16142 Clang-format 2018-11-01 00:12:21 +02:00
Berkus Decker ee47a1c904 Update .style files 2018-11-01 00:12:21 +02:00
Berkus Decker eed10ab487 Change xdg link data 2018-11-01 00:12:21 +02:00
Berkus Decker d3c5e4458e Fix codegenerated license headers 2018-11-01 00:12:21 +02:00