From 155c260f805ce6eff070dcc032c71cd5560f1449 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Tue, 24 Apr 2018 23:54:48 +0300 Subject: [PATCH] Add missing includes --- Telegram/SourceFiles/boxes/add_contact_box.cpp | 2 ++ Telegram/SourceFiles/boxes/change_phone_box.cpp | 1 + Telegram/SourceFiles/boxes/edit_participant_box.cpp | 1 + Telegram/SourceFiles/boxes/edit_privacy_box.cpp | 2 +- Telegram/SourceFiles/boxes/local_storage_box.cpp | 2 ++ Telegram/SourceFiles/boxes/notifications_box.cpp | 1 + Telegram/SourceFiles/boxes/sticker_set_box.cpp | 2 ++ Telegram/SourceFiles/boxes/username_box.cpp | 2 ++ Telegram/SourceFiles/calls/calls_box_controller.cpp | 1 + Telegram/SourceFiles/calls/calls_instance.cpp | 2 ++ Telegram/SourceFiles/calls/calls_panel.cpp | 2 ++ Telegram/SourceFiles/calls/calls_top_bar.cpp | 1 + Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp | 1 + Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp | 1 + Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp | 2 ++ Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp | 2 ++ Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp | 3 +++ Telegram/SourceFiles/mtproto/dc_options.h | 1 + Telegram/SourceFiles/mtproto/session.cpp | 1 + Telegram/SourceFiles/settings/settings_inner_widget.cpp | 1 + Telegram/SourceFiles/structs.cpp | 1 + Telegram/SourceFiles/ui/effects/send_action_animations.h | 2 ++ Telegram/SourceFiles/window/notifications_manager.cpp | 1 + 23 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/add_contact_box.cpp b/Telegram/SourceFiles/boxes/add_contact_box.cpp index b9e5e972a..a17636701 100644 --- a/Telegram/SourceFiles/boxes/add_contact_box.cpp +++ b/Telegram/SourceFiles/boxes/add_contact_box.cpp @@ -41,6 +41,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "apiwrap.h" #include "observer_peer.h" #include "auth_session.h" +#include +#include namespace { diff --git a/Telegram/SourceFiles/boxes/change_phone_box.cpp b/Telegram/SourceFiles/boxes/change_phone_box.cpp index a02171f8a..6a52fe357 100644 --- a/Telegram/SourceFiles/boxes/change_phone_box.cpp +++ b/Telegram/SourceFiles/boxes/change_phone_box.cpp @@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "ui/toast/toast.h" #include "boxes/confirm_box.h" #include "facades.h" +#include "app.h" // For formatPhone namespace { diff --git a/Telegram/SourceFiles/boxes/edit_participant_box.cpp b/Telegram/SourceFiles/boxes/edit_participant_box.cpp index e3ba35d60..5f22a7f6e 100644 --- a/Telegram/SourceFiles/boxes/edit_participant_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_participant_box.cpp @@ -28,6 +28,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "ui/special_buttons.h" #include "boxes/calendar_box.h" #include "facades.h" +#include "app.h" // For App::peerName namespace { diff --git a/Telegram/SourceFiles/boxes/edit_privacy_box.cpp b/Telegram/SourceFiles/boxes/edit_privacy_box.cpp index 66018fed2..5cdcb9649 100644 --- a/Telegram/SourceFiles/boxes/edit_privacy_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_privacy_box.cpp @@ -30,7 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "apiwrap.h" #include "auth_session.h" #include "lang/lang_keys.h" - +#include "app.h" // For App::user, App::feedUsers namespace { diff --git a/Telegram/SourceFiles/boxes/local_storage_box.cpp b/Telegram/SourceFiles/boxes/local_storage_box.cpp index ec5778c4a..1b744616c 100644 --- a/Telegram/SourceFiles/boxes/local_storage_box.cpp +++ b/Telegram/SourceFiles/boxes/local_storage_box.cpp @@ -27,6 +27,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "mainwindow.h" #include "auth_session.h" #include "facades.h" +#include "app.h" // For App::wnd +#include "layout.h" // For formatSizeText LocalStorageBox::LocalStorageBox(QWidget *parent) : _clear(this, lang(lng_local_storage_clear), st::boxLinkButton) { diff --git a/Telegram/SourceFiles/boxes/notifications_box.cpp b/Telegram/SourceFiles/boxes/notifications_box.cpp index a21080995..b30f464f2 100644 --- a/Telegram/SourceFiles/boxes/notifications_box.cpp +++ b/Telegram/SourceFiles/boxes/notifications_box.cpp @@ -32,6 +32,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "auth_session.h" #include "window/notifications_manager.h" #include "platform/platform_specific.h" +#include "app.h" // For App::pixmapFromImageInPlace namespace { diff --git a/Telegram/SourceFiles/boxes/sticker_set_box.cpp b/Telegram/SourceFiles/boxes/sticker_set_box.cpp index e74190107..5c1d25a3c 100644 --- a/Telegram/SourceFiles/boxes/sticker_set_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_set_box.cpp @@ -34,6 +34,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "ui/widgets/scroll_area.h" #include "auth_session.h" #include "messenger.h" +#include +#include namespace { diff --git a/Telegram/SourceFiles/boxes/username_box.cpp b/Telegram/SourceFiles/boxes/username_box.cpp index 91bf8e122..32483679f 100644 --- a/Telegram/SourceFiles/boxes/username_box.cpp +++ b/Telegram/SourceFiles/boxes/username_box.cpp @@ -29,6 +29,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "ui/toast/toast.h" #include "styles/style_boxes.h" #include "messenger.h" +#include +#include UsernameBox::UsernameBox(QWidget*) : _username(this, st::defaultInputField, [] { return qsl("@username"); }, App::self()->username, false) diff --git a/Telegram/SourceFiles/calls/calls_box_controller.cpp b/Telegram/SourceFiles/calls/calls_box_controller.cpp index 380e03ef4..e1d2c6174 100644 --- a/Telegram/SourceFiles/calls/calls_box_controller.cpp +++ b/Telegram/SourceFiles/calls/calls_box_controller.cpp @@ -27,6 +27,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "ui/effects/ripple_animation.h" #include "calls/calls_instance.h" #include "history/history_media_types.h" +#include "app.h" namespace Calls { namespace { diff --git a/Telegram/SourceFiles/calls/calls_instance.cpp b/Telegram/SourceFiles/calls/calls_instance.cpp index 8f620fe6b..194a3224a 100644 --- a/Telegram/SourceFiles/calls/calls_instance.cpp +++ b/Telegram/SourceFiles/calls/calls_instance.cpp @@ -36,6 +36,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "media/media_audio_track.h" #include "boxes/rate_call_box.h" +#include "app.h" + namespace Calls { namespace { diff --git a/Telegram/SourceFiles/calls/calls_panel.cpp b/Telegram/SourceFiles/calls/calls_panel.cpp index 16863c585..1ade7e41e 100644 --- a/Telegram/SourceFiles/calls/calls_panel.cpp +++ b/Telegram/SourceFiles/calls/calls_panel.cpp @@ -38,6 +38,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "platform/platform_specific.h" #include "base/task_queue.h" #include "window/main_window.h" +#include "app.h" +#include namespace Calls { namespace { diff --git a/Telegram/SourceFiles/calls/calls_top_bar.cpp b/Telegram/SourceFiles/calls/calls_top_bar.cpp index af4084fe3..ae1f7c330 100644 --- a/Telegram/SourceFiles/calls/calls_top_bar.cpp +++ b/Telegram/SourceFiles/calls/calls_top_bar.cpp @@ -30,6 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "observer_peer.h" #include "boxes/abstract_box.h" #include "base/timer.h" +#include "app.h" namespace Calls { namespace { diff --git a/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp b/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp index 70fa2e97c..3752e9abe 100644 --- a/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp +++ b/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp @@ -24,6 +24,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "styles/style_widgets.h" #include "styles/style_history.h" #include "facades.h" +#include "app.h" BotKeyboard::BotKeyboard(QWidget *parent) : TWidget(parent) , _st(&st::botKbButton) { diff --git a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp index ee8de0b8a..6339b51a4 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp @@ -24,6 +24,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "styles/style_chat_helpers.h" #include "ui/widgets/shadow.h" #include "lang/lang_keys.h" +#include "app.h" namespace ChatHelpers { namespace { diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index b7d156b2b..c385f7c50 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -29,6 +29,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "styles/style_chat_helpers.h" #include "auth_session.h" #include "chat_helpers/stickers.h" +#include "app.h" +#include FieldAutocomplete::FieldAutocomplete(QWidget *parent) : TWidget(parent) , _scroll(this, st::mentionScroll) { diff --git a/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp index c427ca821..aaa648121 100644 --- a/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/gifs_list_widget.cpp @@ -31,6 +31,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "lang/lang_keys.h" #include "mainwindow.h" #include "window/window_controller.h" +#include "app.h" +#include namespace ChatHelpers { namespace { diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp index b728e3986..8fcedaab7 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp @@ -36,6 +36,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "auth_session.h" #include "observer_peer.h" #include "apiwrap.h" +#include "chat_helpers/tabbed_selector.h" +#include +#include namespace ChatHelpers { namespace { diff --git a/Telegram/SourceFiles/mtproto/dc_options.h b/Telegram/SourceFiles/mtproto/dc_options.h index 67ab7ea39..1604882c8 100644 --- a/Telegram/SourceFiles/mtproto/dc_options.h +++ b/Telegram/SourceFiles/mtproto/dc_options.h @@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "base/observer.h" #include "mtproto/rsa_public_key.h" +#include "scheme.h" #include #include #include diff --git a/Telegram/SourceFiles/mtproto/session.cpp b/Telegram/SourceFiles/mtproto/session.cpp index b0c9d2d0f..2439dddc3 100644 --- a/Telegram/SourceFiles/mtproto/session.cpp +++ b/Telegram/SourceFiles/mtproto/session.cpp @@ -23,6 +23,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "mtproto/connection.h" #include "mtproto/dcenter.h" #include "mtproto/auth_key.h" +#include "scheme.h" namespace MTP { namespace internal { diff --git a/Telegram/SourceFiles/settings/settings_inner_widget.cpp b/Telegram/SourceFiles/settings/settings_inner_widget.cpp index 7a3d7f3f2..292c7c623 100644 --- a/Telegram/SourceFiles/settings/settings_inner_widget.cpp +++ b/Telegram/SourceFiles/settings/settings_inner_widget.cpp @@ -32,6 +32,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "settings/settings_background_widget.h" #include "settings/settings_privacy_widget.h" #include "settings/settings_advanced_widget.h" +#include "app.h" namespace Settings { diff --git a/Telegram/SourceFiles/structs.cpp b/Telegram/SourceFiles/structs.cpp index 04078c089..c6ad1d3ef 100644 --- a/Telegram/SourceFiles/structs.cpp +++ b/Telegram/SourceFiles/structs.cpp @@ -38,6 +38,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "auth_session.h" #include "messenger.h" #include "storage/file_download.h" +#include namespace { diff --git a/Telegram/SourceFiles/ui/effects/send_action_animations.h b/Telegram/SourceFiles/ui/effects/send_action_animations.h index 1cc187033..0a216677a 100644 --- a/Telegram/SourceFiles/ui/effects/send_action_animations.h +++ b/Telegram/SourceFiles/ui/effects/send_action_animations.h @@ -20,6 +20,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org */ #pragma once +#include "structs.h" + namespace Ui { class SendActionAnimation { diff --git a/Telegram/SourceFiles/window/notifications_manager.cpp b/Telegram/SourceFiles/window/notifications_manager.cpp index f0dbbe1a4..a44df89c3 100644 --- a/Telegram/SourceFiles/window/notifications_manager.cpp +++ b/Telegram/SourceFiles/window/notifications_manager.cpp @@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "mainwidget.h" #include "apiwrap.h" #include "auth_session.h" +#include "app.h" namespace Window { namespace Notifications {