Removed some unwanted include directives of lang_keys in header files.

This commit is contained in:
23rd 2023-11-15 02:07:22 +03:00
parent f748de9dc4
commit baa99be6a5
19 changed files with 31 additions and 17 deletions

View File

@ -26,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/painter.h"
#include "ui/vertical_list.h"
#include "storage/localstorage.h"
#include "boxes/abstract_box.h"
#include "boxes/premium_preview_box.h"
#include "boxes/translate_box.h"
#include "ui/boxes/confirm_box.h"

View File

@ -7,8 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "lang/lang_cloud_manager.h"
#include "boxes/abstract_box.h"
#include "ui/layers/box_content.h"
#include "base/binary_guard.h"
struct LanguageId;
@ -37,8 +36,6 @@ protected:
void keyPressEvent(QKeyEvent *e) override;
private:
using Languages = Lang::CloudManager::Languages;
void setupTop(not_null<Ui::VerticalLayout*> container);
[[nodiscard]] int rowsInPage() const;

View File

@ -32,6 +32,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/application.h" // Core::App().domain, .activeWindow.
#include "main/main_domain.h" // Core::App().domain().activate.
#include "main/main_session.h"
#include "lang/lang_keys.h"
#include "info/profile/info_profile_values.h" // Info::Profile::NameValue.
#include "boxes/peers/edit_participants_box.h" // SubscribeToMigration.
#include "boxes/peers/prepare_short_info_box.h" // PrepareShortInfo...

View File

@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "media/player/media_player_instance.h"
#include "media/media_common.h"
#include "ui/gl/gl_detection.h"
#include "lang/lang_keys.h"
#include "calls/group/calls_group_common.h"
#include "spellcheck/spellcheck_types.h"

View File

@ -22,6 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "history/history_item.h"
#include "media/player/media_player_instance.h"
#include "lang/lang_keys.h"
#include "platform/platform_file_utilities.h"
#include "ui/chat/chat_theme.h"
#include "ui/text/text_utilities.h"

View File

@ -20,6 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/random.h"
#include "main/main_session.h"
#include "main/main_account.h"
#include "lang/lang_keys.h"
#include "storage/storage_account.h"
#include "history/history.h"
#include "history/history_item.h"

View File

@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "editor/scene/scene_item_canvas.h"
#include "editor/scene/scene_item_image.h"
#include "editor/scene/scene_item_sticker.h"
#include "lang/lang_keys.h"
#include "lottie/lottie_single_player.h"
#include "storage/storage_media_prepare.h"
#include "ui/chat/attach/attach_prepare.h"

View File

@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "editor/photo_editor_layer_widget.h"
#include "lang/lang_keys.h"
#include "ui/boxes/confirm_box.h" // InformBox
#include "editor/editor_layer_widget.h"
#include "editor/photo_editor.h"

View File

@ -1342,11 +1342,12 @@ void SetupDefaultThemes(
block,
group,
scheme.type,
scheme.name(tr::now),
QString(),
st::settingsTheme,
std::move(check));
scheme.name(
) | rpl::start_with_next([=](const auto &themeName) {
rpl::duplicate(
scheme.name
) | rpl::start_with_next([=](const QString &themeName) {
result->setText(themeName);
}, result->lifetime());
result->addClickHandler([=] {

View File

@ -40,6 +40,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_cloud_themes.h"
#include "data/data_chat_filters.h"
#include "data/data_peer_values.h" // Data::AmPremiumValue
#include "lang/lang_cloud_manager.h"
#include "lang/lang_keys.h"
#include "lang/lang_instance.h"
#include "storage/localstorage.h"

View File

@ -22,6 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mtproto/mtproto_config.h"
#include "mtproto/mtproto_dc_options.h"
#include "mtproto/mtp_instance.h"
#include "lang/lang_keys.h"
#include "history/history.h"
#include "core/application.h"
#include "core/core_settings.h"

View File

@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "editor/photo_editor_common.h"
#include "platform/platform_file_utilities.h"
#include "lang/lang_keys.h"
#include "storage/localimageloader.h"
#include "core/mime_type.h"
#include "ui/image/image_prepare.h"

View File

@ -8,7 +8,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "core/file_utilities.h"
#include "lang/lang_keys.h"
namespace tr {
template <typename ...>
struct phrase;
} // namespace tr
namespace Ui {
struct PreparedFileInformation;

View File

@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/application.h"
#include "core/core_settings.h"
#include "platform/platform_specific.h"
#include "lang/lang_keys.h"
#include <QtWidgets/QApplication>

View File

@ -29,6 +29,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_document_resolver.h"
#include "main/main_account.h" // Account::local.
#include "main/main_domain.h" // Domain::activeSessionValue.
#include "lang/lang_keys.h"
#include "ui/chat/chat_theme.h"
#include "ui/image/image.h"
#include "ui/style/style_palette_colorizer.h"

View File

@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/themes/window_themes_embedded.h"
#include "window/themes/window_theme.h"
#include "lang/lang_keys.h"
#include "storage/serialize_common.h"
#include "core/application.h"
#include "core/core_settings.h"
@ -220,7 +221,7 @@ std::vector<EmbeddedScheme> EmbeddedThemes() {
qColor("ffffff"),
qColor("eaffdc"),
qColor("ffffff"),
tr::lng_settings_theme_classic,
tr::lng_settings_theme_classic(),
QString(),
qColor("40a7e3")
},
@ -231,7 +232,7 @@ std::vector<EmbeddedScheme> EmbeddedThemes() {
qColor("ffffff"),
qColor("d7f0ff"),
qColor("ffffff"),
tr::lng_settings_theme_day,
tr::lng_settings_theme_day(),
":/gui/day-blue.tdesktop-theme",
qColor("40a7e3")
},
@ -242,7 +243,7 @@ std::vector<EmbeddedScheme> EmbeddedThemes() {
qColor("6b808d"),
qColor("6b808d"),
qColor("5ca7d4"),
tr::lng_settings_theme_tinted,
tr::lng_settings_theme_tinted(),
":/gui/night.tdesktop-theme",
qColor("5288c1")
},
@ -253,7 +254,7 @@ std::vector<EmbeddedScheme> EmbeddedThemes() {
qColor("6b808d"),
qColor("6b808d"),
qColor("75bfb5"),
tr::lng_settings_theme_night,
tr::lng_settings_theme_night(),
":/gui/night-green.tdesktop-theme",
qColor("3fc1b0")
},

View File

@ -7,9 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "lang/lang_keys.h"
class QImage;
namespace style {
struct colorizer;
@ -32,7 +29,7 @@ struct EmbeddedScheme {
QColor received;
QColor radiobuttonInactive;
QColor radiobuttonActive;
tr::phrase<> name;
rpl::producer<QString> name;
QString path;
QColor accentColor;
};
@ -69,4 +66,4 @@ void Colorize(
[[nodiscard]] Fn<void(style::palette&)> PrepareCurrentPaletteCallback();
} // namespace Theme
} // namespace Window
} // namespace Window

View File

@ -19,6 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_session_settings.h"
#include "main/main_app_config.h"
#include "media/view/media_view_open_common.h"
#include "lang/lang_keys.h"
#include "intro/intro_widget.h"
#include "mtproto/mtproto_config.h"
#include "ui/layers/box_content.h"

View File

@ -74,6 +74,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_domain.h"
#include "main/main_session.h"
#include "main/main_session_settings.h"
#include "lang/lang_keys.h"
#include "apiwrap.h"
#include "api/api_chat_invite.h"
#include "api/api_global_privacy.h"