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 #174.
This commit is contained in:
leha-bot 2019-07-24 00:46:51 +03:00 committed by Alex
parent 620d46393a
commit 0e1f7d1a46
7 changed files with 18 additions and 1 deletions

View File

@ -23,6 +23,10 @@
#pragma once #pragma once
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"
#include "core/basic_types.h"
#include "data/data_types.h"
#include "structs.h" // temporarily. (ChannelData
namespace Ui { namespace Ui {
class FlatLabel; class FlatLabel;

View File

@ -23,6 +23,7 @@
#pragma once #pragma once
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"
#include "ui/text/text.h"
namespace Ui { namespace Ui {
class InputField; class InputField;

View File

@ -24,6 +24,8 @@
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"
#include "structs.h" // temporarily, need PeerId.
class PhotoCropBox : public BoxContent { class PhotoCropBox : public BoxContent {
Q_OBJECT Q_OBJECT

View File

@ -25,6 +25,9 @@
#include "base/observer.h" #include "base/observer.h"
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"
#include "ui/effects/round_checkbox.h" #include "ui/effects/round_checkbox.h"
#include "ui/text/text.h"
#include "structs.h" // temporarily: FullMsgId, CharData
namespace Dialogs { namespace Dialogs {
class Row; class Row;

View File

@ -23,6 +23,7 @@
#pragma once #pragma once
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"
#include "ui/text/text.h"
namespace Ui { namespace Ui {
class UsernameInput; class UsernameInput;

View File

@ -24,10 +24,12 @@
#include <QMouseEvent> #include <QMouseEvent>
#include "structs.h" // #include "structs.h"
#include "ui/animation.h" #include "ui/animation.h"
#include "ui/twidget.h" #include "ui/twidget.h"
class PhotoData;
class BoxContent; class BoxContent;
namespace Window { namespace Window {

View File

@ -23,6 +23,7 @@
#pragma once #pragma once
#include "core/single_timer.h" #include "core/single_timer.h"
#include "core/click_handler.h"
#include "platform/platform_main_window.h" #include "platform/platform_main_window.h"
#include "platform/platform_specific.h" #include "platform/platform_specific.h"
#include <QCheckBox> #include <QCheckBox>
@ -32,9 +33,12 @@
#include <QPaintEvent> #include <QPaintEvent>
#include <QPushButton> #include <QPushButton>
#include <QSystemTrayIcon> #include <QSystemTrayIcon>
#include <QTextEdit>
#include "layerwidget.h" #include "layerwidget.h"
#include "ui/twidget.h" #include "ui/twidget.h"
#include "ui/text/text_entity.h"
class PasscodeWidget; class PasscodeWidget;
class MainWidget; class MainWidget;