2014-05-30 12:53:19 +04:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2014-05-30 12:53:19 +04:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2014-05-30 12:53:19 +04:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-04-06 17:38:10 +03:00
|
|
|
#include "boxes/abstract_box.h"
|
2014-05-30 12:53:19 +04:00
|
|
|
|
2016-11-11 16:46:04 +03:00
|
|
|
namespace Ui {
|
|
|
|
class LinkButton;
|
2016-11-16 13:44:06 +03:00
|
|
|
class FlatLabel;
|
2016-11-11 16:46:04 +03:00
|
|
|
} // namespace Ui
|
|
|
|
|
2019-09-18 14:19:05 +03:00
|
|
|
class AboutBox : public Ui::BoxContent {
|
2014-05-30 12:53:19 +04:00
|
|
|
public:
|
2016-12-13 20:07:56 +03:00
|
|
|
AboutBox(QWidget*);
|
2015-10-12 23:02:10 +02:00
|
|
|
|
2015-04-02 13:33:19 +03:00
|
|
|
protected:
|
2016-12-13 20:07:56 +03:00
|
|
|
void prepare() override;
|
|
|
|
|
2016-08-16 19:53:10 +03:00
|
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
|
|
void keyPressEvent(QKeyEvent *e) override;
|
2014-05-30 12:53:19 +04:00
|
|
|
|
2015-04-02 13:33:19 +03:00
|
|
|
private:
|
2016-12-13 20:07:56 +03: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 19:53:10 +03:00
|
|
|
|
2014-05-30 12:53:19 +04:00
|
|
|
};
|
2015-10-12 23:02:10 +02:00
|
|
|
|
|
|
|
QString telegramFaqLink();
|
2016-11-16 13:44:06 +03:00
|
|
|
QString currentVersionText();
|