Fix ALL compilation errors after removing cotire

This commit is contained in:
leha-bot 2018-05-12 23:10:37 +03:00
parent de8e4605d3
commit 6188052c46
174 changed files with 619 additions and 32 deletions

View File

@ -35,6 +35,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/notifications_manager.h"
#include "chat_helpers/message_field.h"
#include "chat_helpers/stickers.h"
#include "base/algorithm.h" // for_each_apply
namespace {

View File

@ -50,6 +50,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/notifications_manager.h"
#include "platform/platform_notifications_manager.h"
#include <QLinkedList> // used in list of PhotosData
#include <QFontDatabase>
#include <QBuffer>
#include <QImageReader>
namespace {
App::LaunchState _launchState = App::Launched;

View File

@ -28,6 +28,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "messenger.h"
#include "base/timer.h"
#include <QDesktopWidget>
#include <QScreen>
namespace {
// @todo are there no other ways to get/set hex?

View File

@ -32,6 +32,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/section_widget.h"
#include "chat_helpers/tabbed_selector.h"
#include "app.h" // App::user
namespace {
constexpr auto kAutoLockTimeoutLateMs = TimeMs(3000);

View File

@ -37,6 +37,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "observer_peer.h"
#include "apiwrap.h"
#include "chat_helpers/tabbed_selector.h"
#include "app.h"
#include <QApplication>
#include <QWidget>

View File

@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "chat_helpers/tabbed_selector.h"
#include "base/variant.h"
#include "ui/effects/ripple_animation.h"
namespace Window {
class Controller;

View File

@ -26,6 +26,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "chat_helpers/tabbed_selector.h"
#include "window/window_controller.h"
#include "mainwindow.h"
#include "app.h"
namespace ChatHelpers {
namespace {

View File

@ -35,6 +35,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mainwindow.h"
#include "observer_peer.h"
#include "apiwrap.h"
#include "app.h"
namespace ChatHelpers {
namespace {

View File

@ -24,6 +24,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "core/utils.h"
#include "base/lambda.h"
#include "ui/text/text_entity.h"
class ClickHandler;
using ClickHandlerPtr = QSharedPointer<ClickHandler>;
@ -47,7 +48,7 @@ protected:
};
class EntityInText;
struct TextWithEntities;
class ClickHandler {
public:
virtual ~ClickHandler() {

View File

@ -32,6 +32,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "core/file_utilities.h"
#include "facades.h"
#include "app.h" // App::userLoaded
namespace {
QString tryConvertUrlToLocal(QString url) {

View File

@ -20,10 +20,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <QTimer>
#include <base/lambda.h>
#include "core/basic_types.h"
#include "core/utils.h"
#include <QTimer>
class SingleTimer : public QTimer { // single shot timer with check
Q_OBJECT

View File

@ -40,6 +40,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/window_controller.h"
#include "ui/widgets/multi_select.h"
#include <string.h> // memcmp
namespace {
constexpr auto kHashtagResultsLimit = 5;

View File

@ -24,6 +24,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "observer_peer.h"
#include "auth_session.h"
#include "apiwrap.h"
#include "app.h"
namespace Dialogs {

View File

@ -37,6 +37,8 @@ Q_DECLARE_METATYPE(ClickHandlerPtr);
Q_DECLARE_METATYPE(Qt::MouseButton);
Q_DECLARE_METATYPE(Ui::ShowWay);
// class PeerData;
namespace App {
namespace internal {
@ -285,13 +287,13 @@ void showPeerHistory(const PeerId &peer, MsgId msgId, ShowWay way) {
if (MainWidget *m = App::main()) m->ui_showPeerHistory(peer, msgId, way);
}
void showPeerHistory(const PeerData *peer, MsgId msgId, ShowWay way = ShowWay::ClearStack) {
void showPeerHistory(const PeerData *peer, MsgId msgId, ShowWay way) {
showPeerHistory(peer->id, msgId, way);
}
void showPeerHistory(const History *history, MsgId msgId, ShowWay way = ShowWay::ClearStack) {
void showPeerHistory(const History *history, MsgId msgId, ShowWay way) {
showPeerHistory(history->peer->id, msgId, way);
}
void showPeerHistoryAtItem(const HistoryItem *item, ShowWay way = ShowWay::ClearStack) {
void showPeerHistoryAtItem(const HistoryItem *item, ShowWay way) {
showPeerHistory(item->history()->peer->id, item->id, way);
}

View File

@ -19,6 +19,24 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "history/history.h"
#include "lang_auto.h"
#include "layout.h"
#include "history_message.h"
#include "history_media_types.h"
#include "facades.h"
#include "auth_session.h"
#include "data/data_drafts.h"
#include "app.h"
#include "mainwidget.h"
#include "styles/style_dialogs.h"
#include "apiwrap.h"
#include "history_service.h"
#include "observer_peer.h"
#include "calls/calls_instance.h"
#include "messenger.h"
#include "dialogs/dialogs_indexed_list.h"
#include "dialogs/dialogs_row.h"
#include "storage/localstorage.h"
namespace {

View File

@ -24,6 +24,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/checkbox.h"
#include "ui/effects/ripple_animation.h"
#include "lang/lang_keys.h"
#include "app.h"
namespace AdminLog {
namespace {

View File

@ -26,6 +26,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "lang/lang_keys.h"
#include "boxes/sticker_set_box.h"
#include "messenger.h"
#include "app.h"
namespace AdminLog {
namespace {

View File

@ -27,6 +27,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
#include "styles/style_intro.h"
#include "app.h" // for formatPhone
namespace Intro {

View File

@ -30,6 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "core/click_handler_types.h"
#include "boxes/confirm_box.h"
#include "messenger.h"
#include "app.h"
namespace Intro {

View File

@ -31,6 +31,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/input_fields.h"
#include "ui/widgets/labels.h"
#include "ui/special_buttons.h"
#include "app.h"
namespace Intro {

View File

@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "boxes/confirm_box.h"
#include "lang/lang_file_parser.h"
#include "core/file_utilities.h"
#include "app.h"
namespace Lang {

View File

@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include <signal.h>
#include <new>
#include <QMutex>
#include "platform/platform_specific.h"
#include "mtproto/connection.h"
@ -50,6 +51,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#endif // Q_OS_LINUX64 || Q_OS_LINUX32
#endif // !TDESKTOP_DISABLE_CRASH_REPORTS
#include "facades.h"
enum LogDataType {
LogDataMain,

View File

@ -19,7 +19,6 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "application.h"
#include "platform/platform_specific.h"
#include "storage/localstorage.h"

View File

@ -75,6 +75,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "calls/calls_instance.h"
#include "calls/calls_top_bar.h"
#include <QAction>
#include <QWindow>
namespace {
constexpr auto kSaveFloatPlayerPositionTimeoutMs = TimeMs(1000);

View File

@ -55,6 +55,14 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "auth_session.h"
#include "window/window_controller.h"
#include <QWindow>
#include <QAction>
#include <QScreen>
#include <QFileDialog>
#include <QStandardPaths>
#include <QDesktopServices>
#include <QHttpMultiPart>
namespace {
// Code for testing languages is F7-F6-F7-F8

View File

@ -31,6 +31,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "media/player/media_player_volume_controller.h"
#include "styles/style_media_player.h"
#include "styles/style_mediaview.h"
#include "layout.h"
namespace Media {
namespace Player {

View File

@ -28,6 +28,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "media/view/media_clip_playback.h"
#include "media/media_audio.h"
#include "styles/style_history.h"
#include "app.h"
namespace Media {
namespace Player {

View File

@ -27,6 +27,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "auth_session.h"
#include "calls/calls_instance.h"
#include "history/history_media.h"
#include "app.h"
namespace Media {
namespace Player {

View File

@ -19,6 +19,7 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include "structs.h"
class AudioMsgId;

View File

@ -42,6 +42,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "storage/file_download.h"
#include "calls/calls_instance.h"
#include <QApplication>
#include <QWidget>
#include <QWindow>
#include <QDesktopWidget>
#include <QImageReader>
namespace {
TextParseOptions _captionTextOptions = {

View File

@ -22,6 +22,15 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/dropdown_menu.h"
#include "ui/effects/radial_animation.h"
#include "core/click_handler.h"
#include "ui/images.h"
#include "structs.h"
#include "history/history.h"
class PeerData;
class PhotoData;
class HistoryItem;
class AudioMsgId;
namespace Media {
namespace Player {

View File

@ -52,6 +52,14 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "boxes/confirm_phone_box.h"
#include "boxes/share_box.h"
#include <QMimeDatabase>
#include <QDesktopServices>
#include <QBuffer>
#include <QWindow>
#include <QApplication>
#include <QDesktopWidget>
#include <QScreen>
namespace {
constexpr auto kQuitPreventTimeoutMs = 1500;

View File

@ -24,6 +24,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/mtp_instance.h"
#include "mtproto/special_config_request.h"
#include "facades.h"
namespace MTP {
namespace internal {
namespace {

View File

@ -23,6 +23,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/rpc_sender.h"
#include "mtproto/dc_options.h"
#include "mtproto/connection_abstract.h"
#include "mtproto/facade.h"
#include "zlib.h"
#include "lang/lang_keys.h"
#include "base/openssl_help.h"
@ -32,6 +33,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include <openssl/sha.h>
#include <openssl/md5.h>
#include <openssl/rand.h>
#include "facades.h"
namespace MTP {
namespace internal {
@ -2183,7 +2185,7 @@ void ConnectionPrivate::requestsAcked(const QVector<MTPlong> &ids, bool byRespon
}
void ConnectionPrivate::handleMsgsStates(const QVector<MTPlong> &ids, const QByteArray &states, QVector<MTPlong> &acked) {
quint32 idsCount = ids.size();
auto idsCount = ids.size();
if (!idsCount) {
DEBUG_LOG(("Message Info: void ids vector in handleMsgsStates()"));
return;

View File

@ -24,6 +24,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/connection_http.h"
#include "mtproto/connection_auto.h"
#include "facades.h"
namespace MTP {
namespace internal {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/connection_auto.h"
#include "mtproto/connection_http.h"
#include "QNetworkProxy"
namespace MTP {
namespace internal {

View File

@ -22,6 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/connection_tcp.h"
#include <QNetworkReply>
#include <QTimer>
namespace MTP {
namespace internal {

View File

@ -19,6 +19,8 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "mtproto/connection_http.h"
#include "app.h"
#include <QNetworkReply>
namespace MTP {
namespace internal {

View File

@ -22,6 +22,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/connection_abstract.h"
#include <QNetworkAccessManager>
#include <QUrl>
class QNetworkReply;
namespace MTP {
namespace internal {

View File

@ -21,6 +21,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/connection_tcp.h"
#include <openssl/aes.h>
#include "app.h"
#include <QHostAddress>
namespace MTP {
namespace internal {

View File

@ -23,6 +23,10 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/auth_key.h"
#include "mtproto/connection_abstract.h"
#include <QAbstractSocket>
#include <QTcpSocket>
#include <QTimer>
namespace MTP {
namespace internal {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/core_types.h"
#include "zlib.h"
#include "scheme.h"
quint32 MTPstring::innerLength() const {
quint32 l = v.length();

View File

@ -22,6 +22,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "storage/serialize_common.h"
#include "mtproto/facade.h"
#include "facades.h"
#include <QHostAddress>
namespace MTP {
class DcOptions::WriteLocker {

View File

@ -20,6 +20,14 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include "mtproto/core_types.h"
#include <gsl/gsl>
#include <QMutex>
#include <QMutexLocker>
#include <QReadWriteLock>
namespace MTP {
class Instance;
@ -32,7 +40,7 @@ class Dcenter : public QObject {
Q_OBJECT
public:
Dcenter(not_null<Instance*> instance, DcId dcId, AuthKeyPtr &&key);
Dcenter(gsl::not_null<Instance*> instance, DcId dcId, AuthKeyPtr &&key);
QReadWriteLock *keyMutex() const;
const AuthKeyPtr &getKey() const;
@ -59,7 +67,7 @@ private slots:
private:
mutable QReadWriteLock keyLock;
mutable QMutex initLock;
not_null<Instance*> _instance;
gsl::not_null<Instance*> _instance;
DcId _id = 0;
AuthKeyPtr _key;
bool _connectionInited = false;

View File

@ -30,6 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/core_types.h"
#include "mtproto/rpc_sender.h"
#include "mtproto/connection.h"
#include "mtproto/session.h"
namespace MTP {
namespace internal {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/rsa_public_key.h"
#include "base/openssl_help.h"
#include "mtproto/core_types.h"
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/bio.h>

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include <memory>
#include "core\utils.h"
namespace MTP {
namespace internal {

View File

@ -19,11 +19,13 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "mtproto/session.h"
#include "mtproto/mtp_instance.h"
#include "mtproto/connection.h"
#include "mtproto/dcenter.h"
#include "mtproto/auth_key.h"
#include "scheme.h"
#include "facade.h"
namespace MTP {
namespace internal {

View File

@ -25,6 +25,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/auth_key.h"
#include "base/openssl_help.h"
#include <openssl/aes.h>
#include "app.h"
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
namespace MTP {
namespace {

View File

@ -20,6 +20,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include "base/lambda.h"
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include "mtproto/mtp_instance.h"
namespace MTP {
class SpecialConfigRequest : public QObject {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "observer_peer.h"
#include "base/observer.h"
#include "facades.h"
namespace Notify {
namespace {

View File

@ -31,6 +31,10 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/window_slide_animation.h"
#include "window/window_controller.h"
#include "auth_session.h"
#include "base/observer.h"
#include "app.h"
#include <QWidget>
PasscodeWidget::PasscodeWidget(QWidget *parent) : TWidget(parent)
, _passcode(this, st::passcodeInput, langFactory(lng_passcode_ph))

View File

@ -20,6 +20,13 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <QWidget>
#include <QResizeEvent>
#include <QPaintEvent>
#include "base\object_ptr.h"
#include "ui\animation.h"
#include "ui\twidget.h"
namespace Ui {
class PasswordInput;
class LinkButton;

View File

@ -18,12 +18,12 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "platform/win/audio_win.h"
#include "platform/win/windows_dlls.h"
#include "media/media_audio.h"
#include <mmdeviceapi.h>
#include <wrl/client.h> // Microsoft::WRL::ComPtr<T>
using namespace Microsoft::WRL;

View File

@ -18,8 +18,16 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include <windows.h>
#include <windowsx.h>
#include <ShlGuid.h>
#include <QDialog>
#include <QSettings>
#include <QFileDialog>
#include <QStandardPaths>
#include <QDesktopServices>
#include "platform/win/file_utilities_win.h"
#include "mainwindow.h"
@ -27,6 +35,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "platform/win/windows_dlls.h"
#include "lang/lang_keys.h"
#include "messenger.h"
#include "app.h"
#include <winerror.h>
#include <Shlwapi.h>
HBITMAP qt_pixmapToWinHBITMAP(const QPixmap &, int hbitmapFormat);

View File

@ -18,7 +18,6 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "platform/win/main_window_win.h"
#include "styles/style_window.h"
@ -32,6 +31,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "storage/localstorage.h"
#include "ui/widgets/popup_menu.h"
#include "window/themes/window_theme.h"
#include "app.h"
#include <qpa/qplatformnativeinterface.h>
@ -41,6 +41,16 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#undef min
#undef max
#include <windowsx.h>
#include <Wtsapi32.h>
#include <ShObjIdl.h>
#include <wrl/client.h>
#include <QWindow>
#include <QStyleFactory>
#include <QWidget>
#include "facades.h"
HICON qt_pixmapToWinHICON(const QPixmap &);
using namespace Microsoft::WRL;

View File

@ -18,7 +18,6 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "platform/win/notifications_manager_win.h"
#include "window/notifications_utilities.h"
@ -31,6 +30,15 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include <strsafe.h>
#include <intsafe.h>
#include <wrl/client.h>
#include <windows.ui.notifications.h>
#include <windows.foundation.collections.h>
#include <wrl/implements.h>
#include "history/history.h"
#include "app.h"
#include "facades.h"
HICON qt_pixmapToWinHICON(const QPixmap &);
using namespace Microsoft::WRL;

View File

@ -18,7 +18,6 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "platform/win/specific_win.h"
#include "platform/win/main_window_win.h"
@ -43,7 +42,14 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include <strsafe.h>
#include <QDesktopWidget>
#include <qpa/qplatformnativeinterface.h>
#include <ObjIdl.h>
#include <wrl/client.h>
#include "QStandardPaths"
#include "QDesktopServices"
#include <propvarutil.h>
#ifndef DCX_USESTYLE
#define DCX_USESTYLE 0x00010000
@ -56,8 +62,6 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#endif
using namespace Microsoft::WRL;
using namespace ABI::Windows::UI::Notifications;
using namespace ABI::Windows::Data::Xml::Dom;
using namespace Windows::Foundation;
using namespace Platform;

View File

@ -18,13 +18,14 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "platform/win/window_title_win.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/shadow.h"
#include "styles/style_window.h"
#include <QWindow>
namespace Platform {
TitleWidget::TitleWidget(QWidget *parent) : Window::TitleWidget(parent)

View File

@ -18,13 +18,18 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "settings.h"
#include "platform/win/windows_app_user_model_id.h"
#include "platform/win/windows_dlls.h"
#include <propvarutil.h>
#include <propkey.h>
#include <wrl/client.h>
#include <QString>
#include <QDir>
using namespace Microsoft::WRL;
namespace Platform {

View File

@ -18,8 +18,9 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
#include "platform/win/windows_dlls.h"
#include "settings.h"
#include "QSysInfo"
namespace Platform {
namespace Dlls {

View File

@ -19,7 +19,10 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <windows.h> // all stuff like FAR, BOOL, STDCALL, etc
#include <ShlObj.h> // OPENASINFO
#include <Shobjidl.h> // IEnumAssocHandlers
#include <hstring.h>
namespace Platform {
namespace Dlls {

View File

@ -18,11 +18,15 @@ to link the code of portions of this program with the OpenSSL library.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "stdafx.h"
// #include "stdafx.h"
#include "platform/win/windows_event_filter.h"
#include <QWindow>
#include "mainwindow.h"
#include "auth_session.h"
#include "app.h"
#include "facades.h"
namespace Platform {
namespace {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include <windows.h>
#include <QAbstractNativeEventFilter>
namespace Platform {

View File

@ -24,6 +24,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "styles/style_widgets.h"
#include "styles/style_window.h"
#include "styles/style_profile.h"
#include "facades.h"
#include <QPaintEvent>
namespace Profile {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "ui/abstract_button.h"
#include "base/observer.h"
namespace Profile {

View File

@ -21,6 +21,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "profile/profile_block_widget.h"
#include "base/object_ptr.h"
namespace Ui {
class LeftOutlineButton;

View File

@ -21,6 +21,13 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "profile/profile_block_peer_list.h"
#include "core/click_handler.h"
#include "QTimer"
#include "structs.h"
class UserData;
class ChannelData;
class ChatData;
namespace Ui {
class FlatLabel;

View File

@ -21,6 +21,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "profile/profile_block_widget.h"
#include "ui/text/text_entity.h"
#include "mtproto/rpc_sender.h"
namespace style {
struct FlatLabel;

View File

@ -25,6 +25,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "styles/style_profile.h"
#include "styles/style_widgets.h"
#include "auth_session.h"
#include "app.h"
namespace Profile {

View File

@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "profile/profile_block_widget.h"
#include "styles/style_profile.h"
#include "ui/text/text.h"
namespace Ui {
class RippleAnimation;

View File

@ -27,6 +27,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/buttons.h"
#include "mainwidget.h"
#include "lang/lang_keys.h"
#include "history/history.h"
namespace Profile {
namespace {

View File

@ -21,6 +21,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "profile/profile_block_widget.h"
#include "history/history.h"
class History;
namespace Ui {
class LeftOutlineButton;

View File

@ -20,8 +20,15 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <QPaintEvent>
#include <gsl/gsl>
#include "ui/twidget.h"
#include "base/observer.h"
class PeerData;
namespace Profile {
class SectionMemento;
@ -35,9 +42,9 @@ public:
virtual void showFinished() {
}
virtual void saveState(not_null<SectionMemento*> memento) {
virtual void saveState(gsl::not_null<SectionMemento*> memento) {
}
virtual void restoreState(not_null<SectionMemento*> memento) {
virtual void restoreState(gsl::not_null<SectionMemento*> memento) {
}
protected:

View File

@ -22,6 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/section_widget.h"
#include "window/section_memento.h"
#include "ui/effects/ripple_animation.h"
#include "ui/text/text.h"
#include "structs.h"
namespace Notify {
struct PeerUpdate;

View File

@ -38,6 +38,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mainwindow.h"
#include "messenger.h"
#include "platform/platform_file_utilities.h"
#include "styles/style_widgets.h"
#include "QWidget"
namespace Profile {
namespace {

View File

@ -21,6 +21,25 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "base/observer.h"
#include "base/object_ptr.h"
#include "ui/twidget.h"
#include "structs.h"
class PhotoData;
class PeerData;
class UserData;
class ChatData;
class ChannelData;
class Painter;
class QMimeData;
class QWidget;
class QPaintEvent;
class QDragEvent;
class QDragEnterEvent;
class QDragLeaveEvent;
class QDropEvent;
namespace style {
struct RoundButton;

View File

@ -21,6 +21,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "profile/profile_cover_drop_area.h"
#include "styles/style_profile.h"
#include <QWidget>
#include <qPaintEvent>
namespace Profile {

View File

@ -19,6 +19,10 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include "ui\animation.h"
#include "ui\twidget.h"
class QPaintEvent;
namespace Profile {

View File

@ -30,6 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "observer_peer.h"
#include "styles/style_boxes.h"
#include "profile/profile_back_button.h"
#include "QWidget"
namespace Profile {
namespace {

View File

@ -19,8 +19,18 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include "base\observer.h"
#include "base/observer.h"
#include "base/object_ptr.h"
#include "ui/twidget.h"
class PeerData;
class UserData;
class ChatData;
class ChannelData;
class QMouseEvent;
namespace Notify {
struct PeerUpdate;

View File

@ -20,6 +20,16 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <gsl/gsl>
#include "ui\twidget.h"
class PeerData;
class QWidget;
class QPaintEvent;
class QKeyEvent;
namespace Profile {
class CoverWidget;
@ -49,8 +59,8 @@ public:
// It should show it only if it is hidden in the cover.
bool shareContactButtonShown() const;
void saveState(not_null<SectionMemento*> memento);
void restoreState(not_null<SectionMemento*> memento);
void saveState(gsl::not_null<SectionMemento*> memento);
void restoreState(gsl::not_null<SectionMemento*> memento);
void showFinished();

View File

@ -22,6 +22,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/section_memento.h"
class PeerData;
namespace Profile {
class Widget;
@ -31,7 +33,7 @@ public:
SectionMemento(PeerData *peer) : _peer(peer) {
}
object_ptr<Window::SectionWidget> createWidget(QWidget *parent, not_null<Window::Controller*> controller, const QRect &geometry) override;
object_ptr<Window::SectionWidget> createWidget(QWidget *parent, gsl::not_null<Window::Controller*> controller, const QRect &geometry) override;
PeerData *getPeer() const {
return _peer;

View File

@ -23,6 +23,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "styles/style_profile.h"
#include "observer_peer.h"
#include "auth_session.h"
#include "app.h"
namespace Profile {

View File

@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/abstract_button.h"
#include "base/observer.h"
#include "ui/animation.h"
namespace Notify {
struct PeerUpdate;

View File

@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/effects/widget_fade_wrap.h"
#include "ui/widgets/scroll_area.h"
#include "ui/widgets/shadow.h"
#include "facades.h"
namespace Profile {

View File

@ -19,8 +19,10 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#include "settings.h"
#include "structs.h"
#include "platform/platform_specific.h"
#include "app.h"
bool gRtl = false;
Qt::LayoutDirection gLangDir = gRtl ? Qt::RightToLeft : Qt::LeftToRight;

View File

@ -31,6 +31,10 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/effects/widget_slide_wrap.h"
#include "storage/localstorage.h"
#include "window/themes/window_theme.h"
#include "scheme.h"
#include "facades.h"
#include "app.h"
#include "QDesktopServices"
namespace Settings {

View File

@ -22,6 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "settings/settings_block_widget.h"
#include "settings/settings_chat_settings_widget.h"
#include "mtproto/rpc_sender.h"
#include "mtproto/core_types.h"
#include "scheme.h"
namespace Settings {

View File

@ -20,8 +20,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include "base/object_ptr.h"
#include "base/observer.h"
#include "styles/style_boxes.h"
#include "ui/twidget.h"
class QPaintEvent;
namespace Ui {
class Checkbox;

View File

@ -21,6 +21,10 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "settings/settings_block_widget.h"
#include "ui/twidget.h"
#include "base/observer.h"
class QPaintEvent;
namespace Ui {
class FlatLabel;

View File

@ -36,6 +36,10 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "styles/style_settings.h"
#include "styles/style_profile.h" // for divider
#include "platform/platform_file_utilities.h"
#include "app.h"
#include <QString>
#include <QWidget>
namespace Settings {

View File

@ -22,6 +22,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "base/observer.h"
#include "settings/settings_block_widget.h"
#include "structs.h"
class PhotoData;
class QMimeData;
namespace Ui {
class FlatLabel;

View File

@ -20,6 +20,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <QString>
#include "ui\twidget.h"
class QWidget;
class QPaintEvent;
namespace Ui {
class IconButton;
} // namespace Ui

View File

@ -36,6 +36,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "lang/lang_file_parser.h"
#include "lang/lang_cloud_manager.h"
#include "messenger.h"
#include "app.h"
namespace Settings {

View File

@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "boxes/change_phone_box.h"
#include "observer_peer.h"
#include "messenger.h"
#include "app.h"
namespace Settings {

View File

@ -21,6 +21,10 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#pragma once
#include "settings/settings_block_widget.h"
#include "base/object_ptr.h"
#include "ui/twidget.h"
struct TextWithEntities;
namespace Ui {
class FlatLabel;

View File

@ -33,6 +33,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "settings/settings_privacy_widget.h"
#include "settings/settings_advanced_widget.h"
#include "app.h"
#include "facades.h"
namespace Settings {

View File

@ -33,6 +33,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "boxes/edit_privacy_box.h"
#include "boxes/self_destruction_box.h"
#include "settings/settings_privacy_controllers.h"
#include "scheme.h"
namespace Settings {

View File

@ -22,6 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "settings/settings_block_widget.h"
#include "settings/settings_chat_settings_widget.h"
#include "mtproto/rpc_sender.h"
#include "base/object_ptr.h"
#include "scheme.h"
namespace Settings {

Some files were not shown because too many files have changed in this diff Show More