2014-05-30 08:53:19 +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.
|
2014-05-30 08:53:19 +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
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-15 00:52:41 +00:00
|
|
|
#include "ui/layers/box_content.h"
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2016-11-11 13:46:04 +00:00
|
|
|
namespace Ui {
|
|
|
|
class LinkButton;
|
2016-11-16 10:44:06 +00:00
|
|
|
class FlatLabel;
|
2016-11-11 13:46:04 +00:00
|
|
|
} // namespace Ui
|
|
|
|
|
2019-09-18 11:19:05 +00:00
|
|
|
class AboutBox : public Ui::BoxContent {
|
2014-05-30 08:53:19 +00:00
|
|
|
public:
|
2016-12-13 17:07:56 +00:00
|
|
|
AboutBox(QWidget*);
|
2015-10-12 21:02:10 +00:00
|
|
|
|
2015-04-02 10:33:19 +00:00
|
|
|
protected:
|
2016-12-13 17:07:56 +00:00
|
|
|
void prepare() override;
|
|
|
|
|
2016-08-16 16:53:10 +00:00
|
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
|
|
void keyPressEvent(QKeyEvent *e) override;
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2015-04-02 10:33:19 +00:00
|
|
|
private:
|
2016-12-13 17:07:56 +00:00
|
|
|
void showVersionHistory();
|
|
|
|
|
|
|
|
object_ptr<Ui::LinkButton> _version;
|
|
|
|
object_ptr<Ui::FlatLabel> _text1;
|
|
|
|
object_ptr<Ui::FlatLabel> _text2;
|
|
|
|
object_ptr<Ui::FlatLabel> _text3;
|
2016-08-16 16:53:10 +00:00
|
|
|
|
2014-05-30 08:53:19 +00:00
|
|
|
};
|
2015-10-12 21:02:10 +00:00
|
|
|
|
|
|
|
QString telegramFaqLink();
|
2016-11-16 10:44:06 +00:00
|
|
|
QString currentVersionText();
|