diff --git a/src/Interface/Application/ShortcutsInterface.cc b/src/Interface/Application/ShortcutsInterface.cc index 7a68bb194..d4f3e5b03 100644 --- a/src/Interface/Application/ShortcutsInterface.cc +++ b/src/Interface/Application/ShortcutsInterface.cc @@ -37,6 +37,7 @@ // Application includes #include #include +#include // QtUtils includes #include @@ -65,6 +66,8 @@ ShortcutsInterface::ShortcutsInterface( QWidget *parent ) : { // Set up the private internals of the MessageWindow class this->private_->ui_.setupUi( this ); + this->private_->ui_.python_shortcut_label_->hide(); + this->private_->ui_.controller_shortcut_label_->hide(); // Update the title of the dialog std::string title = std::string( "Keyboard/Mouse Shortcuts - " ) @@ -92,6 +95,22 @@ ShortcutsInterface::ShortcutsInterface( QWidget *parent ) : // Update fonts and text update_fonts_and_text(); + + +//=========== HANDLE SPECIAL MENU ITEM VISIBILITY ===========// + // Python Shortcut visible +#ifdef BUILD_WITH_PYTHON + this->private_->ui_.python_shortcut_label_->show(); +#endif + + // Controller Shortcut visible + { + Core::StateEngine::lock_type lock( Core::StateEngine::GetMutex() ); + if ( InterfaceManager::Instance()->enable_controller_state_->get() ) + { + this->private_->ui_.controller_shortcut_label_->show(); + } + } } ShortcutsInterface::~ShortcutsInterface() diff --git a/src/Interface/Application/ShortcutsInterface.ui b/src/Interface/Application/ShortcutsInterface.ui index 5201433e2..18db29ea7 100644 --- a/src/Interface/Application/ShortcutsInterface.ui +++ b/src/Interface/Application/ShortcutsInterface.ui @@ -1033,9 +1033,9 @@ QWidget#scrollAreaWidgetContents_4{ 0 - 0 + -307 396 - 646 + 698 @@ -2126,6 +2126,12 @@ QWidget#scrollAreaWidgetContents_4{ 0 + + + 0 + 178 + + 0 @@ -2378,6 +2384,129 @@ QWidget#scrollAreaWidgetContents_4{ + + + + + 0 + 20 + + + + + 4 + + + 10 + + + 0 + + + 0 + + + 0 + + + + + Volume View Window: + + + + + + + CTRL+SHIFT+V + + + + + + + + + + + 0 + 20 + + + + + 4 + + + 10 + + + 0 + + + 0 + + + 0 + + + + + Python Console Window: + + + + + + + CTRL+SHIFT+Y + + + + + + + + + + + 0 + 20 + + + + + 4 + + + 10 + + + 0 + + + 0 + + + 0 + + + + + Controller Window: + + + + + + + CTRL+SHIFT+C + + + + + +