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

Method runRemove

src/tools/ecode/uibuildsettings.cpp:1093–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093void UIBuildSettings::runRemove( bool all, UIDropDownList* runList,
1094 UIDropDownList* panelRunListDDL ) {
1095
1096 if ( runList->getListBox()->isEmpty() )
1097 return;
1098
1099 if ( all ) {
1100 runList->getListBox()->clear();
1101 if ( panelRunListDDL )
1102 panelRunListDDL->getListBox()->clear();
1103 mBuild.mRun.clear();
1104 } else {
1105 auto name = runList->getListBox()->getItemSelectedText();
1106 mBuild.mRun.erase( mBuild.mRun.begin() + runList->getListBox()->getItemSelectedIndex() );
1107 runList->getListBox()->removeListBoxItem( name );
1108 if ( panelRunListDDL )
1109 panelRunListDDL->getListBox()->removeListBoxItem( name );
1110 }
1111
1112 runUpdate( false, runList, panelRunListDDL );
1113
1114 if ( all )
1115 runSelect();
1116}
1117
1118void UIBuildSettings::runUpdate( bool recreateList, UIDropDownList* runList,
1119 UIDropDownList* panelRunListDDL ) {

Callers

nothing calls this directly

Calls 8

getItemSelectedTextMethod · 0.80
removeListBoxItemMethod · 0.80
isEmptyMethod · 0.45
getListBoxMethod · 0.45
clearMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
getItemSelectedIndexMethod · 0.45

Tested by

no test coverage detected