cutter/src/dialogs/AboutDialog.cpp

56 lines
1.5 KiB
C++
Raw Normal View History

2017-11-27 20:49:37 +00:00
#include <cutter.h>
2017-10-01 19:09:42 +00:00
#include "AboutDialog.h"
#include "ui_AboutDialog.h"
#include "r_version.h"
#include "utils/Configuration.h"
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
ui->logoSvgWidget->load(Config()->getLogoFile());
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/>"
"Using r2-" R2_GITTAP
"<p><b>Optional Features:</b><br/>"
"Jupyter: %1<br/>"
"QtWebEngine: %2</p>"
"<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/>"
"Based on work by Hugo Teso &lt;hugo.teso@gmail.org&gt; (originally Iaito).")
.arg(
#ifdef CUTTER_ENABLE_JUPYTER
"ON"
#else
"OFF"
#endif
,
#ifdef CUTTER_ENABLE_QTWEBENGINE
"ON"
#else
"OFF"
#endif
));
}
2017-10-02 09:41:28 +00:00
AboutDialog::~AboutDialog() {}
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();
}