1
0
Fork 0

GUI: report bug option + small GUI changes

This commit is contained in:
Mr. eXoDia 2015-02-04 02:02:42 +01:00
parent dd82db43cc
commit e46c3d879d
6 changed files with 36 additions and 2 deletions

View File

@ -186,6 +186,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi
connect(ui->actionCheckUpdates, SIGNAL(triggered()), this, SLOT(checkUpdates())); connect(ui->actionCheckUpdates, SIGNAL(triggered()), this, SLOT(checkUpdates()));
connect(ui->actionCallStack, SIGNAL(triggered()), this, SLOT(displayCallstack())); connect(ui->actionCallStack, SIGNAL(triggered()), this, SLOT(displayCallstack()));
connect(ui->actionDonate, SIGNAL(triggered()), this, SLOT(donate())); connect(ui->actionDonate, SIGNAL(triggered()), this, SLOT(donate()));
connect(ui->actionReportBug, SIGNAL(triggered()), this, SLOT(reportBug()));
connect(ui->actionAttach, SIGNAL(triggered()), this, SLOT(displayAttach())); connect(ui->actionAttach, SIGNAL(triggered()), this, SLOT(displayAttach()));
connect(ui->actionDetach, SIGNAL(triggered()), this, SLOT(detach())); connect(ui->actionDetach, SIGNAL(triggered()), this, SLOT(detach()));
connect(ui->actionChangeCommandLine, SIGNAL(triggered()), this, SLOT(changeCommandLine())); connect(ui->actionChangeCommandLine, SIGNAL(triggered()), this, SLOT(changeCommandLine()));
@ -301,6 +302,7 @@ void MainWindow::refreshShortcuts()
ui->actionDonate->setShortcut(ConfigShortcut("HelpDonate")); ui->actionDonate->setShortcut(ConfigShortcut("HelpDonate"));
ui->actionCheckUpdates->setShortcut(ConfigShortcut("HelpCheckForUpdates")); ui->actionCheckUpdates->setShortcut(ConfigShortcut("HelpCheckForUpdates"));
ui->actionCalculator->setShortcut(ConfigShortcut("HelpCalculator")); ui->actionCalculator->setShortcut(ConfigShortcut("HelpCalculator"));
ui->actionReportBug->setShortcut(ConfigShortcut("HelpReportBug"));
ui->actionStrings->setShortcut(ConfigShortcut("ActionFindStrings")); ui->actionStrings->setShortcut(ConfigShortcut("ActionFindStrings"));
ui->actionCalls->setShortcut(ConfigShortcut("ActionFindIntermodularCalls")); ui->actionCalls->setShortcut(ConfigShortcut("ActionFindIntermodularCalls"));
@ -969,7 +971,20 @@ void MainWindow::donate()
msg.setDefaultButton(QMessageBox::Ok); msg.setDefaultButton(QMessageBox::Ok);
if(msg.exec() != QMessageBox::Ok) if(msg.exec() != QMessageBox::Ok)
return; return;
QDesktopServices::openUrl(QUrl("https://blockchain.info/address/1GuXgtCrLk4aYgivAT7xAi8zVHWk5CkEoY")); QDesktopServices::openUrl(QUrl("http://donate.x64dbg.com"));
}
void MainWindow::reportBug()
{
QMessageBox msg(QMessageBox::Information, "Report Bug", "You will be taken to a website where you can report a bug.\nMake sure to fill in as much information as possible.");
msg.setWindowIcon(QIcon(":/icons/images/bug-report.png"));
msg.setParent(this, Qt::Dialog);
msg.setWindowFlags(msg.windowFlags() & (~Qt::WindowContextHelpButtonHint));
msg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
msg.setDefaultButton(QMessageBox::Ok);
if(msg.exec() != QMessageBox::Ok)
return;
QDesktopServices::openUrl(QUrl("http://report.x64dbg.com"));
} }
void MainWindow::displayAttach() void MainWindow::displayAttach()

View File

@ -91,6 +91,7 @@ public slots:
void openShortcuts(); void openShortcuts();
void changeTopmost(bool checked); void changeTopmost(bool checked);
void donate(); void donate();
void reportBug();
void displayAttach(); void displayAttach();
void detach(); void detach();
void changeCommandLine(); void changeCommandLine();

View File

@ -91,6 +91,7 @@
<addaction name="actionCalculator"/> <addaction name="actionCalculator"/>
<addaction name="actionCheckUpdates"/> <addaction name="actionCheckUpdates"/>
<addaction name="actionDonate"/> <addaction name="actionDonate"/>
<addaction name="actionReportBug"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionAbout"/> <addaction name="actionAbout"/>
</widget> </widget>
@ -165,8 +166,11 @@
<addaction name="actionStrings"/> <addaction name="actionStrings"/>
<addaction name="actionCalls"/> <addaction name="actionCalls"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionCheckUpdates"/>
<addaction name="actionCalculator"/> <addaction name="actionCalculator"/>
<addaction name="actionCheckUpdates"/>
<addaction name="actionDonate"/>
<addaction name="actionReportBug"/>
<addaction name="actionAbout"/>
</widget> </widget>
<widget class="QStatusBar" name="statusBar"/> <widget class="QStatusBar" name="statusBar"/>
<widget class="QToolBar" name="cmdBar"> <widget class="QToolBar" name="cmdBar">
@ -633,6 +637,18 @@
<string>Topmost Window</string> <string>Topmost Window</string>
</property> </property>
</action> </action>
<action name="actionReportBug">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/icons/images/bug-report.png</normaloff>:/icons/images/bug-report.png</iconset>
</property>
<property name="text">
<string>&amp;Report Bug</string>
</property>
<property name="toolTip">
<string>Report Bug</string>
</property>
</action>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
<resources> <resources>

View File

@ -221,6 +221,7 @@ Configuration::Configuration() : QObject()
defaultShortcuts.insert("HelpDonate", Shortcut(tr("Help -> Donate"), "", true)); defaultShortcuts.insert("HelpDonate", Shortcut(tr("Help -> Donate"), "", true));
defaultShortcuts.insert("HelpCheckForUpdates", Shortcut(tr("Help -> Check for Updates"), "", true)); defaultShortcuts.insert("HelpCheckForUpdates", Shortcut(tr("Help -> Check for Updates"), "", true));
defaultShortcuts.insert("HelpCalculator", Shortcut(tr("Help -> Calculator"), "?")); defaultShortcuts.insert("HelpCalculator", Shortcut(tr("Help -> Calculator"), "?"));
defaultShortcuts.insert("HelpReportBug", Shortcut(tr("Help -> Report Bug"), "", true));
defaultShortcuts.insert("ActionFindStrings", Shortcut(tr("Actions -> Find Strings"), "", true)); defaultShortcuts.insert("ActionFindStrings", Shortcut(tr("Actions -> Find Strings"), "", true));
defaultShortcuts.insert("ActionFindIntermodularCalls", Shortcut(tr("Actions -> Find Intermodular Calls"), "", true)); defaultShortcuts.insert("ActionFindIntermodularCalls", Shortcut(tr("Actions -> Find Intermodular Calls"), "", true));

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

View File

@ -50,5 +50,6 @@
<file>images/arrow-skip.png</file> <file>images/arrow-skip.png</file>
<file>images/topmost.png</file> <file>images/topmost.png</file>
<file>images/close-all-tabs.png</file> <file>images/close-all-tabs.png</file>
<file>images/bug-report.png</file>
</qresource> </qresource>
</RCC> </RCC>