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
|
|
|
*/
|
2016-04-21 20:57:29 +03:00
|
|
|
#include "intro/introstart.h"
|
2014-05-30 12:53:19 +04:00
|
|
|
|
2017-04-13 11:27:10 +03:00
|
|
|
#include "lang/lang_keys.h"
|
2016-03-14 19:59:18 +03:00
|
|
|
#include "intro/introphone.h"
|
2016-11-11 16:46:04 +03:00
|
|
|
#include "ui/widgets/buttons.h"
|
2016-11-16 13:44:06 +03:00
|
|
|
#include "ui/widgets/labels.h"
|
2014-12-20 00:20:30 +03:00
|
|
|
|
2016-11-24 22:28:23 +03:00
|
|
|
namespace Intro {
|
2014-12-20 00:20:30 +03:00
|
|
|
|
2016-11-24 22:28:23 +03:00
|
|
|
StartWidget::StartWidget(QWidget *parent, Widget::Data *data) : Step(parent, data, true) {
|
2014-05-30 12:53:19 +04:00
|
|
|
setMouseTracking(true);
|
2017-05-30 16:54:05 +03:00
|
|
|
setTitleText([] { return qsl("Telegram Desktop"); });
|
2017-05-30 18:21:05 +03:00
|
|
|
setDescriptionText(langFactory(lng_intro_about));
|
2016-11-24 22:28:23 +03:00
|
|
|
show();
|
2014-05-30 12:53:19 +04:00
|
|
|
}
|
|
|
|
|
2016-11-24 22:28:23 +03:00
|
|
|
void StartWidget::submit() {
|
|
|
|
goNext(new Intro::PhoneWidget(parentWidget(), getData()));
|
2014-05-30 12:53:19 +04:00
|
|
|
}
|
|
|
|
|
2016-11-24 22:28:23 +03:00
|
|
|
QString StartWidget::nextButtonText() const {
|
|
|
|
return lang(lng_start_msgs);
|
2014-05-30 12:53:19 +04:00
|
|
|
}
|
|
|
|
|
2016-11-24 22:28:23 +03:00
|
|
|
} // namespace Intro
|