Added hotkeys for workspaces 9-16

Patch approved by Matthias Ettrich

svn path=/trunk/kdebase/kwin/; revision=62067
This commit is contained in:
Kalle Dalheimer 2000-08-28 06:16:34 +00:00
parent 817cf4fd9f
commit 87931a071a
3 changed files with 48 additions and 0 deletions

View file

@ -6,6 +6,14 @@
keys->insertItem(i18n("Switch to desktop 6"), "Switch to desktop 6" ,"CTRL+F6");
keys->insertItem(i18n("Switch to desktop 7"), "Switch to desktop 7" ,"CTRL+F7");
keys->insertItem(i18n("Switch to desktop 8"), "Switch to desktop 8" ,"CTRL+F8");
keys->insertItem(i18n("Switch to desktop 9"), "Switch to desktop 9" ,"CTRL+F9");
keys->insertItem(i18n("Switch to desktop 10"), "Switch to desktop 10" ,"CTRL+F10");
keys->insertItem(i18n("Switch to desktop 11"), "Switch to desktop 11" ,"CTRL+F11");
keys->insertItem(i18n("Switch to desktop 12"), "Switch to desktop 12" ,"CTRL+F12");
keys->insertItem(i18n("Switch to desktop 13"), "Switch to desktop 13" ,"CTRL+SHIFT+F1");
keys->insertItem(i18n("Switch to desktop 14"), "Switch to desktop 14" ,"CTRL+SHIFT+F2");
keys->insertItem(i18n("Switch to desktop 15"), "Switch to desktop 15" ,"CTRL+SHIFT+F3");
keys->insertItem(i18n("Switch to desktop 16"), "Switch to desktop 16" ,"CTRL+SHIFT+F4");
keys->insertItem(i18n("Switch one desktop to the left"), "Switch desktop left" ,"");
keys->insertItem(i18n("Switch one desktop to the right"), "Switch desktop right" ,"");

View file

@ -1945,6 +1945,14 @@ void Workspace::createKeybindings(){
keys->connectItem( "Switch to desktop 6", this, SLOT( slotSwitchDesktop6() ));
keys->connectItem( "Switch to desktop 7", this, SLOT( slotSwitchDesktop7() ));
keys->connectItem( "Switch to desktop 8", this, SLOT( slotSwitchDesktop8() ));
keys->connectItem( "Switch to desktop 9", this, SLOT( slotSwitchDesktop9() ));
keys->connectItem( "Switch to desktop 10", this, SLOT( slotSwitchDesktop10() ));
keys->connectItem( "Switch to desktop 11", this, SLOT( slotSwitchDesktop11() ));
keys->connectItem( "Switch to desktop 12", this, SLOT( slotSwitchDesktop12() ));
keys->connectItem( "Switch to desktop 13", this, SLOT( slotSwitchDesktop13() ));
keys->connectItem( "Switch to desktop 14", this, SLOT( slotSwitchDesktop14() ));
keys->connectItem( "Switch to desktop 15", this, SLOT( slotSwitchDesktop15() ));
keys->connectItem( "Switch to desktop 16", this, SLOT( slotSwitchDesktop16() ));
keys->connectItem( "Switch desktop left", this, SLOT( slotSwitchDesktopLeft() ));
keys->connectItem( "Switch desktop right", this, SLOT( slotSwitchDesktopRight() ));
@ -1992,6 +2000,30 @@ void Workspace::slotSwitchDesktop7(){
void Workspace::slotSwitchDesktop8(){
setCurrentDesktop(8);
}
void Workspace::slotSwitchDesktop9(){
setCurrentDesktop(9);
}
void Workspace::slotSwitchDesktop10(){
setCurrentDesktop(10);
}
void Workspace::slotSwitchDesktop11(){
setCurrentDesktop(11);
}
void Workspace::slotSwitchDesktop12(){
setCurrentDesktop(12);
}
void Workspace::slotSwitchDesktop13(){
setCurrentDesktop(13);
}
void Workspace::slotSwitchDesktop14(){
setCurrentDesktop(14);
}
void Workspace::slotSwitchDesktop15(){
setCurrentDesktop(15);
}
void Workspace::slotSwitchDesktop16(){
setCurrentDesktop(16);
}
void Workspace::slotSwitchDesktopRight(){
int d = currentDesktop() + 1;
if ( d > number_of_desktops )

View file

@ -191,6 +191,14 @@ public slots:
void slotSwitchDesktop6();
void slotSwitchDesktop7();
void slotSwitchDesktop8();
void slotSwitchDesktop9();
void slotSwitchDesktop10();
void slotSwitchDesktop11();
void slotSwitchDesktop12();
void slotSwitchDesktop13();
void slotSwitchDesktop14();
void slotSwitchDesktop15();
void slotSwitchDesktop16();
void slotSwitchDesktopRight();
void slotSwitchDesktopLeft();