Skip to content

Commit

Permalink
layerwidget: drop #include "structs.h"
Browse files Browse the repository at this point in the history
Also add missing headers to the lots of files (they were in structs.h,
but we reduce dependencies).
Related to #174.
  • Loading branch information
leha-bot committed Jul 24, 2019
1 parent 8b03593 commit e28af6e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/boxes/edit_participant_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions Telegram/SourceFiles/boxes/passcode_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#pragma once

#include "boxes/abstract_box.h"
#include "ui/text/text.h"

namespace Ui {
class InputField;
Expand Down
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/boxes/photo_crop_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include "boxes/abstract_box.h"

#include "structs.h" // temporarily, need PeerId.

class PhotoCropBox : public BoxContent {
Q_OBJECT

Expand Down
3 changes: 3 additions & 0 deletions Telegram/SourceFiles/boxes/share_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions Telegram/SourceFiles/boxes/username_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#pragma once

#include "boxes/abstract_box.h"
#include "ui/text/text.h"

namespace Ui {
class UsernameInput;
Expand Down
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/layerwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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;
Expand Down

0 comments on commit e28af6e

Please sign in to comment.