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
#include "boxes/abstract_box.h"
#include "core/basic_types.h"
#include "data/data_types.h"
#include "structs.h" // temporarily. (ChannelData
namespace Ui {
class FlatLabel;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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