2014-05-30 08:53:19 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2014-12-01 10:47:38 +00:00
|
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
2014-05-30 08:53:19 +00:00
|
|
|
|
|
|
|
Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
2015-10-03 13:16:42 +00:00
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
|
2014-05-30 08:53:19 +00:00
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
2017-01-11 18:31:31 +00:00
|
|
|
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
2016-03-24 08:57:11 +00:00
|
|
|
|
|
|
|
#define NOMINMAX // no min() and max() macro declarations
|
2014-05-30 08:53:19 +00:00
|
|
|
#define __HUGE
|
2016-04-14 13:03:03 +00:00
|
|
|
|
|
|
|
// Fix Google Breakpad build for Mac App Store version
|
|
|
|
#ifdef Q_OS_MAC
|
|
|
|
#define __STDC_FORMAT_MACROS
|
|
|
|
#endif // Q_OS_MAC
|
2016-02-01 10:12:37 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2016-01-21 06:58:58 +00:00
|
|
|
|
2016-04-01 08:50:02 +00:00
|
|
|
#include <cmath>
|
|
|
|
|
2016-04-14 13:03:03 +00:00
|
|
|
// False positive warning in clang for QMap member function value:
|
|
|
|
// const T QMap<Key, T>::value(const Key &akey, const T &adefaultValue)
|
|
|
|
// fires with "Returning address of local temporary object" which is not true.
|
|
|
|
#ifdef __clang__
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wreturn-stack-address"
|
|
|
|
#endif // __clang__
|
|
|
|
|
2016-02-27 19:39:51 +00:00
|
|
|
#include <QtCore/QtCore>
|
2016-04-14 13:03:03 +00:00
|
|
|
|
|
|
|
#ifdef __clang__
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#endif // __clang__
|
|
|
|
|
2016-08-30 05:24:16 +00:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
|
|
|
#define OS_MAC_OLD
|
|
|
|
#endif // QT_VERSION < 5.5.0
|
2016-04-21 17:57:29 +00:00
|
|
|
|
2016-08-31 17:58:46 +00:00
|
|
|
#ifdef OS_MAC_STORE
|
|
|
|
#define MAC_USE_BREAKPAD
|
|
|
|
#endif // OS_MAC_STORE
|
|
|
|
|
2014-05-30 08:53:19 +00:00
|
|
|
#include <QtWidgets/QtWidgets>
|
2016-02-27 19:39:51 +00:00
|
|
|
#include <QtNetwork/QtNetwork>
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2016-04-12 21:31:28 +00:00
|
|
|
#include "core/basic_types.h"
|
2016-09-29 11:37:16 +00:00
|
|
|
#include "logs.h"
|
|
|
|
#include "core/utils.h"
|
2017-04-06 14:38:10 +00:00
|
|
|
#include "base/lambda.h"
|
2014-05-30 08:53:19 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2016-03-23 18:43:12 +00:00
|
|
|
#include "mtproto/facade.h"
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2016-04-21 17:57:29 +00:00
|
|
|
#include "ui/style/style_core.h"
|
2016-10-28 12:44:28 +00:00
|
|
|
#include "styles/palette.h"
|
2016-04-21 17:57:29 +00:00
|
|
|
#include "styles/style_basic.h"
|
|
|
|
|
2016-04-07 18:05:28 +00:00
|
|
|
#include "ui/animation.h"
|
2016-11-07 11:24:19 +00:00
|
|
|
#include "ui/twidget.h"
|
2016-04-07 18:05:28 +00:00
|
|
|
#include "ui/images.h"
|
2016-04-14 11:00:23 +00:00
|
|
|
#include "ui/text/text.h"
|
2014-05-30 08:53:19 +00:00
|
|
|
|
|
|
|
#include "app.h"
|
2016-05-31 09:46:31 +00:00
|
|
|
#include "facades.h"
|
2016-02-01 10:12:37 +00:00
|
|
|
|
2016-03-24 12:57:10 +00:00
|
|
|
#endif // __cplusplus
|