Permalink
Browse files

Shortcut for user contributions (C)

  • Loading branch information...
benapetr committed Oct 19, 2015
1 parent 67f4d8d commit cdcb52dce42a10c15430ff7be203c278c6b44dbc
Showing with 8 additions and 0 deletions.
  1. +1 −0 huggle/Localization/en.xml
  2. +3 −0 huggle/configuration.cpp
  3. +1 −0 huggle/configuration.hpp
  4. +3 −0 huggle/mainwindow.cpp
@@ -545,6 +545,7 @@
<string name="shortcut-report-user">Report user</string>
<string name="shortcut-my-talk">My talk page</string>
<string name="shortcut-raw">Revert edit and warn a user</string>
<string name="shortcut-contrib">Show contribution for user who made the currently displayed edit</string>
<string name="shortcut-exit">Terminate Huggle in a usual way</string>
<string name="shortcut-next">Go to the next edit</string>
<string name="shortcut-suspicious">Mark edit as suspicious</string>
View
@@ -100,6 +100,7 @@ Configuration::Configuration()
this->MakeShortcut("main-browser-close-tab", "shortcut-browser-close-tab", "Ctrl+W");
this->MakeShortcut("main-user-report-name", "shortcut-report-username", "Alt+R");
this->MakeShortcut("main-user-report-user", "shortcut-report-user", "Ctrl+R");
this->MakeShortcut("main-user-display-contribs", "shortcut-contrib", "C");
}
Configuration::~Configuration()
@@ -654,6 +655,8 @@ Shortcut::Shortcut(QString name, QString description)
this->ID = HUGGLE_ACCEL_USER_REPORT_USER_NAME;
else if (name == "main-user-report-user")
this->ID = HUGGLE_ACCEL_USER_REPORT;
else if (name == "main-user-display-contribs")
this->ID = HUGGLE_ACCEL_MAIN_USER_CONTRIBUTIONS;
else if (name.startsWith("main-revert-and-warn-"))
{
if (name == "main-revert-and-warn-0")
View
@@ -71,6 +71,7 @@ class QXmlStreamWriter;
#define HUGGLE_ACCEL_MAIN_WATCH 45
#define HUGGLE_ACCEL_MAIN_UNWATCH 46
#define HUGGLE_ACCEL_MAIN_OPEN 48
#define HUGGLE_ACCEL_MAIN_USER_CONTRIBUTIONS 50
#define HUGGLE_ACCEL_CLOSE_TAB 200
#define HUGGLE_ACCEL_CREATE_NEW_TAB 206
#define HUGGLE_ACCEL_USER_REPORT_USER_NAME 300
View
@@ -647,6 +647,9 @@ void MainWindow::ReloadShort(QString id)
q = this->ui->actionRevert_currently_displayed_edit;
tip = this->ui->actionRevert;
break;
case HUGGLE_ACCEL_MAIN_USER_CONTRIBUTIONS:
q = this->ui->actionUser_contributions;
break;
case HUGGLE_ACCEL_CREATE_NEW_TAB:
q = this->ui->actionOpen_new_tab;
break;

0 comments on commit cdcb52d

Please sign in to comment.