| 758 | } |
| 759 | |
| 760 | bool App::commandExists( const std::string& command ) const { |
| 761 | if ( mSplitter->getCurWidget() && mSplitter->getCurWidget()->isType( UI_TYPE_CODEEDITOR ) ) { |
| 762 | UICodeEditor* editor = mSplitter->getCurWidget()->asType<UICodeEditor>(); |
| 763 | if ( editor->getDocument().hasCommand( command ) ) |
| 764 | return true; |
| 765 | } |
| 766 | return mMainLayout->getKeyBindings().hasCommand( command ); |
| 767 | } |
| 768 | |
| 769 | void App::onPluginEnabled( Plugin* plugin ) { |
| 770 | if ( mSplitter ) { |
nothing calls this directly
no test coverage detected