From 4b4aeedc324ef77cc65459027a013237a85d4516 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 6 Feb 2019 22:39:28 +0100 Subject: [PATCH] More tweaks to add-jack dialog Signed-off-by: falkTX --- resources/ui/carla_add_jack.ui | 140 ++++++++++++++++++++++++------ source/frontend/carla_database.py | 11 +-- 2 files changed, 117 insertions(+), 34 deletions(-) diff --git a/resources/ui/carla_add_jack.ui b/resources/ui/carla_add_jack.ui index d43b37524..3d7f81662 100644 --- a/resources/ui/carla_add_jack.ui +++ b/resources/ui/carla_add_jack.ui @@ -27,39 +27,23 @@ Application - - - - Command: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - + + Qt::Horizontal - QSizePolicy::Ignored + QSizePolicy::Fixed - 87 - 1 + 20 + 60 - - - - + Name: @@ -69,22 +53,124 @@ - - + + + + + Qt::Horizontal - QSizePolicy::Ignored + QSizePolicy::Fixed - 1 - 1 + 20 + 60 + + + + Application: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + false + + + + 0 + 0 + + + + From template + + + + + + + + 0 + 0 + + + + Custom + + + true + + + + + + + 1 + + + + + 0 + + + + + Template: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + false + + + + + + + + + 0 + + + + + Command: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + + + diff --git a/source/frontend/carla_database.py b/source/frontend/carla_database.py index 503114851..41e649168 100755 --- a/source/frontend/carla_database.py +++ b/source/frontend/carla_database.py @@ -1975,16 +1975,13 @@ class JackApplicationW(QDialog): flags = 0x0 if not name: - name = os.path.basename(command.split(" ",1)[0]) + name = os.path.basename(command.split(" ",1)[0]).title() - # TODO finalize flag definitions uiSessionMgrIndex = self.ui.cb_session_mgr.currentIndex() - if uiSessionMgrIndex == 1: - smgr = self.SESSION_MGR_AUTO - elif uiSessionMgrIndex == 2: + if uiSessionMgrIndex == self.UI_SESSION_LADISH: smgr = self.SESSION_MGR_LADISH - #elif uiSessionMgrIndex == 2: - #smgr = self.SESSION_MGR_NSM + elif uiSessionMgrIndex == self.UI_SESSION_NSM: + smgr = self.SESSION_MGR_NSM if self.ui.cb_manage_window.isChecked(): flags |= self.FLAG_CONTROL_WINDOW