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

Method deleteStep

src/tools/ecode/uibuildsettings.cpp:866–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void UIBuildSettings::deleteStep( size_t stepNum, bool isClean ) {
867 ProjectBuildSteps& steps = isClean ? mBuild.mClean : mBuild.mBuild;
868 UIWidget* cont =
869 isClean ? find<UIWidget>( "build_clean_steps_cont" ) : find<UIWidget>( "build_steps_cont" );
870 for ( auto step = stepNum; step < steps.size(); step++ )
871 cont->findByClass<UIBuildStep>( String::toString( (Uint64)step ) )->clearBindings();
872 steps.erase( steps.begin() + stepNum );
873 cont->findByClass<UIBuildStep>( String::toString( (Uint64)stepNum ) )->close();
874 for ( auto step = stepNum + 1; step <= steps.size(); step++ )
875 cont->findByClass<UIBuildStep>( String::toString( (Uint64)step ) )
876 ->updateStep( step - 1, steps[step - 1].get() );
877}
878
879void UIBuildSettings::runSetup() {
880 if ( mBuild.mRun.empty() ) {

Callers 1

UIBuildStepMethod · 0.80

Calls 8

clearBindingsMethod · 0.80
updateStepMethod · 0.80
closeMethod · 0.65
toStringFunction · 0.50
sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected