Permalink
Browse files

more shortcuts for drop downs

  • Loading branch information...
benapetr committed Jun 2, 2016
1 parent 93c3d2f commit ae605bb3dac03f7bddbe51439ceea7543851c67e
Showing with 105 additions and 0 deletions.
  1. +45 −0 huggle/configuration.cpp
  2. +15 −0 huggle/configuration.hpp
  3. +45 −0 huggle/mainwindow.cpp
View
@@ -66,6 +66,11 @@ Configuration::Configuration()
this->MakeShortcut("main-revert-and-warn-7", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-8", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-9", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-10", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-11", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-12", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-13", "shortcut-x-raw");
this->MakeShortcut("main-revert-and-warn-14", "shortcut-x-raw");
this->MakeShortcut("main-warn-0", "shortcut-x-warn");
this->MakeShortcut("main-warn-1", "shortcut-x-warn");
this->MakeShortcut("main-warn-2", "shortcut-x-warn");
@@ -76,6 +81,11 @@ Configuration::Configuration()
this->MakeShortcut("main-warn-7", "shortcut-x-warn");
this->MakeShortcut("main-warn-8", "shortcut-x-warn");
this->MakeShortcut("main-warn-9", "shortcut-x-warn");
this->MakeShortcut("main-warn-10", "shortcut-x-warn");
this->MakeShortcut("main-warn-11", "shortcut-x-warn");
this->MakeShortcut("main-warn-12", "shortcut-x-warn");
this->MakeShortcut("main-warn-13", "shortcut-x-warn");
this->MakeShortcut("main-warn-14", "shortcut-x-warn");
this->MakeShortcut("main-revert-0", "shortcut-x-revert");
this->MakeShortcut("main-revert-1", "shortcut-x-revert");
this->MakeShortcut("main-revert-2", "shortcut-x-revert");
@@ -86,6 +96,11 @@ Configuration::Configuration()
this->MakeShortcut("main-revert-7", "shortcut-x-revert");
this->MakeShortcut("main-revert-8", "shortcut-x-revert");
this->MakeShortcut("main-revert-9", "shortcut-x-revert");
this->MakeShortcut("main-revert-10", "shortcut-x-revert");
this->MakeShortcut("main-revert-11", "shortcut-x-revert");
this->MakeShortcut("main-revert-12", "shortcut-x-revert");
this->MakeShortcut("main-revert-13", "shortcut-x-revert");
this->MakeShortcut("main-revert-14", "shortcut-x-revert");
this->MakeShortcut("main-talk", "shortcut-talk", "T");
this->MakeShortcut("main-mytalk", "shortcut-my-talk", "Alt+M");
this->MakeShortcut("main-open-in-browser", "shortcut-open", "O");
@@ -637,6 +652,16 @@ Shortcut::Shortcut(QString name, QString description)
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN8;
else if (name == "main-revert-and-warn-9")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN9;
else if (name == "main-revert-and-warn-10")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN10;
else if (name == "main-revert-and-warn-11")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN11;
else if (name == "main-revert-and-warn-12")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN12;
else if (name == "main-revert-and-warn-13")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN13;
else if (name == "main-revert-and-warn-14")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_AND_WARN14;
} else if (name.startsWith("main-revert-"))
{
if (name == "main-revert-0")
@@ -659,6 +684,16 @@ Shortcut::Shortcut(QString name, QString description)
this->ID = HUGGLE_ACCEL_MAIN_REVERT_8;
else if (name == "main-revert-9")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_9;
else if (name == "main-revert-10")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_10;
else if (name == "main-revert-11")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_11;
else if (name == "main-revert-12")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_12;
else if (name == "main-revert-13")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_13;
else if (name == "main-revert-14")
this->ID = HUGGLE_ACCEL_MAIN_REVERT_14;
} else if (name.startsWith("main-warn-"))
{
if (name == "main-warn-0")
@@ -681,6 +716,16 @@ Shortcut::Shortcut(QString name, QString description)
this->ID = HUGGLE_ACCEL_MAIN_WARN8;
else if (name == "main-warn-9")
this->ID = HUGGLE_ACCEL_MAIN_WARN9;
else if (name == "main-warn-10")
this->ID = HUGGLE_ACCEL_MAIN_WARN10;
else if (name == "main-warn-11")
this->ID = HUGGLE_ACCEL_MAIN_WARN11;
else if (name == "main-warn-12")
this->ID = HUGGLE_ACCEL_MAIN_WARN12;
else if (name == "main-warn-13")
this->ID = HUGGLE_ACCEL_MAIN_WARN13;
else if (name == "main-warn-14")
this->ID = HUGGLE_ACCEL_MAIN_WARN14;
}
}
View
@@ -41,6 +41,11 @@ class QXmlStreamWriter;
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN7 15
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN8 16
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN9 17
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN10 10000
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN11 10001
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN12 10002
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN13 10003
#define HUGGLE_ACCEL_MAIN_REVERT_AND_WARN14 10004
#define HUGGLE_ACCEL_MAIN_WARN0 18
#define HUGGLE_ACCEL_MAIN_WARN1 19
#define HUGGLE_ACCEL_MAIN_WARN2 20
@@ -51,6 +56,11 @@ class QXmlStreamWriter;
#define HUGGLE_ACCEL_MAIN_WARN7 25
#define HUGGLE_ACCEL_MAIN_WARN8 26
#define HUGGLE_ACCEL_MAIN_WARN9 27
#define HUGGLE_ACCEL_MAIN_WARN10 20001
#define HUGGLE_ACCEL_MAIN_WARN11 20002
#define HUGGLE_ACCEL_MAIN_WARN12 20003
#define HUGGLE_ACCEL_MAIN_WARN13 20004
#define HUGGLE_ACCEL_MAIN_WARN14 20005
#define HUGGLE_ACCEL_MAIN_REVERT_0 28
#define HUGGLE_ACCEL_MAIN_REVERT_1 29
#define HUGGLE_ACCEL_MAIN_REVERT_2 30
@@ -61,6 +71,11 @@ class QXmlStreamWriter;
#define HUGGLE_ACCEL_MAIN_REVERT_7 35
#define HUGGLE_ACCEL_MAIN_REVERT_8 36
#define HUGGLE_ACCEL_MAIN_REVERT_9 37
#define HUGGLE_ACCEL_MAIN_REVERT_10 20110
#define HUGGLE_ACCEL_MAIN_REVERT_11 20111
#define HUGGLE_ACCEL_MAIN_REVERT_12 20112
#define HUGGLE_ACCEL_MAIN_REVERT_13 20113
#define HUGGLE_ACCEL_MAIN_REVERT_14 20114
#define HUGGLE_ACCEL_MAIN_TALK 38
#define HUGGLE_ACCEL_REVERT_STAY 39
#define HUGGLE_ACCEL_MAIN_OPEN_IN_BROWSER 40
View
@@ -712,6 +712,21 @@ void MainWindow::ReloadShort(QString id)
case HUGGLE_ACCEL_MAIN_REVERT_AND_WARN9:
ReloadIndexedMenuShortcut(this->RevertAndWarnItems, 9, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_AND_WARN10:
ReloadIndexedMenuShortcut(this->RevertAndWarnItems, 10, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_AND_WARN11:
ReloadIndexedMenuShortcut(this->RevertAndWarnItems, 11, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_AND_WARN12:
ReloadIndexedMenuShortcut(this->RevertAndWarnItems, 12, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_AND_WARN13:
ReloadIndexedMenuShortcut(this->RevertAndWarnItems, 13, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_AND_WARN14:
ReloadIndexedMenuShortcut(this->RevertAndWarnItems, 14, s);
return;
case HUGGLE_ACCEL_MAIN_WARN0:
ReloadIndexedMenuShortcut(this->WarnItems, 0, s);
return;
@@ -742,6 +757,21 @@ void MainWindow::ReloadShort(QString id)
case HUGGLE_ACCEL_MAIN_WARN9:
ReloadIndexedMenuShortcut(this->WarnItems, 9, s);
return;
case HUGGLE_ACCEL_MAIN_WARN10:
ReloadIndexedMenuShortcut(this->WarnItems, 10, s);
return;
case HUGGLE_ACCEL_MAIN_WARN11:
ReloadIndexedMenuShortcut(this->WarnItems, 11, s);
return;
case HUGGLE_ACCEL_MAIN_WARN12:
ReloadIndexedMenuShortcut(this->WarnItems, 12, s);
return;
case HUGGLE_ACCEL_MAIN_WARN13:
ReloadIndexedMenuShortcut(this->WarnItems, 13, s);
return;
case HUGGLE_ACCEL_MAIN_WARN14:
ReloadIndexedMenuShortcut(this->WarnItems, 14, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_0:
ReloadIndexedMenuShortcut(this->RevertItems, 0, s);
return;
@@ -772,6 +802,21 @@ void MainWindow::ReloadShort(QString id)
case HUGGLE_ACCEL_MAIN_REVERT_9:
ReloadIndexedMenuShortcut(this->RevertItems, 9, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_10:
ReloadIndexedMenuShortcut(this->RevertItems, 10, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_11:
ReloadIndexedMenuShortcut(this->RevertItems, 11, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_12:
ReloadIndexedMenuShortcut(this->RevertItems, 12, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_13:
ReloadIndexedMenuShortcut(this->RevertItems, 13, s);
return;
case HUGGLE_ACCEL_MAIN_REVERT_14:
ReloadIndexedMenuShortcut(this->RevertItems, 14, s);
return;
case HUGGLE_ACCEL_SUSPICIOUS_EDIT:
q = this->ui->actionFlag_as_suspicious_edit;
break;

0 comments on commit ae605bb

Please sign in to comment.