| 1090 | } |
| 1091 | |
| 1092 | void App::onTextDropped( String text ) { |
| 1093 | Vector2f mousePos( mUISceneNode->getEventDispatcher()->getMousePosf() ); |
| 1094 | Node* node = mUISceneNode->overFind( mousePos ); |
| 1095 | UICodeEditor* codeEditor = |
| 1096 | mSplitter->curEditorExistsAndFocused() ? mSplitter->getCurEditor() : nullptr; |
| 1097 | if ( node && node->isType( UI_TYPE_CODEEDITOR ) ) |
| 1098 | codeEditor = node->asType<UICodeEditor>(); |
| 1099 | if ( codeEditor && !text.empty() ) { |
| 1100 | if ( text[text.size() - 1] != '\n' ) |
| 1101 | text += '\n'; |
| 1102 | codeEditor->getDocument().textInput( text ); |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | App::App( const size_t& jobs, const std::vector<std::string>& args ) : |
| 1107 | mArgs( args ), |
nothing calls this directly
no test coverage detected