From 0efce7c8eef89e77349748ef56bc2aa54765f845 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 17 Sep 2014 13:50:57 -0700 Subject: [PATCH 1/3] Add hotkey to reload all scripts --- interface/src/Menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/Menu.cpp b/interface/src/Menu.cpp index d7679968ae..2417d156a6 100644 --- a/interface/src/Menu.cpp +++ b/interface/src/Menu.cpp @@ -148,7 +148,8 @@ Menu::Menu() : addActionToQMenuAndActionHash(fileMenu, MenuOption::LoadScriptURL, Qt::CTRL | Qt::SHIFT | Qt::Key_O, appInstance, SLOT(loadScriptURLDialog())); addActionToQMenuAndActionHash(fileMenu, MenuOption::StopAllScripts, 0, appInstance, SLOT(stopAllScripts())); - addActionToQMenuAndActionHash(fileMenu, MenuOption::ReloadAllScripts, 0, appInstance, SLOT(reloadAllScripts())); + addActionToQMenuAndActionHash(fileMenu, MenuOption::ReloadAllScripts, Qt::CTRL | Qt::SHIFT | Qt::Key_R, + appInstance, SLOT(reloadAllScripts())); addActionToQMenuAndActionHash(fileMenu, MenuOption::RunningScripts, Qt::CTRL | Qt::Key_J, appInstance, SLOT(toggleRunningScriptsWidget())); From b55a5acdd3cf4553d73884e49290fca465bcaf55 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 17 Sep 2014 14:27:11 -0700 Subject: [PATCH 2/3] Update style of running scripts widget --- interface/ui/runningScriptsWidget.ui | 109 ++++++++++++--------------- 1 file changed, 47 insertions(+), 62 deletions(-) diff --git a/interface/ui/runningScriptsWidget.ui b/interface/ui/runningScriptsWidget.ui index ddc6ad6c27..b4d17b1561 100644 --- a/interface/ui/runningScriptsWidget.ui +++ b/interface/ui/runningScriptsWidget.ui @@ -6,8 +6,8 @@ 0 0 - 324 - 643 + 319 + 481 @@ -29,57 +29,12 @@ 20 - - - - - 6 - - - 0 - - - 6 - - - - - color: #0e7077; -font-size: 20px; - - - Running Scripts - - - 0 - - - -1 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - + 0 - 1 + 0 @@ -157,7 +112,7 @@ font: bold 16px; 0 - 8 + 4 @@ -218,6 +173,12 @@ font: bold 16px; + + + 0 + 0 + + 0 @@ -236,6 +197,12 @@ font: bold 16px; + + + 0 + 0 + + Helvetica,Arial,sans-serif @@ -252,11 +219,14 @@ font: bold 16px; 0 - Qt::ScrollBarAsNeeded + Qt::ScrollBarAlwaysOn Qt::ScrollBarAlwaysOff + + QAbstractScrollArea::AdjustToContents + true @@ -268,7 +238,7 @@ font: bold 16px; 0 0 - 284 + 264 16 @@ -278,6 +248,9 @@ font: bold 16px; 0 + + Qt::LeftToRight + font-size: 14px; @@ -303,14 +276,20 @@ font: bold 16px; + + + 0 + 0 + + - font: 14px; + font: 14px; color: #5f5f5f; - There are no scripts currently running. + There are no scripts running. - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop @@ -325,15 +304,9 @@ font: bold 16px; 0 - 2 + 0 - - - 0 - 300 - - 0 @@ -352,6 +325,12 @@ font: bold 16px; + + + 0 + 0 + + 0 @@ -432,6 +411,12 @@ font: bold 16px; + + + 0 + 0 + + Qt::ScrollBarAlwaysOn From 145425276d74ac9d480bf70e671602918de445ff Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 19 Sep 2014 14:17:08 -0700 Subject: [PATCH 3/3] Fix script list not being hidden --- interface/src/ui/RunningScriptsWidget.cpp | 1 + interface/ui/runningScriptsWidget.ui | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/ui/RunningScriptsWidget.cpp b/interface/src/ui/RunningScriptsWidget.cpp index 6efa2f8fe6..baf3995d0e 100644 --- a/interface/src/ui/RunningScriptsWidget.cpp +++ b/interface/src/ui/RunningScriptsWidget.cpp @@ -136,6 +136,7 @@ void RunningScriptsWidget::setRunningScripts(const QStringList& list) { ui->noRunningScriptsLabel->setVisible(list.isEmpty()); + ui->runningScriptsList->setVisible(!list.isEmpty()); ui->reloadAllButton->setVisible(!list.isEmpty()); ui->stopAllButton->setVisible(!list.isEmpty()); diff --git a/interface/ui/runningScriptsWidget.ui b/interface/ui/runningScriptsWidget.ui index b4d17b1561..a55e949d7a 100644 --- a/interface/ui/runningScriptsWidget.ui +++ b/interface/ui/runningScriptsWidget.ui @@ -222,7 +222,7 @@ font: bold 16px; Qt::ScrollBarAlwaysOn - Qt::ScrollBarAlwaysOff + Qt::ScrollBarAsNeeded QAbstractScrollArea::AdjustToContents