2020-09-23 12:21:05 +01:00
|
|
|
#include "changelog_page.hpp"
|
2020-10-05 23:53:12 +01:00
|
|
|
|
|
|
|
namespace i18n = brls::i18n;
|
|
|
|
using namespace i18n::literals;
|
2020-09-23 12:21:05 +01:00
|
|
|
ChangelogPage::ChangelogPage() : AppletFrame(true, true)
|
|
|
|
{
|
2020-10-05 23:53:12 +01:00
|
|
|
this->setTitle("menus/Changelog"_i18n );
|
2020-09-23 12:21:05 +01:00
|
|
|
list = new brls::List();
|
|
|
|
std::vector<std::string> verTitles;
|
|
|
|
std::string change;
|
|
|
|
std::vector<std::string> changes;
|
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_0_1"_i18n );
|
|
|
|
changes.push_back("menus/v1_0_1_text"_i18n );
|
2020-09-23 12:21:05 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_0_2"_i18n );
|
|
|
|
changes.push_back("menus/v1_0_2_text"_i18n );
|
2020-09-23 12:21:05 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_0_3"_i18n );
|
|
|
|
changes.push_back("menus/v1_0_3_text"_i18n );
|
2020-09-23 12:21:05 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_1_0"_i18n );
|
|
|
|
changes.push_back("menus/v1_1_0_text"_i18n );
|
2020-09-23 12:21:05 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_1_1"_i18n );
|
|
|
|
changes.push_back("menus/v1_1_1_text"_i18n );
|
2020-09-23 12:21:05 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_1_2"_i18n );
|
|
|
|
changes.push_back("menus/v1_1_2_text"_i18n );
|
2020-09-26 15:55:24 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_1_3"_i18n );
|
|
|
|
changes.push_back("menus/v1_1_3_text"_i18n );
|
2020-09-29 15:41:43 +01:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
verTitles.push_back("menus/v1_2_0"_i18n );
|
|
|
|
changes.push_back("menus/v1_2_0_text"_i18n );
|
|
|
|
|
|
|
|
verTitles.push_back("menus/v1_2_1"_i18n );
|
|
|
|
changes.push_back("menus/v1_2_1_text"_i18n );
|
2020-10-05 16:14:10 +01:00
|
|
|
|
2020-10-06 14:19:19 +01:00
|
|
|
verTitles.push_back("menus/v1_2_2"_i18n );
|
|
|
|
changes.push_back("menus/v1_2_2_text"_i18n );
|
|
|
|
|
2020-10-07 01:51:29 +01:00
|
|
|
verTitles.push_back("menus/v1_2_4"_i18n );
|
|
|
|
changes.push_back("menus/v1_2_4_text"_i18n );
|
2020-10-07 01:08:39 +01:00
|
|
|
|
2020-10-09 21:27:18 +01:00
|
|
|
verTitles.push_back("menus/v1_2_5"_i18n );
|
|
|
|
changes.push_back("menus/v1_2_5_text"_i18n );
|
|
|
|
|
2020-10-11 20:02:02 +01:00
|
|
|
verTitles.push_back("menus/v1_2_6"_i18n );
|
|
|
|
changes.push_back("menus/v1_2_6_text"_i18n );
|
|
|
|
|
2020-12-12 15:41:56 +00:00
|
|
|
verTitles.push_back("menus/v1_3_0"_i18n );
|
|
|
|
changes.push_back("menus/v1_3_0_text"_i18n );
|
|
|
|
|
2020-12-13 13:52:51 +00:00
|
|
|
verTitles.push_back("menus/v1_3_1"_i18n );
|
|
|
|
changes.push_back("menus/v1_3_1_text"_i18n );
|
|
|
|
|
2020-12-28 23:32:58 +00:00
|
|
|
verTitles.push_back("menus/v1_3_2"_i18n );
|
|
|
|
changes.push_back("menus/v1_3_2_text"_i18n );
|
2020-12-27 17:11:40 +00:00
|
|
|
|
2021-01-02 23:22:45 +00:00
|
|
|
verTitles.push_back("menus/v1_4_0"_i18n );
|
|
|
|
changes.push_back("menus/v1_4_0_text"_i18n );
|
|
|
|
|
2021-01-03 13:23:27 +00:00
|
|
|
verTitles.push_back("menus/v1_4_1"_i18n );
|
|
|
|
changes.push_back("menus/v1_4_1_text"_i18n );
|
|
|
|
|
2021-01-17 17:26:20 +00:00
|
|
|
verTitles.push_back("menus/v1_4_2"_i18n );
|
|
|
|
changes.push_back("menus/v1_4_2_text"_i18n );
|
|
|
|
|
2021-01-18 16:24:36 +00:00
|
|
|
verTitles.push_back("menus/v1_4_3"_i18n );
|
|
|
|
changes.push_back("menus/v1_4_3_text"_i18n );
|
|
|
|
|
2021-01-28 19:26:41 +00:00
|
|
|
verTitles.push_back("menus/v1_5_0"_i18n );
|
|
|
|
changes.push_back("menus/v1_5_0_text"_i18n );
|
|
|
|
|
2021-01-29 21:14:40 +00:00
|
|
|
verTitles.push_back("menus/v1_5_1"_i18n );
|
|
|
|
changes.push_back("menus/v1_5_1_text"_i18n );
|
|
|
|
|
2021-01-30 15:45:32 +00:00
|
|
|
verTitles.push_back("menus/v1_5_2"_i18n );
|
|
|
|
changes.push_back("menus/v1_5_2_text"_i18n );
|
|
|
|
|
2021-02-06 17:24:47 +00:00
|
|
|
verTitles.push_back("menus/v2_0_0"_i18n );
|
|
|
|
changes.push_back("menus/v2_0_0_text"_i18n );
|
|
|
|
|
2021-02-07 15:56:36 +00:00
|
|
|
verTitles.push_back("menus/v2_0_1"_i18n );
|
|
|
|
changes.push_back("menus/v2_0_1_text"_i18n );
|
|
|
|
|
2021-02-09 14:10:12 +00:00
|
|
|
verTitles.push_back("v2.1.0");
|
2021-02-08 20:30:58 +00:00
|
|
|
changes.push_back("menus/v2_1_0_text"_i18n );
|
|
|
|
|
2021-02-09 14:10:12 +00:00
|
|
|
verTitles.push_back("v2.1.1");
|
|
|
|
changes.push_back("menus/v2_1_1_text"_i18n );
|
|
|
|
|
2021-02-10 02:57:42 +00:00
|
|
|
verTitles.push_back("v2.1.2");
|
|
|
|
changes.push_back("menus/v2_1_2_text"_i18n );
|
|
|
|
|
2021-02-10 17:41:13 +00:00
|
|
|
verTitles.push_back("v2.2.0");
|
|
|
|
changes.push_back("menus/v2_2_0_text"_i18n );
|
|
|
|
|
2021-02-11 12:45:35 +00:00
|
|
|
verTitles.push_back("v2.2.1");
|
|
|
|
changes.push_back("menus/v2_2_1_text"_i18n );
|
|
|
|
|
2021-02-12 22:42:22 +00:00
|
|
|
verTitles.push_back("v2.3.0");
|
|
|
|
changes.push_back("menus/v2_3_0_text"_i18n );
|
|
|
|
|
2021-02-10 17:41:13 +00:00
|
|
|
|
|
|
|
|
2020-09-23 12:21:05 +01:00
|
|
|
int nbVersions = verTitles.size();
|
|
|
|
items.reserve(nbVersions);
|
|
|
|
for(int i = nbVersions -1 ; i >= 0; i--){
|
|
|
|
items[i] = new brls::ListItem(verTitles[i]);
|
|
|
|
change = changes[i];
|
|
|
|
items[i]->getClickEvent()->subscribe([&, change](brls::View* view){
|
|
|
|
brls::Dialog* dialog = new brls::Dialog(change);
|
|
|
|
brls::GenericEvent::Callback callback = [dialog](brls::View* view) {
|
|
|
|
dialog->close();
|
|
|
|
};
|
2020-10-05 23:53:12 +01:00
|
|
|
dialog->addButton("menus/Ok_button"_i18n , callback);
|
2020-09-23 12:21:05 +01:00
|
|
|
dialog->setCancelable(true);
|
|
|
|
dialog->open();
|
|
|
|
});
|
|
|
|
list->addView(items[i]);
|
|
|
|
}
|
|
|
|
this->setContentView(list);
|
|
|
|
}
|