2018-03-04 17:42:02 +00:00
|
|
|
#include <Cutter.h>
|
2017-10-01 19:09:42 +00:00
|
|
|
#include "AboutDialog.h"
|
|
|
|
#include "ui_AboutDialog.h"
|
2017-04-05 02:12:00 +00:00
|
|
|
#include "r_version.h"
|
2018-02-12 12:59:47 +00:00
|
|
|
#include "utils/Configuration.h"
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2017-03-31 00:51:14 +00:00
|
|
|
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
2018-02-12 12:59:47 +00:00
|
|
|
ui->logoSvgWidget->load(Config()->getLogoFile());
|
2017-12-03 20:01:11 +00:00
|
|
|
|
2017-09-25 12:55:41 +00:00
|
|
|
ui->label->setText(tr("<h1>Cutter</h1>"
|
2017-11-27 20:59:29 +00:00
|
|
|
"Version " CUTTER_VERSION "<br/>"
|
2017-09-27 20:23:18 +00:00
|
|
|
"Using r2-" R2_GITTAP
|
2018-03-02 14:10:50 +00:00
|
|
|
"<p><b>Optional Features:</b><br/>"
|
|
|
|
"Jupyter: %1<br/>"
|
|
|
|
"QtWebEngine: %2</p>"
|
2017-09-27 20:23:18 +00:00
|
|
|
"<h2>License</h2>"
|
|
|
|
"This Software is released under the GNU General Public License v3.0"
|
|
|
|
"<h2>Authors</h2>"
|
2017-11-27 17:10:25 +00:00
|
|
|
"xarkes, thestr4ng3r, ballessay<br/>"
|
2018-03-02 14:10:50 +00:00
|
|
|
"Based on work by Hugo Teso <hugo.teso@gmail.org> (originally Iaito).")
|
|
|
|
.arg(
|
|
|
|
#ifdef CUTTER_ENABLE_JUPYTER
|
|
|
|
"ON"
|
|
|
|
#else
|
|
|
|
"OFF"
|
|
|
|
#endif
|
|
|
|
,
|
|
|
|
#ifdef CUTTER_ENABLE_QTWEBENGINE
|
|
|
|
"ON"
|
|
|
|
#else
|
|
|
|
"OFF"
|
|
|
|
#endif
|
|
|
|
));
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
2017-10-02 09:41:28 +00:00
|
|
|
AboutDialog::~AboutDialog() {}
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
void AboutDialog::on_buttonBox_rejected()
|
|
|
|
{
|
|
|
|
close();
|
|
|
|
}
|
2017-12-15 16:09:04 +00:00
|
|
|
|
|
|
|
void AboutDialog::on_showVersionButton_clicked()
|
|
|
|
{
|
|
|
|
QMessageBox popup(this);
|
|
|
|
popup.setWindowTitle("radare2 version information");
|
|
|
|
auto versionInformation = Core()->getVersionInformation();
|
|
|
|
popup.setText(versionInformation);
|
|
|
|
popup.exec();
|
|
|
|
}
|