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

Method runSelect

src/tools/ecode/uibuildsettings.cpp:1079–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079void UIBuildSettings::runSelect( Uint32 index ) {
1080 UIWidget* cont = find<UIWidget>( "run_cont" );
1081 auto bs = cont->findByClass<UIBuildStep>( String::toString( 0 ) );
1082 if ( index < mBuild.mRun.size() ) {
1083 bs->updateStep( 0, mBuild.mRun[index].get() );
1084 } else {
1085 if ( mBuild.mRun.empty() ) {
1086 mBuild.mRun.push_back( std::make_unique<ProjectBuildStep>() );
1087 mBuild.mRun.back()->name = i18n( "custom_executable", "Custom Executable" );
1088 }
1089 bs->updateStep( 0, mBuild.mRun[0].get() );
1090 }
1091}
1092
1093void UIBuildSettings::runRemove( bool all, UIDropDownList* runList,
1094 UIDropDownList* panelRunListDDL ) {

Callers

nothing calls this directly

Calls 6

updateStepMethod · 0.80
push_backMethod · 0.80
toStringFunction · 0.50
sizeMethod · 0.45
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected