//--------------------------------------------- void ofxControlPanel::setWhichPanel(string panelName){ for(int i = 0; i < (int) panels.size(); i++){ if( panels[i]->name == panelName){ setWhichPanel(i); setWhichColumn(0); return; } } }
//--------------------------------------------- void ofxControlPanel::setWhichPanel(int whichPanel){ if( whichPanel < 0 || whichPanel >= (int) panels.size() )return; currentPanel = whichPanel; setWhichColumn(0); }
//--------------------------------------------- void ofxLabGui::setWhichGroup(int whichGroup){ if( panels[currentPanel]->groups.size() <= 0 || whichGroup >= panels[currentPanel]->groups.size() )return; currentGroup = whichGroup; panels[currentPanel]->currentGroup = whichGroup; setWhichColumn(0); }
//--------------------------------------------- void ofxLabGui::setWhichPanel(int whichPanel){ if( whichPanel < 0 || whichPanel >= panels.size() )return; currentPanel = whichPanel; setWhichColumn(0); }