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

Method moveStepDir

src/tools/ecode/uibuildsettings.cpp:854–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854void UIBuildSettings::moveStepDir( size_t stepNum, bool isClean, int dir ) {
855 ProjectBuildSteps& steps = isClean ? mBuild.mClean : mBuild.mBuild;
856 UIWidget* cont =
857 isClean ? find<UIWidget>( "build_clean_steps_cont" ) : find<UIWidget>( "build_steps_cont" );
858 int newStep = (int)stepNum + dir;
859 std::swap( steps[stepNum], steps[newStep] );
860 auto bs1 = cont->findByClass<UIBuildStep>( String::toString( (Uint64)stepNum ) );
861 auto bs2 = cont->findByClass<UIBuildStep>( String::toString( newStep ) );
862 bs1->updateStep( stepNum, steps[stepNum].get() );
863 bs2->updateStep( newStep, steps[newStep].get() );
864}
865
866void UIBuildSettings::deleteStep( size_t stepNum, bool isClean ) {
867 ProjectBuildSteps& steps = isClean ? mBuild.mClean : mBuild.mBuild;

Callers

nothing calls this directly

Calls 4

swapFunction · 0.85
updateStepMethod · 0.80
toStringFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected