2016-05-12 16:05:20 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-05-12 16:05:20 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-05-12 16:05:20 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2016-05-19 12:03:51 +00:00
|
|
|
namespace Window {
|
2016-05-12 16:05:20 +00:00
|
|
|
|
2019-06-06 10:21:40 +00:00
|
|
|
class SessionController;
|
2016-05-19 12:03:51 +00:00
|
|
|
class SectionWidget;
|
2017-09-30 18:26:45 +00:00
|
|
|
class LayerWidget;
|
2017-09-16 16:53:41 +00:00
|
|
|
enum class Column;
|
2016-05-12 16:05:20 +00:00
|
|
|
|
2016-05-19 12:03:51 +00:00
|
|
|
class SectionMemento {
|
|
|
|
public:
|
2017-09-30 18:26:45 +00:00
|
|
|
virtual object_ptr<SectionWidget> createWidget(
|
2017-09-13 17:01:23 +00:00
|
|
|
QWidget *parent,
|
2019-06-06 10:21:40 +00:00
|
|
|
not_null<SessionController*> controller,
|
2017-09-16 16:53:41 +00:00
|
|
|
Column column,
|
2017-09-13 17:01:23 +00:00
|
|
|
const QRect &geometry) = 0;
|
|
|
|
|
|
|
|
virtual object_ptr<LayerWidget> createLayer(
|
2019-06-06 10:21:40 +00:00
|
|
|
not_null<SessionController*> controller,
|
2017-09-30 18:26:45 +00:00
|
|
|
const QRect &geometry) {
|
2017-09-13 17:01:23 +00:00
|
|
|
return nullptr;
|
2016-06-06 11:35:49 +00:00
|
|
|
}
|
2017-09-15 17:34:41 +00:00
|
|
|
virtual bool instant() const {
|
|
|
|
return false;
|
|
|
|
}
|
2016-05-12 16:05:20 +00:00
|
|
|
|
2017-09-13 17:01:23 +00:00
|
|
|
virtual ~SectionMemento() = default;
|
|
|
|
|
2016-05-12 16:05:20 +00:00
|
|
|
};
|
2016-05-19 12:03:51 +00:00
|
|
|
|
|
|
|
} // namespace Window
|