2018-09-05 22:05:49 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-15 00:54:32 +03:00
|
|
|
#include "settings/settings_common_session.h"
|
2018-09-05 22:05:49 +03:00
|
|
|
|
2020-07-22 16:10:17 +04:00
|
|
|
namespace Window {
|
|
|
|
class Controller;
|
|
|
|
} // namespace Window
|
|
|
|
|
2018-09-05 22:05:49 +03:00
|
|
|
namespace Settings {
|
|
|
|
|
2019-07-24 16:00:30 +02:00
|
|
|
void SetupDataStorage(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
not_null<Ui::VerticalLayout*> container);
|
|
|
|
void SetupAutoDownload(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
not_null<Ui::VerticalLayout*> container);
|
2020-07-22 16:10:17 +04:00
|
|
|
void SetupDefaultThemes(
|
|
|
|
not_null<Window::Controller*> window,
|
|
|
|
not_null<Ui::VerticalLayout*> container);
|
2019-07-24 16:00:30 +02:00
|
|
|
void SetupSupport(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
not_null<Ui::VerticalLayout*> container);
|
2022-02-18 19:26:57 +03:00
|
|
|
void SetupExport(
|
|
|
|
not_null<Window::SessionController*> controller,
|
2023-08-14 14:04:33 +02:00
|
|
|
not_null<Ui::VerticalLayout*> container,
|
|
|
|
Fn<void(Type)> showOther);
|
2018-09-11 21:07:04 +03:00
|
|
|
|
2023-01-23 23:55:24 +03:00
|
|
|
void PaintRoundColorButton(
|
|
|
|
QPainter &p,
|
|
|
|
int size,
|
|
|
|
QBrush brush,
|
|
|
|
float64 selected);
|
2023-01-14 08:11:50 +03:00
|
|
|
|
2022-04-01 15:53:23 +04:00
|
|
|
class Chat : public Section<Chat> {
|
2018-09-05 22:05:49 +03:00
|
|
|
public:
|
2019-07-24 16:00:30 +02:00
|
|
|
Chat(QWidget *parent, not_null<Window::SessionController*> controller);
|
2018-09-05 22:05:49 +03:00
|
|
|
|
2022-04-13 12:05:10 +04:00
|
|
|
[[nodiscard]] rpl::producer<QString> title() override;
|
2022-04-01 15:53:23 +04:00
|
|
|
|
2024-03-01 22:18:01 +04:00
|
|
|
void fillTopBarMenu(
|
2024-02-28 14:55:28 +04:00
|
|
|
const Ui::Menu::MenuCallback &addAction) override;
|
|
|
|
|
2018-09-05 22:05:49 +03:00
|
|
|
private:
|
2019-07-24 16:00:30 +02:00
|
|
|
void setupContent(not_null<Window::SessionController*> controller);
|
2018-09-05 22:05:49 +03:00
|
|
|
|
2024-02-28 14:55:28 +04:00
|
|
|
const not_null<Window::SessionController*> _controller;
|
|
|
|
|
2018-09-05 22:05:49 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Settings
|