Implement CTRL+1 to CTRL+9 hotkeys for switching tabs

Progress on #21
This commit is contained in:
Rasmus Karlsson
2018-01-06 20:27:26 +01:00
parent 8aa459d826
commit b8e268f969
4 changed files with 29 additions and 9 deletions
+9
View File
@@ -117,6 +117,15 @@ void Notebook::select(SplitContainer *page)
this->performLayout();
}
void Notebook::selectIndex(unsigned index)
{
if (index >= this->pages.size()) {
return;
}
this->select(this->pages.at(index));
}
int Notebook::tabCount()
{
return this->pages.size();