Add missing includes

This commit is contained in:
Berkus Decker 2018-04-24 23:54:48 +03:00
parent a8e998a3e5
commit 155c260f80
23 changed files with 34 additions and 1 deletions

View File

@ -41,6 +41,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "apiwrap.h" #include "apiwrap.h"
#include "observer_peer.h" #include "observer_peer.h"
#include "auth_session.h" #include "auth_session.h"
#include <QGuiApplication>
#include <QClipboard>
namespace { namespace {

View File

@ -29,6 +29,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/toast/toast.h" #include "ui/toast/toast.h"
#include "boxes/confirm_box.h" #include "boxes/confirm_box.h"
#include "facades.h" #include "facades.h"
#include "app.h" // For formatPhone
namespace { namespace {

View File

@ -28,6 +28,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/special_buttons.h" #include "ui/special_buttons.h"
#include "boxes/calendar_box.h" #include "boxes/calendar_box.h"
#include "facades.h" #include "facades.h"
#include "app.h" // For App::peerName
namespace { namespace {

View File

@ -30,7 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "apiwrap.h" #include "apiwrap.h"
#include "auth_session.h" #include "auth_session.h"
#include "lang/lang_keys.h" #include "lang/lang_keys.h"
#include "app.h" // For App::user, App::feedUsers
namespace { namespace {

View File

@ -27,6 +27,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mainwindow.h" #include "mainwindow.h"
#include "auth_session.h" #include "auth_session.h"
#include "facades.h" #include "facades.h"
#include "app.h" // For App::wnd
#include "layout.h" // For formatSizeText
LocalStorageBox::LocalStorageBox(QWidget *parent) LocalStorageBox::LocalStorageBox(QWidget *parent)
: _clear(this, lang(lng_local_storage_clear), st::boxLinkButton) { : _clear(this, lang(lng_local_storage_clear), st::boxLinkButton) {

View File

@ -32,6 +32,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "auth_session.h" #include "auth_session.h"
#include "window/notifications_manager.h" #include "window/notifications_manager.h"
#include "platform/platform_specific.h" #include "platform/platform_specific.h"
#include "app.h" // For App::pixmapFromImageInPlace
namespace { namespace {

View File

@ -34,6 +34,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/scroll_area.h" #include "ui/widgets/scroll_area.h"
#include "auth_session.h" #include "auth_session.h"
#include "messenger.h" #include "messenger.h"
#include <QApplication>
#include <QClipboard>
namespace { namespace {

View File

@ -29,6 +29,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/toast/toast.h" #include "ui/toast/toast.h"
#include "styles/style_boxes.h" #include "styles/style_boxes.h"
#include "messenger.h" #include "messenger.h"
#include <QApplication>
#include <QClipboard>
UsernameBox::UsernameBox(QWidget*) UsernameBox::UsernameBox(QWidget*)
: _username(this, st::defaultInputField, [] { return qsl("@username"); }, App::self()->username, false) : _username(this, st::defaultInputField, [] { return qsl("@username"); }, App::self()->username, false)

View File

@ -27,6 +27,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/effects/ripple_animation.h" #include "ui/effects/ripple_animation.h"
#include "calls/calls_instance.h" #include "calls/calls_instance.h"
#include "history/history_media_types.h" #include "history/history_media_types.h"
#include "app.h"
namespace Calls { namespace Calls {
namespace { namespace {

View File

@ -36,6 +36,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "media/media_audio_track.h" #include "media/media_audio_track.h"
#include "boxes/rate_call_box.h" #include "boxes/rate_call_box.h"
#include "app.h"
namespace Calls { namespace Calls {
namespace { namespace {

View File

@ -38,6 +38,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "platform/platform_specific.h" #include "platform/platform_specific.h"
#include "base/task_queue.h" #include "base/task_queue.h"
#include "window/main_window.h" #include "window/main_window.h"
#include "app.h"
#include <QApplication>
namespace Calls { namespace Calls {
namespace { namespace {

View File

@ -30,6 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "observer_peer.h" #include "observer_peer.h"
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"
#include "base/timer.h" #include "base/timer.h"
#include "app.h"
namespace Calls { namespace Calls {
namespace { namespace {

View File

@ -24,6 +24,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "styles/style_widgets.h" #include "styles/style_widgets.h"
#include "styles/style_history.h" #include "styles/style_history.h"
#include "facades.h" #include "facades.h"
#include "app.h"
BotKeyboard::BotKeyboard(QWidget *parent) : TWidget(parent) BotKeyboard::BotKeyboard(QWidget *parent) : TWidget(parent)
, _st(&st::botKbButton) { , _st(&st::botKbButton) {

View File

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

View File

@ -29,6 +29,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "styles/style_chat_helpers.h" #include "styles/style_chat_helpers.h"
#include "auth_session.h" #include "auth_session.h"
#include "chat_helpers/stickers.h" #include "chat_helpers/stickers.h"
#include "app.h"
#include <QApplication>
FieldAutocomplete::FieldAutocomplete(QWidget *parent) : TWidget(parent) FieldAutocomplete::FieldAutocomplete(QWidget *parent) : TWidget(parent)
, _scroll(this, st::mentionScroll) { , _scroll(this, st::mentionScroll) {

View File

@ -31,6 +31,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "lang/lang_keys.h" #include "lang/lang_keys.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "window/window_controller.h" #include "window/window_controller.h"
#include "app.h"
#include <QApplication>
namespace ChatHelpers { namespace ChatHelpers {
namespace { namespace {

View File

@ -36,6 +36,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "auth_session.h" #include "auth_session.h"
#include "observer_peer.h" #include "observer_peer.h"
#include "apiwrap.h" #include "apiwrap.h"
#include "chat_helpers/tabbed_selector.h"
#include <QApplication>
#include <QWidget>
namespace ChatHelpers { namespace ChatHelpers {
namespace { namespace {

View File

@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "base/observer.h" #include "base/observer.h"
#include "mtproto/rsa_public_key.h" #include "mtproto/rsa_public_key.h"
#include "scheme.h"
#include <string> #include <string>
#include <vector> #include <vector>
#include <map> #include <map>

View File

@ -23,6 +23,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mtproto/connection.h" #include "mtproto/connection.h"
#include "mtproto/dcenter.h" #include "mtproto/dcenter.h"
#include "mtproto/auth_key.h" #include "mtproto/auth_key.h"
#include "scheme.h"
namespace MTP { namespace MTP {
namespace internal { namespace internal {

View File

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

View File

@ -38,6 +38,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "auth_session.h" #include "auth_session.h"
#include "messenger.h" #include "messenger.h"
#include "storage/file_download.h" #include "storage/file_download.h"
#include <QImageReader>
namespace { namespace {

View File

@ -20,6 +20,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
*/ */
#pragma once #pragma once
#include "structs.h"
namespace Ui { namespace Ui {
class SendActionAnimation { class SendActionAnimation {

View File

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