MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setCursorBlinkingTime

Method setCursorBlinkingTime

src/tools/ecode/settingsactions.cpp:182–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void SettingsActions::setCursorBlinkingTime() {
183 UIMessageBox* msgBox = UIMessageBox::New(
184 UIMessageBox::INPUT,
185 i18n( "set_cursor_blinking_time", "Set Cursor Blinking Time:\nSet 0 to disable it.\n" )
186 .unescape() );
187 msgBox->setTitle( mApp->getWindowTitle() );
188 msgBox->setCloseShortcut( { KEY_ESCAPE, 0 } );
189 msgBox->getTextInput()->setText( mApp->getConfig().editor.cursorBlinkingTime.toString() );
190 msgBox->showWhenReady();
191 msgBox->on( Event::OnConfirm, [this, msgBox]( const Event* ) {
192 mApp->getConfig().editor.cursorBlinkingTime =
193 Time::fromString( msgBox->getTextInput()->getText().toUtf8() );
194 mApp->getSplitter()->forEachEditor( [this]( UICodeEditor* editor ) {
195 editor->setCursorBlinkTime( mApp->getConfig().editor.cursorBlinkingTime );
196 } );
197 msgBox->closeWindow();
198 } );
199 mApp->setFocusEditorOnClose( msgBox );
200}
201
202void SettingsActions::setIndentTabCharacter() {
203 UIMessageBox* msgBox = UIMessageBox::New(

Callers 2

createDocumentMenuMethod · 0.80

Calls 15

fromStringFunction · 0.85
getConfigMethod · 0.80
showWhenReadyMethod · 0.80
toUtf8Method · 0.80
forEachEditorMethod · 0.80
setCursorBlinkTimeMethod · 0.80
closeWindowMethod · 0.80
setFocusEditorOnCloseMethod · 0.80
NewFunction · 0.50
unescapeMethod · 0.45
setTitleMethod · 0.45
setCloseShortcutMethod · 0.45

Tested by

no test coverage detected