#include "about.h"
#include "ui_about.h"

About::About(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::About)
{
    ui->setupUi(this);
    this->setAttribute(Qt::WA_DeleteOnClose,true ); //destroy itself once finished.
    ui->lbAbout->setText("<html>"
                         "<p style='font-size:x-large;'><b>Vago GUI " + GlobalVars::AppVersion + "</b></p>"
                         "<p style='font-size:large;line-height: 18px;'>"
                         "Written by s10k<br /><br/>"
                         "Build Date " + __DATE__ + " " + __TIME__ + "<br /><br />"
                         "Thanks to:<br/>"
                         "Neo for OniSplit<br />"
                         "EdT for testing, suggestions and icon<br />"
                         "Iritscen for testing, bugfixing and suggestions<br />"
                         "demos_kratos for original OniSplit GUI<br />"
                         "Samer/Mukade/EdT for allow me to use Jubei as icon<br />"
                         "Alloc for AIE2 and support<br />"
                         "Paradox for Sound documentation and testing<br />"
                         "Wiki contributors for the documentation<br />"
                         "AE contributors<br />"
                         "and in general to all OniCentral Community<br /><br/>"
                         "Also thanks to: <br />"
                         "StackOverflow Community<br />"
                         "Sergey A. Tachenov for the QuaZIP library<br />"
                         "Antonio Borondo for the documentation how to setup QuaZIP<br />"
                         "Arseny Kapoulkine (and contributors)for pugixml library<br />"
                         "smashingmagazine for the folder icon :)<br />"
                         "Freepik and Flaticon by the background image wizard and text editing icons<br />"
                         "qtiplot authors for line numbers in QTextEdit<br />"
                         "d1vanov for basic-xml-syntax-highlighter class <br />"
                         "</p>"
                         "</html>"); // Don't use rich text in qtdesigner because it generates platform dependent code

    ui->lbOniCommunity->setText("<html>"
                                "<p style='font-size:large;'>"
                                "<center>"
                                "Visit us at:<br />"
                                "<a href='http://oni.bungie.org'>"
                                "oni.bungie.org"
                                "</a>"
                                "</center>"
                                "</p>"
                                "</html>"
                                );
}

About::~About()
{
    delete ui;
}

void About::on_pushButton_clicked()
{
    this->close();
}
