Browse Source

Add ctrl+tab shortcut for changing tabs (rack and patchbay for now)

tags/1.9.5
falkTX 10 years ago
parent
commit
59b7fa5322
2 changed files with 23 additions and 1 deletions
  1. +9
    -1
      resources/ui/carla_host.ui
  2. +14
    -0
      source/carla_host.py

+ 9
- 1
resources/ui/carla_host.ui View File

@@ -137,7 +137,7 @@
<x>0</x>
<y>0</y>
<width>870</width>
<height>17</height>
<height>19</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
@@ -786,6 +786,14 @@
<string>Show External</string>
</property>
</action>
<action name="act_extra_next_tab">
<property name="text">
<string>Next Tab</string>
</property>
<property name="shortcut">
<string>Ctrl+Tab</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>


+ 14
- 0
source/carla_host.py View File

@@ -346,6 +346,8 @@ class HostWindow(QMainWindow):
self.ui.act_help_about_juce.triggered.connect(self.slot_aboutJuce)
self.ui.act_help_about_qt.triggered.connect(self.slot_aboutQt)

self.ui.act_extra_next_tab.triggered.connect(self.slot_tabsNext)

self.ui.cb_disk.currentIndexChanged.connect(self.slot_diskFolderChanged)
self.ui.b_disk_add.clicked.connect(self.slot_diskFolderAdd)
self.ui.b_disk_remove.clicked.connect(self.slot_diskFolderRemove)
@@ -1301,6 +1303,18 @@ class HostWindow(QMainWindow):
def slot_aboutQt(self):
QApplication.instance().aboutQt()

# --------------------------------------------------------------------------------------------------------
# Extra (menu actions)

@pyqtSlot()
def slot_tabsNext(self):
nextTab = self.ui.tabWidget.currentIndex()+1

if nextTab > self.ui.tabWidget.count():
nextTab = 0

self.ui.tabWidget.setCurrentIndex(nextTab)

# --------------------------------------------------------------------------------------------------------
# Disk (menu actions)



Loading…
Cancel
Save