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

Method updateCurrentFileType

src/tools/ecode/settingsmenu.cpp:2883–2895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2881}
2882
2883void SettingsMenu::updateCurrentFileType() {
2884 if ( !mSplitter->curEditorExistsAndFocused() )
2885 return;
2886 std::string curLang( mSplitter->getCurEditor()->getSyntaxDefinition().getLanguageName() );
2887 for ( UIPopUpMenu* menu : mFileTypeMenus ) {
2888 for ( size_t i = 0; i < menu->getCount(); i++ ) {
2889 if ( menu->getItem( i )->isType( UI_TYPE_MENURADIOBUTTON ) ) {
2890 UIMenuRadioButton* menuItem = menu->getItem( i )->asType<UIMenuRadioButton>();
2891 menuItem->setActive( curLang == menuItem->getText() );
2892 }
2893 }
2894 }
2895}
2896
2897void SettingsMenu::updatedReopenClosedFileState() {
2898 if ( mRecentFilesMenu ) {

Callers 3

UniversalLocatorMethod · 0.80
onRealDocumentLoadedMethod · 0.80
updateEditorStateMethod · 0.80

Calls 7

getCurEditorMethod · 0.80
getCountMethod · 0.45
isTypeMethod · 0.45
getItemMethod · 0.45
setActiveMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected